OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoSupport find sensor screen with no animation
Maurice Lam [Mon, 22 May 2017 18:19:26 +0000 (11:19 -0700)]
Support find sensor screen with no animation

Some illustration view can manage their own start-stop lifecycle and
doesn't need to be handled by the activity.

Make mAnimation null if the animation is not an instance of
FingerprintFindSensorAnimation.

Test: cd tests/robotests && mma
Bug: 38463695
Change-Id: I41989e5cb0639407f58d9c8edda0eef93adbf2e8

7 years agoMerge "Add metrics category for the assist gesture settings."
Philip Quinn [Thu, 25 May 2017 16:18:52 +0000 (16:18 +0000)]
Merge "Add metrics category for the assist gesture settings."

7 years agoMerge "Make failed ConfirmCredential attempts count towards wipe"
Charles He [Thu, 25 May 2017 12:35:42 +0000 (12:35 +0000)]
Merge "Make failed ConfirmCredential attempts count towards wipe"

7 years agoMerge "Add icons to choose lock dialog"
TreeHugger Robot [Thu, 25 May 2017 04:43:26 +0000 (04:43 +0000)]
Merge "Add icons to choose lock dialog"

7 years agoMerge "Turn on power accounting in AOSP" into oc-dev am: 0a6d61883c
jackqdyulei [Thu, 25 May 2017 04:04:47 +0000 (04:04 +0000)]
Merge "Turn on power accounting in AOSP" into oc-dev am: 0a6d61883c
am: db42779cf1

Change-Id: Ie4db806a166c45a14cd3b8ed69be6405befcb64b

7 years agoMerge "Turn on power accounting in AOSP" into oc-dev
jackqdyulei [Thu, 25 May 2017 04:01:46 +0000 (04:01 +0000)]
Merge "Turn on power accounting in AOSP" into oc-dev
am: 0a6d61883c

Change-Id: I9204d0b51db9fedbf2f49b5d635e46b221c5d7ea

7 years agoMerge "Turn on power accounting in AOSP" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 03:57:27 +0000 (03:57 +0000)]
Merge "Turn on power accounting in AOSP" into oc-dev

7 years agoMerge "Recursively remove preference from screen." into oc-dev am: 7731b4244e
Fan Zhang [Thu, 25 May 2017 03:28:15 +0000 (03:28 +0000)]
Merge "Recursively remove preference from screen." into oc-dev am: 7731b4244e
am: 4472d8af83

Change-Id: Ie8835c9789d959ce3d75b84b05d711f976bab56e

7 years agoMerge "Recursively remove preference from screen." into oc-dev
Fan Zhang [Thu, 25 May 2017 03:25:43 +0000 (03:25 +0000)]
Merge "Recursively remove preference from screen." into oc-dev
am: 7731b4244e

Change-Id: Ib3c637bcb4bbd6ded83f626b1b00dff32f9cb12c

7 years agoMerge "Recursively remove preference from screen." into oc-dev
TreeHugger Robot [Thu, 25 May 2017 03:22:50 +0000 (03:22 +0000)]
Merge "Recursively remove preference from screen." into oc-dev

7 years agoMerge "Listener to tether state change on Network & internet page." into oc-dev am...
Doris Ling [Thu, 25 May 2017 02:37:59 +0000 (02:37 +0000)]
Merge "Listener to tether state change on Network & internet page." into oc-dev am: 1dead24890
am: be520a5f34

Change-Id: I31036a30605036e957b421727833b3a9830e4584

7 years agoMerge "Listener to tether state change on Network & internet page." into oc-dev
Doris Ling [Thu, 25 May 2017 02:34:26 +0000 (02:34 +0000)]
Merge "Listener to tether state change on Network & internet page." into oc-dev
am: 1dead24890

Change-Id: Ic64e4f29c2e7124b3e977acb245f0e3e15f84ff6

