Commit Graph

10029 Commits

Author SHA1 Message Date
Tim Peng
6598fc8c70 PanelSlicesAdapterTest failure am: 901e1503f5 am: 65986f7eea am: 2b12b0ada7 am: e22e390a97
Change-Id: I69a5d18e6cf72505ca3ce12dffe0758172156ab4
2020-05-06 14:25:11 +00:00
TreeHugger Robot
8ca7a534e4 Merge "Stop usb tethering when user cancel it" into rvc-dev am: 53c6c9a672 am: 1659954b04 am: bd4ce318bc am: c27bb24fcf
Change-Id: I22820f66b6620fd29ee6ba76827b0eb87f905017
2020-05-06 11:54:54 +00:00
Yi-Ling Chuang
d5fd1dd2e3 Merge "Revert "Display "Android Auto" in Connected Devices summary text."" into rvc-dev am: 153b336baa am: 17deddb4d4 am: 4c1d3f20a3 am: 78f8150a5c
Change-Id: I401a2eb477ffb64695386e764876819e4ebaa3cb
2020-05-06 11:54:41 +00:00
Tim Peng
901e1503f5 PanelSlicesAdapterTest failure
-Update test cases

Bug: 11390111
Test: make -j50 RunSettingsRoboTests
Change-Id: I6efd6b619eb5bc20b654a73bf1963ea9f446516d
2020-05-06 11:32:57 +00:00
TreeHugger Robot
53c6c9a672 Merge "Stop usb tethering when user cancel it" into rvc-dev 2020-05-06 10:52:09 +00:00
Yi-Ling Chuang
153b336baa Merge "Revert "Display "Android Auto" in Connected Devices summary text."" into rvc-dev 2020-05-06 10:49:53 +00:00
Yi-Ling Chuang
8258eb0327 Revert "Display "Android Auto" in Connected Devices summary text."
This reverts commit 6fb790b092.

Reason for revert: This CL causes test failures. Per Settings convention, revert the CL first.

Bug: 155829041
Change-Id: I486e09b63c9999b56d4359a7ec211fe8a6c89181
2020-05-06 10:37:47 +00:00
hughchen
9546b7fdcb Stop usb tethering when user cancel it
- Call stop tethering to clear entitlement result when user do not want
  using USB tethering on USB menu.
- Add test case

Bug: 154933817
Test: make -j42 RunSettingsRoboTests
Change-Id: Idaaba8df2052f45e710c7959251817e8947a544f
2020-05-06 16:02:35 +08:00
tim peng
bb12a6425d Merge "Add 12dp padding above the first slice item" into rvc-dev am: 4ed5c3aac4 am: ffe907b29c am: 2b8ebacb02 am: 3cbbd6c8ca
Change-Id: Icf66012189bfbb395e0a8a0ccb3a6193bb1cef7f
2020-05-06 05:51:06 +00:00
tim peng
4ed5c3aac4 Merge "Add 12dp padding above the first slice item" into rvc-dev 2020-05-06 05:00:36 +00:00
TreeHugger Robot
ec983e7310 Merge "Remove duplicate result for dark mode" into rvc-dev am: 6e68e34f2a am: 28fa7d030e am: 26aa6f4b20 am: 51c4c9c19f
Change-Id: I1ccc2daa5a2155b1ba071ef6775b0579809b2f79
2020-05-06 01:52:23 +00:00
Tim Peng
2f47d771fb Add 12dp padding above the first slice item
-Add an extra padding in adapter for dedicated panels
-Add test cases

Bug: 154181365
Test: manual test
make -j50 RunSettingsRoboTests
"adb shell am start -a android.settings.panel.action.INTERNET_CONNECTIVITY"

