OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Do not show advanced dropdown if only one setting"
Jeffrey Huang [Tue, 12 Dec 2017 22:27:05 +0000 (22:27 +0000)]
Merge "Do not show advanced dropdown if only one setting"

6 years agoDo not show advanced dropdown if only one setting
jeffreyhuang [Fri, 8 Dec 2017 22:39:03 +0000 (14:39 -0800)]
Do not show advanced dropdown if only one setting

Change-Id: I56eff1198636d0f0b95f4aa58eb90efc346c3f65
Fixes: 69402845
Test: make RunSettingsRoboTests -j40

6 years agoMerge "Add device name preference in pairing page"
Lei Yu [Tue, 12 Dec 2017 18:05:34 +0000 (18:05 +0000)]
Merge "Add device name preference in pairing page"

6 years agoMerge "Update package name for PictureAndPictureSettings"
TreeHugger Robot [Tue, 12 Dec 2017 01:05:33 +0000 (01:05 +0000)]
Merge "Update package name for PictureAndPictureSettings"

6 years agoAdd device name preference in pairing page
jackqdyulei [Fri, 8 Dec 2017 20:55:26 +0000 (12:55 -0800)]
Add device name preference in pairing page

Also refactor the preference controller
1. Extend from BasePreferenceController.
2. pass in the preference key. Then it could be reused in different
places with different key.

Bug: 69333961
Test: Screenshot | RunSettingsRoboTests
Change-Id: I773ca022baa326481045c1659565c9a21111200a

6 years agoUpdate package name for PictureAndPictureSettings
Doris Ling [Mon, 11 Dec 2017 21:45:40 +0000 (13:45 -0800)]
Update package name for PictureAndPictureSettings

- also need to update the reference in the special app access xml page.

Change-Id: I1199f70adf18d3f0e21a946848239526d9c8b3c8
Fixes: 70491786
Test: make SettingsUnitTests

6 years agoMerge "Delete about phone v1 code"
TreeHugger Robot [Mon, 11 Dec 2017 22:51:42 +0000 (22:51 +0000)]
Merge "Delete about phone v1 code"

6 years agoMerge "Update the way OMS records details about overlays"
TreeHugger Robot [Mon, 11 Dec 2017 21:51:35 +0000 (21:51 +0000)]
Merge "Update the way OMS records details about overlays"

6 years agoMerge "Add icons for color inversion and daltonizer"
TreeHugger Robot [Mon, 11 Dec 2017 21:01:32 +0000 (21:01 +0000)]
Merge "Add icons for color inversion and daltonizer"

6 years agoMerge "Update package name for PictureAndPictureSettings"
TreeHugger Robot [Mon, 11 Dec 2017 20:59:58 +0000 (20:59 +0000)]
Merge "Update package name for PictureAndPictureSettings"

6 years agoMerge "Disable crashing ExternalSourcesSettingsTest#testManageExternalSourcesForApp"
TreeHugger Robot [Mon, 11 Dec 2017 20:33:48 +0000 (20:33 +0000)]
Merge "Disable crashing  ExternalSourcesSettingsTest#testManageExternalSourcesForApp"

6 years agoMerge "Fix assertion in VisibilityPreferenceControllerTest."
TreeHugger Robot [Mon, 11 Dec 2017 19:19:33 +0000 (19:19 +0000)]
Merge "Fix assertion in VisibilityPreferenceControllerTest."

6 years agoUpdate package name for PictureAndPictureSettings
Doris Ling [Mon, 11 Dec 2017 19:18:10 +0000 (11:18 -0800)]
Update package name for PictureAndPictureSettings

- the settings have been moved into the appinfo package, but the path
has not been updated properly in the android manifest.

Change-Id: I3a00a187bd2fdbeb926e2bb8cc1c4ab720ccd72a
Fixes: 70491786
Test: manual

6 years agoAdd icons for color inversion and daltonizer
Phil Weaver [Sat, 9 Dec 2017 01:10:06 +0000 (17:10 -0800)]
Add icons for color inversion and daltonizer

For accessibilty settings, both on the main page
and the shortcut picker.

Also now observing settings that could be toggled
by the shortcut, so changes can be reflected immediately
in the settings ui.

Bug: 34621067
Fixes: 70335904
Test: Observe icons in settings and shortcut picker.
Toggling color inversion and color correction now changes
the setting ui immediately.

Change-Id: Id27b6471376059288ff971e5aea72d76078bef36