7 years agoMerge "Listener to tether state change on Network & internet page." into oc-dev
TreeHugger Robot [Thu, 25 May 2017 02:25:55 +0000 (02:25 +0000)]
Merge "Listener to tether state change on Network & internet page." into oc-dev

7 years agoMerge "Sort app list after smeared on screen"
TreeHugger Robot [Thu, 25 May 2017 02:25:39 +0000 (02:25 +0000)]
Merge "Sort app list after smeared on screen"

7 years agoMerge "Migrate settings robolectric tests to mockito 2"
TreeHugger Robot [Thu, 25 May 2017 02:20:36 +0000 (02:20 +0000)]
Merge "Migrate settings robolectric tests to mockito 2"

7 years agoMerge "Set correct uid when loading app icon in data usage UI."
TreeHugger Robot [Thu, 25 May 2017 02:13:13 +0000 (02:13 +0000)]
Merge "Set correct uid when loading app icon in data usage UI."

7 years agoMerge "Add a flag for the Bluetooth device details page"
TreeHugger Robot [Thu, 25 May 2017 02:10:34 +0000 (02:10 +0000)]
Merge "Add a flag for the Bluetooth device details page"

7 years agoMerge "UI Cleanup on supported links dialog in app info page."
TreeHugger Robot [Thu, 25 May 2017 02:04:34 +0000 (02:04 +0000)]
Merge "UI Cleanup on supported links dialog in app info page."

7 years agoAdd icons to choose lock dialog
Maurice Lam [Fri, 19 May 2017 22:23:26 +0000 (15:23 -0700)]
Add icons to choose lock dialog

- Add icons to items in choose lock dialog
- Add title to the dialog
- Update the font size and color to match specs

Test: Manual. Existing tests pass
Bug: 38394440
Change-Id: Ie7ed9944b71fa5ca408ec6898f49cbd36865a1dd

7 years agoListener to tether state change on Network & internet page.
Doris Ling [Wed, 24 May 2017 20:24:23 +0000 (13:24 -0700)]
Listener to tether state change on Network & internet page.

User can navigates to the page and turn hotspot on or off from the quick
settings. Need to listen to the tether state updates to refresh the
summary for the Hotspot & tethering preference accordingly.

Change-Id: I7c6869b909306b09556e19cf7b7543ce9dcd890e
Fix: 38452559
Test: make RunSettingsRoboTests

7 years agoAdd a flag for the Bluetooth device details page
Antony Sargent [Wed, 24 May 2017 23:29:22 +0000 (16:29 -0700)]
Add a flag for the Bluetooth device details page

This flag will be used to control whether we use a new, separate page
for Bluetooth device details, or the existing dialog.

Bug: 35877479
Test: make RunSettingsGoogleRoboTests
Change-Id: I2bda77493695ebe3b3bb824657a1422a68918256

7 years agoUI Cleanup on supported links dialog in app info page.
Fan Zhang [Wed, 24 May 2017 23:33:08 +0000 (16:33 -0700)]
UI Cleanup on supported links dialog in app info page.

- Simplify layout file
- Increase paddings

Change-Id: I61b7d9315f74172aeb036ef835de73e268329de5
Fix: 62065754
Test: visual

7 years agoSet correct uid when loading app icon in data usage UI.
Fan Zhang [Wed, 24 May 2017 23:04:23 +0000 (16:04 -0700)]
Set correct uid when loading app icon in data usage UI.

work profile apps belongs to a different user. Set the correct uid when
loading the icon so the work profile badge is displayed.

Change-Id: I2ed27d6b83c1b42961500dc8d63475bf1f7eabcd
Fix: 38372681
Test: make RunSettingsRoboTests

7 years agoTether screen cleanup am: 20ae31e87c
Fan Zhang [Wed, 24 May 2017 22:51:59 +0000 (22:51 +0000)]
Tether screen cleanup am: 20ae31e87c
am: a6f821c015

Change-Id: Icaa0173c43b80964aac5d0560e69426536c8da29

