Commit Graph

42045 Commits

Author SHA1 Message Date
android-build-team Robot
ab0805ef2d Merge cherrypicks of [3389033, 3388635, 3389278, 3389279] into pi-release
Change-Id: I71ce85b48a79247853bc212b334012a1f30ef92a
2017-12-21 04:17:51 +00:00
Doris Ling
6694854dc0 Catch NullPointerException in PreIndexDataCollector.
Null pointer exception is thrown from ContentProviderNative when we
query the non indexable keys. Added a try-catch block to prevent it from
crashing.

Change-Id: I45c1e34bb81a4739ae2eb5dd19a08781ab7beeb1
Fix: 70900076
Test: manual
(cherry picked from commit 559ac8a72a)
2017-12-21 04:17:28 +00:00
android-build-team Robot
9909c6b30b Snap for 4511918 from 3abedefd38 to pi-release
Change-Id: Iff784c68268779d3aa0b009c599068a68e1f2dab
2017-12-20 18:46:16 +00:00
android-build-team Robot
5928ef113b Snap for 4510491 from c56a641ebc to pi-release
Change-Id: I379c95dc57d0e0c091eceb9bffd4df343fff4858
2017-12-20 08:26:19 +00:00
TreeHugger Robot
3abedefd38 Merge "Add ability to show/hide default_home preference." 2017-12-20 07:47:08 +00:00
TreeHugger Robot
ed38319396 Merge "Add event log tag for measuring settings latency" 2017-12-20 01:57:45 +00:00
TreeHugger Robot
1b1602ab2d Merge "Index Data to build Slices in Settings" 2017-12-20 01:00:32 +00:00
goneil
bdd9880b8e Merge "Set EDITED column to USER_EDITED when editing APN" am: 90d284cab7 am: 1b0c8335e3
am: 50f5d8cf66

Change-Id: Icda2b822986167cbe3afa5f56955e946bb576315
2017-12-20 00:46:56 +00:00
goneil
50f5d8cf66 Merge "Set EDITED column to USER_EDITED when editing APN" am: 90d284cab7
am: 1b0c8335e3

Change-Id: I0b37b48e160f8fcd7b96f6515b34e1cb765d2b24
2017-12-20 00:41:52 +00:00
goneil
1b0c8335e3 Merge "Set EDITED column to USER_EDITED when editing APN"
am: 90d284cab7

Change-Id: I32cb408436e755e6452dacafc3dc5808f5a2a60d
2017-12-20 00:39:32 +00:00
Treehugger Robot
90d284cab7 Merge "Set EDITED column to USER_EDITED when editing APN" 2017-12-20 00:36:53 +00:00
Fan Zhang
458e04e0ec Add event log tag for measuring settings latency
Bug: 68017528
Test: rebuild
Change-Id: I72f5092dde105ea108b0abe77b1ba64a30d89f44
2017-12-19 16:22:03 -08:00
Ben Lin
b60d2cbb5b Add ability to show/hide default_home preference.
This adds a new boolean flag, config_show_default_home, which when set
to false will hide the default_home preference item.

Bug: 62378256
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=DefaultHomePreferenceControllerTest

Change-Id: Ibbf17ebb76b61fc8b2eac84016e3d874ca15a513
2017-12-19 15:57:29 -08:00
Lei Yu
ae85618dd7 Merge "Add infra for battery tip" 2017-12-19 23:42:28 +00:00
TreeHugger Robot
4d577ee113 Merge "Unit test for screen timeout policy handling in Settings" 2017-12-19 22:43:41 +00:00
jackqdyulei
fde63fc351 Add infra for battery tip
This cl adds the basic structure for battery tip:
1. BaseBatteryTip: Model class to represent the tip and build
preference and dialog
2. SummaryTip: Display a general battery summary(i.e. your battery
is good..)
3. BatteryTipLoader: AsyncLoader to load the battery tips.
4. BatteryTipPreferenceController: preference controller for
preference group to display battery tips

