Commit Graph

45162 Commits

Author SHA1 Message Date
Lei Yu
9e6d649b3a Hide suggestion if app already been restricted
Change-Id: I89904575be0236a22e4ca403bedc6adfc6cc5708
Fixes: 78014551
Test: RunSettingsRoboTests
2018-04-16 13:31:59 -07:00
Bill Yi
69e8ab6612 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If256f5f7a79cc21e1251bd26b3b0c934d5cda71b
2018-04-16 13:18:24 -07:00
Caxton Chan
67ee923708 Merge "Add audio switch UI in sound settings" into pi-dev am: 03b8aa3a3c
am: 160c30151f

Change-Id: I23b4cc7431a38fc3314547393d190d3020d6f75f
2018-04-16 12:50:38 -07:00
Caxton Chan
160c30151f Merge "Add audio switch UI in sound settings" into pi-dev
am: 03b8aa3a3c

Change-Id: I4c89750d66e4e3021e1a1a378ab4dfd16e40f883
2018-04-16 12:35:36 -07:00
jason_chiu
c69102d24e Migrate ManagedProfileSettings to DashboardFragment
- Move preference related logic to Controllers.
- Add some test cases for controllers.

Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
      atest SettingsGatewayTest UniquePreferenceTest
Change-Id: If4fcd7bf572672c886d5c91b2d15013817d1aa67
2018-04-16 12:35:01 -07:00
Caxton Chan
03b8aa3a3c Merge "Add audio switch UI in sound settings" into pi-dev 2018-04-16 19:24:31 +00:00
TreeHugger Robot
0d59a62bfb Merge "Remove the dependency on InputMethodSettings" 2018-04-16 19:19:48 +00:00
hughchen
5620d28f3f Merge "Implement audio switch UI" into pi-dev am: 5a2f73151e
am: 608d436da0

Change-Id: Iea47d84345cfd10388a4c2ad34d5cedcfe7eaeb6
2018-04-16 12:12:21 -07:00
hughchen
608d436da0 Merge "Implement audio switch UI" into pi-dev
am: 5a2f73151e

Change-Id: Ib20749758c6dd8a8db24e3d4dba29232bac46793
2018-04-16 11:56:28 -07:00
TreeHugger Robot
5a2f73151e Merge "Implement audio switch UI" into pi-dev 2018-04-16 18:34:37 +00:00
Lei Yu
9a44eb6be7 Merge "Remove battery usage preference in app info page" into pi-dev am: ea7dd68480
am: e5b270a4dd

Change-Id: I394652b3b170625fc51f54d675c9a07d951a72a3
2018-04-16 10:59:36 -07:00
Lei Yu
e5b270a4dd Merge "Remove battery usage preference in app info page" into pi-dev
am: ea7dd68480

Change-Id: I91f76bbedf9ef04a8a57fd1d68c747a0beb41148
2018-04-16 10:39:48 -07:00
TreeHugger Robot
ea7dd68480 Merge "Remove battery usage preference in app info page" into pi-dev 2018-04-16 17:14:49 +00:00
Isha Bobra
ea72074ed7 Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev am: d87acaf3cf
am: 595cda2d14

Change-Id: I49973a65a31f5f79722c4e4841f2dcda34128edb
2018-04-16 10:03:34 -07:00
Isha Bobra
595cda2d14 Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev
am: d87acaf3cf

Change-Id: Id0d3f2912feff75a572c57230715ffeed0a68d80
2018-04-16 09:56:17 -07:00
Isha Bobra
d87acaf3cf Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev 2018-04-16 16:42:33 +00:00
Beverly
fbe721b1b3 Get rid of charging sounds toggle
Users can no longer toggle on/off the charging sound.

Test: manual
Bug: 77912907
Change-Id: Ie050acab3972cb1fa6716c70afb6403db4d9c887
2018-04-16 12:35:59 -04:00
Chalard Jean
d391f46076 Use the SSID of the network in the no internet dialog
Bug: 77865258
Test: manual & roboelectric
Change-Id: I72f1f74bf004f30a2c38b4c3af977ff09360d1e8
2018-04-16 13:09:03 +09:00
ryanywlin
63bdfa8998 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
2018-04-16 11:52:44 +08:00
hughchen
bd3e5de207 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
2018-04-15 04:22:25 +00:00
HJ ChangLiao
a8000ddd9b Merge "Register ConnectDeviceFrag with new key" into pi-dev am: 28041fb8cd
am: 5c79fbd97c

