OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoLoad regulatory info from /data/misc
Fan Zhang [Tue, 20 Jun 2017 21:53:49 +0000 (14:53 -0700)]
Load regulatory info from /data/misc

Bug: 62837579
Test: settings test
Change-Id: I84ef037174a1839993d02e8cd46d159398be1ddc

7 years agoMerge "Create add more fingerprint suggestion for setup" into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 19:58:49 +0000 (19:58 +0000)]
Merge "Create add more fingerprint suggestion for setup" into oc-dr1-dev

7 years agoMerge "Update CHAR LIMIT for fingerprint dialog" into oc-dr1-dev
Maurice Lam [Thu, 22 Jun 2017 19:48:10 +0000 (19:48 +0000)]
Merge "Update CHAR LIMIT for fingerprint dialog" into oc-dr1-dev

7 years agoMerge "Update summary for Recent Apps." into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 19:39:08 +0000 (19:39 +0000)]
Merge "Update summary for Recent Apps." into oc-dr1-dev

7 years agoMerge "Fix BatteryInfo using enhanced estimate for charge time" into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 18:42:14 +0000 (18:42 +0000)]
Merge "Fix BatteryInfo using enhanced estimate for charge time" into oc-dr1-dev

7 years agoFix BatteryInfo using enhanced estimate for charge time
Salvador Martinez [Mon, 19 Jun 2017 23:04:17 +0000 (16:04 -0700)]
Fix BatteryInfo using enhanced estimate for charge time

Due to a typo in BatteryEstimates the enhanced estimate we use
for discharging would also be used for charging. This CL corrects
the typo and adds a simple test to catch a similar mistake in the
future. We were also always loading the enhanced estimate even when
we were not using it. As a ~*bonus*~ it should also help improve
the speed of the charging use case for this screen and fixes an
issue with the battery not switching to the charging icon in the
main battery page.

Test: robotest
Bug: 62738028
Bug: 62873396
Bug: 62784575
Bug: 62736144
Change-Id: Ib2cbdeea22afb7da590b701b84f526bdac243410

7 years agoMerge "Use SettingsLib's versions of Custom* classes." into oc-dr1-dev
Juan Lang [Thu, 22 Jun 2017 14:05:53 +0000 (14:05 +0000)]
Merge "Use SettingsLib's versions of Custom* classes." into oc-dr1-dev

7 years agoUpdate CHAR LIMIT for fingerprint dialog
Maurice Lam [Thu, 22 Jun 2017 03:17:41 +0000 (20:17 -0700)]
Update CHAR LIMIT for fingerprint dialog

Test: Existing tests pass
Bug: 62401478
Change-Id: I6baf88007c3f61b88603f4d5c1ee52e66e9d54dc

7 years agoMerge "Refresh the dashboard UI when swiping away the only suggestion." into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 01:33:22 +0000 (01:33 +0000)]
Merge "Refresh the dashboard UI when swiping away the only suggestion." into oc-dr1-dev

7 years agoCreate add more fingerprint suggestion for setup
Maurice Lam [Wed, 21 Jun 2017 03:00:54 +0000 (20:00 -0700)]
Create add more fingerprint suggestion for setup

Create FingerprintSuggestionActivity which is a suggestion shown in
setup to allow the user to add more fingerprints for unlocking the
device.

Test: cd tests/robotests && mma
Bug: 62638180
Change-Id: Icfab9bd2523fdeadc4cc6f0ad4f45606260c4755

7 years agoMerge "Add summary text for account sync." into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 23:59:38 +0000 (23:59 +0000)]
Merge "Add summary text for account sync." into oc-dr1-dev

7 years agoRefresh the dashboard UI when swiping away the only suggestion.
Doris Ling [Wed, 21 Jun 2017 18:40:37 +0000 (11:40 -0700)]
Refresh the dashboard UI when swiping away the only suggestion.

In the new suggestion UI, the suggestions are listed inside the
suggestion container instead of individual dashboard items. When there
is only a single suggestion shown, and that is being swiped away, the
actual list for the suggestions will handle the swipe and remove that
list item from the list. However, the top level container will remain
until next time the dashboard list is being refreshed. Explicitly set
the suggestions to null to force refreshing of the dashboard UI.