This cl also:
1. Remove the anomaly code in PowerUsageSummary and we will add it
to app restriction in future.
2. Add preference_category_no_title.xml to avoid the extra 32dp
blank at the top.

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: If91a553888e2eb91d55fb1d0d7bbea69652f144c
2017-12-19 13:27:33 -08:00
TreeHugger Robot
a9a7dda4a5 Merge "Import translations. DO NOT MERGE" 2017-12-19 21:06:04 +00:00
Pavel Grafov
d50a536d1d Unit test for screen timeout policy handling in Settings
This is a follow-up for http://ag/3123412

Test: make ROBOTEST_FILTER=LockAfterTimeoutPreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=TimeoutPreferenceControllerTest RunSettingsRoboTests

Bug: 63908311
Change-Id: I27631743d52163f3b6d1589b427ba617e74725a9
2017-12-19 21:05:16 +00:00
Fan Zhang
74a91ca49e Merge "Fix UniquePreferenceTest" 2017-12-19 20:22:18 +00:00
Bill Yi
b504e3c1dc Import translations. DO NOT MERGE
Change-Id: I7bbec8bd3d4424dfaeefc0770d3057993963ba86
Auto-generated-cl: translation import
2017-12-19 11:37:10 -08:00
Fan Zhang
c007634df2 Fix UniquePreferenceTest
Bug: 70638967
Test: atest UniquePreferenceTest
Change-Id: Idf06ccd9580d66c051f9b7c910c567f321da6cc5
2017-12-19 10:52:30 -08:00
Bill Yi
c56a641ebc Import translations. DO NOT MERGE am: 596de5e45c -s ours am: 1f229d3710 -s ours
am: 5855abd505  -s ours

Change-Id: Ic053ab937a42908b304fb161d279822e6348a31a
2017-12-19 18:29:37 +00:00
Bill Yi
1681482926 Import translations. DO NOT MERGE am: 1e9183e0c0 -s ours
am: d704c83a85  -s ours

Change-Id: I68072d1b21ed307e335950c7200c29868748d33e
2017-12-19 18:29:06 +00:00
Bill Yi
5855abd505 Import translations. DO NOT MERGE am: 596de5e45c -s ours
am: 1f229d3710  -s ours

Change-Id: I645bf5d31fcb64d19b2e2b81771d62831e0997e1
2017-12-19 18:26:45 +00:00
Bill Yi
1f229d3710 Import translations. DO NOT MERGE
am: 596de5e45c  -s ours

Change-Id: Id2b718512440b8d3703244fc6825bfad8579e8cc
2017-12-19 18:24:44 +00:00
Bill Yi
d704c83a85 Import translations. DO NOT MERGE
am: 1e9183e0c0  -s ours

Change-Id: If5b2efde1e32b8ea773c29bbd14c65e9cb0f5996
2017-12-19 18:24:12 +00:00
Andrew Scull
da167c3d0f Merge "Check password blacklist when setting credential" 2017-12-19 18:01:55 +00:00
Matthew Fritze
13c43f1900 Index Data to build Slices in Settings
The indexing is done by taking the indexable fragments from
search, grabbing their XML via SearchIndexableResources, and
then looking for controllers defined in preferences.

For each controller found, we take the combination of the
fragment providing the XML and the Preference info to create
an indexable row.

Buiding a Slice will be handled in a subsquent CL, but a
prototype can be found here: ag/3324435

Test: robotests
Bug: 67996923
Change-Id: I48668618079bcc3da55ab77b7323ee8e467073af
2017-12-19 09:47:07 -08:00
android-build-team Robot
088e23aaed Snap for 4509671 from 1b279f97e9 to pi-release
Change-Id: Ia4f313e6c2d29eabc4b7d0ad61a6e7ef83286b15
2017-12-19 08:21:05 +00:00
TreeHugger Robot
92a1a0f22f Merge "Revert "Moving settings tests into the settings package"" 2017-12-19 07:50:03 +00:00
Ashita Sriraman
76e569d3a6 Revert "Moving settings tests into the settings package"
This reverts commit 54fa3c5e41.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id90d8718b4b0db3f3831fb2dc82cae6aea6c9170
2017-12-19 06:25:54 +00:00
Bill Yi
596de5e45c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie62b3a6c465b7d0f011cfdc5e51fb3f195ed4306
2017-12-18 20:43:20 -08:00
Bill Yi
1e9183e0c0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib8ace3f2052b60e0623095c5647b9c9c3b2c199c
2017-12-18 20:37:58 -08:00
TreeHugger Robot
1b279f97e9 Merge "Update dialog styles to material 2" 2017-12-19 02:01:38 +00:00
Ashita Sriraman
66d9ee93de Merge "Moving settings tests into the settings package Test: Built successfully Change-Id: I53d8a5cdd4bce6049707c09a284ebc145efeddc1" 2017-12-19 00:42:35 +00:00
rongrong.x.gao
92a08de636 Merge "Launch new Home app when selecting Home app in Settings" am: f05fc290b7 am: b0ab6da4e3
am: fbc9e954d7

