Commit Graph

8078 Commits

Author SHA1 Message Date
Raff Tsai
fbdd87281a Merge "Fix Robo test fail at NotificationAssistantPickerTest" 2019-03-07 14:30:54 +00:00
Edgar Wang
5cbdce4b3f Fix Robo test fail at NotificationAssistantPickerTest
Fixes: 127764177
Test: make RunSettingsRoboTests ROBOTEST_FILTER=NotificationAssistantPickerTest
Change-Id: I923a8c948c432fbb0b581a84f058a6d6bd0f7946
2019-03-07 18:59:55 +08:00
Yanting Yang
cbbc008a97 Fix BluetoothDevicesSlice doesn't appear issue.
In Settings cold launch, it took a little bit time to do Bluetooth
profile service connection. If we get the Bluetooth device connected
state before service connected, the return value will always false.
This behavior caused BluetoothDevicesSlice can't collect media devices
immediately in cold launch, therefore, no data to build this card.

According latest discussion, this card is used for all Bluetooth
devices, so we don't need to wait profile to get specific devices.
Hence, update design to show all connected Bluetooth devices and
keep the operations are the same with Settings > Connected devices.

Fixes: 124462139
Test: visual, robotests
Change-Id: I1418e09f2cdc7ea8beaa73d7a59440ee2baae63b
2019-03-07 18:41:16 +08:00
Edgar Wang
af13b393e2 Fix Robo test fail at VolumePanelTest
Fixes: 127765311
Test: make RunSettingsRoboTests ROBOTEST_FILTER=VolumePanelTest
Change-Id: I9608c0aed2b7282b3626107c5f6d2e98d1c3caab
2019-03-07 17:51:24 +08:00
clownshen
0a7e2c0383 [Passpointv2] Provide two views for saved networks
List all passpoint network under "Subscriptions" view and others under
"Wi-Fi networks".

Bug: 116362877
Test: hard code verify subscribed network
Change-Id: I9750e9964e8b5affc2e91ea86a058c3ba65b3588
2019-03-07 07:59:58 +00:00
Yanting Yang
24ff4a2110 Fix Hotspot condition string truncated
Update hotspot condition title and summary and remove unused string.

Fixes: 125914006
Test: visual, robotests
Change-Id: I2a41c0d1840c9a21f86bd62495b404b02d8a865e
2019-03-07 13:57:49 +08:00
Raff Tsai
b508184d60 Remove "Add users from lock screen" from secondary users
Fixes: 124885010
Test: Robolectric, manual
Change-Id: I1c940fda2fa5f3da39c19bd119ac483024f5a83b
2019-03-07 13:20:02 +08:00
Lei Yu
6ebd2ed731 Merge changes from topic "add_cast_volume"
* changes:
  Add SliceWorker for remote volume controller
  Add remote volume slider to sound settings
2019-03-06 23:59:44 +00:00
Brad Ebinger
505e32cf64 Merge "WFC roaming mode setting can not be used with a fixed value" 2019-03-06 23:36:34 +00:00
Raff Tsai
2441b94c6d Change battery tip text
Fixes: 121042353
Test: adb shell settings put global battery_tip_constants test_low_battery_tip=true
      Then go to Settings -> battery to see the text
Change-Id: Ie3c4a89ccb7c2724840dc886a502ef919e13a856
2019-03-07 04:50:43 +08:00
jackqdyulei
dd00274967 Add SliceWorker for remote volume controller
Also update some methods to fix issues in panel.

Bug: 126199571
Test: RunSettingsRoboTests
Change-Id: I9b93ae594d41cb71b984b06267161455373bf121
2019-03-06 11:31:40 -08:00
Kitta Koutarou
994d27a2a5 WFC roaming mode setting can not be used with a fixed value
WFC roaming mode setting can not be used with a fixed value because it
is changed as WFC home mode changes if
KEY_EDITABLE_WFC_ROAMING_MODE_BOOL is false.

To solve this issue, separate the WFC mode setting of home and roaming.
These can switch behavior by new carrier config
KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL.

Test: manual - Checked that WFC roaming mode is hidden if new config is
true.
Test: manual - Checked that WFC roaming mode is also changed when
change the WFC home mode if new config is true.
Test: auto - Passed WifiCallingSettingsForSubTest.
Bug: 79666081