Change-Id: I37f8c8f5a813a5c56f4f2f46103fdbb66ce97fcd
Fix: 62639824
Test: make RunSettingsRoboTests

7 years agoUse SettingsLib's versions of Custom* classes.
Juan Lang [Thu, 11 May 2017 00:26:02 +0000 (17:26 -0700)]
Use SettingsLib's versions of Custom* classes.

Bug: 30046624
Merged-In: I2584e820b72bb4672c53fd1a9f63c7f1662e0809
Test: make RunSettingsRoboTests
Change-Id: Icd4390c46532bedb3824511867208337c74c00a3

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 21 Jun 2017 20:23:16 +0000 (20:23 +0000)]
Import translations. DO NOT MERGE
am: ae5a31e55c  -s ours

Change-Id: Ibd2297385f91e2bf12e90f4933c785104aa6e153

7 years agoAdd summary text for account sync.
Doris Ling [Wed, 21 Jun 2017 20:12:41 +0000 (13:12 -0700)]
Add summary text for account sync.

Bug: 62862167
Test: builds
Change-Id: I7e3c7e76791d9f79430b2b549d4d89a18a4e2bba

7 years agoMerge "Increase char limit for "Disconnect"" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 19:55:50 +0000 (19:55 +0000)]
Merge "Increase char limit for "Disconnect"" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 19:42:36 +0000 (19:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Don't accordion the progress bar out." into oc-dr1-dev
Daniel Nishi [Wed, 21 Jun 2017 18:21:19 +0000 (18:21 +0000)]
Merge "Don't accordion the progress bar out." into oc-dr1-dev

7 years agoIncrease char limit for "Disconnect"
jackqdyulei [Wed, 21 Jun 2017 17:28:35 +0000 (10:28 -0700)]
Increase char limit for "Disconnect"

Bug: 62374362
Test: Build
Change-Id: I3cd8c2d48c5a686c006ab76686a2f017ac9c0ddf

7 years agoMerge "Make icon in Anomaly detail page have badge." into oc-dr1-dev
Lei Yu [Wed, 21 Jun 2017 17:44:42 +0000 (17:44 +0000)]
Merge "Make icon in Anomaly detail page have badge." into oc-dr1-dev

7 years agoMerge "Block inline-results from Settings search" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 17:26:08 +0000 (17:26 +0000)]
Merge "Block inline-results from Settings search" into oc-dr1-dev

7 years agoMerge "Add info string to advanced battery usage page" into oc-dr1-dev
Salvador Martinez [Wed, 21 Jun 2017 17:02:31 +0000 (17:02 +0000)]
Merge "Add info string to advanced battery usage page" into oc-dr1-dev

7 years agoMerge "Add missing 'pin' screen lock option" into oc-dr1-dev
Ajay Kumar Nadathur Sreenivasan [Wed, 21 Jun 2017 16:39:49 +0000 (16:39 +0000)]
Merge "Add missing 'pin' screen lock option" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 21 Jun 2017 04:36:56 +0000 (21:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: Idfada62fcc0224d6bffd354ab140fd5300a5a8a3
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 21 Jun 2017 04:20:19 +0000 (21:20 -0700)]
Import translations. DO NOT MERGE

Change-Id: I82b2878398a5fffe928a175a72d80a75bfff8f56
Auto-generated-cl: translation import

7 years agoMerge "Use BLUETOOTH_PAIRING metric in pairing page" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 03:16:31 +0000 (03:16 +0000)]
Merge "Use BLUETOOTH_PAIRING metric in pairing page" into oc-dr1-dev

7 years agoMerge "Delay showing the loading progress spinner in Managed App." into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 03:14:27 +0000 (03:14 +0000)]
Merge "Delay showing the loading progress spinner in Managed App." into oc-dr1-dev

7 years agoMerge "Enable Assist Gesture Settings to launch from action intent" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 02:52:00 +0000 (02:52 +0000)]
Merge "Enable Assist Gesture Settings to launch from action intent" into oc-dr1-dev

7 years agoAdd info string to advanced battery usage page
Salvador Martinez [Mon, 19 Jun 2017 17:33:41 +0000 (10:33 -0700)]
Add info string to advanced battery usage page

