OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Hide suggestion if app already been restricted" into pi-dev
Lei Yu [Tue, 17 Apr 2018 01:14:50 +0000 (18:14 -0700)]
Merge "Hide suggestion if app already been restricted" into pi-dev
am: 1d5d289d08

Change-Id: I15337dd8b0ed36134cdd05d9a09877412444a8e5

6 years agoMerge "Fix an RTL issue in Network dashboard's summary text." into pi-dev
Fan Zhang [Tue, 17 Apr 2018 00:47:09 +0000 (17:47 -0700)]
Merge "Fix an RTL issue in Network dashboard's summary text." into pi-dev
am: d743f20618

Change-Id: I36c91343b50926c844c6939fece383228470a7a7

6 years agoMerge "Hide suggestion if app already been restricted" into pi-dev
TreeHugger Robot [Tue, 17 Apr 2018 00:30:08 +0000 (00:30 +0000)]
Merge "Hide suggestion if app already been restricted" into pi-dev

6 years agoMerge "Fix an RTL issue in Network dashboard's summary text." into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 23:40:09 +0000 (23:40 +0000)]
Merge "Fix an RTL issue in Network dashboard's summary text." into pi-dev

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Mon, 16 Apr 2018 22:14:49 +0000 (15:14 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: f99a4a3e06  -s ours

Change-Id: Iea1d0a1bc534e1a50349782ab856013176a7ca66

6 years agoFix an RTL issue in Network dashboard's summary text.
Fan Zhang [Mon, 16 Apr 2018 21:57:51 +0000 (14:57 -0700)]
Fix an RTL issue in Network dashboard's summary text.

Bidi wrap the word "Wi-Fi" so it's RTL'd correctly in all languages

Change-Id: Ia228b8f182ba6c7b5db5c310ecb54b25937e6ab7
Fixes: 78120642
Test: visual

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 21:56:56 +0000 (21:56 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoHide suggestion if app already been restricted
Lei Yu [Mon, 16 Apr 2018 18:13:11 +0000 (11:13 -0700)]
Hide suggestion if app already been restricted

Change-Id: I89904575be0236a22e4ca403bedc6adfc6cc5708
Fixes: 78014551
Test: RunSettingsRoboTests

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 16 Apr 2018 20:18:24 +0000 (13:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If256f5f7a79cc21e1251bd26b3b0c934d5cda71b

6 years agoMerge "Add audio switch UI in sound settings" into pi-dev
Caxton Chan [Mon, 16 Apr 2018 19:35:36 +0000 (12:35 -0700)]
Merge "Add audio switch UI in sound settings" into pi-dev
am: 03b8aa3a3c

Change-Id: I4c89750d66e4e3021e1a1a378ab4dfd16e40f883

6 years agoMerge "Add audio switch UI in sound settings" into pi-dev
Caxton Chan [Mon, 16 Apr 2018 19:24:31 +0000 (19:24 +0000)]
Merge "Add audio switch UI in sound settings" into pi-dev

6 years agoMerge "Implement audio switch UI" into pi-dev
hughchen [Mon, 16 Apr 2018 18:56:28 +0000 (11:56 -0700)]
Merge "Implement audio switch UI" into pi-dev
am: 5a2f73151e

Change-Id: Ib20749758c6dd8a8db24e3d4dba29232bac46793

6 years agoMerge "Implement audio switch UI" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 18:34:37 +0000 (18:34 +0000)]
Merge "Implement audio switch UI" into pi-dev

6 years agoMerge "Remove battery usage preference in app info page" into pi-dev
Lei Yu [Mon, 16 Apr 2018 17:39:48 +0000 (10:39 -0700)]
Merge "Remove battery usage preference in app info page" into pi-dev
am: ea7dd68480

Change-Id: I91f76bbedf9ef04a8a57fd1d68c747a0beb41148

6 years agoMerge "Remove battery usage preference in app info page" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 17:14:49 +0000 (17:14 +0000)]
Merge "Remove battery usage preference in app info page" into pi-dev

6 years agoMerge "Show only 1 entry for hearing aid devices without killing the activity." into...
Isha Bobra [Mon, 16 Apr 2018 16:56:17 +0000 (09:56 -0700)]
Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev
am: d87acaf3cf

Change-Id: Id0d3f2912feff75a572c57230715ffeed0a68d80

6 years agoMerge "Show only 1 entry for hearing aid devices without killing the activity." into...
Isha Bobra [Mon, 16 Apr 2018 16:42:33 +0000 (16:42 +0000)]
Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev

6 years agoAdd audio switch UI in sound settings
ryanywlin [Fri, 23 Mar 2018 08:57:51 +0000 (16:57 +0800)]
Add audio switch UI in sound settings

- Build two controller to control list preferences.

- MediaOutputPreferenceController which allows switching
the media output between current device and connected
BT device supporting A2DP. It also controls disabling
media output switching during a call or cast mode.

- HandsFreeProfilePreferenceController which allows
switching between HFP-connected BT devices while in
on-call state.

- Add test cases for controllers.

Bug: 74130772
Test: make RunSettingsRoboTests ROBOTEST_FILTER="MediaOutputPreferenceControllerTest" -j56
Test: make RunSettingsRoboTests ROBOTEST_FILTER="HandsFreeProfileOutputPreferenceControllerTest" -j56
Test: make RunSettingsRoboTests ROBOTEST_FILTER="AudioOutputSwitchPreferenceControllerTest" -j56

Change-Id: I37f5418442ce77e72cdff07f071ea519ab1047f3

6 years agoImplement audio switch UI
hughchen [Fri, 23 Mar 2018 08:14:13 +0000 (16:14 +0800)]
Implement audio switch UI

* Implement available media devices group
* Add AvailableMediaDeviceGroupController to realize UI, the user can see the all device that can be activated in this group.
* ConnectedDeviceGroupController change to show the device that cannot be activated but is connected.
* Refactoring the below class, implement the controller in connected_devices.xml.
  ConnectedDeviceGroupController.java
  SavedDeviceGroupController.java
  ConnectedDeviceDashboardFragment.java
  connected_devices.xml
* Add AvailableMediaBluetoothDeviceUpdaterTest to verify the add/remove preference behavior when connectedStateChanged or profileAudioStateChanged
* Add test that used to verify device is connected or not in BluetoothDeviceUpdaterTest.
* Add test that used to verify the add/remove preference behavior when connectedStateChanged or profileAudioStateChanged in ConnectedBluetoothDeviceUpdaterTest.
* Add AvailableMediaDeviceGroupControllerTest to verify bluetooth feature is supported or not and test register callback.
* Add test that used to verify bluetooth feature is supported or not and test register callback in ConnectedDeviceGroupControllerTest.
* Add test that used to verify bluetooth feature is supported or not and test register callback in SavedDeviceGroupControllerTest

Bug: 74134939
Test: make -j40 RunSettingsRoboTests
Change-Id: I54d03c2ddadc6a4be7519dd74cdbcb5055d44083

6 years agoMerge "Register ConnectDeviceFrag with new key" into pi-dev
HJ ChangLiao [Sun, 15 Apr 2018 03:56:01 +0000 (20:56 -0700)]
Merge "Register ConnectDeviceFrag with new key" into pi-dev
am: 28041fb8cd

Change-Id: I6b1a56f48d474b8d5dc2417ce9154408bb10d328

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Sun, 15 Apr 2018 03:35:44 +0000 (20:35 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 9470271d85  -s ours

Change-Id: I810c2412aae8c3b92a5c66d4de3494efa22a447c

6 years agoMerge "Storage wizard string changes per UX request." into pi-dev
Jeff Sharkey [Sun, 15 Apr 2018 03:28:09 +0000 (20:28 -0700)]
Merge "Storage wizard string changes per UX request." into pi-dev
am: 290edd0b73

Change-Id: Icfb93cba765d380ceb9e3c3bb855f5e4af8dc0b4

6 years agoMerge "Update fingerprint illustration" into pi-dev
Maurice Lam [Sun, 15 Apr 2018 02:55:53 +0000 (19:55 -0700)]
Merge "Update fingerprint illustration" into pi-dev
am: 20bb2edda7

Change-Id: Ibd7a1835f7dd0de4ea6c6d0569b80eb8b6470155

6 years agoMerge "Use the correct text for DND onboarding." into pi-dev
Andrew Sapperstein [Sun, 15 Apr 2018 02:50:31 +0000 (19:50 -0700)]
Merge "Use the correct text for DND onboarding." into pi-dev
am: 15234d7eb4

Change-Id: Ib47f7f86998e4e070b7d4dc4abf6be563f2d6867

6 years agoMerge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev
Salvador Martinez [Sun, 15 Apr 2018 02:02:25 +0000 (19:02 -0700)]
Merge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev
am: 1678488736

Change-Id: I0ea6f839eb33ba147ebae657999164b872d57fb6

6 years agoMerge "Update bluetooth preference to take user to new screen" into pi-dev
Salvador Martinez [Sun, 15 Apr 2018 00:36:20 +0000 (17:36 -0700)]
Merge "Update bluetooth preference to take user to new screen" into pi-dev
am: ce53cbeef7

Change-Id: Ic37c4b30a82cefb4f888d5c5183b6f6bae2b67d2

6 years agoMerge "Add a wrapper Activity to launch scanning settings" into pi-dev
Lifu Tang [Sun, 15 Apr 2018 00:35:27 +0000 (17:35 -0700)]
Merge "Add a wrapper Activity to launch scanning settings" into pi-dev
am: 6229c0f4eb

Change-Id: I43b9fa6273ded8ec9b0b0928a9d02167c720d562

6 years agoMerge "Add strings for AP band UI changes" into pi-dev
Salvador Martinez [Sun, 15 Apr 2018 00:34:56 +0000 (17:34 -0700)]
Merge "Add strings for AP band UI changes" into pi-dev
am: 6baefa4b51

Change-Id: I2fd9ae450a9cf1322338c080dedc40d7961f379d

6 years agoMerge "Remove menu from Network & Internet screen." into pi-dev
Andrew Sapperstein [Sun, 15 Apr 2018 00:34:27 +0000 (17:34 -0700)]
Merge "Remove menu from Network & Internet screen." into pi-dev
am: 23035d558a

Change-Id: Ib7a25cfad474304683304778e4fa7d32a2bb187b

6 years agoMerge "Register ConnectDeviceFrag with new key" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 23:12:48 +0000 (23:12 +0000)]
Merge "Register ConnectDeviceFrag with new key" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 17:01:25 +0000 (17:01 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 14 Apr 2018 03:57:48 +0000 (20:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5292358d043bede11ff4791263b007d31b04d8b6

6 years agoMerge "Storage wizard string changes per UX request." into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 03:08:23 +0000 (03:08 +0000)]
Merge "Storage wizard string changes per UX request." into pi-dev

6 years agoMerge "Update fingerprint illustration" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 01:36:27 +0000 (01:36 +0000)]
Merge "Update fingerprint illustration" into pi-dev

6 years agoMerge "Use the correct text for DND onboarding." into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 01:34:34 +0000 (01:34 +0000)]
Merge "Use the correct text for DND onboarding." into pi-dev

