Commit Graph

51159 Commits

Author SHA1 Message Date
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
clownshen
b5ab562c12 Update state as disconnected when Wi-Fi disabled
Connect button display wrong string "Connecting..." and be disabled
when Wi-Fi turned off at quick setting. Update state as disconnected
when Wi-Fi disabled to fix this issue.

Bug: 129514552
Test: manual test
Change-Id: I76a247ce0ed951357172e67221281b004df386d8
2019-04-02 03:02:22 +00:00
tonyzhu
2dceec7661 Control VoLTE toggle names by "show_4g_for_lte_data_icon_bool".
Using "show_4g_for_lte_data_icon_bool" to control VoLTE toggle names,
making sure strings can be correspond to the icon.

Bug: 128325427
Test: Use commands to override carrier config to observe the
UI as expected.
Test: atest pass.

Change-Id: I41dd28eb2c14d385a8396c551bf5ef2cf9258997
2019-04-02 09:48:44 +08:00
Hall Liu
f37805816e [automerger skipped] Merge "Show the disclaimer regarding WFC location privacy policy" am: 5697a7e85d am: fa412244c8
am: 23551e561f -s ours
am skip reason: change_id I03895743fb8da95269069ad7eda9a7b3e282857e with SHA1 a37337349c is in history

Change-Id: Ic1a35b2edfeb9ecd2780cb73452d52c5f4488e4d
2019-04-01 17:58:07 -07:00
Hall Liu
23551e561f Merge "Show the disclaimer regarding WFC location privacy policy" am: 5697a7e85d
am: fa412244c8

Change-Id: Id628e249c421740339dab7ce8abf60371fb12110
2019-04-01 17:13:21 -07:00
Hao Zhang
ec20de3eba Show the disclaimer for WFC emergency call limitation
The emergency calls might not work properly via wifi calling, especially
in areas with no 2G/3G coverage. Display the disclaimer for the this
limitation when a user enabled the wifi calling setting.

Test: manual - Checked that the disclaimer for emergency call limitation
is shown when changing wifi calling setting to turned on.
Test: auto - Passed EmergencyCallLimitationDisclaimerTest.
Bug: 68115846

Change-Id: I881d479c1e02525ac614c66594637a5e0347d70c
2019-04-01 17:09:41 -07:00
jackqdyulei
8a61657c6d Disable "Battery dialog" for default apps
If it is default active app(i.e. Phone, SMS), disable battery
optimzation dialog so user can't optimize it.

Fixes: 118910079
Test: RunSettingsLibRoboTests
Change-Id: I7223913c1e6ef68d84adfc2c54d133661a529202
2019-04-01 16:55:04 -07:00
Hall Liu
fa412244c8 Merge "Show the disclaimer regarding WFC location privacy policy"
am: 5697a7e85d

Change-Id: Iddb15758aefffade3138d0d8c42a953d50640b14
2019-04-01 16:25:49 -07:00
Hall Liu
5697a7e85d Merge "Show the disclaimer regarding WFC location privacy policy" 2019-04-01 22:55:51 +00:00
TreeHugger Robot
f64cf23ea6 Merge "Don't allow RRO uninstall if overlay is enabled" 2019-04-01 22:48:16 +00:00
Linda Tseng
ed4bc05f6f Merge "Tint icon colors of storage screen same as other screen" 2019-04-01 22:07:32 +00:00
Fan Zhang
15e0d60f11 Merge "WifiCallingSettingsForSubTest: Solve casting problem in setup" am: 8877dc8fd0 am: 3a19c32bfe
am: 74fa961299

Change-Id: I5c71c56414783b97d4faf1ecd56c20f5fd5793a3
2019-04-01 14:56:58 -07:00
Fan Zhang
74fa961299 Merge "WifiCallingSettingsForSubTest: Solve casting problem in setup" am: 8877dc8fd0
am: 3a19c32bfe

Change-Id: Ifc39462efeb50a6776cf4e419df650164ad5f1a5
2019-04-01 14:50:41 -07:00
Xiangyu/Malcolm Chen
d5f0e93e66 [automerger skipped] Merge "Move SIM select logic from SimSelectNotification to Telephony." am: 6fca0c9495 am: d42dcf04db
am: 33aba7c0d0 -s ours
am skip reason: change_id I6153e27dd00dd9cdf8682f135eb39f8af3a75608 with SHA1 41855ec8b9 is in history

Change-Id: I8b50c0da43c795b0db04a695b3242136fd6d936c
2019-04-01 14:49:16 -07:00
Fan Zhang
3a19c32bfe Merge "WifiCallingSettingsForSubTest: Solve casting problem in setup"
am: 8877dc8fd0

Change-Id: I34fd41dfc4e12c069f78cb017f8f754a43689b74
2019-04-01 14:45:32 -07:00
Xiangyu/Malcolm Chen
33aba7c0d0 Merge "Move SIM select logic from SimSelectNotification to Telephony." am: 6fca0c9495
am: d42dcf04db