This CL adds an FYI string under the battery graph to let users
know that their current estimate is coming from the enhanced
estimate provider when it is enabled.

Test: Robotests
Bug: 38399654
Change-Id: If5cd622ef0251a5a483cef870fc2261369e14845

7 years agoMerge "Update anomaly High usage" into oc-dr1-dev
Lei Yu [Wed, 21 Jun 2017 01:03:41 +0000 (01:03 +0000)]
Merge "Update anomaly High usage" into oc-dr1-dev

7 years agoMerge "Update footer string in battery settings" into oc-dr1-dev
Lei Yu [Wed, 21 Jun 2017 00:52:06 +0000 (00:52 +0000)]
Merge "Update footer string in battery settings" into oc-dr1-dev

7 years agoMerge "Only update anomaly icon in AnomalyLoader" into oc-dr1-dev
Lei Yu [Wed, 21 Jun 2017 00:51:30 +0000 (00:51 +0000)]
Merge "Only update anomaly icon in AnomalyLoader" into oc-dr1-dev

7 years agoMerge "FingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT" into...
TreeHugger Robot [Tue, 20 Jun 2017 23:36:25 +0000 (23:36 +0000)]
Merge "FingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT" into oc-dr1-dev

7 years agoMerge "Add logging when entity header buttons are clicked" into oc-dr1-dev
TreeHugger Robot [Tue, 20 Jun 2017 23:23:38 +0000 (23:23 +0000)]
Merge "Add logging when entity header buttons are clicked" into oc-dr1-dev

7 years agoMake icon in Anomaly detail page have badge.
jackqdyulei [Tue, 20 Jun 2017 20:17:05 +0000 (13:17 -0700)]
Make icon in Anomaly detail page have badge.

Anomaly detail page is using the correct API but wrong parameters.
This cl fix it by specifying the correct userId.

Bug: 38306392
Test: RunSettingsRoboTests

Change-Id: If593bf8a7881a9eecbaa62858492878235d88397

7 years agoMerge "Hide wifi and bt in battery settings" into oc-dev
jackqdyulei [Tue, 20 Jun 2017 22:55:47 +0000 (22:55 +0000)]
Merge "Hide wifi and bt in battery settings" into oc-dev
am: 05777a7918

Change-Id: If676ec0119bebed800727f618225fd355e9da74f

7 years agoMerge "Hide wifi and bt in battery settings" into oc-dev
TreeHugger Robot [Tue, 20 Jun 2017 22:35:57 +0000 (22:35 +0000)]
Merge "Hide wifi and bt in battery settings" into oc-dev

7 years agoMerge "Refine Anomaly detail page" into oc-dr1-dev
TreeHugger Robot [Tue, 20 Jun 2017 22:14:53 +0000 (22:14 +0000)]
Merge "Refine Anomaly detail page" into oc-dr1-dev

7 years agoFingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT
Kevin Chyn [Tue, 20 Jun 2017 21:24:43 +0000 (14:24 -0700)]
FingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT

Fixes: 62681560

Test: open fingerprint settings, use an unenrolled fingerprint to
authenticate 20 times in a row. Look at logs and it shouldn't be flooded
with fingerprint logs

Change-Id: I59051e8d3a9e040bcd894e956abcbf0497838988

7 years agoUpdate footer string in battery settings
jackqdyulei [Tue, 20 Jun 2017 21:08:29 +0000 (14:08 -0700)]
Update footer string in battery settings

Bug: 62422269
Test: Screenshot
Change-Id: I4b2e7c40c09878562c4fe2e8a3e8117be7ffc6fd

7 years agoMerge "Update battery footer text" into oc-dr1-dev
Lei Yu [Tue, 20 Jun 2017 20:58:29 +0000 (20:58 +0000)]
Merge "Update battery footer text" into oc-dr1-dev

7 years agoDon't accordion the progress bar out.
Daniel Nishi [Tue, 20 Jun 2017 20:56:04 +0000 (13:56 -0700)]
Don't accordion the progress bar out.

This stops an animation from triggering on the storage settings screen
when entering it. Because we don't load the screen until data has
loaded, we run no risk of showing an uninitialized progress bar. Thus,
we can just always show the progress bar.

