Commit Graph

27127 Commits

Author SHA1 Message Date
Amin Shaikh
3f1de20c7e Fix themed settings icons.
- Added android prefix for homeAsUpIndicator attribute
- Override ic_arrow_down_24dp from androidx
- Remove ic_lock drawable overlay
- Update date and time icon
- Dedupe ic_menu_add and ic_add_24dp

Bug: 131346125
Test: mp settings;
Change-Id: I7223249f2adccc5569a37e8b68cae5499e7c7620
2019-05-03 17:02:46 +00:00
Salvador Martinez
bd6045bea9 Update Battery Saver schedule to add order to seekbar
If the first time battery saver warning was the one causing
a change in settings global the radio button picker doesn't update
the preferences correctly and would put the seekbar at the top. This
explicitly adds an order to the seekbar so that if it gets updated
for some reason it will show up at the end again.

Test: atest BatterySaverScheduleSettingsTest
Bug: 131434758
Change-Id: Iebab5d176c8fbdaea078e13a71eff7e21408353b
2019-05-03 10:01:34 -07:00
Beth Thibodeau
1d1f1b321e Merge "Add setting suggestion for style" into qt-dev 2019-05-03 16:54:54 +00:00
Lei Yu
5efc949f49 Merge "Update dialog text for untethered BT device" into qt-dev am: 76a3e5bfac
am: 1b995f2a4c

Change-Id: Id99385b551bfd96bfea4d92ce6b66d3af2f0c416
2019-05-03 08:11:20 -07:00
Raff Tsai
031d7b3978 Merge "Can't switch navigation mode from search results" into qt-dev am: aad3cdcf5f
am: 288128f719

Change-Id: I55932b288791a055711b747b39f629b041112548
2019-05-03 08:10:25 -07:00
Lei Yu
1b995f2a4c Merge "Update dialog text for untethered BT device" into qt-dev
am: 76a3e5bfac

Change-Id: I2684fe796d8da2ef4148de495a136815d8059032
2019-05-03 08:03:50 -07:00
Raff Tsai
288128f719 Merge "Can't switch navigation mode from search results" into qt-dev
am: aad3cdcf5f

Change-Id: I8934be985dfd51a5d2ec5b6dd873caf0fab75a67
2019-05-03 08:02:43 -07:00
Michael Wachenschwanz
a759f72127 Merge "Simplify user flow for setting default supervisor as PO" into qt-dev am: 563b56af75
am: 57177733d4

Change-Id: Ic60f453acd6741f5af79ce3f0ceb1ddd68a04e51
2019-05-03 03:57:57 -07:00
Yanting Yang
67a4449ef5 Clean up import in homepage
- Update import for MetricsProto to SettingsEnums
- Remove unused import
- Sort import

Fixes: 131885942
Test: robotests
Change-Id: I9a5e06adaa19bac9c082f53f1c627356be7148d8
2019-05-03 18:52:07 +08:00
Michael Wachenschwanz
57177733d4 Merge "Simplify user flow for setting default supervisor as PO" into qt-dev
am: 563b56af75

Change-Id: I33c49b2aa091d8f97ff0f209903d5a0cdbfda877
2019-05-03 03:35:00 -07:00
Jason Chiu
c37126628a Update the deprecated Slice APIs to the new ones
Fixes: 131880868
Test: build, visual, robotest
Change-Id: I2cbb8fe131ebb284dabc5a5d65e70db254691688
2019-05-03 17:33:09 +08:00
Jason Chiu
6a6787cdc0 Add subtext for Wi-Fi items on Wi-Fi slice
- Sync the Wi-Fi slice items subtexts with Wi-Fi page, and add
  "Not connected" when the returned subtext is empty
- Wi-Fi slice header subtext just simply reveals on/off state
- Add a placeholder to the loading row to sync its height with other
  rows
- Show contextual Wi-Fi slice when the connected network is captive
  portal, is invalidated, or has limited connectivity

Bug: 130751985
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I0b2715295f00edc8dd7d6d75b7fdc18263675797
2019-05-03 16:18:42 +08:00
Raff Tsai
1f0a1171b7 ANR observed under settings when trying to reset network settings
- Move reset network settings code to async task.

Test: manual, Robolectric
Fixes: 130772994
Change-Id: I59345f48ed840ecfd64c29c2c20ab8caf2679f63
Merged-In: I59345f48ed840ecfd64c29c2c20ab8caf2679f63
2019-05-03 13:02:07 +08:00
TreeHugger Robot
920723019e Merge "Add metrics categories for delete sims dialogs." into qt-dev 2019-05-03 02:48:30 +00:00
yuanjiahsu
565306349f Merge "Clean Safetyhub feature flag from Settings." into qt-dev am: ccfd708b87
am: 3c9a2b5514

