Commit Graph

36767 Commits

Author SHA1 Message Date
Doris Ling
3f5a1d15b4 Update intent priority for AdvancedAppsActivity.
On Apps & notifications screen, Default apps and Apps permissions
have the same prefence order, and hence they are displayed by the
ordering of the preference title. Explicitly move Default app below
App permissions.

Change-Id: Ia3515f65bcb6ac1704dc15127adc3296e50369ef
Fix: 37975409
Test: manual
2017-05-23 11:26:59 -07:00
TreeHugger Robot
ef949e39dc Merge "Hook up the anomaly policy to wakelockanomaly" 2017-05-23 18:12:20 +00:00
TreeHugger Robot
4d815d93ad Merge "Add wakeup alarm anomaly detector" 2017-05-23 18:08:10 +00:00
Daniel Nishi
ec5e28ae9b Merge "Fix storage summary background colors." into oc-dev am: 8b8f27cd06
am: 4525f9387a

Change-Id: I8a30afbf999318fd7dabaf7d15ce38f99168353b
2017-05-23 17:51:17 +00:00
Matthew Fritze
3a50f5c290 Remove duplicates in Security Settings
Duplicates:
- Location
- Scanning
- Encryption and Credentials
- Screen Pinning
- Device Admin Apps

Bug: 33701673
Test: make RunSettingsRoboTests
Change-Id: Id06b6d9e82769abfa31a0c3e9900bcebdbd0c13c
Merged-In: I91566b8fb7fdb3b39c8833a6fa8e52bbbf6507b6
2017-05-23 17:44:35 +00:00
Matthew Fritze
2e34a64a55 Remove duplicates in Security Settings
Duplicates:
- Location
- Scanning
- Encryption and Credentials
- Screen Pinning
- Device Admin Apps

Merge for ag/2247508

Bug: 33701673
Test: make RunSettingsRoboTests
Change-Id: I91566b8fb7fdb3b39c8833a6fa8e52bbbf6507b6
2017-05-23 10:43:14 -07:00
Daniel Nishi
4525f9387a Merge "Fix storage summary background colors." into oc-dev
am: 8b8f27cd06

Change-Id: I821d4a44c69bae33e3ae9854f23ed87e51139951
2017-05-23 17:41:21 +00:00
Daniel Nishi
8b8f27cd06 Merge "Fix storage summary background colors." into oc-dev 2017-05-23 17:35:19 +00:00
Philip Quinn
6416ad2b40 Add metrics category for the assist gesture settings.
Bug: 38508651
Test: make RunSettingsRoboTests
Change-Id: Ic334f7608546651381cfb7c94ae1f6d77f4939b6
2017-05-23 10:33:09 -07:00
Doris Ling
929bc614de Add summary text to Apps & notifications -> Notifications
Share the summary provider for Apps & notifications -> Notifications ->
Notifications with Apps & notifications -> Notifications so that the
upper level also shows the corresponding notification summary.

Change-Id: Id6879d9a6b00237781320c18591703b3031c9627
Fix: 36376411
Test: make RunSettingsRoboTests
2017-05-23 10:15:26 -07:00
Charles He
641c9fc23a Make failed ConfirmCredential attempts count towards wipe
Previously, failed ConfirmDeviceCredential attempts only counted towards the
wipe limit if it is used as a separate work challenge.

In this CL, we additionally make these failed attempts count towards the total
failures in the following scenarios:
  1) when unified work challenge is enabled
  2) for the primary user (e.g. when a wipe limit is set by a DO)
  3) for secondary users

Bug: 27238008
Test: manual, by entering wrong credentials multiple times
Test: make SettingsRoboTests
Change-Id: Ie5a099bb3fd46245c13ccf4c8f91c4d935412a4e
2017-05-23 18:04:52 +01:00
jackqdyulei
495de548bd Add wakeup alarm anomaly detector
Wakeup alarm count frequent is calculated by a / b, where
1. a: the total wakeup alarm count since the last full charge
2. b: total time running since last full charge
(include sleeping time)

This cl also has the following changes:
1. Move bunch of methods to BatteryUtils
2. Create type WAKEUP_ALARM
3. Add and update tests

Upcoming cl will make sure we get the threshold from
AnomalyDetectionPolicy

Bug: 36921529
Test: RunSettingsRoboTests
Change-Id: I4f7b85606df68b6057f6c7d3f3be7f9a9a747f1d
2017-05-23 09:49:14 -07:00
jackqdyulei
f6dca8a68d Hook up the anomaly policy to wakelockanomaly
Bug: 38233034
Test: RunSettingsRoboTests
Change-Id: Id8c13480e08f609a1ba9927ba35558f82664904c
2017-05-23 09:43:01 -07:00
Felipe Leme
e78e851fff Refactored ConfirmationDialogFragment to use default construcutor.
Test: manual verification
Test: make RunSettingsRoboTests -j90

Fixes: 38397850

