OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Update wi-fi hotspot min length of summary to 2" into pi-dev
Fan Zhang [Sat, 31 Mar 2018 00:45:49 +0000 (00:45 +0000)]
Merge "Update wi-fi hotspot min length of summary to 2" into pi-dev

6 years agoMerge "Improve Night Light suggestion criterion" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 00:35:38 +0000 (00:35 +0000)]
Merge "Improve Night Light suggestion criterion" into pi-dev

6 years agoMerge "Remove wrapper class for AutofillManager in Settings" into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 00:28:46 +0000 (00:28 +0000)]
Merge "Remove wrapper class for AutofillManager in Settings" into pi-dev

6 years agoMerge "Final (?!?!?!?!) Directory Access improvements." into pi-dev
TreeHugger Robot [Sat, 31 Mar 2018 00:21:36 +0000 (00:21 +0000)]
Merge "Final (?!?!?!?!) Directory Access improvements." into pi-dev

6 years agoMerge "Remove more wrappers" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 23:37:15 +0000 (23:37 +0000)]
Merge "Remove more wrappers" into pi-dev

6 years agoImprove Night Light suggestion criterion
Sean Stout [Fri, 2 Feb 2018 02:01:05 +0000 (18:01 -0800)]
Improve Night Light suggestion criterion

Night Light suggestion will now show even if the user is using Night
Light in manual mode. If the user has previously tapped or dismissed the
suggestion, the suggestion will not show again.

Bug: 68938869
Test: make ROBOTEST_FILTER=\
"(NightDisplayPreferenceControllerTest|SuggestionFeatureProviderImplTest)" \
RunSettingsRoboTests

Change-Id: Iea838df043d75dfa73a1a383275dc42956374113

6 years agoMerge "Update add network dialog to not make networks hidden by default" into pi-dev
Salvador Martinez [Fri, 30 Mar 2018 22:22:59 +0000 (22:22 +0000)]
Merge "Update add network dialog to not make networks hidden by default" into pi-dev

6 years agoRemove wrapper class for AutofillManager in Settings
Fan Zhang [Fri, 30 Mar 2018 21:33:55 +0000 (14:33 -0700)]
Remove wrapper class for AutofillManager in Settings

Robolectric now supports new system services. So we no longer need any
wrapper class.

Bug: 76167422
Test: robotests
Change-Id: Ic54b95f747bea933bacec299b00a29f3cc4f7bb5

6 years agoRemove more wrappers
Fan Zhang [Fri, 30 Mar 2018 18:33:08 +0000 (11:33 -0700)]
Remove more wrappers

Bug: 76167422
Test: make RunSettingsRoboTests -j40
Change-Id: I0dc42c483ae92d508dec94e42573b55ced0e4bb0

6 years agoMerge "Make metered wifi controller resilient to null config" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:50:25 +0000 (20:50 +0000)]
Merge "Make metered wifi controller resilient to null config" into pi-dev

6 years agoMerge "Polish the About Phone page." into pi-dev
Daniel Nishi [Fri, 30 Mar 2018 20:24:58 +0000 (20:24 +0000)]
Merge "Polish the About Phone page." into pi-dev

6 years agoMerge "Remove the obsolete bluetooth code" into pi-dev
Lei Yu [Fri, 30 Mar 2018 20:24:01 +0000 (20:24 +0000)]
Merge "Remove the obsolete bluetooth code" into pi-dev

6 years agoMerge "Remove networkScorer wrapper" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:16:06 +0000 (20:16 +0000)]
Merge "Remove networkScorer wrapper" into pi-dev

6 years agoFinal (?!?!?!?!) Directory Access improvements.
Felipe Leme [Fri, 30 Mar 2018 17:34:23 +0000 (10:34 -0700)]
Final (?!?!?!?!) Directory Access improvements.

- Hide children items when parent is granted access (and vice versa).
- Added dividers in between volumes.

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted

Bug: 72055774

Change-Id: Ie4ad117d1f8a53bf7dbf7747e768a301b0d03604

