OSDN Git Service

android-x86/packages-apps-Settings.git
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
(cherry picked from commit ebf884384073e96754d6bea5ee6e611f293a65f5)

6 years agoSnap for 4496165 from 2f7fd8c59286dac5bae8b49bdb4df3c901fa9f6c to pi-release
android-build-team Robot [Mon, 11 Dec 2017 12:20:54 +0000 (12:20 +0000)]
Snap for 4496165 from 2f7fd8c59286dac5bae8b49bdb4df3c901fa9f6c to pi-release

Change-Id: I7d053a387f04c5ab536b44bb8337a6bba5d8e5a7

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 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 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 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 agoSnap for 4489599 from e677f49328b3b319316214af7abb7ab84c09aad6 to pi-release
android-build-team Robot [Thu, 7 Dec 2017 08:29:29 +0000 (08:29 +0000)]
Snap for 4489599 from e677f49328b3b319316214af7abb7ab84c09aad6 to pi-release

Change-Id: Iafc4a1036c6b050b2a6424fa3effb73ececbc6e3

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 agoSnap for 4486962 from 91fff3093da85f0441e281349322419476dec0e6 to pi-release
android-build-team Robot [Wed, 6 Dec 2017 08:30:52 +0000 (08:30 +0000)]
Snap for 4486962 from 91fff3093da85f0441e281349322419476dec0e6 to pi-release

Change-Id: I9b73a384d4a493eead40ef374edd80ae186454ac

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

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

Change-Id: Ifa4509bbabbb346ce581f17d33e3f48fc7014971

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