7 years agoTether screen cleanup
Fan Zhang [Wed, 24 May 2017 22:48:55 +0000 (22:48 +0000)]
Tether screen cleanup
am: 20ae31e87c

Change-Id: I5294531666526a05d07db15ff208eedec3504970

7 years agoMigrate settings robolectric tests to mockito 2
Maurice Lam [Wed, 24 May 2017 02:51:36 +0000 (19:51 -0700)]
Migrate settings robolectric tests to mockito 2

- Migrated ArgumentMatcher subclasses to lambdas
- Replaced any() with nullable() where tests were failing

Test: cd tests/robotests && mma
Bug: 38456058
Change-Id: Ice8c39b435c45b87f82dbbd9860e68f235314cf8

7 years agoRecursively remove preference from screen.
Fan Zhang [Wed, 24 May 2017 18:19:52 +0000 (11:19 -0700)]
Recursively remove preference from screen.

The preference framework does not remove pref recursively. So when a
preference is nested in preference hierarchy, it's not safe to simply
call screen.removePreference(). We need to first find its parent and
remove pref from its parent.

Change-Id: Ic7fefa498ed71a8877d862845ddcc2d6d6034a55
Fix: 38507066
Test: make RunSettingsRoboTests

7 years agoTether screen cleanup
Fan Zhang [Thu, 4 May 2017 18:28:16 +0000 (11:28 -0700)]
Tether screen cleanup

- Add a summary placeholder reserving 2 lines for wifi tether pref
- Replace DividerPreference with regular Preference

Change-Id: I2e0c36f27abe2c17625d00d80c816b526f59a6fd
Fix: 37518463
Test: visual
(cherry picked from commit d80117dcea2ae386dea238ae760a12f8004f4b4c)

7 years agoMerge "Follow O patterns for a11y settings"
Phil Weaver [Wed, 24 May 2017 19:37:38 +0000 (19:37 +0000)]
Merge "Follow O patterns for a11y settings"

7 years agoMerge "Make "Battery usage" accessible at any time" into oc-dev am: a935b3c030
jackqdyulei [Wed, 24 May 2017 19:31:14 +0000 (19:31 +0000)]
Merge "Make "Battery usage" accessible at any time" into oc-dev am: a935b3c030
am: 4516644b46  -s ours

Change-Id: Id2468f81d36e890897d60b6eda3f50c5c162203c

7 years agoMerge "Make "Battery usage" accessible at any time" into oc-dev
jackqdyulei [Wed, 24 May 2017 19:26:16 +0000 (19:26 +0000)]
Merge "Make "Battery usage" accessible at any time" into oc-dev
am: a935b3c030

Change-Id: I969c301888aca43b5e2154fc86dd139ebb83c3f3

7 years agoMerge "Make "Battery usage" accessible at any time" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:19:54 +0000 (19:19 +0000)]
Merge "Make "Battery usage" accessible at any time" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 24 May 2017 19:08:47 +0000 (19:08 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoFollow O patterns for a11y settings
Phil Weaver [Mon, 22 May 2017 23:57:11 +0000 (16:57 -0700)]
Follow O patterns for a11y settings

Move the summary for the toggled features to a footer.
Make the settings appear as a preference.

Bug: 36780887
Test: Start settings and observe the new UI looks a lot
like the mocks referenced in the bug. Also added unit
test to verify that summary text shows up.

Change-Id: I1d002b194991d0901ecb27198ba5de73bd23a5a9

7 years agoAdd background activity action
jackqdyulei [Fri, 19 May 2017 21:42:24 +0000 (14:42 -0700)]
Add background activity action

Background activity action is designed for wakeup alarm anomaly.
This cl also change the parameter in anomaly action interface
from "packageName" to "anomaly"

Bug: 36921529
Test: RunSettingsRoboTests
Change-Id: Ibde69f351f81043641f228f0e74deaa2e230c08a

7 years agoMerge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev...
Matthew Fritze [Wed, 24 May 2017 17:18:58 +0000 (17:18 +0000)]
Merge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev am: ae0886c9f7
am: 934a04509f

Change-Id: Iff239e99df07cf425f650fbdb9cfb72a3fc40182

7 years agoMerge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev
Matthew Fritze [Wed, 24 May 2017 17:16:01 +0000 (17:16 +0000)]
Merge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev
am: ae0886c9f7

Change-Id: I29ca4bdf7ad579699283fe4adde2ad22439d7ce9

7 years agoMerge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 17:12:34 +0000 (17:12 +0000)]
Merge "Revert "Revert "Replace dynamic summary text for SettingPref""" into oc-dev