Change-Id: I31814a12b9c39a33fa0fbbc4826eb4138cf09a74
Fixes: 62549522
Test: Manual

7 years agoOnly update anomaly icon in AnomalyLoader
jackqdyulei [Tue, 20 Jun 2017 00:01:47 +0000 (17:01 -0700)]
Only update anomaly icon in AnomalyLoader

Before this cl, it will re-calculate battery percentage once we get
anomaly data, which will add screen usage data twice. This cl make it
only update anomaly icon after the anomaly detection is done.

Bug: 62803379
Test: RunSettingsRoboTests
Change-Id: I2089646679e299fa948b1f3ed21f4a13a1317aa3

7 years agoHide wifi and bt in battery settings
jackqdyulei [Tue, 20 Jun 2017 20:34:51 +0000 (13:34 -0700)]
Hide wifi and bt in battery settings

Hide them in app usage list but don't smear them

Bug: 62787787
Test: RunSettingsRoboTests
Change-Id: I43c15ea8a2b32f293eb859f3fead8666e45674ef

7 years agoMerge "Read setup wizard theme from system properties" into oc-dr1-dev
Maurice Lam [Tue, 20 Jun 2017 19:57:16 +0000 (19:57 +0000)]
Merge "Read setup wizard theme from system properties" into oc-dr1-dev

7 years agoMerge "Align fingerprint illustration size" into oc-dr1-dev
Maurice Lam [Tue, 20 Jun 2017 19:56:49 +0000 (19:56 +0000)]
Merge "Align fingerprint illustration size" into oc-dr1-dev

7 years agoUpdate anomaly High usage
jackqdyulei [Mon, 19 Jun 2017 17:55:20 +0000 (10:55 -0700)]
Update anomaly High usage

Update the title and summary for anomaly summary preference.

Bug: 62791930
Test: RunSettingsRoboTests
Change-Id: I30ac554f227904c102d0903505e3a99966f50581

7 years agoRefine Anomaly detail page
jackqdyulei [Fri, 16 Jun 2017 22:03:09 +0000 (15:03 -0700)]
Refine Anomaly detail page

1. Fix the layout issue(title not vertical horizontal)
2. Add subtitle for anomaly

Bug: 36924669
Test: RunSettingsRoboTests
Change-Id: I9b3627f09bbe37b104644d203ff8924f0faaea47

7 years agoEnable Assist Gesture Settings to launch from action intent
Kevin Chyn [Sun, 18 Jun 2017 00:25:21 +0000 (17:25 -0700)]
Enable Assist Gesture Settings to launch from action intent

Bug: 62540322

Test: adb shell am start -a android.settings.ASSIST_GESTURE_SETTINGS

Change-Id: I0aa0cc3ba87412626f6c24639efdd5e622b995e7

7 years agoUpdate battery footer text
jackqdyulei [Tue, 20 Jun 2017 17:11:06 +0000 (10:11 -0700)]
Update battery footer text

Bug: 62422269
Test: Build
Change-Id: I9cb5edbde3c33a29edfbe03706dd2d71be6a2be0

7 years agoAdd logging when entity header buttons are clicked
Fan Zhang [Mon, 19 Jun 2017 19:31:30 +0000 (12:31 -0700)]
Add logging when entity header buttons are clicked

Change-Id: I673e5b4a6c5f8736bbec72e259a82acb3f514828
Fix: 62709062
Test: make RunSettingsRoboTests

7 years agoBlock inline-results from Settings search
Matthew Fritze [Tue, 20 Jun 2017 15:16:24 +0000 (08:16 -0700)]
Block inline-results from Settings search

Change-Id: I51ac1d6510bdbd6818c91836117d9ffb059cf4ab
Fixes: 62806412
Test: make RunSettingsRoboTests

7 years agoRead setup wizard theme from system properties
Maurice Lam [Thu, 25 May 2017 04:14:49 +0000 (21:14 -0700)]
Read setup wizard theme from system properties

Test: cd tests/robotests && mma
Bug: 62060286
Change-Id: I285638736efa63314fa3e055f72ac021bce40bfe

7 years agoAdd missing 'pin' screen lock option
Ajay Nadathur [Mon, 19 Jun 2017 23:13:31 +0000 (16:13 -0700)]
Add missing 'pin' screen lock option