6 years agoMerge "Update the battery saver summary" into pi-dev
Lei Yu [Fri, 30 Mar 2018 20:01:50 +0000 (20:01 +0000)]
Merge "Update the battery saver summary" into pi-dev

6 years agoMerge "Refine the update process of battery tip" into pi-dev
Lei Yu [Fri, 30 Mar 2018 19:56:46 +0000 (19:56 +0000)]
Merge "Refine the update process of battery tip" into pi-dev

6 years agoMerge "Update battery strings" into pi-dev
Lei Yu [Fri, 30 Mar 2018 19:12:41 +0000 (19:12 +0000)]
Merge "Update battery strings" into pi-dev

6 years agoMerge "Remove dead code in time zone picker" into pi-dev
Victor Chang [Fri, 30 Mar 2018 18:35:52 +0000 (18:35 +0000)]
Merge "Remove dead code in time zone picker" into pi-dev

6 years agoRemove the obsolete bluetooth code
Lei Yu [Thu, 29 Mar 2018 17:54:22 +0000 (10:54 -0700)]
Remove the obsolete bluetooth code

Also update the shortcut:
1. Change the name to "Devices"
2. Change it point to "Connected device" page

Bug: 74806595
Fixes: 69926683
Test: robo test still pass

Change-Id: Ic57756fc955dc622cc22d0be64f02b5ae07a2915

6 years agoRemove networkScorer wrapper
Fan Zhang [Fri, 30 Mar 2018 00:00:39 +0000 (17:00 -0700)]
Remove networkScorer wrapper

Also modified NetworkScorerPickerPreferenceController to register itself
in xml directily

Bug: 76167422
Test: robotests
Change-Id: I4a216b5e6845aecd6aaeed0ed9b3e06c9e0fc590

6 years agoMerge "Modify AddDevicePreferenceController's constructor" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 17:23:51 +0000 (17:23 +0000)]
Merge "Modify AddDevicePreferenceController's constructor" into pi-dev

6 years agoMerge "Add apn data structure" into pi-dev
Pengquan Meng [Fri, 30 Mar 2018 17:00:35 +0000 (17:00 +0000)]
Merge "Add apn data structure" into pi-dev

6 years agoMerge "Remove password blacklist check" into pi-dev
Rubin Xu [Fri, 30 Mar 2018 13:38:31 +0000 (13:38 +0000)]
Merge "Remove password blacklist check" into pi-dev

6 years agoMerge "Dnd 'blink light' option only if phone has LED" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 13:16:25 +0000 (13:16 +0000)]
Merge "Dnd 'blink light' option only if phone has LED" into pi-dev

6 years agoTop line should show "Primary data" for users with > 1 plans.
Andreas Terzis [Fri, 30 Mar 2018 01:10:35 +0000 (18:10 -0700)]
Top line should show "Primary data" for users with > 1 plans.

When the platform receives data plan information and the
user has more than one data plans, the top line under
Settings -> Network & Internet -> Data Usage should read
"Primary data" instead of "Current data".

Bug: 77295381

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Ia9d9d04919c28b163979c70f91eb7d72cdebcb89

6 years agoUpdate add network dialog to not make networks hidden by default
Salvador Martinez [Fri, 30 Mar 2018 04:29:30 +0000 (21:29 -0700)]
Update add network dialog to not make networks hidden by default

This CL updates the add network dialog to use the provided value
for the hidden state (from androids perspective) of the network. The
default selected value will always be not hidden and if the user
selects to mark it as hidden a warning will appear to inform the
user of the privacy implications.

Test: Robotests
Bug: 29003359
Change-Id: Ifd4511e4d0af6eb01f4e951c22a91fc560393e8d

6 years agoModify AddDevicePreferenceController's constructor
Jyun LuoLai [Fri, 30 Mar 2018 02:01:39 +0000 (10:01 +0800)]
Modify AddDevicePreferenceController's constructor

For xml type controller, implements the constructor (Context, String)
would be better