6 years agoMerge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 01:25:33 +0000 (01:25 +0000)]
Merge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev

6 years agoUse the correct text for DND onboarding.
Andrew Sapperstein [Sat, 14 Apr 2018 00:24:33 +0000 (17:24 -0700)]
Use the correct text for DND onboarding.

Update the screen on title to use the screen on
text instead of the screen off text.

Bug: 78019397
Test: visual inspection
Change-Id: Ie5c0b462b44ad735963c2800a59a20288b1cadf8

6 years agoMerge "Update bluetooth preference to take user to new screen" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 23:00:52 +0000 (23:00 +0000)]
Merge "Update bluetooth preference to take user to new screen" into pi-dev

6 years agoMerge "Add a wrapper Activity to launch scanning settings" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 22:54:18 +0000 (22:54 +0000)]
Merge "Add a wrapper Activity to launch scanning settings" into pi-dev

6 years agoShow only 1 entry for hearing aid devices without killing the activity.
Isha Bobra [Fri, 9 Feb 2018 00:09:39 +0000 (16:09 -0800)]
Show only 1 entry for hearing aid devices without killing the activity.

This CL tries to detect Bluetooth hearing aid devices and tries to
combine the entry of the hearing aids with the same HiSyncIds and
show only 1 entry for each pair in the connected devices list.