Change-Id: Ie724e7e92a6a34d4db16e4406bf821f00d98d180
2017-05-23 09:36:34 -07:00
Geoffrey Pitsch
4ea6258200 Merge "Developer setting to enable notification channel warnings" into oc-dev am: 77bb0aaf96
am: 984dad4ac6

Change-Id: Ica82b112388bd3f3f0a1e2e0281b8c1036d64934
2017-05-23 15:26:39 +00:00
Geoffrey Pitsch
984dad4ac6 Merge "Developer setting to enable notification channel warnings" into oc-dev
am: 77bb0aaf96

Change-Id: I571de55e0b3d090ec2442e2019b2a460b0185283
2017-05-23 15:24:09 +00:00
TreeHugger Robot
77bb0aaf96 Merge "Developer setting to enable notification channel warnings" into oc-dev 2017-05-23 15:18:13 +00:00
Tony Mak
764e52c8cf Show app battery usage in correct user
Test: m -j RunSettingsRoboTests

Change-Id: I6c0f74b79468ee670f642edb0a50400c030d1925

Merged-In: I6c0f74b79468ee670f642edb0a50400c030d1925

Fix: 38447829
2017-05-23 12:24:04 +00:00
Tony Mak
5ab93ad700 Show app battery usage in correct user
Test: m -j RunSettingsRoboTests

Fix: 38447829

Change-Id: I6c0f74b79468ee670f642edb0a50400c030d1925
2017-05-23 10:37:38 +01:00
Lei Yu
6784e41977 Merge "Use BatteryStatsLoader in InstalledAppDetails" into oc-dev am: 37f6b7f751
am: 996adfeb29

Change-Id: I11d0c39a68428637ce12aaffaa2a4f1e49bb716e
2017-05-23 06:23:31 +00:00
Lei Yu
996adfeb29 Merge "Use BatteryStatsLoader in InstalledAppDetails" into oc-dev
am: 37f6b7f751

Change-Id: I5b5edc8b88a16c83a77ca584d21279892ebb08bf
2017-05-23 06:21:32 +00:00
Lei Yu
37f6b7f751 Merge "Use BatteryStatsLoader in InstalledAppDetails" into oc-dev 2017-05-23 06:16:44 +00:00
Salvador Martinez
6976ccecee Merge "Use enhanced estimate battery info when available" 2017-05-23 03:28:32 +00:00
TreeHugger Robot
2f98a110d5 Merge "Log different type of values into different constants" 2017-05-23 03:01:32 +00:00
Lei Yu
60b1d68b16 Merge "Revert "Add animation for battery asyncLoader."" into oc-dev am: 161571617b
am: 603fba8afe  -s ours

Change-Id: I371a760fe5e801bdbbc6c658c8611d922f41b32a
2017-05-23 02:07:17 +00:00
TreeHugger Robot
ff9d0f2028 Merge "Show shadow when entity header starts scrolling." 2017-05-23 02:01:44 +00:00
Lei Yu
603fba8afe Merge "Revert "Add animation for battery asyncLoader."" into oc-dev
am: 161571617b

Change-Id: I7022cedf1252c5b8b02c6336611c9158ed98dc6c
2017-05-23 01:56:48 +00:00
TreeHugger Robot
161571617b Merge "Revert "Add animation for battery asyncLoader."" into oc-dev 2017-05-23 01:49:23 +00:00
TreeHugger Robot
602a714502 Merge changes Ief9e9690,I1cc1bc2d
* changes:
  Split BluetoothSettings into two pages
  Dupe BluetoothSettings and DeviceListPreferenceFragment
2017-05-23 01:36:22 +00:00
Salvador Martinez
be6f07045a Use enhanced estimate battery info when available
This CL updates the battery page to get the updated strings and
other relevant battery info from directly from SettingsLib by
providing it an overrided drain time instead of manually changing
the value in the returned info. This will provide the added benefit
of using the new strings when appropriate that tell the user that
the estimate provided is based on their usage.

Test: robotests
Bug: 38399659
Change-Id: I0db572c2ea78910756314b6bf066d37e9f90a15c
2017-05-22 18:06:29 -07:00
Fan Zhang
aab631fed3 Log different type of values into different constants
Bug: 38258793
Test: make RunSettingsRoboTests
Change-Id: I3ed170613709be04ffb2c561e132094d64619dd4
2017-05-22 18:00:09 -07:00
jackqdyulei
013d3f6342 Use BatteryStatsLoader in InstalledAppDetails
InstalledAppDetails uses AsyncTask to update foreground mBatteryStatsHelper
in background thread, which is dangerous. This cl make
InstalledAppDetails use BatteryStatsLoader to update batteryStatsHelper
and only assign it once in UI thread.

Bug: 38497555
Test: RunSettingsRoboTests
Change-Id: I3078b60a2dae36995ae5f925b4d49e36e79bddfd
2017-05-22 17:39:19 -07:00
Fan Zhang
841d1d5aab Show shadow when entity header starts scrolling.
- Add a controller to manage add/remove onScrollChangedListener to
  recyclerviews.