6 years agoDelete about phone v1 code
jeffreyhuang [Thu, 30 Nov 2017 00:41:48 +0000 (16:41 -0800)]
Delete about phone v1 code

Bug: 36458278
Test: make RunSettingsRoboTests -j40
Change-Id: Ib8f420a86caa1da0165aa5c161eb584a009ed2b9

6 years agoMerge "Fix VisibilityPreferenceControllerTest."
TreeHugger Robot [Mon, 11 Dec 2017 18:45:33 +0000 (18:45 +0000)]
Merge "Fix VisibilityPreferenceControllerTest."

6 years agoMerge "Remove Slice getter from BasePreferenceController"
TreeHugger Robot [Mon, 11 Dec 2017 17:40:05 +0000 (17:40 +0000)]
Merge "Remove Slice getter from BasePreferenceController"

6 years agoFix assertion in VisibilityPreferenceControllerTest.
Tobias Thierer [Mon, 11 Dec 2017 17:36:39 +0000 (17:36 +0000)]
Fix assertion in VisibilityPreferenceControllerTest.

The test was asserting that VISIBILIY_NO_OVERRIDE (an int)
is not contained in a List<String> (*), which is (trivially)
true but doesn't test what the test intends to test.

(*) or a List<CharSequence>, which is similarly wrong /
  meaningless, prior to the base CL http://ag/3345932

VisibilityPreferenceController uses Integer.toString() to
construct corresponding String values, so the test should
be checking for that String value. For consistency with
  testUpdateState_noGlobalRestriction()
this CL uses the equivalent (and slightly shorter)
String.valueOf(int) instead of Integer.toString().

Test: EXPERIMENTAL_USE_OPENJDK9=1.8 make RunSettingsRoboTests \
   ROBOTEST_FILTER=VisibilityPreferenceControllerTest

Change-Id: I48644729d3e0f29d7ffcc981aeef650f2b1426ef

6 years agoMerge "Clearing task when opening home settings in case it is already in the same...
Sunny Goyal [Mon, 11 Dec 2017 17:36:31 +0000 (17:36 +0000)]
Merge "Clearing task when opening home settings in case it is already in the same task"

6 years agoFix VisibilityPreferenceControllerTest.
Tobias Thierer [Mon, 11 Dec 2017 16:51:07 +0000 (16:51 +0000)]
Fix VisibilityPreferenceControllerTest.

The test was expecting an ArgumentCaptor for RestrictedDropDownPreference
(extends ListPreference).setEntryValues(CharSequence[]) to be passed an
array of Strings, when actually it should have expected an array of
CharSequences.

This CL fixes the test to use CharSequence. Since CharSequence.equals()
is not guaranteed to be in terms of value equality of the characters,
a private static helper method:

  List<String> toStringList(CharSequence[] charSequences) { ... }

is used.

Bug: 70504129
Test: EXPERIMENTAL_USE_OPENJDK9=1.8 make -j30 showcommands dist \
  RunSettingsRoboTests RunSettingsRoboTests-jacoco \
  RunSettingsLibRoboTests RunSettingsLibRoboTests-jacoco \
  RunSettingsGoogleRoboTests RunSettingsGoogleRoboTests-jacoco \
  RunSuwRoboTests RunSuwRoboTests-jacoco \
  RunTurboRoboTests \
  RunStorageManagerRoboTests \
  RunTvSettingsRoboTests RunTvSettingsRoboTests-jacoco

Change-Id: I347b03e6cb01715cd1c7f50b5f36567e5f375ad7

6 years agoDisable crashing ExternalSourcesSettingsTest#testManageExternalSourcesForApp
Aurimas Liutikas [Sat, 9 Dec 2017 19:01:16 +0000 (19:01 +0000)]
Disable crashing  ExternalSourcesSettingsTest#testManageExternalSourcesForApp

Bug: 70383636
Change-Id: If542ef48d54959b3cc6c9fb07ddf07977fe40a8b

6 years agoMerge "Stop statically including legacy-android-test"
Paul Duffin [Sat, 9 Dec 2017 11:18:13 +0000 (11:18 +0000)]
Merge "Stop statically including legacy-android-test"

6 years agoClearing task when opening home settings in case it is already in the same task
Sunny Goyal [Fri, 8 Dec 2017 17:35:03 +0000 (09:35 -0800)]
Clearing task when opening home settings in case it is already in the same task