This CL also shows 2 battery status in the device details page.

This change shows the combined entry after a user returns to the
settings activity after pressing the back button or somehow
without killing it. It also combines the entries just after pairing.

Test: RunSettingsRoboTests
Bug: 74204427

Change-Id: I47fb0bdd96b1cc972d88a4aef85d0113985d63bb

6 years agoMerge "Add strings for AP band UI changes" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 22:51:25 +0000 (22:51 +0000)]
Merge "Add strings for AP band UI changes" into pi-dev

6 years agoFix mistake in onActivityResult for ConfigureWifiSettings
Salvador Martinez [Fri, 13 Apr 2018 20:01:19 +0000 (13:01 -0700)]
Fix mistake in onActivityResult for ConfigureWifiSettings

Accidently checked the result code instead of request code when
trying to route the callback to the correct controller. This
CL fixes that.

Test: robotests still pass
Bug: 77543817
Change-Id: Ice1dd799d3f06f86743940c5202d308c21e88cdf

6 years agoUpdate bluetooth preference to take user to new screen
Salvador Martinez [Wed, 4 Apr 2018 21:23:57 +0000 (14:23 -0700)]
Update bluetooth preference to take user to new screen

This CL removes the toggle from the bluetooth preference and instead
takes users to a new dedicated screen for toggling bluetooth status.
On this screen we show a different summary text depending on whether
bluetooth and bluetooth scanning are on/off. Also, we were able to
delegate most of the UI/bluetooth handling to already existing
classes.