Bug: 73960246
Test: Manual test & make RunSettingsRoboTests
Change-Id: I872a663947f14de5e83c596655b2ffb75f37f057

6 years agoSupport AOD in the Universal Settings API
Dieter Hsu [Wed, 21 Mar 2018 10:47:43 +0000 (18:47 +0800)]
Support AOD in the Universal Settings API

Bug: 67997452
Test: make -j RunSettingsRoboTests
Change-Id: I609ac74f70bf040bd9033f421b4bb7c02bf33440

6 years agoUpdate wi-fi hotspot min length of summary to 2
chenedward [Tue, 27 Mar 2018 02:59:54 +0000 (10:59 +0800)]
Update wi-fi hotspot min length of summary to 2

Update wi-fi hotspot min length of summary to 2 to through preference api

Bug: 72746916
Test: make -j RunSettingsRoboTests
Change-Id: I8942df156a7f6c3ec8b6112014f72a3e56fdec4b

6 years agoMerge "Update channel DND setting" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 04:03:28 +0000 (04:03 +0000)]
Merge "Update channel DND setting" into pi-dev

6 years agoMerge "Remove wrapper for EUICCManager" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:21:37 +0000 (03:21 +0000)]
Merge "Remove wrapper for EUICCManager" into pi-dev

6 years agoMerge "Register most app info related controllers in xml" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:17:45 +0000 (03:17 +0000)]
Merge "Register most app info related controllers in xml" into pi-dev

6 years agoSupport Screen Rotate in the Universal Settings API
LexHuang [Fri, 23 Mar 2018 09:51:54 +0000 (17:51 +0800)]
Support Screen Rotate in the Universal Settings API

Change extend from AbstractPreferenceController to TogglePreferenceControllear

Bug: 67997439
Test: make RunSettingsRoboTests
Change-Id: I86e59d00384fb131f2f2b92186e8536324db2e1b

6 years agoMerge "Increase touch target for suggestion close button." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 01:55:54 +0000 (01:55 +0000)]
Merge "Increase touch target for suggestion close button." into pi-dev

6 years agoAdd apn data structure
Pengquan Meng [Thu, 29 Mar 2018 18:27:22 +0000 (11:27 -0700)]
Add apn data structure

This add a data structure to store the apn data locally.

Test: unit test
Bug: 73745458
Bug: 67327863
Merged-In: Iae56583ab1c99f57154461c71a10b74db87ab1bd
Change-Id: Iae56583ab1c99f57154461c71a10b74db87ab1bd
(cherry picked from commit ee25956f573efcbbb6e1968ff4cdfe24c65e1bb4)

6 years agoRefine the update process of battery tip
Lei Yu [Mon, 12 Mar 2018 23:13:35 +0000 (16:13 -0700)]
Refine the update process of battery tip

1. When device is rotated, don't update the battery tip
2. When user go back to battery main page from other page, start
battery tip update process
3. In RestrictAppTip, if there aren't restricted apps anymore,
hide the tip.

Bug: 74467010
Test: RunSettingsRobotests

Change-Id: I300bcc5b487d587f6618e340ac074fe416dcc1b2

6 years agoRegister most app info related controllers in xml
Fan Zhang [Thu, 29 Mar 2018 22:45:49 +0000 (15:45 -0700)]
Register most app info related controllers in xml

Bug: 77216595
Test: robotests
Change-Id: I79afa38820b7518d8b3112148802797ebcf6d184

6 years agoRemove wrapper for EUICCManager
Fan Zhang [Fri, 30 Mar 2018 00:52:04 +0000 (17:52 -0700)]
Remove wrapper for EUICCManager

Bug: 76167422
Test: robotests
Change-Id: I2a6687ffab780493fca7b2146cf73cbc7f634081

6 years agoIncrease touch target for suggestion close button.
Doris Ling [Thu, 29 Mar 2018 21:55:33 +0000 (14:55 -0700)]
Increase touch target for suggestion close button.

- wrap the close button icon view in a bigger layout to increase the
overall touch area.

Fixes: 74220173
Test: manual