Test: Manually tested on device
Bug: 69960568
Change-Id: If9de28936a7156c4d9c68c85c168ff4aa7492151

6 years agoStop statically including legacy-android-test
Paul Duffin [Fri, 8 Dec 2017 00:02:43 +0000 (00:02 +0000)]
Stop statically including legacy-android-test

Statically including legacy-android-test leads to duplicate classes
which causes build time problems (with Proguard) and runtime problems on
older SDK versions. This change:
* Stops statically including legacy-android-test.
* Adds compile time dependencies on andoid.test.base, android.test.mock
  and android.test.runner where necessary.
* Adds <uses-library android:name="android.test.runner"/> to any
  affected package to ensure that the classes that were included by
  legacy-android-test are still available at runtime. That also adds a
  dependency on android.test.base and android.test.mock.

The following change descriptions were generated automatically and so
may be a little repetitive. They are provided to give the reviewer
enough information to check the comments match what has actually been
changed and check the reasoning behind the changes.

* tests/unit/Android.mk
    Added 'android.test.base' and 'android.test.mock' to
    LOCAL_JAVA_LIBRARIES because SettingsUnitTests's source depends on
    their classes and because of these changes they are no longer
    present on the compilation path.

    Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES
    because statically including the classes in SettingsUnitTests
    results in duplicate classes which leads to build time and compile
    time issues.

Bug: 30188076
Test: make checkbuild
Change-Id: I191a72e50017213df6ad04f32aa660e8028720e2

6 years agoAdd feature flag to control battery app list.
jackqdyulei [Thu, 7 Dec 2017 23:41:48 +0000 (15:41 -0800)]
Add feature flag to control battery app list.

If feature flag is on, then display the app list. Otherwise disable
it.

Bug: 70234293
Test: RunSettingsRoboTests
Change-Id: I1663f925abf95e0e4c1a46d98ca165303a76e979

6 years agoMove AppListGroup to PreferenceController
jackqdyulei [Tue, 5 Dec 2017 21:03:29 +0000 (13:03 -0800)]
Move AppListGroup to PreferenceController

Move the app list in battery settings to PreferenceController. So that
we can:
1. Clean the code in PowerUsageSummary
2. Make it easy to add/move the app list to other place in furture.

This cl:
1. Move and make it invisible since in P we don't show app list in
battery main page.
2. Move related test to BatteryAppListPreferenceControllerTest

Bug: 70234293
Test: RunSettingsRoboTests
Change-Id: Ice7a42394916ff5e71305bfe22f5c35868d87fc7

6 years agoRemove Slice getter from BasePreferenceController
Matthew Fritze [Tue, 5 Dec 2017 19:13:10 +0000 (11:13 -0800)]
Remove Slice getter from BasePreferenceController

After working through a prototype here: (ag/3324435)
it is clear that we don't need the controller to
provider the slice. We will build an index that
will contain sufficent UI information, and a reference
to the controller.

At Slice Bind time, we can get the curret value from the
controller, and the UI information from the Index.