Change-Id: Ib2363c5d50f5231cc89f287d760ca8728b02b249
2019-03-06 09:49:25 -08:00
Ruchi Kandoi
d5ba12a94d Update Secure NFC API definitions
Bug: 124767797
Test: None
Change-Id: I90f109f08771f429966cd108eaacdf8b81d0a72e
2019-03-06 08:29:38 -08:00
Yanting Yang
be15baa155 Merge "Remove dismissal behavior from deferred setup card" 2019-03-06 08:45:32 +00:00
Matthew Fritze
6b065caf7e Disable Moblie Data Slice in AP mode
When airplane mode is enabled, users should not be able to
change the value of mobile data. Thus, when airplane mode is enabled,
replace the Slice with a no-op slice explaining why it cannot be
changed.

Fixes:
Fixes: 126726036
Test: robotests
Change-Id: I1c6d95dbb9d0c51247709b9867506c800f5872cd
2019-03-05 14:46:32 -08:00
Fan Zhang
68c7aad725 Merge "Wake up/unlock device before running tests" 2019-03-05 21:32:44 +00:00
Fan Zhang
eb493d5d69 Wake up/unlock device before running tests
Fixes: 127452134
Test: atest
Change-Id: I627f848a080b4569b658678094d45576eab9247c
2019-03-05 13:27:47 -08:00
TreeHugger Robot
3355bc06d0 Merge "Prevent extra reloads in mobile networking page/controllers" 2019-03-05 19:18:27 +00:00
Matthew Fritze
63cce45efe Add Wifi Panel
WIFI panel currently only shows the Wifi Slice. It's possible
more slices would be added in the future.

Testing is done here and in CTS.

Test: manual app
Test: robotests
Test: atest SettingsPanelTest
Fixes: 126894142
Change-Id: If691467e7c4bb9edd1b8a1b710c65e93284dc568
2019-03-05 10:55:42 -08:00
Lei Yu
05461f7096 Merge "Add null check for forbiddenPlmns" 2019-03-05 18:05:34 +00:00
Yanting Yang
52367e8c65 Remove dismissal behavior from deferred setup card
Deferred setup is not skippable as user will need to review all SUW
screens at least one time.

Fixes: 126225957
Test: visual, robotests
Change-Id: I7b32c2382f459690d3b136cf9faa543d04aa8d3d
2019-03-05 17:08:51 +08:00
Antony Sargent
ce9a126add Prevent extra reloads in mobile networking page/controllers
On the mobile network details page, as well as in several preference
controllers used in various page, we had listeners for the
ACTION_RADIO_TECHNOLOGY_CHANGED broadcast that when fired would cause a
reload. It turns out that this gets broadcast as a sticky intent, so our
callbaks would fire just after registering to listen, resulting in lots
of unnecessary extra reloading. This was particularly noticable on the
mobile network details page because the entire page gets reloaded.

The fix is to make our listeners ignore the broadcast if it's the
initial sticky one.

Bug: 126419558
Test: make RunSettingsRoboTests
Change-Id: I6ab7b43d74b07a839e45ce5368e45809be658b9d
2019-03-04 16:37:33 -08:00
TreeHugger Robot
d8b73f832f Merge "Use PermissionControllerService.isRoleVisible() in app info shortcut." 2019-03-04 22:49:23 +00:00
TreeHugger Robot
30784fdd03 Merge "Add flag to hide top-level accessibility." 2019-03-04 22:30:12 +00:00
jackqdyulei
6b242d94dc Add null check for forbiddenPlmns
Fixes: 127202257
Test: RunSettingsRoboTests
Change-Id: I2baa88249fda869640cb2b6debbf6437f0782c27
2019-03-04 13:16:28 -08:00
Svetoslav Ganov
f9df7394ca Merge "Slice and dice app ops - Settings" 2019-03-04 17:22:20 +00:00
Jackal Guo
60e3236604 Merge "Provide a way to ToggleA11yServicePreferenceFragment via Intent" 2019-03-04 03:35:56 +00:00
TreeHugger Robot
0fa2651d3f Merge "Change Easy Connect intent naming" 2019-03-03 16:17:33 +00:00
Svet Ganov
cfa412f2e2 Slice and dice app ops - Settings
Update the code to only pull and query the trsuted
portion of the last/historical app op data.

Test: manual

bug:111061782

