OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Report unavailable data usage." into pi-dev
Doris Ling [Thu, 29 Mar 2018 20:14:04 +0000 (20:14 +0000)]
Merge "Report unavailable data usage." into pi-dev
am: a673f714c4

Change-Id: I473eac43583caaa94093fabdfb6b588de290e36c

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 agoMerge "Add some debug logging" into pi-dev
Fan Zhang [Thu, 29 Mar 2018 18:12:46 +0000 (18:12 +0000)]
Merge "Add some debug logging" into pi-dev
am: f3789adffd

Change-Id: Iee699c9c5861e40fafb04a6b6edf6f68daedcd0c

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 agoMerge "Don't allow a zero-length device name to work." into pi-dev
Daniel Nishi [Thu, 29 Mar 2018 17:55:11 +0000 (17:55 +0000)]
Merge "Don't allow a zero-length device name to work." into pi-dev
am: 6ff8bbeb4a

Change-Id: Ic9e67a1a03b5ae2ac79326770c779e969849146e

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 "Better public volumes handling on secondary users." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 17:45:08 +0000 (17:45 +0000)]
Merge "Better public volumes handling on secondary users." into pi-dev
am: bfc661ea3e

Change-Id: I6bca0f8eb74f30251a4d06bd462b4590ee030d92

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 "Check time-spent-in-app intent must come from system app." into pi-dev
Fan Zhang [Thu, 29 Mar 2018 17:22:29 +0000 (17:22 +0000)]
Merge "Check time-spent-in-app intent must come from system app." into pi-dev
am: 8e88874e47

Change-Id: I4d4eb4d06d032e31d3e6dd1a0b2d3f0a866afb09

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
yuemingw [Thu, 29 Mar 2018 16:53:38 +0000 (16:53 +0000)]
Merge "Disallow_airplane_mode should not disable mobile network." into pi-dev
am: cc65760354

Change-Id: I13c39e2857bc58f6062a5d74ad3c4e672200a029

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 agoMerge "Settings should use Oxford comma" into pi-dev
Beverly [Thu, 29 Mar 2018 16:09:50 +0000 (16:09 +0000)]
Merge "Settings should use Oxford comma" into pi-dev
am: 51646b5f07

Change-Id: I94ac135a10015933a2dc7e2d5d0b7d8f72b6b865

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 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:49:24 +0000 (08:49 +0000)]
Merge "Confirm parent user's credential when setting lock for profile" into pi-dev
am: b0a35de10b

Change-Id: I8df143549c8e4bb0e79350c8ee3d993a039f112f

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:24:18 +0000 (03:24 +0000)]
Merge "Reduce size of 'GB' and '%' in storage settings." into pi-dev
am: 01933aa02c

Change-Id: Icee729e83d50e6447b1872fd4340b7f113fb7ec4

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
Fan Zhang [Thu, 29 Mar 2018 03:04:11 +0000 (03:04 +0000)]
Merge changes I236b1124,Iad16b06e into pi-dev
am: 6a89e511d1

Change-Id: I82ae2d375b99bd9c1ae58b2919ed87f02ed18adf

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

Change-Id: I5119ec416a7c531eaf73fdf5e9c160f17e42b202

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
Fan Zhang [Thu, 29 Mar 2018 02:05:34 +0000 (02:05 +0000)]
Merge "Fix a NPE when getting ZenMode in RingerMutedCondition." into pi-dev
am: 6b36c2e402

Change-Id: Ifad1dbe1fad852fa72ea005c2478cf77c651f79d

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

Change-Id: Ic1b2b4cff34ecb5468420dac9d100e0226914609

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:42:11 +0000 (00:42 +0000)]
Merge "Support AOD in the Universal Settings API" into pi-dev
am: 3025bc7c18

Change-Id: I90309ffd96e9668a286a3019691748e319ed6d4f

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 agoMerge "A18y: Don't double announce 'searching for printers.'" into pi-dev
Philip P. Moltmann [Wed, 28 Mar 2018 23:59:30 +0000 (23:59 +0000)]
Merge "A18y: Don't double announce 'searching for printers.'" into pi-dev
am: f9cfc7c75a