- When recyclerview on each screen is scrolled to top, set actionbar
  elevation to 0, otherwise set it to non-zero.
- When screen is moved to background, detach the listener.
- Use the controller in entity header.

Change-Id: Iecf194d885098c98c392810f62893ae9189f3936
Fix: 37670670
Test: make RunSettingsRoboTests
2017-05-22 17:16:24 -07:00
jackqdyulei
52ccb49fbe Split BluetoothSettings into two pages
This cl splits the BluetoothSettings into paired device page and
pairing page, including small changes about:
1. Refactor the pages so they could get as much as static preference
from xml file rather than dynamically add/remove them everytime.
2. Remove creating method in BluetoothDeviceNamePreferenceController
and add it in xml file
3. Create BluetoothPairingDetail page, basically move the logic from
BluetoothSettings.
4. Make pairing preference clickable and jump to BluetoothPairingDetail
5. Add and update bunch of tests

Bug: 35877041
Test: RunSettingsRoboTests
Change-Id: Ief9e9690c612f7b46c58e866e5cecc511af642c8
2017-05-22 16:57:37 -07:00
Lei Yu
78684dc049 Revert "Add animation for battery asyncLoader."
This reverts commit a3c528f64d.

Test: Build
Change-Id: Ib50221873e39dee40c5cf8e4b41dcf7aa13f6134
Merged-In: Ib50221873e39dee40c5cf8e4b41dcf7aa13f6134
2017-05-22 16:49:55 -07:00
Lei Yu
210bf83cea Merge "Revert "Add animation for battery asyncLoader."" 2017-05-22 23:30:04 +00:00
TreeHugger Robot
a89b14e806 Merge "Remove lifecycle interfaces from settings." 2017-05-22 23:13:16 +00:00
Kevin Chyn
1c38d4bbe7 Merge "Queue events if enrollment sidecar listener is null" into oc-dev am: 32ad1c0db4
am: 35fb3302d7

Change-Id: I94cfe913b3e66ce27a0ee7ea439d3ed6a77942f3
2017-05-22 23:09:35 +00:00
Amit Mahajan
1eee1f8bbc Disallow adding/editing dun APNs unless allowed by carrier.
Test: WIP
Bug: 38186417
Change-Id: If1cc34ad979659a56a3886da2a02fdbf642739ac
2017-05-22 16:01:46 -07:00
Kevin Chyn
35fb3302d7 Merge "Queue events if enrollment sidecar listener is null" into oc-dev
am: 32ad1c0db4

Change-Id: I3fecd41dac6e4fb3b576a18bf46f1d9a25c1b9ca
2017-05-22 22:52:33 +00:00
TreeHugger Robot
32ad1c0db4 Merge "Queue events if enrollment sidecar listener is null" into oc-dev 2017-05-22 22:40:42 +00:00
TreeHugger Robot
e2878ff155 Merge "Use label instead of raw value for theme preference summary" 2017-05-22 22:37:42 +00:00
Fan Zhang
715d25f727 Remove lifecycle interfaces from settings.
They are already moved to settingslib.

Test: builds

Change-Id: I581bdaff492bdb1e75c66fb69c803eb222f68b8b
2017-05-22 14:48:06 -07:00
Lei Yu
e1441c63ee Revert "Add animation for battery asyncLoader."
This reverts commit a3c528f64d.

Test: Build
Change-Id: Ib50221873e39dee40c5cf8e4b41dcf7aa13f6134
2017-05-22 14:33:24 -07:00
Fan Zhang
c7d632d313 Use label instead of raw value for theme preference summary
Change-Id: I4dd1c156c8e68dd5567093c56d5e6846357fc2d6
Fix: 38470685
Test: make RunSettingsRoboTests
2017-05-22 13:52:32 -07:00
Kevin Chyn
a1b3ec5963 Queue events if enrollment sidecar listener is null
Fixes: 38102355

Test: manual
Change-Id: I98bd347ee98117f7489376abd94d276d20e7b762
2017-05-22 12:10:03 -07:00
TreeHugger Robot
78c89c4d50 Merge "Import translations. DO NOT MERGE" 2017-05-22 18:57:12 +00:00
TreeHugger Robot
7983dba5f6 Merge "Show aditional WiFi calling message." 2017-05-22 16:11:13 +00:00
Meng Wang
7cecf2d3ba Show aditional WiFi calling message.
Bug: 37624313
Test: manual - locally apply this setting and verify that the
               additional text is shown.
Change-Id: I8a15a9aeb71a0daab1ae4533f2c3b7d05c57bc5f
2017-05-22 15:46:31 +00:00
Geoffrey Pitsch
e18fd90524 Developer setting to enable notification channel warnings
Defaults to enabled for debuggable builds

Fixes: 37945054
Fixes: 38380608
Test: manual
Change-Id: I5d2101feffa7cf4433264eefc82b1b80f294d9f0
2017-05-22 11:29:18 -04:00