Test: robotests
Bug: 77543471
Merged-In: I036a3992bbd78896da8364b55ecc51afc4464b6e
Change-Id: I036a3992bbd78896da8364b55ecc51afc4464b6e

6 years agoMerge "Remove menu from Network & Internet screen." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 22:07:22 +0000 (22:07 +0000)]
Merge "Remove menu from Network & Internet screen." into pi-dev

6 years agoRemove battery usage preference in app info page
Lei Yu [Fri, 13 Apr 2018 21:28:14 +0000 (14:28 -0700)]
Remove battery usage preference in app info page

Bug: 78011526
Test: RunSettingsRoboTests
Change-Id: I2dfb989167fe27857590f416fbb16d401e53bc1d

6 years agoStorage wizard string changes per UX request.
Jeff Sharkey [Fri, 13 Apr 2018 21:20:31 +0000 (15:20 -0600)]
Storage wizard string changes per UX request.

Bug: 77207119
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: I93adf01442d006927c792db405d8cf73c963dd40

6 years agoAdd strings for AP band UI changes
Salvador Martinez [Fri, 13 Apr 2018 21:19:49 +0000 (14:19 -0700)]
Add strings for AP band UI changes

This CL just adds strings needed for another change. See change with
id = Ib2d4a2834c5cd11875515d308f7b20bfc8471959

Test: just adds string
Bug: 73102003
Change-Id: Ibd0ded108f49e481d2a858960b9add48a09cc497

6 years agoRemove menu from Network & Internet screen.
Andrew Sapperstein [Fri, 13 Apr 2018 20:48:05 +0000 (13:48 -0700)]
Remove menu from Network & Internet screen.

Only one item was left "reset wi-fi, mobile & bluetooth"
which is also an option in Reset. So we're just removing
it so that there's no overflow menu at all.

Change-Id: I0298192667fb4ac2f58f51232ae2da1842e6c27e
Fixes: 77986130
Test: robotests

6 years agoAdd a wrapper Activity to launch scanning settings
Lifu Tang [Thu, 12 Apr 2018 17:01:29 +0000 (10:01 -0700)]
Add a wrapper Activity to launch scanning settings

