Commit Graph

42276 Commits

Author SHA1 Message Date
TreeHugger Robot
de70dcf282 Merge "Managed profile lock timeout" 2017-12-21 13:37:36 +00:00
Maggie Wang
330551779d Merge "Set initialExpandedChildrenCount dynamically in location settings" 2017-12-21 04:51:04 +00:00
Sudheer Shanka
1e36bde72d Merge "Update FakeUid to match BatteryStats.Uid." 2017-12-21 03:51:40 +00:00
Maggie
3220c46bcc Set initialExpandedChildrenCount dynamically in location settings
In location settings, we want "Advanced" button show up right after "App
level permissions". But with different numbers of "recent location requests" apps,
the Preferences hidden under Advanced could change.

To fix this issue, we fetch the list of apps with "recent location
requests" in LocationSettings.onCreate(), and set
initialExpandedChildrenCount for location PreferenceScreen to the apps
count.

Bug: 70350519
Test: Manual
Change-Id: I4c4b6bdfa916213494a29e8ae8b5f33476411c88
2017-12-20 19:13:52 -08:00
TreeHugger Robot
7138a5dd67 Merge "Catch NullPointerException in PreIndexDataCollector." 2017-12-21 02:35:48 +00:00
TreeHugger Robot
d763a84015 Merge "Settings: Add LOCAL_MAC_ADDRESS permission" 2017-12-21 01:48:30 +00:00
TreeHugger Robot
7c67b4ec0b Merge "Update the usage of quiet mode @hide API" 2017-12-21 01:20:28 +00:00
Doris Ling
559ac8a72a 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
2017-12-20 16:38:45 -08:00
TreeHugger Robot
79f4be2e5a Merge "Add toggle for enable/disable auto hotspot off" 2017-12-20 23:57:28 +00:00
Maggie Wang
8a05bef170 Merge "Display "Recent Location Requests" in order" 2017-12-20 22:31:43 +00:00
Maggie
3e9ab54f76 Display "Recent Location Requests" in order
A list of apps with recent location requests is displayed under Settings -> Security & Location -> Location. The apps were sorted in alphabetical order. This CL changes the behavior and displays the apps in original order from RecentLocationApps.getAppList().

Bug: 70350519
Test: Robolectric
Test: manual
Change-Id: I0fc1ce307b9519f3f324db220b6e2b32ed71cc2f
2017-12-20 14:21:22 -08:00
jackqdyulei
c1cc490f74 Add toggle for enable/disable auto hotspot off
Bug: 69323125
Test: RunSettingsRoboTests
Change-Id: I18896401240f75bdf2bdf187c2c7a7b623b20c43
2017-12-20 14:09:16 -08:00
Lei Yu
fe5c286cea Merge "Extract method getBatteryInfo() from loader" 2017-12-20 21:14:41 +00:00
Mady Mellor
ee5eed13b9 Merge "Update settings slice provider to use new API" 2017-12-20 21:14:15 +00:00
Jeff Sharkey
ade52ca806 Shift storage wizards over to Glif theme.
This matches new UX best-practices, and allows us to remove some
special one-off hacks.

Test: visual
Bug: 70894690
Change-Id: I2705c731277cae7f19bce78a0a2a023ad0777b83
2017-12-20 13:29:54 -07:00
Sudheer Shanka
c8b61e6612 Update FakeUid to match BatteryStats.Uid.
Bug: 66953194
Test: N/A
Change-Id: Ibb4c6be68d1ea2c64f7da7bc0b39d7142ac8ce9a
2017-12-20 12:23:32 -08:00
TreeHugger Robot
04eb5a802d Merge "Log search latency in event log" 2017-12-20 19:44:40 +00:00
TreeHugger Robot
769e393709 Merge "Add rounded corners to wifi connection dialog" 2017-12-20 19:05:29 +00:00
Fan Zhang
aaced043ae Log search latency in event log
The latency number (10) is fake and doesn't matter, because the page
is going away soon.

Bug: 68017528
Test: rerun robotest
Change-Id: I0a9aba1f0a101bcd7aa4134c7b72aee6708663a4
2017-12-20 09:53:04 -08:00
Lei Yu
f1da75797e Merge "Remove wifi calling from Wifi settings" 2017-12-20 17:49:47 +00:00
Pavel Grafov
8e02f0e7e7 Managed profile lock timeout
Test: make ROBOTEST_FILTER=TimeoutPreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=LockAfterTimeoutPreferenceControllerTest RunSettingsRoboTests
Bug: 63908311
Change-Id: I7236ec4ca37353703145c3e75d508101ecc6ca80
2017-12-20 17:34:28 +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
jackqdyulei
5f0b09648b Add BatteryTipDetector and LowBatteryTip stuffs.
This cl adds the infra of BatteryTipDetector and use LowBatteryTip
as an example(tip model + detector).

Also add SummaryTipDetector and related tests

Bug: 70570352
Test: RunSettingsRoboTests

Change-Id: Icf1349b6ede9eb7ee5ed69b39ee3a2661ac660fa
2017-12-19 16:49:08 -08:00
jackqdyulei
03a5612355 Add BatteryTipPolicy
BatteryTipPolicy contains all experimental values we could tune for
battery tip.

Bug: 70570352
Test: RunSettingsRoboTests

Change-Id: I26a3c2260dc6ff5cb10e3a4c1d55a715cc5c9a9d
2017-12-19 16:48:12 -08: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
jackqdyulei
0c6d7e744a Extract method getBatteryInfo() from loader
In battery tips, we need synchronized method to get batteryInfo.
This cl move the logic to BatteryUtils, then in battery tips we
could use this method directly.

Bug: 70570352
Test: robotest still pass
Change-Id: Id69349a25395ae472a9b3152c6f04127ee32c4e1
2017-12-19 16:30:56 -08: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
Ajay Nadathur
a248b34ce3 Add rounded corners to wifi connection dialog
bug: 69930374
Test: Manually tested and verified
Change-Id: I458c12d3642f9866a00eb1b0f9a5b8a323465892
2017-12-19 14:47:08 -08:00
TreeHugger Robot
4d577ee113 Merge "Unit test for screen timeout policy handling in Settings" 2017-12-19 22:43:41 +00:00
jackqdyulei
15765a97fe Fix bug in SummaryLoader
It should use msg.obj to detect whether to start listening, not
msg.arg1.

Bug: 70607303
Test: Build
Change-Id: I55c4d988f0ebb35f4be9039055eba7803c0b082f
2017-12-19 14:09:29 -08:00
Jeff Sharkey
219ec91e1a Unlock all users before moving or migrating.
When moving apps or shared storage between storage media on FBE
devices, we need all users to be unlocked to successfully move
the data.  This change asks the user to enter the credentials for
any locked users as part of the moving/migration wizard flows.

To do this we relax Utils.enforceSameOwner() to let us prompt for the
credentials of unrelated users, but we carefully only extend this
capability to callers interacting with the "internal" activities,
which require the MANAGE_USERS permission.

Test: builds, boots, users are unlocked before moving
Bug: 29923055, 25861755
Change-Id: Ifaeb2557c4f8c4354e1d380eaa0e413768ee239f
2017-12-19 15:07:05 -07: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
jackqdyulei
4cd0b14e02 Remove wifi calling from Wifi settings
Also remove the preference controller since it is only used in
ConfigureWifiSettings. The mobile network page lives in
com.android.phone and it has its own way to handle the wifi calling.

Bug: 70798448
Test: RunSettingsRoboTests
Change-Id: I0ea923c0a1ba2b89fcf8939d70128e3f54c75558
2017-12-19 10:17:45 -08:00