Change-Id: I65bc26c23ca5a7f1b433c36ac7ddf1a658793719
2020-05-06 09:04:25 +08:00
TreeHugger Robot
6e68e34f2a Merge "Remove duplicate result for dark mode" into rvc-dev 2020-05-06 00:42:10 +00:00
Kevin Maurin
5e27487a53 Display "Android Auto" in Connected Devices summary text. am: 6fb790b092 am: 4d66ddb35d am: 3c8d70626c am: 6b609961e1
Change-Id: Ia7f07d8909f82886f260cd18dc1d8de20ddf4452
2020-05-05 23:39:21 +00:00
Kevin Maurin
6fb790b092 Display "Android Auto" in Connected Devices summary text.
Android Auto will be exposing a Settings tile under Connected Devices -> Connection Preferences.
If the Setting tile is available, then the summary text will reflect that.

Tested with additional unit tests and manually validated the scenarios by
flashing crosshatch-eng and disabling/enabling the relevant features.

Fix: 153896447
Test: Added unit coverage for new scenarios
Test: make RunSettingsRoboTests
Test: manually verified by flashing crosshatch-eng and disabling/enabling relevant components
Change-Id: I05e0bca1b4c05939114703f868b1c71b76410532
2020-05-05 14:05:05 -07:00
András Klöczl
190e86fb84 Merge "Improve multi user settings screen" into rvc-dev am: 509ae917a4 am: 2718b93da7 am: ae489cba4d am: 90c5c84a67
Change-Id: I3a517b7a5f8f950bbaec251825751dcd356814e3
2020-05-05 18:29:34 +00:00
András Klöczl
509ae917a4 Merge "Improve multi user settings screen" into rvc-dev 2020-05-05 17:27:42 +00:00
Tsung-Mao Fang
ae9dc54c56 Remove duplicate result for dark mode
We only keep the one in display settings.

Test: robo test and search dark mode in settings search.
Fix: 155735315
Change-Id: I71041f473944e854ef4601063658021bb9411069
2020-05-05 21:08:37 +08:00
Andras Kloczl
d19dc306dd Improve multi user settings screen
- Added switch and user delete functionality to details screen.
- Added robo tests.

Screenshots: http://shortn/_S6fbIMhAYO
Bug: 142798722
Test: Run robo tests with this command:
  make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.*SettingsTest"
Change-Id: Id51c12c5470e30e2dffe93f3bd8c22380d8bdc1f
2020-05-05 13:45:01 +01:00
Jason Chiu
06b1205dfa Merge "Reload homepage cards when necessary" into rvc-dev am: 2e5da48c7f am: fcbcc763bf am: d7d22b4a74 am: dad90ed381
Change-Id: I608d8f86ffdfb5042c3740d1656b0b0257ec6c8f
2020-05-05 11:02:52 +00:00
TreeHugger Robot
31b90cb1c6 Merge "Enable some settings pages to use paralleled-loading method" into rvc-dev am: 18490b2dc8 am: 0f9bc18c74 am: acb2927e8c am: 696e693446
Change-Id: I6fab9ee6570b5762fce2bba790880f68dbec2f0f
2020-05-05 10:31:35 +00:00
Jason Chiu
2e5da48c7f Merge "Reload homepage cards when necessary" into rvc-dev 2020-05-05 10:04:09 +00:00
Jason Chiu
e0327ee583 Reload homepage cards when necessary
Many users leave Settings app by pressing Home key, but Settings remains
in the same card status and doesn't update when users come back, which
may lead to a bad UX.

This change reloads cards and resets the UI session for some events,
including home key, recent app key, and screen off.