7 years agoMake "Battery usage" accessible at any time
jackqdyulei [Mon, 22 May 2017 22:40:19 +0000 (15:40 -0700)]
Make "Battery usage" accessible at any time

Before this cl, user could go to "Battery usage" page only if
related app has battery usage. This cl breaks this rule so we
could open "Battery usage" without battery data.

Bug: 38497822
Test: RunSettingsRoboTests
Merged-In: Ic53c33b7dcbac82de58f31cf96e0bd8fa54e53ea
Change-Id: Ic53c33b7dcbac82de58f31cf96e0bd8fa54e53ea

7 years agoMerge "Show app battery usage in correct user" into oc-dev am: 7226c9f4c4
Tony Mak [Wed, 24 May 2017 10:56:22 +0000 (10:56 +0000)]
Merge "Show app battery usage in correct user" into oc-dev am: 7226c9f4c4
am: f7c007b2c1  -s ours

Change-Id: I77d663cdd0c9dc6a3a411789591421a238a76766

7 years agoMerge "Show app battery usage in correct user" into oc-dev
Tony Mak [Wed, 24 May 2017 10:53:25 +0000 (10:53 +0000)]
Merge "Show app battery usage in correct user" into oc-dev
am: 7226c9f4c4

Change-Id: I719a19c92d9671e471b648aa6db9881dbd01ad30

7 years agoMerge "Show app battery usage in correct user" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 10:49:11 +0000 (10:49 +0000)]
Merge "Show app battery usage in correct user" into oc-dev

7 years agoMerge "Update Settings search result unique ids"
TreeHugger Robot [Wed, 24 May 2017 04:48:41 +0000 (04:48 +0000)]
Merge "Update Settings search result unique ids"

7 years agoMerge "Split loading process for battery header" into oc-dev am: 987ee5338a
jackqdyulei [Wed, 24 May 2017 01:40:32 +0000 (01:40 +0000)]
Merge "Split loading process for battery header" into oc-dev am: 987ee5338a
am: c0351e0243  -s ours

Change-Id: Ia38ba8d7710511d740d4427674dd9f8f1a917abf

7 years agoMerge "Split loading process for battery header" into oc-dev
jackqdyulei [Wed, 24 May 2017 01:33:01 +0000 (01:33 +0000)]
Merge "Split loading process for battery header" into oc-dev
am: 987ee5338a

Change-Id: I395b493338f0225bd300e155d3303a1ba9136555

7 years agoMerge "Misc fixes to search and UI."
TreeHugger Robot [Wed, 24 May 2017 01:25:13 +0000 (01:25 +0000)]
Merge "Misc fixes to search and UI."

7 years agoMerge "Split loading process for battery header" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 01:22:23 +0000 (01:22 +0000)]
Merge "Split loading process for battery header" into oc-dev

7 years agoMerge "Update the strings for "show all apps"" into oc-dev am: 4e0f69c10c
jackqdyulei [Wed, 24 May 2017 01:01:41 +0000 (01:01 +0000)]
Merge "Update the strings for "show all apps"" into oc-dev am: 4e0f69c10c
am: 6870de6772

Change-Id: I184acec76978463b3d62a6eedadd456ee6fa7a89