Change-Id: I55b8be1c6715ff60c7b31c80db21029fea595c8f
2019-03-01 23:20:21 -08:00
TreeHugger Robot
588502158d Merge "Check euiccManager available before update EID" 2019-03-02 00:57:26 +00:00
Ben Lin
5124ab5d92 Add flag to hide top-level accessibility.
Bug: None
Test: robotests
Change-Id: I67cee6054e54389812bc025e637029547c8f2896
2019-03-01 16:13:23 -08:00
TreeHugger Robot
32924c702d Merge "Migrate all default app shortcut preference to use roles." 2019-03-01 18:34:29 +00:00
TreeHugger Robot
a0b4aeeb9d Merge "[OWE] Rename isOweSupported to isEnhancedOpenSupported" 2019-03-01 18:29:48 +00:00
TreeHugger Robot
a9308663c3 Merge "[Passpointv2] Implement confirm dialog for passpoint forget button" 2019-03-01 10:17:54 +00:00
Qingxi Li
02f2547482 Check euiccManager available before update EID
Test: E2E & Included
Bug: 126264451
Change-Id: Ic3876567dd139819d67e8b6ddc6f2b6ba03c98fa
2019-02-28 19:53:15 -08:00
Hai Shalom
9d8d090c08 [OWE] Rename isOweSupported to isEnhancedOpenSupported
Stick to the official WFA marketing name in this public API.

Bug: 125850601
Test: atest com.android.server.wifi
Test: Use Settings to scan and connect to OWE network
Test: atest WifiConfigControllerTest
Change-Id: I1360658e805b10db65f66f1194e342b063b741a4
2019-02-28 19:27:35 -08:00
Hai Zhang
617e745c4d Use PermissionControllerService.isRoleVisible() in app info shortcut.
Use the new PermissionControllerService.isRoleVisible() to hide roles
that are not visible.

Bug: 124452117
Bug: 124457823
Test: manual
Change-Id: I4c61a2760dc62ecd8a52fba9e133e96a447c4a29
2019-02-28 17:02:43 -08:00
Hai Zhang
3064ca585e Migrate all default app shortcut preference to use roles.
Bug: 124452117
Test: build
Change-Id: I19375dc21bfcd932a263c49330dc9a040a446beb
2019-02-28 13:51:21 -08:00
jackqdyulei
f25c9b0efc Add remote volume slider to sound settings
1. Add RemoteVolumePreferenceController to control volume through
MediaSessions.
2. Add related preference to skip calling AudioManager.

Bug: 126199571
Test: RunSettingsRoboTests
Change-Id: I9cb85ccf5f49be6d127cb61caf445b2ee7dfb579
2019-02-28 10:50:05 -08:00
Raff Tsai
fd7e2b43f7 Merge "Do not log Contextual card display when card is dismissed" 2019-02-27 23:20:28 +00:00
Fan Zhang
4050fd2fcb Merge "Fix homepage display test." 2019-02-27 23:09:43 +00:00
Fan Zhang
625ffbd0e9 Fix homepage display test.
We updated the IA but it's still checking old keywords.

Fixes: n/a
Test: atest
Change-Id: I495201d0a2580e7d600982139907d216aa1f558d
2019-02-27 22:37:07 +00:00
Sunil Ravi
c430c09421 Merge "WiFi: Replace -1 with LINK_SPEED_UNKNOWN constant" 2019-02-27 21:16:25 +00:00
TreeHugger Robot
b67abe180c Merge "Use Device Policy dialog in switchbar" 2019-02-27 19:51:35 +00:00
Zhi An Ng
c6b4170460 Merge "Disable system alert window permissions on low ram devices" 2019-02-27 17:06:50 +00:00
Issei Suzuki
1ac14708e8 Merge "Move AmbientDisplayConfiguration class out of internal package." 2019-02-27 14:28:36 +00:00
Issei Suzuki
fd85a9fae6 Move AmbientDisplayConfiguration class out of internal package.
Test: m droid (run full build)
Bug: 126327497
Change-Id: Idc07c811864edb4f88151051e25d6e05e4caf3b2
2019-02-27 13:25:15 +01:00
Jason Chiu
6391c9b6e4 Merge "Leverage the behavior of showing the searching message in wifi slice" 2019-02-27 10:03:28 +00:00
TreeHugger Robot
5d0d664ae2 Merge "Bar chart preserves data before rotating device" 2019-02-27 06:39:07 +00:00
TreeHugger Robot
3776476764 Merge "Use ThemedBatteryDrawable in settings" 2019-02-27 06:02:49 +00:00