Change-Id: I44b42f37a638cda455bbeb3ab4bab5c02fc9c7d9

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846
Antony Sargent [Tue, 5 Dec 2017 17:21:14 +0000 (17:21 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3 am: eee62e1846
am: 9cf1fc73f1

Change-Id: I4906dc8f97cfcfeef7bfda0896b39c032ef26ec6

6 years agoReword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3
Antony Sargent [Tue, 5 Dec 2017 17:19:12 +0000 (17:19 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383 am: b2b401b5f3
am: eee62e1846

Change-Id: Ie6fff7cf9df6827a29c04473ed3a0f1332c08ff2

6 years agoReword bluetooth confirmation dialog am: e14d38a383
Antony Sargent [Tue, 5 Dec 2017 17:17:08 +0000 (17:17 +0000)]
Reword bluetooth confirmation dialog am: e14d38a383
am: b2b401b5f3

Change-Id: I21921d41d35a87a48ad627e9889e4d00219e912b

6 years agoReword bluetooth confirmation dialog
Antony Sargent [Tue, 5 Dec 2017 17:13:36 +0000 (17:13 +0000)]
Reword bluetooth confirmation dialog
am: e14d38a383

Change-Id: Ibb19504f6a74015a2a4d25d5c268db975da4ebb5

6 years agoSnap for 4484469 from 22c7164d56e3675a34d4f1ccfae85668184ffae6 to pi-release
android-build-team Robot [Tue, 5 Dec 2017 08:26:52 +0000 (08:26 +0000)]
Snap for 4484469 from 22c7164d56e3675a34d4f1ccfae85668184ffae6 to pi-release

Change-Id: I61c160efe059c05d2d74ecc5b551ce4b0a47104b

6 years agoMerge changes I9ef0979a,I241c5cea
TreeHugger Robot [Tue, 5 Dec 2017 01:55:26 +0000 (01:55 +0000)]
Merge changes I9ef0979a,I241c5cea

* changes:
  Move wifi test package to sdk 26
  Create new ShadowBidiFormatter

6 years agoMerge "Hide signal strength when told by carrier" am: 9afa720abe am: ed9508f3a6
Jordan Liu [Tue, 5 Dec 2017 00:56:27 +0000 (00:56 +0000)]
Merge "Hide signal strength when told by carrier" am: 9afa720abe am: ed9508f3a6
am: d2b04e92fe

Change-Id: Ie046e5290a3486f01f8cd41c61357b1dc7e418c0

6 years agoMerge "Hide signal strength when told by carrier" am: 9afa720abe
Jordan Liu [Tue, 5 Dec 2017 00:27:13 +0000 (00:27 +0000)]
Merge "Hide signal strength when told by carrier" am: 9afa720abe
am: ed9508f3a6

Change-Id: I43c22e7f6950adcf27a5b600a194927cbd06fb9b

6 years agoMove wifi test package to sdk 26
jeffreyhuang [Mon, 4 Dec 2017 17:56:37 +0000 (09:56 -0800)]
Move wifi test package to sdk 26

Test: make RunSettingsRoboTests -j40
Change-Id: I9ef0979a7c6c3647cedd48a2c6ab855928c1b57e

6 years agoCreate new ShadowBidiFormatter
jeffreyhuang [Mon, 4 Dec 2017 23:15:20 +0000 (15:15 -0800)]
Create new ShadowBidiFormatter

 - Use the new shadow to work around comparing spannable strings

Test: make RunSettingsRoboTests -j40
Change-Id: I241c5ceab98da2e57f6812a637e677f66fc01a8f

6 years agoMerge "Hide signal strength when told by carrier"
Jordan Liu [Mon, 4 Dec 2017 23:45:57 +0000 (23:45 +0000)]
Merge "Hide signal strength when told by carrier"
am: 9afa720abe

Change-Id: I64b6eece29d475d8fdbaf8f6d1fb2c62701fd6e4

6 years agoMerge "Disable ConnectedDeviceConnectedActivity"
Lei Yu [Mon, 4 Dec 2017 23:45:32 +0000 (23:45 +0000)]
Merge "Disable ConnectedDeviceConnectedActivity"

6 years agoMerge "Hide signal strength when told by carrier"
Jordan Liu [Mon, 4 Dec 2017 23:20:31 +0000 (23:20 +0000)]
Merge "Hide signal strength when told by carrier"

6 years agoHack to wait for both suggestion/category to load
Fan Zhang [Mon, 4 Dec 2017 22:31:30 +0000 (14:31 -0800)]
Hack to wait for both suggestion/category to load

- This is unfortunately necessary to avoid a jank when category
  load completes before suggestion load, in which case user has to
  manually scroll up to see the suggestions.
- We could technically just add scrollTo(0), but that causes the list
  scroll on its own within 0.5 second of settings start, and that's bad.

Change-Id: I8dc869a69a5bf11bbf7644b281cc1778dd1a90e8
Fixes: 69068691
Test: visual
Test: robotests

6 years agoDefault ICCID number to unavailable if no sim
jeffreyhuang [Mon, 4 Dec 2017 22:42:09 +0000 (14:42 -0800)]
Default ICCID number to unavailable if no sim

Test: Manual
Change-Id: I22c69b5c40578a43f5edf01487e41b14e08ec35b

6 years agoDisplay IMEI info when sim is removed
jeffreyhuang [Mon, 4 Dec 2017 22:33:58 +0000 (14:33 -0800)]
Display IMEI info when sim is removed

Change-Id: I9c6db4481e9b03c8984d350cd54722a3667b6c49
Fixes: 70165342
Test: make RunSettingsRoboTests -j40

6 years agoMerge "Remove proguard rules that are imported via aapt2"
Tony Mantler [Mon, 4 Dec 2017 22:30:54 +0000 (22:30 +0000)]
Merge "Remove proguard rules that are imported via aapt2"

6 years agoMerge changes from topic "advanced_bt_page"
TreeHugger Robot [Mon, 4 Dec 2017 22:11:00 +0000 (22:11 +0000)]
Merge changes from topic "advanced_bt_page"

* changes:
  Add preference Received files
  Add(copy) AdvancedConnectedDeviceDashboardFragment