Change-Id: I8198b511255e9e78e7c378adc62886aa4f31fac8

6 years agoMerge "Remove duplicate classes from test/robotests" into pi-dev
Fan Zhang [Wed, 28 Mar 2018 23:26:59 +0000 (23:26 +0000)]
Merge "Remove duplicate classes from test/robotests" into pi-dev
am: 8b63a03278

Change-Id: I2e82659b4341d3bec2ae0020216f73284c30f7f7

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 "Move IMS registration state to SIM status screen" into pi-dev
Doris Ling [Wed, 28 Mar 2018 23:21:31 +0000 (23:21 +0000)]
Merge "Move IMS registration state to SIM status screen" into pi-dev
am: 6fa3b89033

Change-Id: Ib4a76ca53a04cf9a9f6ab62312bbf3c9b685528c

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 "Fix incorrect GMT offset in display" into pi-dev
Victor Chang [Wed, 28 Mar 2018 22:53:29 +0000 (22:53 +0000)]
Merge "Fix incorrect GMT offset in display" into pi-dev
am: caf72cf3ff

Change-Id: Id8ccf9caa54e655f810d77baf19c7d6df55a9087

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 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 ago[automerger skipped] Merge "DO NOT MERGE Move IMS registration state to SIM status...
Kousuke Kitahara [Wed, 28 Mar 2018 21:13:08 +0000 (21:13 +0000)]
[automerger skipped] Merge "DO NOT MERGE Move IMS registration state to SIM status screen" am: e8b70d7422  -s ours
am: 7d906895e8  -s ours

Change-Id: Ia1ae6679a2e3c5c2372bee1280ef8577efa3ef84

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 ago[automerger skipped] Merge "DO NOT MERGE Move IMS registration state to SIM status...
Kousuke Kitahara [Wed, 28 Mar 2018 20:49:50 +0000 (20:49 +0000)]
[automerger skipped] Merge "DO NOT MERGE Move IMS registration state to SIM status screen"
am: e8b70d7422  -s ours

Change-Id: I16c7823773e1a1ca070bfc5189be080996f0d38e

6 years agoMerge "Entity header: When screen scrolls, there should be shadow under the header...
Jan Nordqvist [Wed, 28 Mar 2018 20:40:15 +0000 (20:40 +0000)]
Merge "Entity header: When screen scrolls, there should be shadow under the header." into pi-dev
am: 00a2dcb8f9

Change-Id: I1d577b8432cde8b696a84a1aaa284576013612d7

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 agoMerge "Revert "Ignore broken test to unblock TreeHugger"" into pi-dev
Fan Zhang [Wed, 28 Mar 2018 20:07:23 +0000 (20:07 +0000)]
Merge "Revert "Ignore broken test to unblock TreeHugger"" into pi-dev
am: 8482455df7

Change-Id: I10b2fc33b345607358ad81c98784eb15fcd2c2e5

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 "Fix battery saver setting default state" into pi-dev
Makoto Onuki [Wed, 28 Mar 2018 20:00:45 +0000 (20:00 +0000)]
Merge "Fix battery saver setting default state" into pi-dev
am: 856017f915

Change-Id: I32f20eac01ddeed16ed95c3b8b9323067b8d0608

6 years agoMerge "DO NOT MERGE Move IMS registration state to SIM status screen"
Treehugger Robot [Wed, 28 Mar 2018 19:51:28 +0000 (19:51 +0000)]
Merge "DO NOT MERGE Move IMS registration state to SIM status screen"

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
Lei Yu [Wed, 28 Mar 2018 19:22:12 +0000 (19:22 +0000)]
Merge "Get anomaly info from StringArrayList" into pi-dev
am: 512cb18c2e

Change-Id: If0f76de185b489e5c7ac4ae4d6dfb930ef35e03f

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
Victor Chang [Wed, 28 Mar 2018 17:55:17 +0000 (17:55 +0000)]
Merge "Add a header view to show the country in RegionZonePicker" into pi-dev
am: 05ab467e80

Change-Id: I0865b2a8cc8b920e17f8693e5015555f0241762f

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