Change-Id: I45beadf3cfcc6ed1a8a16e6dcb9b8452e1edd78e

6 years agoMerge changes I0fde4f80,Iea1cff48 into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:49:22 +0000 (23:49 +0000)]
Merge changes I0fde4f80,Iea1cff48 into pi-dev

* changes:
  Update TimezoneInfoPrefController to register in xml
  Make FontSizePreferenceController slice compatible.

6 years agoMerge "Revert "Support AOD in the Universal Settings API"" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:10:45 +0000 (23:10 +0000)]
Merge "Revert "Support AOD in the Universal Settings API"" into pi-dev

6 years agoMerge "Fix visibility issue with fingerprint icon." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:07:24 +0000 (23:07 +0000)]
Merge "Fix visibility issue with fingerprint icon." into pi-dev

6 years agoMerge "Fix 'show badge' for pre O apps" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:06:26 +0000 (23:06 +0000)]
Merge "Fix 'show badge' for pre O apps" into pi-dev

6 years agoDnd 'blink light' option only if phone has LED
Beverly [Thu, 29 Mar 2018 22:49:07 +0000 (18:49 -0400)]
Dnd 'blink light' option only if phone has LED

Change-Id: Ifbc75128a9434f83839cd6b60405a03f88f4b3d3
Fixes: 77271775
Test: make ROBOTEST_FILTER=ZenModeVisEffectPreferenceControllerTest RunSettingsRoboTests -j40

6 years agoMake metered wifi controller resilient to null config
Salvador Martinez [Thu, 29 Mar 2018 22:39:55 +0000 (15:39 -0700)]
Make metered wifi controller resilient to null config

Apparently the wifi config can sometimes come back as null
initially when the device auto-connects to a network. This CL simply
makes the controller resilient to that so that it doesn't crash the
app.

Test: robotests
Bug: 73076869
Change-Id: I99098f35df9cd902f5f244a872cce9b71c17c224

6 years agoMerge "Explicity receive sticky usb intent" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:51:55 +0000 (21:51 +0000)]
Merge "Explicity receive sticky usb intent" into pi-dev

6 years agoUpdate TimezoneInfoPrefController to register in xml
Fan Zhang [Thu, 29 Mar 2018 21:29:54 +0000 (14:29 -0700)]
Update TimezoneInfoPrefController to register in xml

Test: robotest
Bug: 77216595
Change-Id: I0fde4f8058a8be156dddb620a756254cd85f6a9f

6 years agoUpdate channel DND setting
Julia Reynolds [Thu, 29 Mar 2018 15:16:36 +0000 (11:16 -0400)]
Update channel DND setting

... to reflect DND changes elsewhere in the system. Update the summary
and make the setting always available.

Test: make -j RunSettingsRoboTests
Change-Id: Ia51c349d863e1470e8a043293fa60f22632fa2df
Fixes: 76137346

6 years agoFix 'show badge' for pre O apps
Julia Reynolds [Thu, 29 Mar 2018 19:54:16 +0000 (15:54 -0400)]
Fix 'show badge' for pre O apps

Test: make -j RunSettingsRoboTests
Change-Id: I20f6b38986afde0ca781329ffc24326601650a1f
Fixes: 69437269

6 years agoRevert "Support AOD in the Universal Settings API"
Fan Zhang [Thu, 29 Mar 2018 20:20:08 +0000 (20:20 +0000)]
Revert "Support AOD in the Universal Settings API"

This reverts commit 537c2cfc2c21ffee691b11864a26bd84f043916a.

Fixes: 77278897

Change-Id: I7a5ff34bf79b87f6a7be50c2e8f421bfc4a22195

6 years agoMerge "Require unlocked work profile to change notification settings" into pi-dev
Eran Messeri [Thu, 29 Mar 2018 20:17:18 +0000 (20:17 +0000)]
Merge "Require unlocked work profile to change notification settings" into pi-dev

6 years agoFix visibility issue with fingerprint icon.
Doris Ling [Thu, 29 Mar 2018 20:08:09 +0000 (13:08 -0700)]
Fix visibility issue with fingerprint icon.