Change-Id: Ifffdd0e1d6f3df829d9e4cc9710876d415a33420
2017-12-18 22:27:30 +00:00
rongrong.x.gao
fbc9e954d7 Merge "Launch new Home app when selecting Home app in Settings" am: f05fc290b7
am: b0ab6da4e3

Change-Id: I741b464e9903c13d68a3025d6cfbb057159ee950
2017-12-18 22:19:28 +00:00
rongrong.x.gao
b0ab6da4e3 Merge "Launch new Home app when selecting Home app in Settings"
am: f05fc290b7

Change-Id: I5b9e419fb420351dba76c5dfe1f238f5e4a7e562
2017-12-18 22:16:32 +00:00
Treehugger Robot
f05fc290b7 Merge "Launch new Home app when selecting Home app in Settings" 2017-12-18 22:09:25 +00:00
TreeHugger Robot
86097b0e19 Merge "Rename setDataEnabled to setUserDataEnabled." 2017-12-18 22:08:37 +00:00
TreeHugger Robot
b7d6f6fc35 Merge "Revamp the network detail page" 2017-12-18 20:47:31 +00:00
TreeHugger Robot
7393cd1cf1 Merge "Introduce config_show_wallpaper_attribution." 2017-12-18 20:46:59 +00:00
TreeHugger Robot
6d8b89a739 Merge "Add preference controller for app header view." 2017-12-18 20:46:53 +00:00
Ashita Sriraman
54fa3c5e41 Moving settings tests into the settings package
Test: Built successfully
Change-Id: I53d8a5cdd4bce6049707c09a284ebc145efeddc1
2017-12-18 11:59:43 -08:00
Tony Mantler
35d37784d0 Merge "Move PowerWhitelistBackend to SettingsLib" 2017-12-18 19:45:53 +00:00
jackqdyulei
0a40de6938 Revamp the network detail page
1. Update the title to be wifi name
2. Add "Advanced" category

Bug: 68029969
Test: Screenshot
Change-Id: Ie0502b22336de7af2c2b1b706b51f340685b2413
2017-12-18 11:12:29 -08:00
Alexandru-Andrei Rotaru
aeb3e4473b Check password blacklist when setting credential
If the password is valid by all other checks, see if it is present on
the blacklist and disallow it if it is.

Test: set a password blacklist, try and set a blacklisted password and
see an explanation, set a non-blacklisted password successfully.
Test: make ROBOTEST_FILTER=ChooseLockPasswordTest RunSettingsRoboTests

Bug: 63578054
Fix: 65659151
Change-Id: Id155b824ad4b5839c23b6f5fd3fdfdcfc78c3df1
2017-12-18 13:34:21 +00:00
android-build-team Robot
4bba5aa53c Snap for 4507345 from 3a2573b812 to pi-release
Change-Id: I4c0fe2b7972aaddfebde3f1e5c4de6a018c56e9d
2017-12-17 08:27:44 +00:00
rongrong.x.gao
b573e23b48 Launch new Home app when selecting Home app in Settings
Launches the newly selected Home app when it has been selected in
Default Home app settings. This CL makes the change take effect
immediately, instead of when the Home button is pressed.

Bug: 70697830
Test: make RunSettingsRoboTests
Test: Manual - Change default home app in Settings
Change-Id: If7e2956bc6f8ddba0a7e8da48a0d38e3936c57e9
2017-12-16 12:44:01 +09:00
TreeHugger Robot
3a2573b812 Merge "Add setting to disable animations" 2017-12-16 02:21:20 +00:00