7 years agoMerge "Update the strings for "show all apps"" into oc-dev
jackqdyulei [Wed, 24 May 2017 00:54:40 +0000 (00:54 +0000)]
Merge "Update the strings for "show all apps"" into oc-dev
am: 4e0f69c10c

Change-Id: I86150368f09801e90263fc099d4e0a703029dac2

7 years agoMerge "Update the strings for "show all apps"" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 00:49:48 +0000 (00:49 +0000)]
Merge "Update the strings for "show all apps"" into oc-dev

7 years agoSort app list after smeared on screen
jackqdyulei [Tue, 23 May 2017 22:08:24 +0000 (15:08 -0700)]
Sort app list after smeared on screen

Then we could make sure the app list is sorted

Bug: 62035385
Test: RunSettingsRoboTests
Change-Id: I3fa3d6ffc5930cf011e382632143e459fdbc4369

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev am: 20748da300 -s ours
Bill Yi [Wed, 24 May 2017 00:25:46 +0000 (00:25 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am: 20748da300  -s ours
am: d327ad395b  -s ours

Change-Id: I2b8b6ab846ae003a25695289b448dce7a2374bbe

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 24 May 2017 00:19:39 +0000 (00:19 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 20748da300  -s ours

Change-Id: Ife6fcaa53d906080248b0cb63e8a32ae3a373793

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 00:10:58 +0000 (00:10 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Center icons in Settings homepage and search result page."
TreeHugger Robot [Tue, 23 May 2017 23:29:25 +0000 (23:29 +0000)]
Merge "Center icons in Settings homepage and search result page."

7 years agoMerge "Make "Battery usage" accessible at any time"
Lei Yu [Tue, 23 May 2017 23:24:30 +0000 (23:24 +0000)]
Merge "Make "Battery usage" accessible at any time"

7 years agoSplit loading process for battery header
jackqdyulei [Fri, 19 May 2017 20:29:09 +0000 (13:29 -0700)]
Split loading process for battery header

This cl creates BatteryHeaderPreferenceController, which will first
load the battery level in ui thread(in displayPreference()), then
display the remaining time once we get the battery stats.

This is the best we can do to avoid ui flashing while removing the
animation

Bug: 38349587
Test: RunSettingsRoboTests

Merged-In: Ic3622bb73562ba42e69b37e5674a724c03c45f12
Change-Id: Ic3622bb73562ba42e69b37e5674a724c03c45f12

7 years agoMerge "Split loading process for battery header"
Lei Yu [Tue, 23 May 2017 23:20:53 +0000 (23:20 +0000)]
Merge "Split loading process for battery header"

7 years agoTurn on power accounting in AOSP
jackqdyulei [Tue, 23 May 2017 22:35:54 +0000 (15:35 -0700)]
Turn on power accounting in AOSP

Bug: 38328724
Test: RunSettingsRoboTests
Change-Id: Ibb2691ffdf8581549a1e99f94a8dbaa849453742

7 years agoUpdate Settings search result unique ids
Matthew Fritze [Fri, 12 May 2017 22:59:19 +0000 (15:59 -0700)]
Update Settings search result unique ids

- SearchResult stableIds are now DocIds from the database
- DocIds are data reference key's hash, when the key is not
empty or null
- Otherwise, DocIds are a hashcode from a set of fields.

Change-Id: Id36f7bf4ceaaa3a2bd326ecafbfe97fd0b247df2
Fixes: 37327194
Test: make RunSettingsRoboTest

7 years agoMerge "Update intent priority for AdvancedAppsActivity."
TreeHugger Robot [Tue, 23 May 2017 22:38:20 +0000 (22:38 +0000)]
Merge "Update intent priority for AdvancedAppsActivity."

7 years agoMerge "Remove duplicates in Security Settings" into oc-dev am: 96a8dffafb
Matthew Fritze [Tue, 23 May 2017 22:27:01 +0000 (22:27 +0000)]
Merge "Remove duplicates in Security Settings" into oc-dev am: 96a8dffafb
am: c9f9961d8d  -s ours

Change-Id: Ia3d2431248eb95bcea9f1b95602e3ba6a2ef0171

7 years agoMerge "Add flag for wakeup alarm"
Lei Yu [Tue, 23 May 2017 22:22:20 +0000 (22:22 +0000)]
Merge "Add flag for wakeup alarm"

7 years agoMerge "Remove duplicates in Security Settings" into oc-dev
Matthew Fritze [Tue, 23 May 2017 22:21:18 +0000 (22:21 +0000)]
Merge "Remove duplicates in Security Settings" into oc-dev
am: 96a8dffafb

Change-Id: I1e987af06d086fd971e2865d5fa854b58ce0e409

7 years agoUpdate the strings for "show all apps"
jackqdyulei [Tue, 23 May 2017 21:30:47 +0000 (14:30 -0700)]
Update the strings for "show all apps"

Bug: 38328724
Test: Screenshot
Change-Id: If48ff26f691795dcf206346af6a9a0be62bbf733

7 years agoMerge "Remove duplicates in Security Settings" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 22:13:37 +0000 (22:13 +0000)]
Merge "Remove duplicates in Security Settings" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 23 May 2017 22:05:15 +0000 (15:05 -0700)]
Import translations. DO NOT MERGE

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

7 years agoRevert "Revert "Replace dynamic summary text for SettingPref""
Matthew Fritze [Tue, 23 May 2017 21:02:57 +0000 (21:02 +0000)]
Revert "Revert "Replace dynamic summary text for SettingPref""

This reverts commit 8061aaef621b38e269eaa34c0cfef48a9b7eb288.
Test: make RunSettingsRoboTests
Fixes: 36101902
Change-Id: Ide74780153fc7f36d897f559c7a3c138190e3320

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 23 May 2017 21:58:55 +0000 (14:58 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMisc fixes to search and UI.
Fan Zhang [Tue, 23 May 2017 17:46:54 +0000 (10:46 -0700)]
Misc fixes to search and UI.

- Use prefContext to create preference.
- rename "Gestures" to "Gesture shortcuts"
- Add search keyword to individual gesture settings so when search
  "gesture" they also show up.
- call super() for all getNonIndexableKeys() in search provider

Fix: 38327387
Fix: 36621897
Fix: 36685646
Test: make RunSettingsRoboTests

Change-Id: Ia5ddfeae08cb27c278dfb8d2376594e21d8f283c

7 years agoCenter icons in Settings homepage and search result page.
Fan Zhang [Tue, 23 May 2017 21:23:07 +0000 (14:23 -0700)]
Center icons in Settings homepage and search result page.

Change-Id: I1846439bfa6c22c36a1574c759b32b00a02f9c8a
Fix: 38137170
Test: visual

7 years agoMerge "Refactored ConfirmationDialogFragment to use default construcutor." into oc...
Felipe Leme [Tue, 23 May 2017 21:04:55 +0000 (21:04 +0000)]
Merge "Refactored ConfirmationDialogFragment to use default construcutor." into oc-dev am: 3cf690e906
am: 150fa397fc

Change-Id: Ibbc7d59b6db0f1b991266f5e41f8daf79f71e6ca

7 years agoMerge "Refactored ConfirmationDialogFragment to use default construcutor." into oc-dev
Felipe Leme [Tue, 23 May 2017 20:57:34 +0000 (20:57 +0000)]
Merge "Refactored ConfirmationDialogFragment to use default construcutor." into oc-dev
am: 3cf690e906

Change-Id: Ia76b7b27c3697645b58ee705733211b85a4dca40

7 years agoRemove search2 package and put everything into search
Matthew Fritze [Mon, 22 May 2017 20:31:54 +0000 (13:31 -0700)]
Remove search2 package and put everything into search

Change-Id: Ie8651c79ef023f154cd7120a88a20f3481abce2b
Fixes: 38502743
Test: make RunSettingsRoboTests

7 years agoMerge "Refactored ConfirmationDialogFragment to use default construcutor." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 20:44:08 +0000 (20:44 +0000)]
Merge "Refactored ConfirmationDialogFragment to use default construcutor." into oc-dev

7 years agoAdd flag for wakeup alarm
jackqdyulei [Tue, 23 May 2017 17:57:35 +0000 (10:57 -0700)]
Add flag for wakeup alarm

Also hook up it to WakeupAlarmAnomalyDetector

Bug: 38233931
Test: RunSettingsRoboTests
Change-Id: Iceae37dcd2e6a6f1a044fa36efb416f11703c431

7 years agoMake "Battery usage" accessible at any time
jackqdyulei [Mon, 22 May 2017 22:40:19 +0000 (15:40 -0700)]
Make "Battery usage" accessible at any time

Before this cl, user could go to "Battery usage" page only if
related app has battery usage. This cl breaks this rule so we
could open "Battery usage" without battery data.

Bug: 38497822
Test: RunSettingsRoboTests
Change-Id: Ic53c33b7dcbac82de58f31cf96e0bd8fa54e53ea

7 years agoSplit loading process for battery header
jackqdyulei [Fri, 19 May 2017 20:29:09 +0000 (13:29 -0700)]
Split loading process for battery header

This cl creates BatteryHeaderPreferenceController, which will first
load the battery level in ui thread(in displayPreference()), then
display the remaining time once we get the battery stats.

This is the best we can do to avoid ui flashing while removing the
animation

Bug: 38349587
Test: RunSettingsRoboTests

Change-Id: Ic3622bb73562ba42e69b37e5674a724c03c45f12

7 years agoMerge "Remove duplicates in Security Settings"
TreeHugger Robot [Tue, 23 May 2017 19:17:25 +0000 (19:17 +0000)]
Merge "Remove duplicates in Security Settings"

7 years agoMerge "Add summary text to Apps & notifications -> Notifications"
TreeHugger Robot [Tue, 23 May 2017 18:48:49 +0000 (18:48 +0000)]
Merge "Add summary text to Apps & notifications -> Notifications"

7 years agoUpdate intent priority for AdvancedAppsActivity.
Doris Ling [Tue, 23 May 2017 18:26:59 +0000 (11:26 -0700)]
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

7 years agoMerge "Hook up the anomaly policy to wakelockanomaly"
TreeHugger Robot [Tue, 23 May 2017 18:12:16 +0000 (18:12 +0000)]
Merge "Hook up the anomaly policy to wakelockanomaly"

7 years agoMerge "Add wakeup alarm anomaly detector"
TreeHugger Robot [Tue, 23 May 2017 18:08:07 +0000 (18:08 +0000)]
Merge "Add wakeup alarm anomaly detector"

7 years agoMerge "Fix storage summary background colors." into oc-dev am: 8b8f27cd06
Daniel Nishi [Tue, 23 May 2017 17:51:17 +0000 (17:51 +0000)]
Merge "Fix storage summary background colors." into oc-dev am: 8b8f27cd06
am: 4525f9387a

Change-Id: I8a30afbf999318fd7dabaf7d15ce38f99168353b

7 years agoRemove duplicates in Security Settings
Matthew Fritze [Thu, 11 May 2017 18:56:27 +0000 (11:56 -0700)]
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

7 years agoRemove duplicates in Security Settings
Matthew Fritze [Thu, 11 May 2017 18:56:27 +0000 (11:56 -0700)]
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

7 years agoMerge "Fix storage summary background colors." into oc-dev
Daniel Nishi [Tue, 23 May 2017 17:41:21 +0000 (17:41 +0000)]
Merge "Fix storage summary background colors." into oc-dev
am: 8b8f27cd06

Change-Id: I821d4a44c69bae33e3ae9854f23ed87e51139951

7 years agoMerge "Fix storage summary background colors." into oc-dev
Daniel Nishi [Tue, 23 May 2017 17:35:14 +0000 (17:35 +0000)]
Merge "Fix storage summary background colors." into oc-dev

7 years agoAdd metrics category for the assist gesture settings.
Philip Quinn [Tue, 23 May 2017 17:32:08 +0000 (10:32 -0700)]
Add metrics category for the assist gesture settings.

Bug: 38508651
Test: make RunSettingsRoboTests
Change-Id: Ic334f7608546651381cfb7c94ae1f6d77f4939b6

7 years agoAdd summary text to Apps & notifications -> Notifications
Doris Ling [Mon, 22 May 2017 22:58:03 +0000 (15:58 -0700)]
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

7 years agoMake failed ConfirmCredential attempts count towards wipe
Charles He [Wed, 26 Apr 2017 17:45:48 +0000 (18:45 +0100)]
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

7 years agoAdd wakeup alarm anomaly detector
jackqdyulei [Thu, 18 May 2017 00:00:47 +0000 (17:00 -0700)]
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

7 years agoHook up the anomaly policy to wakelockanomaly
jackqdyulei [Wed, 17 May 2017 22:05:02 +0000 (15:05 -0700)]
Hook up the anomaly policy to wakelockanomaly

Bug: 38233034
Test: RunSettingsRoboTests
Change-Id: Id8c13480e08f609a1ba9927ba35558f82664904c

7 years agoRefactored ConfirmationDialogFragment to use default construcutor.
Felipe Leme [Thu, 18 May 2017 21:32:13 +0000 (14:32 -0700)]
Refactored ConfirmationDialogFragment to use default construcutor.

Test: manual verification
Test: make RunSettingsRoboTests -j90

Fixes: 38397850

Change-Id: Ie724e7e92a6a34d4db16e4406bf821f00d98d180

7 years agoMerge "Developer setting to enable notification channel warnings" into oc-dev am...
Geoffrey Pitsch [Tue, 23 May 2017 15:26:39 +0000 (15:26 +0000)]
Merge "Developer setting to enable notification channel warnings" into oc-dev am: 77bb0aaf96
am: 984dad4ac6

Change-Id: Ica82b112388bd3f3f0a1e2e0281b8c1036d64934

7 years agoMerge "Developer setting to enable notification channel warnings" into oc-dev
Geoffrey Pitsch [Tue, 23 May 2017 15:24:09 +0000 (15:24 +0000)]
Merge "Developer setting to enable notification channel warnings" into oc-dev
am: 77bb0aaf96

Change-Id: I571de55e0b3d090ec2442e2019b2a460b0185283

7 years agoMerge "Developer setting to enable notification channel warnings" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 15:18:06 +0000 (15:18 +0000)]
Merge "Developer setting to enable notification channel warnings" into oc-dev

7 years agoShow app battery usage in correct user
Tony Mak [Mon, 22 May 2017 13:22:57 +0000 (14:22 +0100)]
Show app battery usage in correct user

Test: m -j RunSettingsRoboTests

Change-Id: I6c0f74b79468ee670f642edb0a50400c030d1925

Merged-In: I6c0f74b79468ee670f642edb0a50400c030d1925

Fix: 38447829

7 years agoShow app battery usage in correct user
Tony Mak [Tue, 23 May 2017 09:29:06 +0000 (10:29 +0100)]
Show app battery usage in correct user

Test: m -j RunSettingsRoboTests

Fix: 38447829

Change-Id: I6c0f74b79468ee670f642edb0a50400c030d1925

7 years agoMerge "Use BatteryStatsLoader in InstalledAppDetails" into oc-dev am: 37f6b7f751
Lei Yu [Tue, 23 May 2017 06:23:31 +0000 (06:23 +0000)]
Merge "Use BatteryStatsLoader in InstalledAppDetails" into oc-dev am: 37f6b7f751
am: 996adfeb29

Change-Id: I11d0c39a68428637ce12aaffaa2a4f1e49bb716e