- set icon tint color to control normal. The icon fill color is white,
and without the tint color set, it is invisible on a white background.

Change-Id: I9cda0e9105701230256620bd4ea904c96d7bc166
Fixes: 77151365
Test: visual

6 years agoMerge "Fix ZonePickerSettingsTest due to string change" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:01:26 +0000 (20:01 +0000)]
Merge "Fix ZonePickerSettingsTest due to string change" into pi-dev

6 years agoMerge "Report unavailable data usage." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 19:57:44 +0000 (19:57 +0000)]
Merge "Report unavailable data usage." into pi-dev

6 years agoExplicity receive sticky usb intent
Jerry Zhang [Wed, 28 Mar 2018 23:50:46 +0000 (16:50 -0700)]
Explicity receive sticky usb intent

Sticky intents are both returned by onReceive
and broadcast to the receiver. In some cases
though, the receiver could be unregistered
so quickly that it has no time to receive
it. When this happens the screen is not
refreshed, so explicity handle the intent
to ensure a refresh.

Fixes: 74255559
Test: screen refreshed property in multi-window
Change-Id: I2480dc35e28f98561ffed4b557f4bdaf83a73e9c

6 years agoPolish the About Phone page.
Daniel Nishi [Thu, 29 Mar 2018 19:54:46 +0000 (12:54 -0700)]
Polish the About Phone page.

* Move the device name from the 3rd position to the 1st.
* Remove the ripple effect from phone number, IP address, MAC address,
and Bluetooth addresses.

Bug: 77220996
Test: Manual
Change-Id: I009847e751082df6b85d840d01c4c8ae7abd8e10

6 years agoMake FontSizePreferenceController slice compatible.
Fan Zhang [Thu, 29 Mar 2018 19:07:02 +0000 (12:07 -0700)]
Make FontSizePreferenceController slice compatible.

Bug: 67997826
Test: robotests
Change-Id: Iea1cff48f39e1433abea285309376876e8356c07

6 years agoRemove dead code in time zone picker
Victor Chang [Thu, 29 Mar 2018 17:37:40 +0000 (18:37 +0100)]
Remove dead code in time zone picker

The codes are unused due to the UX changes in b/73952488

Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Bug: 72376227
Change-Id: I9562e97fe13a3c00f8c142f30af7ca350af10757

6 years agoFix ZonePickerSettingsTest due to string change
Victor Chang [Thu, 29 Mar 2018 17:57:22 +0000 (18:57 +0100)]
Fix ZonePickerSettingsTest due to string change

The change with id I1fb3e2abf80da3cb53cfbc3363bbe46e40a6ac22 broke the
test

Bug: 76209571
Test: atest SettingsUITests:ZonePickerSettingsTest
Change-Id: I6676e8669e1f396c9588e3096b62cc6aedcc38a9

6 years agoMerge "Add some debug logging" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 17:59:40 +0000 (17:59 +0000)]
Merge "Add some debug logging" into pi-dev

6 years agoReport unavailable data usage.
Doris Ling [Thu, 29 Mar 2018 00:14:23 +0000 (17:14 -0700)]
Report unavailable data usage.

- when showing the data usage graph, if the first data point is equal to
the first available data, insert a 0 usage point on the first day of
available data, so that it will show a flat line for the days that do
not have available data instead of showing a non-zero slope.

Change-Id: Ibf305e292a65ab3310ea12efbb575e3a7e1b6012
Fixes: 76155147
Test: make RunSettingsRoboTests

6 years agoMerge "Don't allow a zero-length device name to work." into pi-dev
Daniel Nishi [Thu, 29 Mar 2018 17:33:27 +0000 (17:33 +0000)]
Merge "Don't allow a zero-length device name to work." into pi-dev

6 years agoMerge "Better public volumes handling on secondary users." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 17:13:42 +0000 (17:13 +0000)]
Merge "Better public volumes handling on secondary users." into pi-dev

