Commit Graph

50935 Commits

Author SHA1 Message Date
Kevin Chyn
782b7f9919 Merge "Set/Get features with new interface" 2019-04-03 23:46:14 +00:00
Lei Yu
e4f64e5c0c Merge "Move telephony method to worker thread" 2019-04-03 22:45:28 +00:00
jackqdyulei
6db1440a0a Move telephony method to worker thread
Get bug complaining it blocks UI even though it works fine some devices.
This CL moves methods to worker thread and keep progressbar
shown at least for 1 second, to avoid janky UI.

Fixes: 129329645
Test: RunSettingsRoboTests
Change-Id: Iee51949b7f6dfe2ede0fc4e6cd0f7b96d7199081
2019-04-03 22:45:07 +00:00
Chen Xu
5a9f447300 Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-04-03 22:17:46 +00:00
TreeHugger Robot
d4f24dd9a9 Merge "Add tests for ContextualCardManager." 2019-04-03 22:07:38 +00:00
Kevin Chyn
856b34dabc Set/Get features with new interface
Bug: 127382095

Test: Builds
Change-Id: Ideb252989a49eec88b8ee7f3ce6ea4f9d85bb3bc
2019-04-03 14:53:28 -07:00
TreeHugger Robot
3205d9405d Merge "Add tests for ContextualCardsAdapter." 2019-04-03 21:17:45 +00:00
TreeHugger Robot
67c9f40278 Merge "Add a flashlight handler activity to support indexability." 2019-04-03 20:48:23 +00:00
TreeHugger Robot
fbd53d21e6 Merge "Disable "Battery dialog" for default apps" 2019-04-03 20:41:21 +00:00
TreeHugger Robot
1382660313 Merge "Convert xml based API allowDynamicSummaryInSlice to java" 2019-04-03 19:42:25 +00:00
Fan Zhang
03dd39c92a Add a flashlight handler activity to support indexability.
Fixes: 128465925
Fixes: 123711093
Test: reindex
Change-Id: Ie082e65ee070f6143c4c65db3f70615b16af0e52
2019-04-03 12:16:33 -07:00
chen xu
4f379d290b SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: I95045f8e2c572a9ee7e8f402568e72ac02a2d1be
2019-04-03 10:31:19 -07:00
clownshen
fafdfea72c Add Wi-Fi data usage field
Add Wi-Fi data usage field at Wi-Fi Setting to show out the total Wi-Fi
data usage for user.

Bug: 129474341
Test: atest WifiSettingsTest
Test: manual test
Change-Id: Iad5bee47bd83ed143a2730f042d77907344f4017
2019-04-03 17:04:36 +00:00
Cn Chen
3c7c6ae28f Merge "Pass back number of fingerprint enrolled from settings to SUW" 2019-04-03 15:36:47 +00:00
TreeHugger Robot
a41fb1867d Merge "Remove unused method from NotificationChannelSlice" 2019-04-03 11:47:38 +00:00
Yi-Ling Chuang
dbc2bb9ba5 Add tests for ContextualCardsAdapter.
Fixes: 114307549
Test: robotests
Change-Id: I6ce023bf97c9f7b3c709bda2aa991a349c7aa825
2019-04-03 19:12:47 +08:00
Jason Chiu
95667e5ea6 Merge "Micro cleanup and refactoring" 2019-04-03 10:26:48 +00:00
Yi-Ling Chuang
e6f11ad0f2 Add tests for ContextualCardManager.
Bug: 114307549
Test: robotests