Bug: 67996923
Test: robotests
Change-Id: Id43a51bcd73051bc719cd5829907583e0edf23b2

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev am: 814fb3b7a1 -s ours
Bill Yi [Fri, 8 Dec 2017 06:04:47 +0000 (06:04 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: 814fb3b7a1  -s ours
am: 9840c89235  -s ours

Change-Id: If1f0055b82b51ae304b5bacafa95821d8eaa2d07

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Fri, 8 Dec 2017 06:01:46 +0000 (06:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: 814fb3b7a1  -s ours

Change-Id: Ic4696096352546cb962ab57470ed569535791665

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Dec 2017 05:52:37 +0000 (05:52 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Update feature flag dashboard UI to display all features"
TreeHugger Robot [Fri, 8 Dec 2017 05:50:54 +0000 (05:50 +0000)]
Merge "Update feature flag dashboard UI to display all features"

6 years agoImport translations. DO NOT MERGE am: 3ed385256a -s ours am: 14c47203b3 -s ours
Bill Yi [Fri, 8 Dec 2017 05:46:46 +0000 (05:46 +0000)]
Import translations. DO NOT MERGE am: 3ed385256a  -s ours am: 14c47203b3  -s ours
am: 5811075aeb  -s ours

Change-Id: I0ea16471b0fe4caa83f0b08907325e6771d19ac2

6 years agoImport translations. DO NOT MERGE am: 3ed385256a -s ours
Bill Yi [Fri, 8 Dec 2017 05:42:43 +0000 (05:42 +0000)]
Import translations. DO NOT MERGE am: 3ed385256a  -s ours
am: 14c47203b3  -s ours

Change-Id: Ic512ba80a6900175986841430f1b69e170bbd845

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 05:39:41 +0000 (05:39 +0000)]
Import translations. DO NOT MERGE
am: 3ed385256a  -s ours

Change-Id: Idb17affa2264a9b46343c3bc9dea1978e5a92a32

6 years agoMerge "Update asset for no search result image" into oc-mr1-dev am: afa1efabad
Fan Zhang [Fri, 8 Dec 2017 03:35:59 +0000 (03:35 +0000)]
Merge "Update asset for no search result image" into oc-mr1-dev am: afa1efabad
am: ed6805142f

Change-Id: I7fae2db9c207c26277fbbf04c63911ed222e5d0b

6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master" am: cb1056f9b4 -s ours am: 4f83509810
Xin Li [Fri, 8 Dec 2017 03:35:08 +0000 (03:35 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master" am: cb1056f9b4  -s ours am: 4f83509810
am: a038fb9044  -s ours

Change-Id: Ibfdba393783ac392dde8a42418b3cf8bfc8e34ff

6 years agoMerge "Add controllers for default app shortcut preferences."
TreeHugger Robot [Fri, 8 Dec 2017 02:20:11 +0000 (02:20 +0000)]
Merge "Add controllers for default app shortcut preferences."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 01:08:40 +0000 (17:08 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I35a94b9a271e88bf4f0384d5619c59661516131d

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 01:08:11 +0000 (17:08 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I59dde21252b7681bb6dfcf9dae1f27192a3cd19e

6 years agoMerge "Depend settings on slices in the support library"
TreeHugger Robot [Fri, 8 Dec 2017 00:51:19 +0000 (00:51 +0000)]
Merge "Depend settings on slices in the support library"

6 years agoMerge "Move codes generating html file from xml files to SettingsLib (1/2)"
TreeHugger Robot [Fri, 8 Dec 2017 00:32:38 +0000 (00:32 +0000)]
Merge "Move codes generating html file from xml files to SettingsLib (1/2)"

6 years agoMerge "Update asset for no search result image" into oc-mr1-dev
Fan Zhang [Fri, 8 Dec 2017 00:25:31 +0000 (00:25 +0000)]
Merge "Update asset for no search result image" into oc-mr1-dev
am: afa1efabad

Change-Id: Ib77d2973bf4f2155a7bdd73174fd4c4b9903bc17

6 years agoMerge "Update asset for no search result image" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Dec 2017 00:19:09 +0000 (00:19 +0000)]
Merge "Update asset for no search result image" into oc-mr1-dev

6 years agoUpdate feature flag dashboard UI to display all features
Fan Zhang [Thu, 7 Dec 2017 20:48:12 +0000 (12:48 -0800)]
Update feature flag dashboard UI to display all features

Bug: 36222960
Test: robotests
Change-Id: I1aea8f32df9bd8ae24708374b60d173953a7c266

6 years agoMerge "Send MODE_CHANGING broadcast before location mode change."
Maggie Wang [Fri, 8 Dec 2017 00:00:08 +0000 (00:00 +0000)]
Merge "Send MODE_CHANGING broadcast before location mode change."

6 years agoManually merge changes from giant AOSP topic
Stephen Li [Thu, 7 Dec 2017 23:56:30 +0000 (23:56 +0000)]
Manually merge changes from giant AOSP topic

Change-Id: Iec1a4fdf7f5e04f091608f148aa770cfcd5f8acc

6 years agoAdd controllers for default app shortcut preferences.
Doris Ling [Sat, 2 Dec 2017 01:18:01 +0000 (17:18 -0800)]
Add controllers for default app shortcut preferences.

- add the default app shortcut preferences to the preference screen
xml instead of creating them dynamically in the fragment.
- add controller for each of the shortcut preference.
- move the corresponding shortcut detail settings into the appinfo
package.
- add individual preference screen xml for the shortcut detail settings
instead of using the shared screen template.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: I7bc0b3b727e87fb1a32a82291e64b8e290947671

6 years agoSend MODE_CHANGING broadcast before location mode change.
Maggie [Thu, 30 Nov 2017 18:50:50 +0000 (10:50 -0800)]
Send MODE_CHANGING broadcast before location mode change.

When location mode is about to change in Settings app, send
MODE_CHANGING broadcast.

Fixes: 28057031
Test: manual
Test: robotests
Change-Id: I430941915daedf13e7b5d22dc8a6e37729d95b75

6 years agoMerge "Fix failure of ZenModeAutomaticRulesPreferenceControllerTest"
Beverly Tai [Thu, 7 Dec 2017 21:26:10 +0000 (21:26 +0000)]
Merge "Fix failure of ZenModeAutomaticRulesPreferenceControllerTest"

6 years agoUpdate the way OMS records details about overlays
Adam Lesinski [Tue, 14 Nov 2017 19:10:08 +0000 (11:10 -0800)]
Update the way OMS records details about overlays

Use newly added getter methods instead of relying on internal state.

Bug: 69383160
Test: builds and unit test passes
Change-Id: Ic09ae1086c7afa039b5df11e4c8c968125784586

6 years agoMerge "Fix ZenModeScheduleRuleSettingsTest null pointer"
Beverly Tai [Thu, 7 Dec 2017 17:48:17 +0000 (17:48 +0000)]
Merge "Fix ZenModeScheduleRuleSettingsTest null pointer"

6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master" am: cb1056f9b4 -s ours
Xin Li [Thu, 7 Dec 2017 15:23:18 +0000 (15:23 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master" am: cb1056f9b4  -s ours
am: 4f83509810

Change-Id: I72dd8e97a660beaca9343cea99ef117a202fdf35

6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master"
Xin Li [Thu, 7 Dec 2017 15:17:25 +0000 (15:17 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master"
am: cb1056f9b4  -s ours

Change-Id: Iba281b420566a85ffebf98941dbb5e456b724362

6 years agoFix ZenModeScheduleRuleSettingsTest null pointer
Beverly [Thu, 7 Dec 2017 15:04:20 +0000 (10:04 -0500)]
Fix ZenModeScheduleRuleSettingsTest null pointer

Test: make ROBOTEST_FILTER=ZenModeScheduleRuleSettingsTest RunSettingsRoboTests -j40
Bug: 63077372
Change-Id: Ib843337e5867507eec1236fb4504035c151c348c

6 years agoFix failure of ZenModeAutomaticRulesPreferenceControllerTest
Jaekyun Seok [Thu, 7 Dec 2017 10:46:41 +0000 (19:46 +0900)]
Fix failure of ZenModeAutomaticRulesPreferenceControllerTest

Running ZenModeAutomaticRulesPreferenceControllerTest fails due to
missing field "DEFAULT_RULE_IDS".

"mDefaultRuleIds" should be used instead of it.

Bug: 63077372
Test: make \
    ROBOTEST_FILTER=ZenModeAutomaticRulesPreferenceControllerTest \
    RunSettingsRoboTests

Change-Id: Ieb4a4304a0404685e4a50eb3a5c863a0132ebf7d

6 years agoDO NOT MERGE: Merge Oreo MR1 into master am: 7b017d5a2f -s ours
Xin Li [Thu, 7 Dec 2017 07:05:14 +0000 (07:05 +0000)]
DO NOT MERGE: Merge Oreo MR1 into master am: 7b017d5a2f  -s ours
am: 2ba6a22abb

Change-Id: Id5dd78948fe46817fdb0c65b2c4dc8d6536f3a37

6 years agoDO NOT MERGE: Merge Oreo MR1 into master
Xin Li [Thu, 7 Dec 2017 04:36:38 +0000 (04:36 +0000)]
DO NOT MERGE: Merge Oreo MR1 into master
am: 7b017d5a2f  -s ours

Change-Id: I38ef4306a74fb9c1ca39903d5a74df5db0753290

6 years agoMerge "Guide user towards adoption when card is "empty"."
Jeff Sharkey [Thu, 7 Dec 2017 03:09:59 +0000 (03:09 +0000)]
Merge "Guide user towards adoption when card is "empty"."

6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master"
Xin Li [Wed, 6 Dec 2017 23:18:29 +0000 (23:18 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master"

6 years agoMerge "Default DND rules show at top and can't be deleted"
TreeHugger Robot [Wed, 6 Dec 2017 22:30:56 +0000 (22:30 +0000)]
Merge "Default DND rules show at top and can't be deleted"

6 years agoDO NOT MERGE: Merge Oreo MR1 into master
Xin Li [Wed, 6 Dec 2017 19:52:09 +0000 (11:52 -0800)]
DO NOT MERGE: Merge Oreo MR1 into master

Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: Iab7fd863c422780055277093cb9621197e09d969

6 years agoGuide user towards adoption when card is "empty".
Jeff Sharkey [Wed, 6 Dec 2017 22:22:18 +0000 (15:22 -0700)]
Guide user towards adoption when card is "empty".

When a newly inserted SD card is empty, we'd like to guide the user
towards adopting it.  Similarly, if the card contains personal media
like photos, we'd like to guide the user towards using it as portable
storage.

Do this by quickly hunting around on the card for files under various
well-known directories.  Special logic to ignore bundled "helper"
apps included from the SD card factory.

Test: bit FrameworksCoreTests:android.os.EnvironmentTest
Bug: 69128181
Exempt-From-Owner-Approval: I wrote the original code.
Change-Id: I48323156dd4c3bb125fc9e66e17cc0384fe9c30c

6 years agoMove codes generating html file from xml files to SettingsLib (1/2)
Jaekyun Seok [Thu, 30 Nov 2017 09:10:34 +0000 (18:10 +0900)]
Move codes generating html file from xml files to SettingsLib (1/2)

LicenseHtmlGeneratorFromXml, LicenseHtmlLoader and indirecly AsyncLoader
shoud be commonly used by Settings and TvSettings.

So this CL will move them to SettingsLib.

Test: building succeeded and tested on sailfish.
  make ROBOTEST_FILTER=SettingsLicenseActivityTest RunSettingsRoboTests

Change-Id: I12e9169b1d3d313a6c5da0d575a6526327268381

6 years agoDefault DND rules show at top and can't be deleted
Beverly [Tue, 5 Dec 2017 20:50:26 +0000 (15:50 -0500)]
Default DND rules show at top and can't be deleted

Test: make ROBOTEST_FILTER=ZenModeAutomaticRulesPreferenceControllerTest RunSettingsRoboTests -j40
Bug: 63077372
Change-Id: I43e7e2a70df5defe931a7ecedc6f946853dab476

6 years agoMerge "Revert "Update style names due to theme migration""
Antony Sargent [Wed, 6 Dec 2017 19:39:56 +0000 (19:39 +0000)]
Merge "Revert "Update style names due to theme migration""

6 years agoRevert "Update style names due to theme migration"
Antony Sargent [Wed, 6 Dec 2017 17:42:50 +0000 (17:42 +0000)]
Revert "Update style names due to theme migration"

This reverts commit cc16feb726e76adeb18ca0ea6e841154b05815ec.

Reason for revert: in b/70031670 we discovered some problems in
the support library side change (ag/3136307), and it will take a
little while to fix those problems so we need to temporarily
revert the support library changes to unblock a push of the
support library to google3.

Change-Id: I2086f434d5bcb518e474734b6d2b98a4b1c194d2

6 years agoMerge "Settings enable a11y shortcut framework features"
Phil Weaver [Wed, 6 Dec 2017 17:38:58 +0000 (17:38 +0000)]
Merge "Settings enable a11y shortcut framework features"

6 years agoMerge "Don't override expand count when page is opened from search"
TreeHugger Robot [Wed, 6 Dec 2017 17:03:40 +0000 (17:03 +0000)]
Merge "Don't override expand count when page is opened from search"

6 years agoDepend settings on slices in the support library
Matthew Fritze [Tue, 5 Dec 2017 18:46:47 +0000 (10:46 -0800)]
Depend settings on slices in the support library

Test: make
Bug: 67996923
Change-Id: Ifcb544424df27f3faa8872e6266de286cc706d59

6 years agoUpdates to automatic rule pages in Settings
Beverly [Mon, 20 Nov 2017 22:33:01 +0000 (17:33 -0500)]
Updates to automatic rule pages in Settings

- Re-added metrics for zen behavior preference controllers
- Dialogs in zen mode settings are rotate-friendly
- Automatic rules are refreshed on update state
- User-created (and default) automatic rules are always priority only and user cannot change this
- Automatic rules redesigned to have headers

Test: make ROBOTEST_FILTER=ZenModeAutomaticRulesPreferenceControllerTest RunSettingsRoboTests -j40
Bug: 63077372
Fixes: 68324465
Fixes: 69057696
Change-Id: I163acef2715dd4e60bfc08207f0e22352c4c0e28

6 years agoMerge "Rename SDK_VERSION_O to SDK_VERSION"
TreeHugger Robot [Wed, 6 Dec 2017 02:45:15 +0000 (02:45 +0000)]
Merge "Rename SDK_VERSION_O to SDK_VERSION"

6 years agoMerge changes from topic "screen_lock_settings_log"
TreeHugger Robot [Wed, 6 Dec 2017 02:18:03 +0000 (02:18 +0000)]
Merge changes from topic "screen_lock_settings_log"

* changes:
  Remove broken tests
  Log screen lock settings using its own constant

6 years agoRename SDK_VERSION_O to SDK_VERSION
jeffreyhuang [Tue, 5 Dec 2017 22:38:06 +0000 (14:38 -0800)]
Rename SDK_VERSION_O to SDK_VERSION

Test: make RunSettingsRoboTests -j40
Change-Id: I6715062d8addadda441e32809db1af55f15e3a90

6 years agoMerge "Fix broken test in sdk 26"
TreeHugger Robot [Wed, 6 Dec 2017 00:22:06 +0000 (00:22 +0000)]
Merge "Fix broken test in sdk 26"

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 23:31:00 +0000 (23:31 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85 am: acacd658f1 am: db6e747ab9 am: 26e5f828f7 am: fe20f69e3f am: 51950965e9
am: 5f4e32ae5f

Change-Id: Ie2d2b7d7479fcc2148476ff7a122c8f17a4d1f56

6 years agoDon't override expand count when page is opened from search
Fan Zhang [Tue, 5 Dec 2017 23:29:42 +0000 (15:29 -0800)]
Don't override expand count when page is opened from search

Change-Id: Ie1afcbc5f87793a4e07ec851f7c1cd205e9d67d2
Fixes: 70235975
Test: robotests

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 23:23:05 +0000 (23:23 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85 am: acacd658f1 am: db6e747ab9 am: 26e5f828f7 am: fe20f69e3f
am: 51950965e9

Change-Id: I30014b81a3eb514caf030ea5efb72694f434e305

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 23:17:11 +0000 (23:17 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85 am: acacd658f1 am: db6e747ab9 am: 26e5f828f7
am: fe20f69e3f

Change-Id: I1d1eb74920d9b191bb7f0365620d0dd1d372b923

6 years agoSettings enable a11y shortcut framework features
Phil Weaver [Sat, 2 Dec 2017 02:12:44 +0000 (18:12 -0800)]
Settings enable a11y shortcut framework features

Bug: 34621067
Test: Settings->Accessibility->Volume key shortcut
dialog now shows color inversion and color correction,
and selecting them works.
Change-Id: If7b4f55bd39fbd4c00b1ad95c6568a77e23c4e7e

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 23:10:05 +0000 (23:10 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85 am: acacd658f1 am: db6e747ab9
am: 26e5f828f7

Change-Id: Ia88d8014f221c5079ff33f9a10e58c2eed7b329a

6 years agoFix broken test in sdk 26
jeffreyhuang [Tue, 5 Dec 2017 22:08:13 +0000 (14:08 -0800)]
Fix broken test in sdk 26

 - Create a new shadow because ImsManager is no longer hidden in sdk 26

Test: make RunSettingsRoboTests -j40
Change-Id: I9f21bd3a9e0c08d1f2302dcff8fe2f6ebb256de2

6 years agoMerge "Add feature flag for battery settings page."
TreeHugger Robot [Tue, 5 Dec 2017 22:53:42 +0000 (22:53 +0000)]
Merge "Add feature flag for battery settings page."

6 years agoMerge "Add XML attribute to toggle on/off LocationModePreferenceController."
TreeHugger Robot [Tue, 5 Dec 2017 22:53:21 +0000 (22:53 +0000)]
Merge "Add XML attribute to toggle on/off LocationModePreferenceController."

6 years agoRemove broken tests
Fan Zhang [Tue, 5 Dec 2017 22:36:47 +0000 (14:36 -0800)]
Remove broken tests

The test case is broken due to NoSuchField error from robolectric. Since
the code its testing is being deprecated, test can be removed to keep
build green.

Test: robotests
Change-Id: I22f8ea58fceeb85940447f70b10add877344ba05

6 years agoLog screen lock settings using its own constant
Fan Zhang [Tue, 5 Dec 2017 21:46:56 +0000 (13:46 -0800)]
Log screen lock settings using its own constant

Bug: 32953042
Test: manual
Change-Id: Ic72a2b0e7d2a176e03f5e1f39e09b09430268e64

6 years agoMerge "Catch a rare NPE due in SuggestionController"
TreeHugger Robot [Tue, 5 Dec 2017 21:40:04 +0000 (21:40 +0000)]
Merge "Catch a rare NPE due in SuggestionController"

6 years agoMerge "Added footers to zen mode settings"
TreeHugger Robot [Tue, 5 Dec 2017 21:34:36 +0000 (21:34 +0000)]
Merge "Added footers to zen mode settings"

6 years agoAdd feature flag for battery settings page.
jackqdyulei [Mon, 27 Nov 2017 21:49:19 +0000 (13:49 -0800)]
Add feature flag for battery settings page.

Create PowerUsageSummaryLegacy and power_usage_summary_legacy, which
contains the old implementaion.

Bug: 69797586
Test: RunSettingsRoboTests
Change-Id: Icb9c25f06889462a6eedea48ae166043a6636848

6 years agoMerge "Update to support long version codes."
Dianne Hackborn [Tue, 5 Dec 2017 20:12:08 +0000 (20:12 +0000)]
Merge "Update to support long version codes."

6 years agoAdd XML attribute to toggle on/off LocationModePreferenceController.
Ben Lin [Fri, 1 Dec 2017 23:14:39 +0000 (15:14 -0800)]
Add XML attribute to toggle on/off LocationModePreferenceController.

Test: make RunSettingsRoboTests
ROBOTEST_FILTER=LocationModePreferenceControllerTest all pass.
Bug: 62378711

Change-Id: I0d054171b80b5677dba2a7a02fb076660ed5cc0d

6 years agoMerge "Move away from deprecated FakeFeatureFactory.setupForTest()"
TreeHugger Robot [Tue, 5 Dec 2017 19:50:15 +0000 (19:50 +0000)]
Merge "Move away from deprecated FakeFeatureFactory.setupForTest()"

6 years agoAdded footers to zen mode settings
Beverly [Fri, 17 Nov 2017 21:29:30 +0000 (16:29 -0500)]
Added footers to zen mode settings

ZenModeSettings Footer displays when DND will end
ZenModeBehaviorSettings Footer describes why dnd behavior cannot be changed when
in alarms only or total silence mode

Test: make RunSettingsRoboTests -j40
Bug: 63077372
Change-Id: Iefbb3995da4af2b210c8e0c3c3a798d3c613e275

6 years agoCatch a rare NPE due in SuggestionController
Fan Zhang [Tue, 5 Dec 2017 18:36:08 +0000 (10:36 -0800)]
Catch a rare NPE due in SuggestionController

In monkey test, suggestion service can detach right before UI tries to query.

Change-Id: Ic2eeb81140f5b5d38688fbe92d20f68b9fa48c34
Fixes: 69979152
Test: monkey

6 years agoMerge "Display IMEI info when sim is removed"
Jeffrey Huang [Tue, 5 Dec 2017 18:34:27 +0000 (18:34 +0000)]
Merge "Display IMEI info when sim is removed"

6 years agoMerge "Default ICCID number to unavailable if no sim"
Jeffrey Huang [Tue, 5 Dec 2017 18:34:05 +0000 (18:34 +0000)]
Merge "Default ICCID number to unavailable if no sim"

6 years agoMove away from deprecated FakeFeatureFactory.setupForTest()
Fan Zhang [Mon, 4 Dec 2017 23:24:45 +0000 (15:24 -0800)]
Move away from deprecated FakeFeatureFactory.setupForTest()

Test: rerun
Change-Id: I896ba414315ddb1664c0499264f4992f0554ef98

6 years agoMerge "Hack to wait for both suggestion/category to load"
Fan Zhang [Tue, 5 Dec 2017 17:38:42 +0000 (17:38 +0000)]
Merge "Hack to wait for both suggestion/category to load"

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 17:36:29 +0000 (17:36 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85 am: acacd658f1
am: db6e747ab9

Change-Id: Ibf7cb8c3c7947dbc8cbf019ab32b872756ed7c63

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 17:32:41 +0000 (17:32 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407 am: 9867a3ef85
am: acacd658f1

Change-Id: If9851b0b24c020d3a10b197fc15b6777bd88401c

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846...
Antony Sargent [Tue, 5 Dec 2017 17:28:54 +0000 (17:28 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846 am: 9cf1fc73f1 am: 24f063a207 am: 3d7dbd6407
am: 9867a3ef85

Change-Id: Ic9195106304da657092f113817ec7ad86618a2b1