Change-Id: I5f57320b1ad10e5207771bae0495eac656240a02
2019-04-01 14:32:12 -07:00
Fan Zhang
8877dc8fd0 Merge "WifiCallingSettingsForSubTest: Solve casting problem in setup" 2019-04-01 21:11:38 +00:00
Xiangyu/Malcolm Chen
d42dcf04db Merge "Move SIM select logic from SimSelectNotification to Telephony."
am: 6fca0c9495

Change-Id: I85ec9746b8df4a5eb53d6e0fe7e29434f12ec812
2019-04-01 14:06:49 -07:00
Xiangyu/Malcolm Chen
6fca0c9495 Merge "Move SIM select logic from SimSelectNotification to Telephony." 2019-04-01 20:51:54 +00:00
Zoran Jovanovic
c6d79cd0da Don't allow RRO uninstall if overlay is enabled
System RROs can never be uninstalled. Also, enabled RRO, i.e.
RRO applied to their target packages, must not be uninstalled by
end-user because that may be dangerous to the configuration of
its target package. Disabled RROs, i.e. RRO not applied to their
target packages, are free to be uninstalled to reclaim space.

Bug: 124556507
Test: manual + `make RunSettingsRoboTests ROBOTEST_FILTER=AppButtonsPreferenceControllerTest`
Change-Id: Ib6bd2765c8cb88a5887de817a08a1541eaee0cab
2019-04-01 20:32:51 +00:00
TreeHugger Robot
761704809b Merge "Send a broadcast when turning grayscale off" 2019-04-01 20:15:24 +00:00
Fan Zhang
b1b07e2030 Convert xml based API allowDynamicSummaryInSlice to java
- Add boolean useDynamicSliceSummary() in Sliceable interface. This is
  the switch equivalent to android:allowDynamicSummaryInSlice in xml. It
  moves the setter closer to regular Sliceable APIs, thus less easily to
  miss.
- Coverted all android:allowDynamicSummaryInSlice to use the java API.
  - Except 2 prefs in my_device_info. They incorrectly set this to true
  previously (controller is not sliceable, no point setting
  dynamicSliceSummary to true. They just won't do anything)

Fixes: 128446156
Test: robolectric
Change-Id: Ic57acd590dec3e87dcf4592df137321d14b854d9
2019-04-01 12:39:30 -07:00
jackqdyulei
36948cefe9 Remove unnecessary notify in BT preference
notifyHierarchyChanged() is used before when we have
connected/disconnect deivce in same list. So only use it in
DevicePickerFragment.java, not other normal fragments.

Also that call will rebuild whole preference list, which is heavy.

Bug: 119479725
Test: Manual
Change-Id: I06cf221588001b38634fec9f02dee8bc1e561ea8
2019-04-01 12:39:24 -07:00
lindatseng
3debd0691d Tint icon colors of storage screen same as other screen
We were using hard-coded colors to tint the icons on storage screen
for some reasons.  Change it to the same way we tint other icons,
as there's no reason to keep it special, and also per partner's
request to keep it consistent with other screens.

Also update the ic_sim_sd icon from png to vectors.

Test: Manual/Visual verification
BUG: 113977374
Change-Id: Ia0210635e936b6798aaf9e48dd8815a197396065
2019-04-01 19:15:14 +00:00
Mill Chen
526fb9f8fb Send a broadcast when turning grayscale off
When users turn grayscale off in Settings, Settings will send an intent
to receivers who have requested the CONTROL_DISPLAY_COLOR_TRANSFORMS
permission. We also specify FLAG_RECIEVER_INCLUDE_BACKGROUND to make
sure that the intent could be sent to manifest receivers.

Bug: 118387886
Test: robotests
Change-Id: Ib0c959e72dd4068014951347df35409790c77ab5
2019-04-01 11:11:47 -07:00
Quang Luong
619211cd9e Merge "Added connect listener to startOsuProvisioning()" 2019-04-01 17:55:36 +00:00
Yanting Yang
44b84de84c Merge "Fix talkback issue which focus on entire grid" 2019-04-01 17:48:09 +00:00
TreeHugger Robot
77d8cff015 Merge "Refactor WifiScanWorker" 2019-04-01 13:48:27 +00:00
Yanting Yang
a0982b39bc Fix talkback issue which focus on entire grid
When there is only one condition card, sometimes talkback will focus on
entire grid. In fact, the entire grid is a recycler view which is the
container to put all contextual cards. Mark the recycler view with no
important for accessibility to fix it.

Fixes: 128896302
Test: visual
Change-Id: I177fa014ec3208001b3a490dbdf9b6b6195985ea
2019-04-01 18:38:42 +08:00
Arc Wang
a79ed2b133 Update Wi-Fi QR code scan icon and share icon
Replace with new material design version

Bug: 128706512
Test: manual
Change-Id: If7f474f91d36a9997464c8a68fc41b8d7ced0307
2019-04-01 18:00:07 +08:00