Change-Id: Iac9450ed21011cb6e8186fbe686ff4d03547ba5e
2019-04-03 18:02:03 +08:00
Alan Stokes
fd54df0c5d Merge "Take default for background activity starts from DeviceConfig." 2019-04-03 09:37:56 +00:00
Yanting Yang
1a9a748cdb Remove unused method from NotificationChannelSlice
Fixes:129835504
Test: robotests
Change-Id: Id0bcad694bba39ce67c77388b9bde7018aae1560
2019-04-03 17:29:24 +08:00
TreeHugger Robot
3c5665f429 Merge "Play vibration when Wi-Fi QR code scanner recognize a valid QR code" 2019-04-03 07:56:21 +00:00
Po-Chien Hsueh
38aff5b129 Merge "Make feature flag settings_dynamic_system persistent" 2019-04-03 07:55:55 +00:00
Jason Chiu
b335e96d2a Micro cleanup and refactoring
- remove unused dimen resources
- remove unused and refactor codes

Test: make RunSettingsRoboTests -j
Change-Id: Ic2a5b16323667741d048e20e3db8da3fb4dc348a
2019-04-03 13:52:46 +08:00
Arc Wang
cb1c9fceb8 Play vibration when Wi-Fi QR code scanner recognize a valid QR code
Bug: 127377350
Test: manual
Change-Id: I9bfcb6f4d1d4dee45d2cacdedfc07d2f4eccd758
2019-04-03 10:27:32 +08:00
Clown SHEN
8cc371e643 Merge "Only show Sign In button for connected network" 2019-04-03 02:16:05 +00:00
Linda Tseng
616574da82 Merge "Fix tinting on injected pref icon" 2019-04-03 02:06:42 +00:00
TreeHugger Robot
6cc4ee61c7 Merge "Allow NEW type battery early warning to show in homepage" 2019-04-03 02:04:30 +00:00
Arc Wang
e40502fba4 Merge "Update Wi-Fi QR code scan icon and share icon" 2019-04-03 01:50:14 +00:00
Fan Zhang
47788dfb03 Allow NEW type battery early warning to show in homepage
Fixes: 129492004
Test: robotest
Change-Id: I443866a832e4e02c128117dacd766d4fbbd8fc2e
2019-04-02 15:45:51 -07:00
lindatseng
2e7af2f023 Fix tinting on injected pref icon
We used to tint the injected pref icon when refreshing Tile. However,
when we are going to render the icon, we used Tile.getIcon which uses
the icon resource id to get the original version of icon directly.

Do a little refactor here to move the tinting logic inside Tile.getIcon.

Test: Manual/Visual inspection
Fixes: 129010399
Change-Id: I6f187b12cb6d91b54dcfe43e0ff34add55fd7b07
2019-04-02 13:35:17 -07:00
TreeHugger Robot
1dea397256 Merge "Show the disclaimer for WFC emergency call limitation" 2019-04-02 19:58:42 +00:00
TreeHugger Robot
2107255f52 Merge "Remove unnecessary notify in BT preference" 2019-04-02 19:36:30 +00:00
TreeHugger Robot
4e3cb4e877 Merge "Add FLAG_RECEIVER_FOREGROUND flag" 2019-04-02 19:07:26 +00:00
TreeHugger Robot
33df2e72bf Merge "Settings unexpectedly open after turning work profile on" 2019-04-02 18:17:14 +00:00
Quang Luong
cd0e0d79c5 Merge "Removed Write to NFC dialog" 2019-04-02 17:19:21 +00:00
Alan Stokes
0833c5a133 Take default for background activity starts from DeviceConfig.
We've modified the implementation to use the value set by DeviceConfig
if the user has not touched the developer options setting (change
fb227077b8652b817a094d37a5215ad7466ee603). We want the Settings screen
to reflect this default until the user explicitly sets it.

Additionally if the user disables developer settings we want to go
back to using whatever DeviceConfig sets.

Bug: 129533810
Test: croot && make RunSettingsRoboTests \
ROBOTEST_FILTER=AllowBackgroundActivityStartsPreferenceControllerTest

Change-Id: I73901a22da928f9a6924b30882b26494cdcd94bc
2019-04-02 15:37:54 +01:00
Chandan Nath
e4f0c78bb3 Merge "Show "Backup service isn't active" if backup isnt active for work profile" 2019-04-02 14:20:41 +00:00
Chandan Nath
9071506902 Show "Backup service isn't active" if backup isnt active for work
profile