bug: 62206837
Test: Manual verified; Existing tests pass
Change-Id: I65985427cb012668ee23bedaf7253bec7c83fe75

7 years agoMerge "Add help url placeholder for SimLock settings" into oc-dr1-dev
TreeHugger Robot [Mon, 19 Jun 2017 23:21:12 +0000 (23:21 +0000)]
Merge "Add help url placeholder for SimLock settings" into oc-dr1-dev

7 years agoMerge "Update gesture title" into oc-dr1-dev
TreeHugger Robot [Mon, 19 Jun 2017 21:58:58 +0000 (21:58 +0000)]
Merge "Update gesture title" into oc-dr1-dev

7 years agoMerge "Hook up bt related knobs to AnomalyDetectionPolicy" into oc-dr1-dev
Lei Yu [Mon, 19 Jun 2017 21:16:03 +0000 (21:16 +0000)]
Merge "Hook up bt related knobs to AnomalyDetectionPolicy" into oc-dr1-dev

7 years agoMerge "Add anomaly detector for unoptimized bt scanning" into oc-dr1-dev
TreeHugger Robot [Mon, 19 Jun 2017 21:13:04 +0000 (21:13 +0000)]
Merge "Add anomaly detector for unoptimized bt scanning" into oc-dr1-dev

7 years agoAdd help url placeholder for SimLock settings
Fan Zhang [Mon, 19 Jun 2017 21:07:23 +0000 (14:07 -0700)]
Add help url placeholder for SimLock settings

Bug: 38412798
Test: manual
Change-Id: I77a8fa89c2b16da9269b40c5efcb6d0f868d5b76

7 years agoUse BLUETOOTH_PAIRING metric in pairing page
jackqdyulei [Mon, 19 Jun 2017 20:19:23 +0000 (13:19 -0700)]
Use BLUETOOTH_PAIRING metric in pairing page

Bug: 38383542
Test: Build
Change-Id: Ibc8acfa7ad7766b112389509971a36d1a4ce2394

7 years agoUpdate gesture title
Fan Zhang [Mon, 19 Jun 2017 19:45:20 +0000 (12:45 -0700)]
Update gesture title

Change-Id: I95de69c0b7a8c1bda4781c33aaf025b3ec5c275b
Fix: 36685646
Test: visual

7 years agoHook up bt related knobs to AnomalyDetectionPolicy
jackqdyulei [Thu, 15 Jun 2017 22:30:44 +0000 (15:30 -0700)]
Hook up bt related knobs to AnomalyDetectionPolicy

This cl adds the following knobs:
1. bluetoothScanDetectionEnabled: whether to enable this detector
2. bluetoothScanThreshold: threshold about bt unoptimized scanning
time in background

Also add the default values for these knobs, which are:
1. bluetoothScanDetectionEnabled: true
2. bluetoothScanThreshold: 30 minutes

Bug: 36921532
Test: RunSettingsRoboTests
Change-Id: I7619453ebe3cc3f5a13b3bbd4fbf3b65a1f1d45c

7 years agoAdd anomaly detector for unoptimized bt scanning
jackqdyulei [Thu, 15 Jun 2017 20:13:09 +0000 (13:13 -0700)]
Add anomaly detector for unoptimized bt scanning

This cl detects bt anomaly by using
BluetoothUnoptimizedScanBackgroundTimer. It will report anomaly
if total duration is longer than threshold.

Future cl will hook up the threshold to server side.

Bug: 36921532
Test: RunSettingsRoboTests
Change-Id: I5d6a42b2d2c4fec94387ca59ba8e6a2f3346d047

7 years agoDelay showing the loading progress spinner in Managed App.
Doris Ling [Fri, 9 Jun 2017 01:00:08 +0000 (18:00 -0700)]
Delay showing the loading progress spinner in Managed App.

In warm load, the app list is populated much faster, and we should not
show the spinner if we can show the app list immediately.

Adding 100ms delay in showing the loading container. If the app list is
ready, show the list container directly without first showing the
loading container.

Change-Id: I8b3ea88d2382ece9226d5c7734fd1aa406160cf2
Fix: 36375109
Test: make RunSettingsRoboTests