6 years agoMerge "Move BT, NFC out of Conntection pref" into pi-dev
HJ ChangLiao [Wed, 28 Mar 2018 17:47:51 +0000 (17:47 +0000)]
Merge "Move BT, NFC out of Conntection pref" into pi-dev
am: c621ddc3f2

Change-Id: I6ab6467b5c93b5d87695c1e919043e0a6a080ab9

6 years agoMerge "Move BT, NFC out of Conntection pref" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 17:38:34 +0000 (17:38 +0000)]
Merge "Move BT, NFC out of Conntection pref" into pi-dev

6 years agoMerge "Subtext of "Add device" should only show when BT is off" into pi-dev
Jyun LuoLai [Wed, 28 Mar 2018 17:36:41 +0000 (17:36 +0000)]
Merge "Subtext of "Add device" should only show when BT is off" into pi-dev
am: 671db84734

Change-Id: If5da86ea853dd287a23abe67779aa579fdb48bf3

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Wed, 28 Mar 2018 17:28:34 +0000 (17:28 +0000)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 4fa5774b90  -s ours

Change-Id: I982cb88d891696dd14f36f9a4c908464746db66e

6 years agoFix battery saver setting default state
Makoto Onuki [Tue, 27 Mar 2018 20:14:40 +0000 (13:14 -0700)]
Fix battery saver setting default state

- Battery saver is off by default.

Test: manual test with: settings delete global low_power && settings delete global low_power_trigger_level
Test: b ROBOTEST_FILTER=BatterySaver RunSettingsRoboTests

Bug: 76460719
Change-Id: I749bba9a5e36fe8ccee6e4ed843596bc94d96fcc
Fix: 76460719

6 years agoMerge "Subtext of "Add device" should only show when BT is off" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 17:22:25 +0000 (17:22 +0000)]
Merge "Subtext of "Add device" should only show when BT is off" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Wed, 28 Mar 2018 17:11:01 +0000 (17:11 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix tests for time format in settings" into pi-dev
Lei Yu [Wed, 28 Mar 2018 16:52:39 +0000 (16:52 +0000)]
Merge "Fix tests for time format in settings" into pi-dev
am: d46cf49b6d

Change-Id: I40a23a9ac45e1bbcdae2ba51a2a1085469e19a76

6 years agoMerge "Fix data usage under Wi-Fi has title "Mobile data usage"" into pi-dev
Shawn Ding [Wed, 28 Mar 2018 16:47:24 +0000 (16:47 +0000)]
Merge "Fix data usage under Wi-Fi has title "Mobile data usage"" into pi-dev
am: bbb3d3e72c

Change-Id: I515e7d7db8d4d365992b41df2306fa235169dea9

6 years agoMerge "Fix tests for time format in settings" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 16:45:45 +0000 (16:45 +0000)]
Merge "Fix tests for time format in settings" into pi-dev

6 years agoMerge "Fix data usage under Wi-Fi has title "Mobile data usage"" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 16:36:16 +0000 (16:36 +0000)]
Merge "Fix data usage under Wi-Fi has title "Mobile data usage"" into pi-dev

6 years agoMerge "Fix robotest failure" into pi-dev
Fan Zhang [Wed, 28 Mar 2018 15:28:18 +0000 (15:28 +0000)]
Merge "Fix robotest failure" into pi-dev
am: aad168729f

Change-Id: I2a013a921d3c818eefa3ef0732afc66755304cd5

6 years agoIgnore broken test to unblock TreeHugger
Artem Iglikov [Wed, 28 Mar 2018 15:12:40 +0000 (15:12 +0000)]
Ignore broken test to unblock TreeHugger
am: 54f467f9ad

Change-Id: Icdc40c6ffa9624fa7ba28c3bfe0e70812066b150

6 years agoRevert "Ignore broken test to unblock TreeHugger"
Fan Zhang [Wed, 28 Mar 2018 15:10:10 +0000 (15:10 +0000)]
Revert "Ignore broken test to unblock TreeHugger"

This reverts commit 54f467f9adea4c1320ceab205194ef659c1ca1f5.

Bug: 77161730
Change-Id: Ib93d0cd75a10a8be94dec4f822359c6c492297ea