Fixes: 151789260
Test: robotest
Change-Id: Idb575cef4a58894984cb42238d7b3b43c49389a3
2020-05-05 10:03:49 +00:00
TreeHugger Robot
18490b2dc8 Merge "Enable some settings pages to use paralleled-loading method" into rvc-dev 2020-05-05 09:23:13 +00:00
TreeHugger Robot
4ae38ad03e Merge "Fix broken test cases" into rvc-dev am: 15254e3b5e am: 13f57006fd am: 1bef15bae0 am: 089323e029
Change-Id: Ic1e0ca504a34d351e95bbf7e109619f8bc70797e
2020-05-04 11:59:34 +00:00
TreeHugger Robot
15254e3b5e Merge "Fix broken test cases" into rvc-dev 2020-05-04 11:12:50 +00:00
Automerger Merge Worker
693186aa5f Merge "Merge "Modify rule of remote media session UI" into rvc-dev am: 1424b594c9 am: 8e81088c03" into rvc-d1-dev-plus-aosp am: 99b7c321f9 am: ad01553db3
Change-Id: Id9c15e44517cb7752c9e8509e7ac4fa4845efde6
2020-05-04 09:39:46 +00:00
Tsung-Mao Fang
17b882a94d Fix broken test cases
Since we added a new API in ag/11355641,
we need to shadow this new new API.

Fix: 130916962
Test: run robo test
Change-Id: I2176253aae915d1a31043ebbf197d4dd1b1f2072
2020-05-04 17:22:01 +08:00
tim peng
1424b594c9 Merge "Modify rule of remote media session UI" into rvc-dev 2020-05-04 08:47:41 +00:00
Lucas Dupin
ef6db613e2 Merge "Create QS media player setting" into rvc-dev am: 7dc7252c15 am: c716801a8d am: d0e6d5421d am: f966f6449a
Change-Id: If04212840be902047e00bea9cb83ae3e399d07bf
2020-05-04 04:48:28 +00:00
Tim Peng
e9b91f08c4 Modify rule of remote media session UI
-Add preference by remote session in Sound Setting
-Add slice item by remote session in Volume panel
-Replace media device data with media session data
-Add test case

Bug: 154918214
Test: make -j50 RunSettingsRoboTests
Change-Id: Ib1c873c9f99eebcba377f4115c4b9b4297b20c3d
2020-05-04 12:21:20 +08:00
Lucas Dupin
7dc7252c15 Merge "Create QS media player setting" into rvc-dev 2020-05-04 03:59:28 +00:00
Sunny Shao
6d60248053 Enable some settings pages to use paralleled-loading method
- Here these pages include AppInfoDashboardFragment, ConnectedDeviceDashboardFragment,
  DevelopmentSettingsDashboardFragment, NetworkDashboardFragment, ConfigureNotificationSettings.
- The TimeSpentInAppPreferenceController use the LiveDataController.

Fixes: 135299529
Bug: 137558156
Test: compilation
Change-Id: I455a16536c9966184f1b2bd81d1f1217f3e09f9d
2020-05-04 10:34:23 +08:00
Arc Wang
4fb48d5d19 Merge "[Wi-Fi] Enhance com.android.settings.wifi.p2p unit test cases." into rvc-dev am: 7e40584e5d am: 9aff7f5d0f am: 40eb2f6d21 am: 4ba2bfbc72
Change-Id: Idc827915a526820fe25d3690d6036ac05c3c8a1c
2020-05-01 05:49:41 +00:00
Arc Wang
7e40584e5d Merge "[Wi-Fi] Enhance com.android.settings.wifi.p2p unit test cases." into rvc-dev 2020-05-01 04:52:30 +00:00
govenliu
4d74ae2e67 [Wi-Fi] Enhance com.android.settings.wifi.p2p unit test cases.
Add new unit test cases in WifiP2pSettingsTest.java, the coverage rate will raise from 30% to 71%.