6 years agoMerge "Check time-spent-in-app intent must come from system app." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:55:30 +0000 (16:55 +0000)]
Merge "Check time-spent-in-app intent must come from system app." into pi-dev

6 years agoMerge "Disallow_airplane_mode should not disable mobile network." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:45:43 +0000 (16:45 +0000)]
Merge "Disallow_airplane_mode should not disable mobile network." into pi-dev

6 years agoRemove password blacklist check
Rubin Xu [Thu, 29 Mar 2018 11:03:59 +0000 (12:03 +0100)]
Remove password blacklist check

Bug: 73750934
Test: compiles
Change-Id: Ic6c40255333d171dc55df479dd6c0004371551b7

6 years agoMerge "Settings should use Oxford comma" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 15:41:21 +0000 (15:41 +0000)]
Merge "Settings should use Oxford comma" into pi-dev

6 years agoRequire unlocked work profile to change notification settings
Eran Messeri [Tue, 27 Mar 2018 18:13:47 +0000 (19:13 +0100)]
Require unlocked work profile to change notification settings

Require that the work profile be started and unlocked before the user
can change the notification settings for the work profile.

That prevents leaking of notifications from the work profile, which
could happen when the user set the work profile notifications to show
even if the profile was unlocked (an example scenario is a family member
of the user using the device while the work profile is locked).

Test: Manually with TestDPC
Bug: 75252682
Change-Id: I300d001b7439c0a1d0130d7dbc9ec4c2430be227

6 years agoDisallow_airplane_mode should not disable mobile network.
yuemingw [Tue, 27 Mar 2018 15:56:24 +0000 (16:56 +0100)]
Disallow_airplane_mode should not disable mobile network.

Found mobile_network_settings preference is dependent on toggle_airplane
preference so once Disallow_airplane_mode is turned on,  toggle_airplane
preference will be set disabled, and mobile_network_settings preference
is also set disabled because of the dependence. Can fix this bug moving
the dependance and let MobileNetworkPreferenceController listen to
Settings.Global.AIRPLANE_MODE_ON.

Bug: 76468718
Test: manually but TestDpc
Change-Id: I137938766557d7bc5ae0795bc3359a6bfbae17e3

6 years agoSettings should use Oxford comma
Beverly [Wed, 28 Mar 2018 20:53:52 +0000 (16:53 -0400)]
Settings should use Oxford comma

Test: manual
Change-Id: Ie4edd64d423ce96ce097e91f9f5a31bb4339774c
Fixes: 77230158

6 years agoMerge "Confirm parent user's credential when setting lock for profile" into pi-dev
Rubin Xu [Thu, 29 Mar 2018 08:35:46 +0000 (08:35 +0000)]
Merge "Confirm parent user's credential when setting lock for profile" into pi-dev

6 years agoMerge "Reduce size of 'GB' and '%' in storage settings." into pi-dev
Jane Chiang [Thu, 29 Mar 2018 03:20:35 +0000 (03:20 +0000)]
Merge "Reduce size of 'GB' and '%' in storage settings." into pi-dev

6 years agoReduce size of 'GB' and '%' in storage settings.
Jane Chiang [Fri, 23 Mar 2018 06:27:28 +0000 (14:27 +0800)]
Reduce size of 'GB' and '%' in storage settings.

Test: Manual
Fixes: 62548317
Change-Id: I5ff8ff8c463c2718e48bf04731924922bc0ecc9c

6 years agoMerge changes I236b1124,Iad16b06e into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 02:48:21 +0000 (02:48 +0000)]
Merge changes I236b1124,Iad16b06e into pi-dev

* changes:
  Add conformance test for preference controller constructor
  Remove duplicate framework classes/robotest compile stub

6 years agoMerge "Update toggle text for Data Saver" into pi-dev
Andrew Chiang [Thu, 29 Mar 2018 02:44:04 +0000 (02:44 +0000)]
Merge "Update toggle text for Data Saver" into pi-dev

6 years agoMerge "Fix a NPE when getting ZenMode in RingerMutedCondition." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 01:23:41 +0000 (01:23 +0000)]
Merge "Fix a NPE when getting ZenMode in RingerMutedCondition." into pi-dev