6 years agoMerge "Fix robotest failure" into pi-dev
Fan Zhang [Wed, 28 Mar 2018 15:06:50 +0000 (15:06 +0000)]
Merge "Fix robotest failure" into pi-dev

6 years agoConfirm parent user's credential when setting lock for profile
Rubin Xu [Wed, 28 Mar 2018 14:14:35 +0000 (15:14 +0100)]
Confirm parent user's credential when setting lock for profile

When a DPC fires ACTION_SET_NEW_PASSWORD to set a work challenge
for an existing work profile with unified challenge, require the
user to confirm exisiting device lock first. This is not only for
increased security, but also a functionality requirement: the
system can only re-derive the current work profile password needed
by the password change after a fresh confirm credential operation.

Test: Add device lock, create work profile, then execute:
      adb shell su 1010000 am start --user 10 -a android.app.action.SET_NEW_PASSWORD
      Verify the device is prompting for current password.
Bug: 65910682
Change-Id: Ib4b4c88c1551cfff626f707d5f3182160a1ec46c

6 years agoIgnore broken test to unblock TreeHugger
Artem Iglikov [Wed, 28 Mar 2018 14:52:39 +0000 (15:52 +0100)]
Ignore broken test to unblock TreeHugger

Bug: 77161730
Test: make RunSettingsRoboTests -j
Change-Id: If16368d7cbf899dfacf376f33712f68daf2aebf7

6 years agoAdd a header view to show the country in RegionZonePicker
Victor Chang [Tue, 27 Mar 2018 16:34:53 +0000 (17:34 +0100)]
Add a header view to show the country in RegionZonePicker

Extra fixes in this CL
- Minor string update in time zone picker.
  Use date_time_search_region string in search bar,
  and date_time_set_timezone_title string for lower case "zone".
- Fixed b/76893139. Remove the unnecessary top padding in RecyclerView.
  Create a new layout file time_zone_items_list.xml without the padding.
- Add missing return statement when region ISO code
  is invalid in RegionZonePicker#getAllTimeZoneInfos

Bug: 76209571
Bug: 76893139
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.datetime.timezone
Test: Verified that the strings are updated in the UI
Change-Id: I1fb3e2abf80da3cb53cfbc3363bbe46e40a6ac22

6 years agoMerge "Allow app lists to have a toggle" into pi-dev
Julia Reynolds [Wed, 28 Mar 2018 11:29:33 +0000 (11:29 +0000)]
Merge "Allow app lists to have a toggle" into pi-dev
am: 2c18bbbd75

Change-Id: Id4debc1b5bb0be97615193eeebc51050442daf86

6 years agoMerge "Allow app lists to have a toggle" into pi-dev
Julia Reynolds [Wed, 28 Mar 2018 11:21:51 +0000 (11:21 +0000)]
Merge "Allow app lists to have a toggle" into pi-dev

6 years agoDO NOT MERGE Move IMS registration state to SIM status screen
Kousuke Kitahara [Wed, 2 Aug 2017 08:48:00 +0000 (17:48 +0900)]
DO NOT MERGE Move IMS registration state to SIM status screen

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

Test: manual - Checked that the IMS registration state is displayed on
the SIM Status screen.
Test: auto - Passed SimStatusTest.
Bug: 66063299

Change-Id: I3aff03ebdc9dc165db66c5007a2fa987ab8cd822

6 years agoSubtext of "Add device" should only show when BT is off
Jyun LuoLai [Tue, 27 Mar 2018 03:05:56 +0000 (11:05 +0800)]
Subtext of "Add device" should only show when BT is off

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

6 years agoFix robotest failure
Fan Zhang [Wed, 28 Mar 2018 04:40:46 +0000 (21:40 -0700)]
Fix robotest failure

Change-Id: Ic584aab213fa7af8f6f79e10743710be6840c2ee
Fixes: 77161730
Test: robotest

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: I161bc5746573444b284a03de8f5d4d8e510153dc

6 years agoRemove duplicate classes from test/robotests
Fan Zhang [Tue, 27 Mar 2018 22:50:52 +0000 (15:50 -0700)]
Remove duplicate classes from test/robotests