Change-Id: I5f0a73cddd4634d0594a0a954cecf2b1937ddf5f
2019-05-02 19:03:19 -07:00
yuanjiahsu
3c9a2b5514 Merge "Clean Safetyhub feature flag from Settings." into qt-dev
am: ccfd708b87

Change-Id: I3e61deae0b689d8a19dc9f7bf549d53f97caf91a
2019-05-02 16:20:47 -07:00
TreeHugger Robot
a5bc389c9d Merge "Update battery saver footer to have learn more link" into qt-dev 2019-05-02 21:38:37 +00:00
Andrew Sapperstein
aaf8af5430 Add metrics categories for delete sims dialogs.
Fixes: 131519375
Test: is metrics
Change-Id: I020e3d887fb0408617428d00386bb57318b6b175
2019-05-02 14:03:24 -07:00
Salvador Martinez
b056b7dec4 Update battery saver footer to have learn more link
This will allow tapping on the Learn More text to take a user to
the support page for battery saver.

Bug: 129010739
Test: atest BatterySaverSettingsTest
Change-Id: Ifb758ea8c608a4051c093b5d1d43f9a039ab1294
2019-05-02 13:08:52 -07:00
Lei Yu
76a3e5bfac Merge "Update dialog text for untethered BT device" into qt-dev 2019-05-02 17:18:04 +00:00
TreeHugger Robot
aad3cdcf5f Merge "Can't switch navigation mode from search results" into qt-dev 2019-05-02 16:55:53 +00:00
Beth Thibodeau
bf63dde205 Add setting suggestion for style
Also added extra to the existing wallpaper suggestion so it opens
directly to that tab instead of the style tab

Test: atest com.android.settings.wallpaper.StyleSuggestionActivityTest
Fixes: 126230901

Change-Id: I50ca588627063194900dca8a9273baff4a44ca67
2019-05-02 10:58:22 -04:00
Michael Wachenschwanz
563b56af75 Merge "Simplify user flow for setting default supervisor as PO" into qt-dev 2019-05-02 14:35:20 +00:00
timpeng
c6820d1e64 [Fix] prevent Talkback from reading out Bluetooth ImageView ContentDescription am: 0dde3a3b34
am: df2ab2663e

Change-Id: Ie65357baf9d84295826afe392087f01c5446045c
2019-05-02 01:56:34 -07:00
TreeHugger Robot
ccfd708b87 Merge "Clean Safetyhub feature flag from Settings." into qt-dev 2019-05-02 08:44:39 +00:00
lindatseng
6855d34ff6 Merge "Avoid NPE in app storage page" into qt-dev am: 35efae7822
am: f51d1d234c

Change-Id: Iaecb7a454e9a17660a82b0440f130089fad31675
2019-05-02 00:41:02 -07:00
Raff Tsai
8f205a66c0 Can't switch navigation mode from search results
3 Navigation modes are mutually exclusive, we can't set all often
them on. Therefore we will now show them as slices.

Fixes: 131713601
Test: robolectric, manual
Change-Id: I52e94dffe15ed20a23a5e4cea68a40b66158b3dd
2019-05-02 14:40:43 +08:00
timpeng
df2ab2663e [Fix] prevent Talkback from reading out Bluetooth ImageView ContentDescription
am: 0dde3a3b34

Change-Id: I4192c889d3d91a7ccc6e2dbad26aafd4e615bcea
2019-05-01 23:23:49 -07:00
lindatseng
f51d1d234c Merge "Avoid NPE in app storage page" into qt-dev
am: 35efae7822

Change-Id: I09ab48b5d849e8c6c34551b1a8fabbe5530015b6
2019-05-01 22:49:08 -07:00
yuanjiahsu
1da7fbb09d Clean Safetyhub feature flag from Settings.
Clean all related code, need submit together.

Test: Manually
Bug: 118848485
Change-Id: Icaa0c0736dfa4a7d96aba396a884c9d3383a0f22
2019-05-02 12:45:53 +08:00
Michael Wachenschwanz
35eef604a3 Simplify user flow for setting default supervisor as PO
A follow up CL will clean up and separate the DeviceAdminAdd and
ProfileOwnerAdd logic (see b/131713071)

Bug: 124066840
Test: manual (overlay config_defaultSupervisionProfileOwnerComponent and
confirm only that component can be set as profile owner after setup is
complete)
Test: manual (install CtsVerifier, adb shell am start -n "com.android.cts.verifier/.admin.tapjacking.OverlayingActivity", user should not be able to click the "Allow" button)

Change-Id: Iccd931801145719110ce75421c35db80ea651779
2019-05-02 03:42:06 +00:00
timpeng
0dde3a3b34 [Fix] prevent Talkback from reading out Bluetooth ImageView ContentDescription
- set View.IMPORTANT_FOR_ACCESSIBILITY_NO to ImageView