Change-Id: I950ccf423738ba6fce2d9a526d505384b04c50e7
2018-04-14 21:11:37 -07:00
HJ ChangLiao
5c79fbd97c Merge "Register ConnectDeviceFrag with new key" into pi-dev
am: 28041fb8cd

Change-Id: I6b1a56f48d474b8d5dc2417ce9154408bb10d328
2018-04-14 20:56:01 -07:00
Bill Yi
edbcd64294 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 9470271d85 -s ours
am: cbb9ab8ad3  -s ours

Change-Id: I41fb8019799db51d33c1aca7267f719801550647
2018-04-14 20:53:37 -07:00
Jeff Sharkey
25fe7a27b5 Merge "Storage wizard string changes per UX request." into pi-dev am: 290edd0b73
am: 1e916920c5

Change-Id: Ie66f1e4d6daa98640e7e56efb7862be0d1c18914
2018-04-14 20:41:12 -07:00
Bill Yi
cbb9ab8ad3 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 9470271d85  -s ours

Change-Id: I810c2412aae8c3b92a5c66d4de3494efa22a447c
2018-04-14 20:35:44 -07:00
Jeff Sharkey
1e916920c5 Merge "Storage wizard string changes per UX request." into pi-dev
am: 290edd0b73

Change-Id: Icfb93cba765d380ceb9e3c3bb855f5e4af8dc0b4
2018-04-14 20:28:09 -07:00
Maurice Lam
3ddbaf439a Merge "Update fingerprint illustration" into pi-dev am: 20bb2edda7
am: 13c77a93a9

Change-Id: I62e2e925beb940cb6d37b0d94eda3c6bbca2bede
2018-04-14 20:16:09 -07:00
Andrew Sapperstein
142d367a4c Merge "Use the correct text for DND onboarding." into pi-dev am: 15234d7eb4
am: 3b6cbb2f4c

Change-Id: Ia7f900929a6d36457581ae3fae7601eff9adaad7
2018-04-14 20:10:27 -07:00
Maurice Lam
13c77a93a9 Merge "Update fingerprint illustration" into pi-dev
am: 20bb2edda7

Change-Id: Ibd7a1835f7dd0de4ea6c6d0569b80eb8b6470155
2018-04-14 19:55:53 -07:00
Andrew Sapperstein
3b6cbb2f4c Merge "Use the correct text for DND onboarding." into pi-dev
am: 15234d7eb4

Change-Id: Ib47f7f86998e4e070b7d4dc4abf6be563f2d6867
2018-04-14 19:50:31 -07:00
Salvador Martinez
052baf58a0 Merge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev am: 1678488736
am: 230d6420b9

Change-Id: I5a05e1bf619b4999d3f329dcc6ce267dba95e598
2018-04-14 19:28:54 -07:00
Salvador Martinez
230d6420b9 Merge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev
am: 1678488736

Change-Id: I0ea6f839eb33ba147ebae657999164b872d57fb6
2018-04-14 19:02:25 -07:00
Salvador Martinez
3cdd5eedcc [automerger skipped] Merge "Update bluetooth preference to take user to new screen" into pi-dev am: ce53cbeef7
am: fbc5abb8e1  -s ours

Change-Id: Ia4d639f332780d767e17edc512b57027421ea275
2018-04-14 18:20:29 -07:00
Lifu Tang
9609edb8f9 Merge "Add a wrapper Activity to launch scanning settings" into pi-dev am: 6229c0f4eb
am: 531defb0b3

Change-Id: I2fe689240c8fc6bb4b24fc3428e0311d47dc1ad8
2018-04-14 18:19:52 -07:00
Salvador Martinez
9df9101526 Merge "Add strings for AP band UI changes" into pi-dev am: 6baefa4b51
am: 0354854ab9