GmsCore needs to start scanning settings from notification

Bug: 77823544
Test: adb shell am start -a android.settings.LOCATION_SCANNING_SETTINGS
Change-Id: Iecf1f811983068b29aa06a9985c83a5a1fb11a2a

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Fri, 13 Apr 2018 20:03:28 +0000 (13:03 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: d57d27acab  -s ours

Change-Id: I7e6ada7ca49496e0480d020c879fe2dc0d762e51

6 years agoMerge "Hide Default apps and App permissions under Advanced." into pi-dev
Doris Ling [Fri, 13 Apr 2018 20:02:10 +0000 (13:02 -0700)]
Merge "Hide Default apps and App permissions under Advanced." into pi-dev
am: 36800c5115

Change-Id: I15bba4d3ae39d5aca176890624048bbe14a1c59f

6 years agoMerge "Warn users before they change device name." into pi-dev
Daniel Nishi [Fri, 13 Apr 2018 19:51:10 +0000 (12:51 -0700)]
Merge "Warn users before they change device name." into pi-dev
am: cd01a3ecd9

Change-Id: I75c974c944dcda55b19dc4566cdb56f9811d2212

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 19:44:37 +0000 (19:44 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Hide Default apps and App permissions under Advanced." into pi-dev
Doris Ling [Fri, 13 Apr 2018 19:44:11 +0000 (19:44 +0000)]
Merge "Hide Default apps and App permissions under Advanced." into pi-dev

6 years agoMerge "Warn users before they change device name." into pi-dev
Daniel Nishi [Fri, 13 Apr 2018 19:31:15 +0000 (19:31 +0000)]
Merge "Warn users before they change device name." into pi-dev

6 years agoMerge "Support customizing icon color for externally items." into pi-dev
Fan Zhang [Fri, 13 Apr 2018 18:40:26 +0000 (11:40 -0700)]
Merge "Support customizing icon color for externally items." into pi-dev
am: 98a2064b61

Change-Id: I501f26d19f66e42aaa8bbcad6a7c91895a24b443

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 13 Apr 2018 18:39:46 +0000 (11:39 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I50e29a33b46f948023f4b85d1ebacb99397d6ec9

6 years agoMerge "Support customizing icon color for externally items." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:48:22 +0000 (17:48 +0000)]
Merge "Support customizing icon color for externally items." into pi-dev

6 years agoMerge "Change "Advanced battery usage" to "Battery usage"" into pi-dev
Lei Yu [Fri, 13 Apr 2018 16:55:16 +0000 (09:55 -0700)]
Merge "Change "Advanced battery usage" to "Battery usage"" into pi-dev
am: e6825db406

Change-Id: Ie9d2b695c2a86172154660430ea39a96cf66a9de

6 years agoMerge "Change "Advanced battery usage" to "Battery usage"" into pi-dev
Lei Yu [Fri, 13 Apr 2018 16:42:08 +0000 (16:42 +0000)]
Merge "Change "Advanced battery usage" to "Battery usage"" into pi-dev

6 years agoSupport customizing icon color for externally items.
Fan Zhang [Thu, 12 Apr 2018 21:04:09 +0000 (14:04 -0700)]
Support customizing icon color for externally items.

When a setting is injected to homepage, we now allow the setting
provider customize the background color for its icon.

If no custom bg color is provided, we fallback to existing behavior.

This behavior is only needed in homepage, because we don't have any
tinting logic in other pages so external setting providers can just
provide arbitrary icon.

Bug: 77188317
Test: robotests
Change-Id: I7d4b512fafc28537de46192026ce4bbe51b498c4

6 years agoRegister ConnectDeviceFrag with new key
HJ ChangLiao [Thu, 12 Apr 2018 08:29:33 +0000 (16:29 +0800)]
Register ConnectDeviceFrag with new key

For inject dynamic pref driving mode to
ConnectDeviceDashboardFragment,
Register this frag with new key CONNECT.

Bug: 72458929
Test: make RunSettingsRoboTests
Change-Id: I41781ff2f8918f7923c53defff85ddd4afe7056d

6 years agoMerge "Log app versionCode in anomaly detection" into pi-dev
Lei Yu [Fri, 13 Apr 2018 01:11:28 +0000 (18:11 -0700)]
Merge "Log app versionCode in anomaly detection" into pi-dev
am: 70bd0c6d00

Change-Id: I72c442fe4ac8b0bd3c04a63d406e15342610bce0

6 years agoMerge "Log app versionCode in anomaly detection" into pi-dev
Lei Yu [Fri, 13 Apr 2018 00:35:11 +0000 (00:35 +0000)]
Merge "Log app versionCode in anomaly detection" into pi-dev

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Fri, 13 Apr 2018 00:28:48 +0000 (17:28 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 660e824061  -s ours

Change-Id: I18553a43f293c1d02a1a7d4a8c9e8c0d74fb9cb7

6 years agoMerge "Switch from SI to IEC unit when formatting data usage bytes" into pi-dev
Fan Zhang [Fri, 13 Apr 2018 00:13:35 +0000 (17:13 -0700)]
Merge "Switch from SI to IEC unit when formatting data usage bytes" into pi-dev
am: f0c7038efe

Change-Id: I200feacea89591edc0b446d59e6b4a23a5daa7cd

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 00:10:32 +0000 (00:10 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Shuffle sound settings UI arrangment" into pi-dev
ryanywlin [Thu, 12 Apr 2018 23:57:04 +0000 (16:57 -0700)]
Merge "Shuffle sound settings UI arrangment" into pi-dev
am: c22bada88a

Change-Id: I3f02057b6c7faa902a6832f4ac8dc878e67ac786

6 years agoMerge "Switch from SI to IEC unit when formatting data usage bytes" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 23:35:15 +0000 (23:35 +0000)]
Merge "Switch from SI to IEC unit when formatting data usage bytes" into pi-dev

6 years agoMerge "Shuffle sound settings UI arrangment" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 23:16:28 +0000 (23:16 +0000)]
Merge "Shuffle sound settings UI arrangment" into pi-dev

6 years agoMerge "Use a different string for vpn summary." into pi-dev
Doris Ling [Thu, 12 Apr 2018 23:08:57 +0000 (16:08 -0700)]
Merge "Use a different string for vpn summary." into pi-dev
am: a9261b4136

Change-Id: If11353a90933436bb1a2425e418369fc75d8a1ad

6 years agoWarn users before they change device name.
Daniel Nishi [Fri, 6 Apr 2018 01:24:13 +0000 (18:24 -0700)]
Warn users before they change device name.

This ensures users know that the change they make will be visible
through Bluetooth and Wi-Fi Hotspot.

Fixes: 74981919
Test: Settings robotest

Merged-In: Ib27066f4a123dc472730d7e663adfb039b1e27d6

6 years agoHide Default apps and App permissions under Advanced.
Doris Ling [Thu, 12 Apr 2018 22:31:32 +0000 (15:31 -0700)]
Hide Default apps and App permissions under Advanced.

- decrease the initial expand count to move the 2 items into the
Advanced section in the Apps and notification page.

Change-Id: I5861c4c768d3a4d77677c75555d83065f2526a56
Fixes: 77823915
Test: manual

6 years agoMerge "Use a different string for vpn summary." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 22:26:54 +0000 (22:26 +0000)]
Merge "Use a different string for vpn summary." into pi-dev

6 years agoMerge "Notification summary updates" into pi-dev
Julia Reynolds [Thu, 12 Apr 2018 22:24:29 +0000 (15:24 -0700)]
Merge "Notification summary updates" into pi-dev
am: 81c15c05c8

Change-Id: I110a4696b24a7fc58ced05f15a6b9c2728c7247c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 12 Apr 2018 22:16:40 +0000 (15:16 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Bug: 77897542
Change-Id: Ibe6564030f06ca559f4f4353c88746b8ab775da7

6 years agoShuffle sound settings UI arrangment
ryanywlin [Thu, 12 Apr 2018 21:51:46 +0000 (05:51 +0800)]
Shuffle sound settings UI arrangment

- Move "Ring volume" and "also viberate for calls" below to "Media volume"
- Add divider between "Media volume" and "Ring volume"
- Add divider between "also viberate for calls" and "Alarm volume"

Bug: 74130772
Test: rebuild
Change-Id: Ie274c0174d828a0804b8551760c407579585bd1b

6 years agoChange "Advanced battery usage" to "Battery usage"
Lei Yu [Thu, 12 Apr 2018 20:58:40 +0000 (13:58 -0700)]
Change "Advanced battery usage" to "Battery usage"

Also update the char limit to 25 to make it less impossible
to happen in other language.

Bug: 77649015
Test: Screenshot
Change-Id: I4cdbfc576660aacaeff019bbbb88abb42af63daa

6 years agoUse a different string for vpn summary.
Doris Ling [Thu, 12 Apr 2018 21:04:10 +0000 (14:04 -0700)]
Use a different string for vpn summary.

- for legacy vpn config, we do not get the vpn name to show in the
preference summary, and we used to simply show "Connected" as the summary
text. However, the string was changed to include the connected device
name as the parameter. Change to use connected summary string that does
not requires any parameter.

Change-Id: Ia6191eb315f5f23e0e6bf8da2a9537c211e8188e
Fixes: 77618408
Test: make RunSettingsRoboTests

6 years agoMerge changes from topic "anomaly_system_app" into pi-dev
Lei Yu [Thu, 12 Apr 2018 20:52:42 +0000 (13:52 -0700)]
Merge changes from topic "anomaly_system_app" into pi-dev
am: dc8fff76f3

Change-Id: Icd9367fc1d43ce535fbd296f71f024ff68389eaa

6 years agoMerge "Notification summary updates" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 20:43:10 +0000 (20:43 +0000)]
Merge "Notification summary updates" into pi-dev

6 years agoMerge "Implement previously connected device UI" into pi-dev
hughchen [Thu, 12 Apr 2018 20:40:02 +0000 (13:40 -0700)]
Merge "Implement previously connected device UI" into pi-dev
am: 3e644756c3

Change-Id: I69c161005b7ec39fddc0e9784d41a6b5dac11d6d

6 years agoMerge "Refactor airplane mode preference controller." into pi-dev
CY Cheng [Thu, 12 Apr 2018 19:09:34 +0000 (12:09 -0700)]
Merge "Refactor airplane mode preference controller." into pi-dev
am: 0375bbc709

Change-Id: I63f97d6ad20cd0e4191d5d14559046ccfc6baf89

6 years agoMerge changes from topic "anomaly_system_app" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 18:50:23 +0000 (18:50 +0000)]
Merge changes from topic "anomaly_system_app" into pi-dev