Bug: 151696220
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiP2pSettingsTest
Change-Id: I214866efae47a99e75178beca48deb398b70f9bd
2020-05-01 09:00:10 +08:00
Lucas Dupin
665c36eae2 Create QS media player setting
Test: make RunSettingsRoboTests ROBOTEST_FILTER=QuickSettingsMediaPlayerPreferenceControllerTest
Test: manual
Fixes: 155315021
Change-Id: I2583b985710898d0480f599fc9b5a2451c8950a7
2020-04-30 12:04:23 -07:00
Yanting Yang
7656882a4e Merge "Fix NPE crash when opening the app info from shortcut suggestion" into rvc-dev am: 459e5e1636 am: e3840fbc2d am: b15a93f76e am: bfbf2a4c6a
Change-Id: I7bfa18830ebf7b8216a755bdf59c85a4a0703d3e
2020-04-30 14:18:36 +00:00
Yanting Yang
459e5e1636 Merge "Fix NPE crash when opening the app info from shortcut suggestion" into rvc-dev 2020-04-30 13:17:01 +00:00
Jason Chiu
40c474f2a3 Merge "Refine contextual Bluetooth card behavior when Bluetooth is off" into rvc-dev am: 5b260b0bd1 am: e2c798b8a7 am: f2af47b09a am: 5c6132a83c
Change-Id: I2a905847f0c1cecf75a4b342927163040ce8eff0
2020-04-30 11:43:31 +00:00
Jason Chiu
5b260b0bd1 Merge "Refine contextual Bluetooth card behavior when Bluetooth is off" into rvc-dev 2020-04-30 10:44:06 +00:00
Blake Kragten
08fbe6ca26 Merge "Remove enhanced connectivity switch for non-pixel" into rvc-dev am: 6fe60521d1 am: ba264a325f am: a6c32c6a41 am: aae19626d3
Change-Id: I0b11130b88e858a5ddaedba0dfc16dfb3fc2bd33
2020-04-30 04:32:30 +00:00
Blake Kragten
6fe60521d1 Merge "Remove enhanced connectivity switch for non-pixel" into rvc-dev 2020-04-30 03:24:52 +00:00
Yanting Yang
9dc0a45fd8 Fix NPE crash when opening the app info from shortcut suggestion
It occurs NPE in invoking refreshUi() of AppButtonsPreferenceController
when user fully install the instant app from google play and then
directly open app info from the shortcut suggestion in launcher.

Root cause:
AppButtonsPreferenceController.refreshUi() will be invoked when user
directly open app info from the shortcut suggestion in launcher. In
refreshUi(), we will update the information of button preference, but
the preferences will not be initialized if device existed an instant
version for the app.

Solution:
Check button preference and initial them if need in refreshUi().

Fixes: 137854835
Test: visual, robotests
Change-Id: Id5c3e53b9db2683cab970c10eace7925d889eea3
2020-04-30 08:53:16 +08:00
Julia Reynolds
adfd6ba13e Merge "Remove unused development setting" into rvc-dev am: e2eb832033 am: 04b6152ef0 am: 68d3972a36 am: c106e6bc03
Change-Id: I28f44b8929ad28e241ca9781a4cb9a80549b21e4
2020-04-29 16:25:50 +00:00
Julia Reynolds
0f331cc786 Fix bubble tests am: 99b363fb18 am: d4045296ba am: 90d41ad625 am: e546135a18
Change-Id: I62ebb3f11b46aeadfbaeec9a17921852abf8538e
2020-04-29 16:24:30 +00:00
Julia Reynolds
e2eb832033 Merge "Remove unused development setting" into rvc-dev 2020-04-29 15:25:24 +00:00
Julia Reynolds
99b363fb18 Fix bubble tests
Test: atest
Fixes: 155239388
Change-Id: I8a32098b9a36ea1c8eabaf235b37d1e190419937
2020-04-29 13:58:46 +00:00
Alex Johnston
a8f1a69f3e Merge "Check if FRP policy is supported in Settings" into rvc-dev am: d1408a66a6 am: b2c004b3b7 am: 85404a89c2 am: 4c5218b503
Change-Id: I86bb6e9d8bc49954eae1ccdabb758e0ff8dcf0f4
2020-04-29 09:09:35 +00:00
Jason Chiu
d304c20a15 Refine contextual Bluetooth card behavior when Bluetooth is off
When bluetooth is off, show the specific layout for enabling Bluetooth.

Bug: 154691520
Test: robotest
Change-Id: If3fd493558dcf2a47183345bbe175dfe257574d1
2020-04-29 16:29:41 +08:00