Robolectric now compiles against framework source, the duplicate classes
are no longer necessary

Bug: 76167422
Test: rerun robotest
Change-Id: Iceea1b53c2bd2feef19b5be344db3e4e3e893459

6 years agoMove BT, NFC out of Conntection pref
HJ ChangLiao [Wed, 21 Mar 2018 08:01:31 +0000 (16:01 +0800)]
Move BT, NFC out of Conntection pref

Move BT, NFC preference out of Connection Preference,
To Connected devices page.
Because NFC and Android Beam are controlled by the same controller,
Create each controller for those preference and leave the sharing part.

Change-Id: I8bc303a5f487de9c667487119b49e1e4130aa80c
Fixes: 72458929
Test: manually test, make RunSettingsRoboTests

6 years agoApply entity header effect to storage summary screen
Scott Nien [Tue, 27 Mar 2018 07:19:44 +0000 (15:19 +0800)]
Apply entity header effect to storage summary screen

use EntityHeaderController.styleActionBar to apply the entity header
effect which will not show shadow under the app bar unless it starts to
scroll.
Bug: 71767969
Test: manual test

Change-Id: Iffd94db956d50b8985cfa5df3886acd3b766fd0c

6 years agoMerge "Add "device is muted/vibrate, click to turn on" conditions" into pi-dev
Fan Zhang [Wed, 28 Mar 2018 00:45:43 +0000 (00:45 +0000)]
Merge "Add "device is muted/vibrate, click to turn on" conditions" into pi-dev
am: 0a5367c0c4

Change-Id: I277b4c2123fbe6d08548972883c3e1cd5288a71c

6 years agoMerge "Add "device is muted/vibrate, click to turn on" conditions" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 00:05:32 +0000 (00:05 +0000)]
Merge "Add "device is muted/vibrate, click to turn on" conditions" into pi-dev

6 years agoFix data usage under Wi-Fi has title "Mobile data usage"
Shawn Ding [Mon, 26 Mar 2018 08:59:43 +0000 (16:59 +0800)]
Fix data usage under Wi-Fi has title "Mobile data usage"

Fix "Wi-Fi data usage" in Wi-Fi section. (Settings -> Network & internet -> Data usage)

Change-Id: I6c4117db321af252a2c3061f554ffbe2f87a714e
Fixes: 76165354
Test: Manual test

6 years agoGet anomaly info from StringArrayList
Lei Yu [Tue, 27 Mar 2018 23:10:54 +0000 (16:10 -0700)]
Get anomaly info from StringArrayList

Statsd populates the anomaly info in StringArrayList, not StringArray. So
in settings we should use the correct API to get the data.

Bug: 77141809
Test: RunSettingsRoboTests
Change-Id: I56fc096106b5c040422fd7f5bb8cb4be7fe71d9d

6 years agoMerge "Disable pattern fading during the setup flow." into pi-dev
Vishwath Mohan [Tue, 27 Mar 2018 22:51:41 +0000 (22:51 +0000)]
Merge "Disable pattern fading during the setup flow." into pi-dev
am: a6fa9226c9

Change-Id: I6f2546a9c271a4d7127b7101e6ffcf5754253069

6 years agoAllow app lists to have a toggle
Julia Reynolds [Mon, 26 Mar 2018 21:02:58 +0000 (17:02 -0400)]
Allow app lists to have a toggle

And make the notifications app list toggle block/unblock
notifications.

Test: make -j RunSettingsRoboTests
Change-Id: I7417b98fb1c66504897df515c4c84afad591764e
Fixes: 74318867

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 27 Mar 2018 22:26:27 +0000 (15:26 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie0351c94a04bdafdc0517be7c96dd89a366cfdf6

6 years agoMerge "Disable pattern fading during the setup flow." into pi-dev
Vishwath Mohan [Tue, 27 Mar 2018 22:00:06 +0000 (22:00 +0000)]
Merge "Disable pattern fading during the setup flow." into pi-dev

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Tue, 27 Mar 2018 21:24:30 +0000 (21:24 +0000)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 97a1f85291  -s ours

Change-Id: Ief3ac341d55051ca2ea71128d64e4e45298a284c