Bug: 127821779

Test: 1) Set up work profile.
2) adb shell bmgr --user 19 activate true
3) Settings -> System -> Backup -> Work -> Shows google backup settings
4) adb shell bmgr --user 19 activate false
5) Settings -> System -> Backup -> Work -> "Backup service isn't active"

Change-Id: Ifc16cf3e69fd9db87d519cbad68f0f8e9d8ef6f3
2019-04-02 12:18:45 +01:00
TreeHugger Robot
abc3e8374e Merge "Add Wi-Fi connect listener in ConnectToWifiHandler" 2019-04-02 08:42:30 +00:00
clownshen
5c2637d6d0 Only show Sign In button for connected network
The Sign In button may appeared in details page for disconnected network
if current network is Captive Portal network. Should hide the button
for disconnected network.

Bug: 129514576
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Test: manual test
Change-Id: I8b4f79e7ba731ce83c49576fffd3e78a27598be3
2019-04-02 08:38:50 +00:00
Clown SHEN
531a87bfd5 Merge "Add test cases for disconnected/not in range network" 2019-04-02 08:38:05 +00:00
hughchen
c11875c0c6 Add FLAG_RECEIVER_FOREGROUND flag
Bug: 129726026
Test: make -j42 RunSettingsRoboTests
Change-Id: Idf994396a5dcf78e520ff3cf7c928d4dd19b606e
2019-04-02 14:22:39 +08:00
Po-Chien Hsueh
e560ad09f6 Make feature flag settings_dynamic_system persistent
Bug: 119647479
Test: turn on/off feature flag and use DynamicSystem
Change-Id: Icc26e649caea2c6dfc6e09d8f2c9f0f37568d445
2019-04-02 13:58:11 +08:00
Jason Chiu
1b5f5ef510 Add Wi-Fi connect listener in ConnectToWifiHandler
- Extract the connect listener from WifiSettings
- Add a listener to display a toast on failure to connect in ConnectToWifiHandler
- Also for the new AccessPoint.startOsuProvisioning() which accepts a connect listener

Bug: 123697580
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I29b2c1e2c58312d692675ecabf2818b4bbed3b51
2019-04-02 13:44:08 +08:00
TreeHugger Robot
b2852a41cb Merge "Disallow Package Installer to be disabled" 2019-04-02 05:12:32 +00:00
Mill Chen
c0754b35ba Settings unexpectedly open after turning work profile on
ConfirmDeviceCredentialActivity doesn't set a taskAffinity, so the
default taskAffinity is the package name. That's why Settings
unexpectedly open after users turn work profile on. We specified an
unique name to taskAffinity to avoid launching Settings activity.

Fixes: 129330530
Test: turn work profile off then turn it on, repeat
Change-Id: I1f71c3d1bb37a09a6393fae4c01bc9b18cab49a8
2019-04-01 20:54:03 -07:00
Tony Zhu
95ba1ab61f Merge "Control VoLTE toggle names by "show_4g_for_lte_data_icon_bool"." 2019-04-02 03:36:03 +00:00
Clown SHEN
5cfde78ac3 Merge "Enlarge wifi signal icon from 24dp to 32dp for header view" 2019-04-02 03:20:34 +00:00
clownshen
38f4acf77f Add test cases for disconnected/not in range network
Since detail page support to display for saved network which connection
state may be disconnected or not in range, add more test cases for this
new change.

Bug: 124707751
Test: atest WifiDetailPreferenceControllerTest passed
Change-Id: Ia6426ed6336c09f387317c5597f8deb14c1a9502
2019-04-02 03:13:43 +00:00
Clown SHEN
86668e2565 Merge "Update state as disconnected when Wi-Fi disabled" 2019-04-02 03:03:49 +00:00