* changes:
  Add method to check if app has launcher activity
  Add system app check for anomaly detection.

6 years agoMerge "Implement previously connected device UI" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 18:23:58 +0000 (18:23 +0000)]
Merge "Implement previously connected device UI" into pi-dev

6 years agoMerge "Uniquely identify Slice intents" into pi-dev
Matthew Fritze [Thu, 12 Apr 2018 17:55:15 +0000 (10:55 -0700)]
Merge "Uniquely identify Slice intents" into pi-dev
am: 45b6a9498c

Change-Id: I92b23fdb335364c3c5f5a7e5fb7c2936a7ec1b33

6 years agoNotification summary updates
Julia Reynolds [Thu, 12 Apr 2018 16:24:25 +0000 (12:24 -0400)]
Notification summary updates

- Fix app info summary
- Add configure notifications summary

Test: make -j RunSettingsRoboTests
Change-Id: Ic3c3036ee903fe7403032925a8145693807793d5
Fixes: 77598357
Fixes: 73018368

6 years agoMerge "Refactor airplane mode preference controller." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 17:44:04 +0000 (17:44 +0000)]
Merge "Refactor airplane mode preference controller." into pi-dev

6 years agoMerge "Uniquely identify Slice intents" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 17:38:52 +0000 (17:38 +0000)]
Merge "Uniquely identify Slice intents" into pi-dev