6 years agoCheck time-spent-in-app intent must come from system app.
Fan Zhang [Thu, 29 Mar 2018 01:02:40 +0000 (18:02 -0700)]
Check time-spent-in-app intent must come from system app.

Change-Id: Ie73aacdaf919b336d99a296328c2fbb4f75036b0
Fixes: 74580195
Test: robotests

6 years agoMerge "Apply entity header effect to storage summary screen" into pi-dev
Scott Nien [Thu, 29 Mar 2018 01:07:46 +0000 (01:07 +0000)]
Merge "Apply entity header effect to storage summary screen" into pi-dev

6 years agoAdd conformance test for preference controller constructor
Fan Zhang [Thu, 29 Mar 2018 00:29:26 +0000 (17:29 -0700)]
Add conformance test for preference controller constructor

BasePreferenceController's constructor must be in a certain format in
order to work with search and slice. This test enforces that.

Change-Id: I236b11248b09ce71f052c449d39e994c84981a06
Fixes: 77216595
Test: robotests

6 years agoRemove duplicate framework classes/robotest compile stub
Fan Zhang [Wed, 28 Mar 2018 23:07:55 +0000 (16:07 -0700)]
Remove duplicate framework classes/robotest compile stub

Bug: 76167422
Test: robotests
Change-Id: Iad16b06e54bd7290fd363c3abebdb8c66434c0e2

6 years agoMerge "Support AOD in the Universal Settings API" into pi-dev
Dieter Hsu [Thu, 29 Mar 2018 00:13:56 +0000 (00:13 +0000)]
Merge "Support AOD in the Universal Settings API" into pi-dev

6 years agoFix a NPE when getting ZenMode in RingerMutedCondition.
Fan Zhang [Wed, 28 Mar 2018 23:26:21 +0000 (16:26 -0700)]
Fix a NPE when getting ZenMode in RingerMutedCondition.

Change-Id: If9a8b6f4a2d5e9b45402240d8e1401cef7dd001c
Fixes: 77217038
Test: robotest

6 years agoMerge "A18y: Don't double announce 'searching for printers.'" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:02:04 +0000 (23:02 +0000)]
Merge "A18y: Don't double announce 'searching for printers.'" into pi-dev

6 years agoDon't allow a zero-length device name to work.
Daniel Nishi [Mon, 12 Mar 2018 23:44:27 +0000 (16:44 -0700)]
Don't allow a zero-length device name to work.

Technically, if a device has a zero-length device name, the bug will
resurface. The EditText validator doesn't trigger on opening -- only
when the text is edited. A zero-length device name is flagged as being
invalid, but that fails if the text box starts empty.

By pre-filling it with the previous device name, we can ensure that, as
long as a zero-length device name is never set, it can never be set.

Change-Id: I0d28aaae09f99b7d697b753835ba39c0c06644a1
Fixes: 73127912
Test: Robotest
(cherry picked from commit b2165509445c0c63b1813132d8b92b119bd44d57)

6 years agoMerge "Remove duplicate classes from test/robotests" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 22:40:45 +0000 (22:40 +0000)]
Merge "Remove duplicate classes from test/robotests" into pi-dev

6 years agoAdd some debug logging
Fan Zhang [Tue, 27 Mar 2018 21:14:13 +0000 (14:14 -0700)]
Add some debug logging

- Increase logging in SettingsActivity's onCreate and launch fragment
  flow.
- Log class name when enable/disable tiles

Bug: 75030092
Test: logcat
Change-Id: Ieb00228562a79c12aba2198021ece505bc371b58

6 years agoUpdate the battery saver summary
Lei Yu [Wed, 28 Mar 2018 22:32:28 +0000 (15:32 -0700)]
Update the battery saver summary

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: If3866e39c1ab3c9de74b7cabcf8fe6657ca37791