Bug: 128396030
Test: RunSettingsRoboTests
Change-Id: I267921057ede734a3c9be7087f34c96631e04859
2019-05-02 02:05:00 +00:00
Yi-Ling Chuang
0789b5d226 Use PermissionControllerManager to get permission groups
The mapping of permissions and permission groups may be changed upon
mainline module update, so we cannot reliably read from the platform.
PermissionControllerManager is created for this purpose, so we use it
to prevent from the outdated mapping instead of mapping them manually.

Bug: 117978938
Test: robotests

Change-Id: If8682796b8a30dee3b73572e977fade48d07eb2b
2019-05-02 10:04:53 +08:00
Cn Chen
88faf90a29 Merge ""Change font size" tile should go to settings' font size page directly" 2019-05-02 02:00:40 +00:00
Julia Reynolds
57746eed0b Merge "Importance preference updates" into qt-dev am: 1613d883e8
am: 176f142f74

Change-Id: I245505a348a449beed5666c58cb0eb0cc6b13638
2019-05-01 17:50:23 -07:00
Pengquan Meng
3aa1eac86c Merge "Disable 'Enable DSDS' switch for always dsds mode" into qt-dev am: 7707133ec6
am: e324f00e81

Change-Id: I468e7f267baf0e104e1d8cf5824e99e507bc472c
2019-05-01 16:24:47 -07:00
cosmohsieh
0bf3cc1f3a Merge "Fix modification of WifiDialog doesn't take effect on details page" into qt-dev am: 4653879a22
am: 4f2a59802f

Change-Id: I5fb1ca7ae3e9927ad103c2e7793abb8ee7b74836
2019-05-01 16:23:23 -07:00
Salvador Martinez
1600a5ce1a Merge "Fix null pointer in SubscriptionUtil" into qt-dev am: 30d0e6c7d7
am: ac690d98c0

Change-Id: I69b7f210bbbef2bba3ef6792c128b806db07e90e
2019-05-01 16:01:49 -07:00
Tim Peng
7e39f6f359 Merge "Update "Play media to" display rule in SoundSetting" into qt-dev am: 1bf8fb8535
am: a5d1d35bcf

Change-Id: Ibc962a2b9476fdde34d77cd32303dba0e0f39c1d
2019-05-01 15:23:16 -07:00
Julia Reynolds
176f142f74 Merge "Importance preference updates" into qt-dev
am: 1613d883e8

Change-Id: I4b1d004cf4ff88253a901942b70b312d8751d033
2019-05-01 13:55:20 -07:00
TreeHugger Robot
35efae7822 Merge "Avoid NPE in app storage page" into qt-dev 2019-05-01 20:19:42 +00:00
Pengquan Meng
e324f00e81 Merge "Disable 'Enable DSDS' switch for always dsds mode" into qt-dev
am: 7707133ec6

Change-Id: Ia068770daad2f035578508e7718c6b50b6e9768d
2019-05-01 12:41:09 -07:00
Lei Yu
d9ecc3ae9a Update dialog text for untethered BT device
Fixes: 122672631
Test: RunSettingsRoboTests
Change-Id: I380308acbb7025461ef34aeec68e535189714bf3
2019-05-01 12:37:55 -07:00
Julia Reynolds
1613d883e8 Merge "Importance preference updates" into qt-dev 2019-05-01 19:17:13 +00:00
cosmohsieh
4f2a59802f Merge "Fix modification of WifiDialog doesn't take effect on details page" into qt-dev
am: 4653879a22

Change-Id: If9c026f8e34e6b326c4dda6743aa374d27eb9122
2019-05-01 11:54:28 -07:00
Pengquan Meng
7707133ec6 Merge "Disable 'Enable DSDS' switch for always dsds mode" into qt-dev 2019-05-01 18:29:38 +00:00
Xiangyu/Malcolm Chen
39e8aaba93 Merge "Create enable MMS notification." into qt-dev am: 25de66c030
am: 4a0f2aedd5

Change-Id: I508a0eb6ee8a23e9bcf6c6394af8e1860cfae31d
2019-05-01 11:22:28 -07:00
Salvador Martinez
ac690d98c0 Merge "Fix null pointer in SubscriptionUtil" into qt-dev
am: 30d0e6c7d7

Change-Id: I0cba2206822450f14610d557f7844e8e1ea08abc
2019-05-01 10:59:11 -07:00
Tim Peng
a5d1d35bcf Merge "Update "Play media to" display rule in SoundSetting" into qt-dev
am: 1bf8fb8535

Change-Id: Iadb043eb838aee8d3680bb7a295647ab3444a033
2019-05-01 09:44:47 -07:00
TreeHugger Robot
4653879a22 Merge "Fix modification of WifiDialog doesn't take effect on details page" into qt-dev 2019-05-01 15:48:41 +00:00