7 years agoMerge "Add more sane multi-profile app attribution." into oc-dev
Daniel Nishi [Mon, 19 Jun 2017 17:55:28 +0000 (17:55 +0000)]
Merge "Add more sane multi-profile app attribution." into oc-dev
am: 4743423a82

Change-Id: I59630cf77da700cd5a159e11ac6f9818f1303199

7 years agoMerge "Notification settings update." into oc-dev
Alison Cichowlas [Mon, 19 Jun 2017 17:49:22 +0000 (17:49 +0000)]
Merge "Notification settings update." into oc-dev
am: e5493808fd  -s ours

Change-Id: I43f0d112d2a5bbd57995e42d50f5877e905dfe20

7 years agoMerge "Add more sane multi-profile app attribution." into oc-dev
Daniel Nishi [Mon, 19 Jun 2017 17:45:30 +0000 (17:45 +0000)]
Merge "Add more sane multi-profile app attribution." into oc-dev

7 years agoMerge "Notification settings update." into oc-dev
TreeHugger Robot [Mon, 19 Jun 2017 17:34:39 +0000 (17:34 +0000)]
Merge "Notification settings update." into oc-dev

7 years agoMerge "Move "Received files" in BluetoothSettings" into oc-dr1-dev
Lei Yu [Mon, 19 Jun 2017 17:03:28 +0000 (17:03 +0000)]
Merge "Move "Received files" in BluetoothSettings" into oc-dr1-dev

7 years agoNotification settings update.
Alison Cichowlas [Fri, 16 Jun 2017 17:56:56 +0000 (13:56 -0400)]
Notification settings update.

- Use "what happens" descriptors instead of priority level names in summary
- Group some settings under Advanced header.

Bug: 62705435
Test: make RunSettingsRoboTests; manual verification
Merged-In: Iac31575d894d7f3532c8e631ee9d77ee21830b29
Change-Id: Iac31575d894d7f3532c8e631ee9d77ee21830b29

7 years agoMerge "Notification settings update." into oc-dr1-dev
Alison Cichowlas [Mon, 19 Jun 2017 15:02:15 +0000 (15:02 +0000)]
Merge "Notification settings update." into oc-dr1-dev

7 years agoMerge "Misc fixes for notification" into oc-dev
Fan Zhang [Mon, 19 Jun 2017 14:47:33 +0000 (14:47 +0000)]
Merge "Misc fixes for notification" into oc-dev
am: e3f322dfc7  -s ours

Change-Id: Ifef5d6fe32b61837fb03285cdc46744954b246ad

7 years agoMerge "Misc fixes for notification" into oc-dev
TreeHugger Robot [Mon, 19 Jun 2017 14:39:18 +0000 (14:39 +0000)]
Merge "Misc fixes for notification" into oc-dev

7 years agoNotification settings update.
Alison Cichowlas [Fri, 16 Jun 2017 17:56:56 +0000 (13:56 -0400)]
Notification settings update.

- Use "what happens" descriptors instead of priority level names in summary
- Group some settings under Advanced header.

Bug: 62705435
Test: make RunSettingsRoboTests; manual verification
Change-Id: Iac31575d894d7f3532c8e631ee9d77ee21830b29

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 17 Jun 2017 06:14:17 +0000 (06:14 +0000)]
Import translations. DO NOT MERGE
am: 251cbcbcc5  -s ours