6 years agoBetter public volumes handling on secondary users.
Daniel Nishi [Wed, 28 Mar 2018 22:31:17 +0000 (15:31 -0700)]
Better public volumes handling on secondary users.

Public volumes are only mounted for a single user at a time, so only
show notifications and launch Intents for the relevant user.

Test: RunSettingsRobotest
Bug: 73642796
Change-Id: Ic386ec03598ab8968b75320be7844b6ac7f1387b

6 years agoMerge "Move IMS registration state to SIM status screen" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 22:24:30 +0000 (22:24 +0000)]
Merge "Move IMS registration state to SIM status screen" into pi-dev

6 years agoUpdate battery strings
Lei Yu [Wed, 28 Mar 2018 20:32:42 +0000 (13:32 -0700)]
Update battery strings

1. restriction strings in App Info page
2. restriction strings in Dialog
3. restriction summary

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: I35f45f2923cda6380c4498ebb9e0923e6f92e46a

6 years agoMerge "Fix incorrect GMT offset in display" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 21:05:15 +0000 (21:05 +0000)]
Merge "Fix incorrect GMT offset in display" into pi-dev

6 years agoA18y: Don't double announce 'searching for printers.'
Philip P. Moltmann [Wed, 28 Mar 2018 18:03:30 +0000 (11:03 -0700)]
A18y: Don't double announce 'searching for printers.'

Change-Id: I0c0f904aae8345e725a34d38ecf1eb45c3c11670
Fixes: 67323891
Test: Navigated to screen with talkback

6 years agoMerge "Entity header: When screen scrolls, there should be shadow under the header...
TreeHugger Robot [Wed, 28 Mar 2018 20:12:46 +0000 (20:12 +0000)]
Merge "Entity header: When screen scrolls, there should be shadow under the header." into pi-dev

6 years agoMove IMS registration state to SIM status screen
Doris Ling [Tue, 27 Mar 2018 22:22:42 +0000 (15:22 -0700)]
Move IMS registration state to SIM status screen

Manually merge change I3aff03ebdc9dc165db66c5007a2fa987ab8cd822 due
to merge conflicts.

To show IMS registration state for each SIM, move the preference of
IMS registration state from Status screen to SIM Status screen.

Fixes: 66063299
Test: manual - Checked that the IMS registration state is displayed on
the SIM Status screen.
Test: make RunSettingsRoboTests

Change-Id: Ic0713c357085d94b59605c1b924e7b56a362e256

6 years agoMerge "Revert "Ignore broken test to unblock TreeHugger"" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 19:41:24 +0000 (19:41 +0000)]
Merge "Revert "Ignore broken test to unblock TreeHugger"" into pi-dev

6 years agoMerge "Fix battery saver setting default state" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 19:31:51 +0000 (19:31 +0000)]
Merge "Fix battery saver setting default state" into pi-dev

6 years agoMerge "Get anomaly info from StringArrayList" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 18:58:00 +0000 (18:58 +0000)]
Merge "Get anomaly info from StringArrayList" into pi-dev

6 years agoFix incorrect GMT offset in display
Victor Chang [Wed, 28 Mar 2018 18:50:06 +0000 (19:50 +0100)]
Fix incorrect GMT offset in display

- android.icu.impl.TimeZoneAdapter doesn't fully implement
java.util.TimeZone, e.g. does not override getOffset(long date).
TimeZoneAdapter isn't a public API in ICU/Android. It shouldn't be
used in the first place

Bug: 77223510
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Change-Id: Ic0d7794326948796dcc5cc0b268ef634a74803c4

6 years agoEntity header: When screen scrolls, there should be shadow under the header.
Jan Nordqvist [Fri, 23 Mar 2018 22:45:17 +0000 (15:45 -0700)]
Entity header: When screen scrolls, there should be shadow under the header.

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests

Change-Id: I5c1d9f463a57d48e258d67602fc4d1fbbdfaad60

6 years agoMerge "Add a header view to show the country in RegionZonePicker" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 17:49:36 +0000 (17:49 +0000)]
Merge "Add a header view to show the country in RegionZonePicker" into pi-dev