Change-Id: I5fe06ecc6c96d2cdff78fea1e93fe5dc28c3e587
2018-04-14 18:19:25 -07:00
Andrew Sapperstein
4eae68681c Merge "Remove menu from Network & Internet screen." into pi-dev am: 23035d558a
am: 3fdfb99375

Change-Id: I88a8e8d7ee77bafb5b8180d6d882d1ed9c09bd1f
2018-04-14 18:18:53 -07:00
Salvador Martinez
fbc5abb8e1 Merge "Update bluetooth preference to take user to new screen" into pi-dev
am: ce53cbeef7

Change-Id: Ic37c4b30a82cefb4f888d5c5183b6f6bae2b67d2
2018-04-14 17:36:20 -07:00
Lifu Tang
531defb0b3 Merge "Add a wrapper Activity to launch scanning settings" into pi-dev
am: 6229c0f4eb

Change-Id: I43b9fa6273ded8ec9b0b0928a9d02167c720d562
2018-04-14 17:35:27 -07:00
Salvador Martinez
0354854ab9 Merge "Add strings for AP band UI changes" into pi-dev
am: 6baefa4b51

Change-Id: I2fd9ae450a9cf1322338c080dedc40d7961f379d
2018-04-14 17:34:56 -07:00
Andrew Sapperstein
3fdfb99375 Merge "Remove menu from Network & Internet screen." into pi-dev
am: 23035d558a

Change-Id: Ib7a25cfad474304683304778e4fa7d32a2bb187b
2018-04-14 17:34:27 -07:00
TreeHugger Robot
28041fb8cd Merge "Register ConnectDeviceFrag with new key" into pi-dev 2018-04-14 23:12:48 +00:00
TreeHugger Robot
9470271d85 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-04-14 17:01:25 +00:00
TreeHugger Robot
40fa7923b1 Merge "Import translations. DO NOT MERGE" 2018-04-14 04:33:12 +00:00
Bill Yi
c5eadd8ad5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5292358d043bede11ff4791263b007d31b04d8b6
2018-04-13 20:57:48 -07:00
TreeHugger Robot
290edd0b73 Merge "Storage wizard string changes per UX request." into pi-dev 2018-04-14 03:08:23 +00:00
Bill Yi
581a0d54bd Import translations. DO NOT MERGE
Change-Id: I7cf53a9ffbc077211999a42f73bb41e5cbe78932
Auto-generated-cl: translation import
2018-04-13 19:53:43 -07:00
TreeHugger Robot
20bb2edda7 Merge "Update fingerprint illustration" into pi-dev 2018-04-14 01:36:27 +00:00
TreeHugger Robot
15234d7eb4 Merge "Use the correct text for DND onboarding." into pi-dev 2018-04-14 01:34:34 +00:00
TreeHugger Robot
1678488736 Merge "Fix mistake in onActivityResult for ConfigureWifiSettings" into pi-dev 2018-04-14 01:25:33 +00:00
Yohei Yukawa
9f172540b1 Remove the dependency on InputMethodSettings
InputMethodUtils.InputMethodSetting is a quite complicated inernal
class of InputMethodUtils and PhysicalKeyboardFragment's depending on
it just for getting/setting SHOW_IME_WITH_HARD_KEYBOARD is overkill.

With this CL, PhysicalKeyboardFragment just uses Secure Settings APIs
directly.

There should be no user-visible behavior change.

Bug: 77730201
Test: Manually verified as follows:
 1. Open system settings.
 2. Tap "System" -> "Languages & input" -> "Physical keyboard"
 3. Make sure "Show virtual keyboard" is unchecked
 4. Make sure the following command shows 0
      adb shell settings get secure show_ime_with_hard_keyboard
 5. Check "Show virtual keyboard"
 6. Make sure the following command shows 1
      adb shell settings get secure show_ime_with_hard_keyboard
 7. Run the following command
      adb shell settings put secure show_ime_with_hard_keyboard 0
 8. Make sure "Show virtual keyboard" is chenged to unchecked
Change-Id: I956da5dad27313d6edf141f2320bb0a7954fbbea
2018-04-13 18:13:09 -07:00