Change-Id: Iac1be0f9462447d5935664f5f111a2d721237436

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sat, 17 Jun 2017 06:00:19 +0000 (06:00 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoAlign fingerprint illustration size
Maurice Lam [Sat, 17 Jun 2017 04:34:34 +0000 (21:34 -0700)]
Align fingerprint illustration size

Test: Manual
Bug: 62677095
Change-Id: I352bf5e20f4ce254d0777dfd544f4604f5c86dcb

7 years agoMerge "Hide app info button from app notification settings header" into oc-dr1-dev
TreeHugger Robot [Sat, 17 Jun 2017 00:41:22 +0000 (00:41 +0000)]
Merge "Hide app info button from app notification settings header" into oc-dr1-dev

7 years agoMerge "Make Accessibility settings a SUW suggestion" into oc-dr1-dev
TreeHugger Robot [Sat, 17 Jun 2017 00:07:38 +0000 (00:07 +0000)]
Merge "Make Accessibility settings a SUW suggestion" into oc-dr1-dev

7 years agoHide app info button from app notification settings header
Fan Zhang [Fri, 16 Jun 2017 18:57:14 +0000 (11:57 -0700)]
Hide app info button from app notification settings header

Change-Id: I10803e78fe4f30c2d84ec795c343ed660aab7762
Bug: 62708686
Test: visual and runtest --path AppNotificationSettingsTest.java
(cherry picked from commit 5d811c40d3d1cdb5dfa8eada42329f612d8fbff9)

7 years agoMisc fixes for notification
Fan Zhang [Fri, 16 Jun 2017 18:57:14 +0000 (11:57 -0700)]
Misc fixes for notification

- Tweak alignment for footer preference icon and text
- Hide app info button from app notification settings header

Merged-In: I10803e78fe4f30c2d84ec795c343ed660aab7762
Change-Id: Ia95fc30025c042635ad6467c7fde51991b0c47d9
Fix: 62138362
Fix: 62708686
Test: visual and runtest --path AppNotificationSettingsTest.java

7 years agoMerge "Make confirm lock screen use the right theme" into oc-dr1-dev
TreeHugger Robot [Fri, 16 Jun 2017 22:08:04 +0000 (22:08 +0000)]
Merge "Make confirm lock screen use the right theme" into oc-dr1-dev

7 years agoMove "Received files" in BluetoothSettings
jackqdyulei [Fri, 2 Jun 2017 01:11:13 +0000 (18:11 -0700)]
Move "Received files" in BluetoothSettings

Move it from menu to preference

Also clean up the code about menu since there is no menu anymore
in BluetoothSettings

Bug: 35876447
Test: RunSettingsRoboTests
Change-Id: I4a3821595a0cc75382f1cf74bcafb3ecc44cc178

7 years agoMerge "Update wakelock detector" into oc-dr1-dev
Lei Yu [Fri, 16 Jun 2017 20:30:36 +0000 (20:30 +0000)]
Merge "Update wakelock detector" into oc-dr1-dev

7 years agoMake Accessibility settings a SUW suggestion
Maurice Lam [Fri, 9 Jun 2017 03:17:18 +0000 (20:17 -0700)]
Make Accessibility settings a SUW suggestion

Make it a suggestion so that SUW can show it during deferred setup

Test: Manual
Bug: 38506169
Change-Id: I03d5d0d7c2e5168b8d3ccccedce74620675865b8

7 years agoMake confirm lock screen use the right theme
Maurice Lam [Mon, 12 Jun 2017 19:15:40 +0000 (12:15 -0700)]
Make confirm lock screen use the right theme

Test: cd tests/robotests && mma
Bug: 62348472
Change-Id: Ie05c2e6adba8450a1092f0fefcad6b003398de7d

7 years agoMerge "Display anomaly in battery usage page" into oc-dr1-dev
Lei Yu [Fri, 16 Jun 2017 16:55:52 +0000 (16:55 +0000)]
Merge "Display anomaly in battery usage page" into oc-dr1-dev

7 years agoMerge "Update Night display icon in Settings" into oc-dr1-dev
Christine Franks [Fri, 16 Jun 2017 14:36:10 +0000 (14:36 +0000)]
Merge "Update Night display icon in Settings" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Jun 2017 14:12:33 +0000 (07:12 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3f7cec1865c8447d601b0d369de105da3fc7afa1
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Jun 2017 14:00:00 +0000 (07:00 -0700)]
Import translations. DO NOT MERGE

Change-Id: I1c041b74f7d78f0b69a4c8553118ed069393586e
Auto-generated-cl: translation import

7 years agoMerge "Fix searching work app in settings" into oc-dr1-dev
TreeHugger Robot [Fri, 16 Jun 2017 12:55:38 +0000 (12:55 +0000)]
Merge "Fix searching work app in settings" into oc-dr1-dev

7 years agoMerge "Escape apostrophes in ConfirmCredential strings." into oc-dr1-dev
Charles He [Fri, 16 Jun 2017 11:36:05 +0000 (11:36 +0000)]
Merge "Escape apostrophes in ConfirmCredential strings." into oc-dr1-dev

7 years agoFix searching work app in settings
Tony Mak [Mon, 12 Jun 2017 17:02:53 +0000 (18:02 +0100)]
Fix searching work app in settings

Test: m -j RunSettingsRoboTests
Test: Observe search result with badged icon and showing work app info
when tapping on it.
Test: personal app search result is still working
Test: Non app search result is working

Fix: 62366873
Merged-in: I333372699b263d02cc4083289dc746c7aacd414d

Change-Id: I333372699b263d02cc4083289dc746c7aacd414d
(cherry picked from commit 3bef8ce30a43d068aafd4756dc2db7eb9f869781)

7 years agoFix searching work app in settings NO PARTIAL RERUN
Tony Mak [Fri, 16 Jun 2017 10:55:11 +0000 (10:55 +0000)]
Fix searching work app in settings NO PARTIAL RERUN
am: 5651e0f2ce  -s ours

Change-Id: I90afad3ac35c46c64e801631d36d24750a5858f4

7 years agoAdd more sane multi-profile app attribution.
Daniel Nishi [Fri, 16 Jun 2017 00:19:31 +0000 (17:19 -0700)]
Add more sane multi-profile app attribution.

Due to issues w.r.t. attribution across multiple users, we originally
duplicated the previous implementation which zeroed out the sizes. This,
however, caused system bloat due to the change in how we calculate the
system size.

By attributing apps which do not exist in the primary profile to the
first user that shows up with it installed, we can avoid accidentally
attributing it to the system size.

Bug: 62623731
Test: Settings unittest & Settings robotest
Change-Id: I9514c9ecef62ea6270723f62e6bf27c69b75f180

7 years agoUpdate Night display icon in Settings
Christine Franks [Thu, 15 Jun 2017 17:04:21 +0000 (10:04 -0700)]
Update Night display icon in Settings

Bug: 62658839
Test: Night display qs tile icon matches the icon used in the Night
display condition in Settings.
Change-Id: Ie319c9c94604dd630d5cf66f114a4de4397c2694

7 years agoAllow skipping PIN setup screen
Maurice Lam [Sat, 3 Jun 2017 02:22:53 +0000 (19:22 -0700)]
Allow skipping PIN setup screen

So that setup wizard can show PIN option by default.

Test: Added Robolectric and instrumentation tests
Bug: 38509560
Change-Id: Id72744dd444b9b026ca5f28f230bae3bec254b2f
(cherry picked from commit 0f897d79f698920f1c0e0c102a7985704ffa196e)

7 years agoFix searching work app in settings NO PARTIAL RERUN
Tony Mak [Mon, 12 Jun 2017 17:31:40 +0000 (18:31 +0100)]
Fix searching work app in settings NO PARTIAL RERUN

Test: m -j RunSettingsRoboTests
Test: Observe search result with badged icon and showing work app info
when tapping on it.
Test: personal app search result is still working
Test: Non app search result is working

Fix: 62366873

Merged-in: I333372699b263d02cc4083289dc746c7aacd414d

Change-Id: I9c87345478f8df57b151927d8097cd8fd90fbe79

7 years agoUpdate wakelock detector
jackqdyulei [Thu, 15 Jun 2017 17:18:00 +0000 (10:18 -0700)]
Update wakelock detector

1. Use new API: getSubTimer().getTotalDurationMsLocked(), which returns
the wakelock running time in the background.
2. Add code to detect whether app is currently holding wakelocks, by
using API: getCurrentDurationMsLocked

Bug: 38233034
Test: RunSettingsRoboTests
Change-Id: If69b751acf5741ff8df2c905642c008a0a2b32e6

7 years agoDisplay anomaly in battery usage page
jackqdyulei [Tue, 13 Jun 2017 17:17:59 +0000 (10:17 -0700)]
Display anomaly in battery usage page

This cl adds a new parameter, mAnomalies, for
AdvancedPowerUsageDetail.

If it is null, fragment will start AnomalyLoader to detect anomaly.
If not null, just display the anomaly.

Bug: 36925180
Test: RunSettingsRoboTests

Change-Id: I572bc5954c1cdb210d18b6dbe1ab9dba25c0a61f