6 years agoLog app versionCode in anomaly detection
Lei Yu [Thu, 12 Apr 2018 02:53:53 +0000 (19:53 -0700)]
Log app versionCode in anomaly detection

Change-Id: Ie760a4156b14b739279aa398bd1d2b8485449e91
Fixes: 77919142
Test: RunSettingsRoboTests

6 years agoImplement previously connected device UI
hughchen [Tue, 3 Apr 2018 08:15:03 +0000 (16:15 +0800)]
Implement previously connected device UI

* Move save device group to "Previously connected devices"

Bug: 74134939
Test: make -j60 RunSettingsRoboTests
Change-Id: Iff7894033df402d42dcc0ccaea6db3106edb7013
Merged-In: Iff7894033df402d42dcc0ccaea6db3106edb7013

6 years agoAdd method to check if app has launcher activity
Lei Yu [Tue, 10 Apr 2018 21:38:46 +0000 (14:38 -0700)]
Add method to check if app has launcher activity

This method should only used for system apps.

Change-Id: Id4109d8e223933269b8dae3aaa91b8a9186c527c
Fixes: 77477987
Test: RunSettingsRoboTests

6 years agoMerge "Update the action for early warning tip." into pi-dev
Lei Yu [Thu, 12 Apr 2018 10:18:30 +0000 (03:18 -0700)]
Merge "Update the action for early warning tip." into pi-dev
am: e6750d6c2d

Change-Id: Iec30d5c2d9bc5f8e6065edb60a37e7cec35f1e65

6 years agoMerge "Update the action for early warning tip." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 10:13:20 +0000 (10:13 +0000)]
Merge "Update the action for early warning tip." into pi-dev

6 years agoMerge "Shorten the strings in time zone picker menu" into pi-dev
Victor Chang [Thu, 12 Apr 2018 09:46:59 +0000 (02:46 -0700)]
Merge "Shorten the strings in time zone picker menu" into pi-dev
am: ee0679bb35

Change-Id: I9d587a9442dd3cabfab7ff95f6bf07d031341bed

6 years agoMerge "Shorten the strings in time zone picker menu" into pi-dev
Victor Chang [Thu, 12 Apr 2018 09:36:38 +0000 (09:36 +0000)]
Merge "Shorten the strings in time zone picker menu" into pi-dev

6 years agoRefactor airplane mode preference controller.
CY Cheng [Mon, 26 Mar 2018 10:38:59 +0000 (18:38 +0800)]
Refactor airplane mode preference controller.

- Convert inheritance from AbstractPreferenceController to
TogglePreferenceController.
- Register AirplaneModePreferenceController in XML.
- Decouple AirplaneModeEnabler with preference, leave the UI be
controled by PreferenceController.
- Add RoboTests test cases for AirplaneModePreferenceController.

Fixes: 67997339
Test: RunSettingsRoboTests
Change-Id: I7398943ed51345e014ee7aa774bfae1ca28632f1

6 years agoMerge "Update battery settings strings" into pi-dev
Lei Yu [Thu, 12 Apr 2018 03:33:21 +0000 (20:33 -0700)]
Merge "Update battery settings strings" into pi-dev
am: 17a463130e

Change-Id: I88ad1ad03b8fb00cfa3a31d7a913b810b38a2cfa

6 years agoMerge "Update battery settings strings" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 03:22:43 +0000 (03:22 +0000)]
Merge "Update battery settings strings" into pi-dev

6 years agoSwitch from SI to IEC unit when formatting data usage bytes
Fan Zhang [Wed, 11 Apr 2018 20:59:12 +0000 (13:59 -0700)]
Switch from SI to IEC unit when formatting data usage bytes

- Created a new helper method DataUsageUtils.formatDataUsage() to
  format data usage bytes using IEC formatting.
- Switch from Formatter.formatFileSize() to DataUsageUtils.formatDataUsage()
  everywhere in datausage package.

Change-Id: I9323beed8bf5126b153fc9a3cdd9591c97ca6fd2
Merged-In: I9323beed8bf5126b153fc9a3cdd9591c97ca6fd2
Fixes: 76159924
Test: robotests