Commit Graph

82826 Commits

Author SHA1 Message Date
ykhung
4d8f4e92d1 Add metric for battery defender am: 6590b368f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14554360

Change-Id: I76e5c84510d36acc84a9f8d1e1dbf2b95c49cf9d
2021-05-18 05:41:06 +00:00
ykhung
6590b368f2 Add metric for battery defender
Bug: 188384887
Test: make SettingsRoboTests
Change-Id: Ida96deb6efe94a98cf6837b9f82758467a4d1300
2021-05-18 05:19:45 +00:00
Menghan Li
bbe0e006ad Merge "Fix flake issue on SettingsRoboTests" into sc-dev am: cadd868911
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14609993

Change-Id: I15afebdfd39fd2f4b31bb856822e4dcd8d66ce7b
2021-05-18 05:01:10 +00:00
Menghan Li
cadd868911 Merge "Fix flake issue on SettingsRoboTests" into sc-dev 2021-05-18 04:36:32 +00:00
TreeHugger Robot
8a70ea3cb1 Merge "Fix search highlight issues" into sc-dev am: 03099c04bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14519527

Change-Id: Ib2f47a1050eb9296351f216d431ef7bd626a21e9
2021-05-18 03:57:38 +00:00
TreeHugger Robot
03099c04bd Merge "Fix search highlight issues" into sc-dev 2021-05-18 03:24:17 +00:00
menghanli
4a12cd51a6 Fix flake issue on SettingsRoboTests
Root cause: SpannableStringBuilder cannot handle the preference title is
empty caes.
Solution: Assign default value in test case setup.

Bug: 188448957
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=AccessibilityButtonFooterPreferenceControllerTest
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=AccessibilityControlTimeoutFooterPreferenceControllerTest
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=CaptionFooterPreferenceControllerTest
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=ToggleAutoclickFooterPreferenceControllerTest
Change-Id: Ia95a6ecba824d81e0ccf649975517231ecf475b3
2021-05-18 10:44:04 +08:00
Evan Severson
df52df6e5f Merge "Update the settings privacy page to the latest mocks" into sc-dev am: 39e7cb2721
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14215739

Change-Id: Iac0c70e5196cc7b3c21b53cc57eae9fa8dc88d54
2021-05-18 00:38:12 +00:00
Evan Severson
39e7cb2721 Merge "Update the settings privacy page to the latest mocks" into sc-dev 2021-05-18 00:23:22 +00:00
Evan Severson
175ca1c4b0 Update the settings privacy page to the latest mocks
Add the mic and camera toggles to the page. Also create an helper class
to keep binder calls to the system_server at a minimum.

Test: make RunSettingsRoboTests
Test: atest SettingsUnitTests
Test: Manual
Bug: 183985427
Change-Id: Iff6ee1c9a2c30095307f636decbcfcf298ed31b0
2021-05-17 22:49:28 +00:00
TreeHugger Robot
2afa75f4d4 Merge "Expose Lock screen settings page." into sc-dev am: cbb2bd6d13
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14544233

Change-Id: I9d44b4ebccb84e566e447d12e55adf65519327dd
2021-05-17 17:56:14 +00:00
TreeHugger Robot
cbb2bd6d13 Merge "Expose Lock screen settings page." into sc-dev 2021-05-17 17:48:18 +00:00
YUKAI HUNG
69345fc949 Merge "Fix legacy failed unit test for BatteryInfoLoader" into sc-dev am: 10559fb9de
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14554353

Change-Id: I960c7a4728695ebc04b949183fcd888f32330be5
2021-05-17 13:43:04 +00:00
YUKAI HUNG
10559fb9de Merge "Fix legacy failed unit test for BatteryInfoLoader" into sc-dev 2021-05-17 13:19:50 +00:00
Tsung-Mao Fang
582f4a961e Fix search highlight issues
This cl fixes two kinds of issues.
1) Highlight two different preferences while clicking a search result.
2) Preference only is  highlighted one time.

For the first problem, we don't allow to reuse view holder in the
highlight scenario, and then allow it later.

The root cause of second problem is scrolling to target preference
needs x milliseconds. Thus, we should wait a few milliseconds, and
then start to highlight preference.

Test: Test some search results, and see the correct behavior
Fix: 186060148
Fix: 186010165
Fix: 187886982
Change-Id: I7df3e34efe39ee386fe9ce91d7d6c52cf390e2e7
2021-05-17 19:42:41 +08:00
Menghan Li
ee154ec119 Merge "Remove above divider of main switch" into sc-dev am: c6e056b7f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14554350

Change-Id: I7d0d6a4504e0cc8f48ee20e25561eb31eafc8c5d
2021-05-17 08:28:18 +00:00
Menghan Li
d85aba8262 Merge "Fix “Learn more” link not working on Magnification shortcut page from Vision Settings" into sc-dev am: 94ac5181ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14554349

Change-Id: I1e46777ae19801f083cf006c1c2b29d369dd5da9
2021-05-17 08:28:11 +00:00
Arc Wang
4ece06fc7a Rename audios to audio am: 6062b6491d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14518465

Change-Id: Iaa77c4b2266e4167620e0b0e98174128c10791c4
2021-05-17 08:28:06 +00:00
Arc Wang
fd55b57130 Storage Settings shift profile selection tab position am: c0b5ba5225
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14441414

Change-Id: Iad112c473629325d5b6d12209d7433420a0a20c6
2021-05-17 08:27:56 +00:00
Menghan Li
c6e056b7f4 Merge "Remove above divider of main switch" into sc-dev 2021-05-17 08:22:45 +00:00
Menghan Li
94ac5181ba Merge "Fix “Learn more” link not working on Magnification shortcut page from Vision Settings" into sc-dev 2021-05-17 08:21:16 +00:00
ykhung
f49eaf54e6 Fix legacy failed unit test for BatteryInfoLoader
fix the legacy failed test since the scale is different, setting the
testing value in ms scale (getBatteryTimeRemainingMs()), but getting
the data in us scale (info.remainingTimeUs)

Bug: 188244142
Test: make SettingsRoboTests
Change-Id: Ib389976985eb3741cc96e0ee4a3a000c7f690b37
2021-05-17 06:19:09 +00:00
Arc Wang
6062b6491d Rename audios to audio
Bug: 186635176
Test: build pass
Change-Id: I0d909f639fe36edf2e5088c7ec219cceee4e963a
2021-05-17 14:11:17 +08:00
Arc Wang
c0b5ba5225 Storage Settings shift profile selection tab position
In this change, Storage Settings main UI is composed by 3 fragments.

StorageDashboardFragment only shows when there is only personal profile for
current user.

ProfileSelectStorageFragment (controls preferences above profile tab) and
StorageDashboardNoHeaderFragment (controls preferences below profile tab)
only show when current user has installed work profile.

Bug: 174964885
Test: atest com.android.settings.deviceinfo
      atest com.android.settings.deviceinfo.storage
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo.storage
Change-Id: I50dea2fbcae39a1488e648f3ca615f54840e19d5
2021-05-17 14:07:24 +08:00
menghanli
79889460ae Remove above divider of main switch
Problem: The main switch won't be the ceiling preference. It has chance to show the divider if another preference won't disable the below divider.
Solution: Remove the above divider.

Bug: 186066199
Test: Test: Manual testing
Change-Id: I49893fa71b016f82dce9f402d47c86ec3df20a54
2021-05-17 05:52:50 +00:00
menghanli
6be6377079 Fix “Learn more” link not working on Magnification shortcut page from Vision Settings
Root cause: It does not allow to start another activity before SuW
Completed. We should not show link for users.
Solution: Remove the link

Bug: 188034493
Test: Manual testing
Change-Id: I25d3eb3d02a2b992411ea7b73308f3e3503cd70a
2021-05-17 12:44:29 +08:00
Silin Huang
c80b3ab718 Expose Lock screen settings page.
Test: atest
Bug: 188105349
Change-Id: I7646f712608076037634c26d2334de4367b4452b
2021-05-17 02:57:38 +00:00
Kevin Chyn
be9fc0c502 Merge "Fingerprint image is not important for a11y announcements" into sc-dev am: 15d75cf59a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14537692

Change-Id: I66d7e9fa2e671bc004e76d341e4b6222e1a5d053
2021-05-14 21:26:38 +00:00
Kevin Chyn
15d75cf59a Merge "Fingerprint image is not important for a11y announcements" into sc-dev 2021-05-14 21:06:11 +00:00
TreeHugger Robot
bd6f4c9bf4 Merge "Filter out SecuritySettings search results when alternative available." into sc-dev am: 8355121c28
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14548182

Change-Id: Id2bd7b3536bdf4e3c6f05a89403f5092e5f59e73
2021-05-14 19:51:17 +00:00
TreeHugger Robot
8355121c28 Merge "Filter out SecuritySettings search results when alternative available." into sc-dev 2021-05-14 19:33:01 +00:00
Yanting Yang
7d1bb87fcc Merge "Remove silky flag from homepage for official release" into sc-dev am: 89cd044bd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14502202

Change-Id: Ie2441f460ef5b7c88cc1780bd6cbd1c41970a66f
2021-05-14 18:35:12 +00:00
Yanting Yang
89cd044bd7 Merge "Remove silky flag from homepage for official release" into sc-dev 2021-05-14 18:13:29 +00:00
YUKAI HUNG
6e82da9c8f Merge "Add battery usage metric" into sc-dev am: d2d7d89de6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14547065

Change-Id: I6d2ac1c99d1d333131be9db6a8eb993bce261aa9
2021-05-14 17:51:10 +00:00
YUKAI HUNG
d2d7d89de6 Merge "Add battery usage metric" into sc-dev 2021-05-14 17:22:10 +00:00
Abel Tesfaye
cb9ae7b1e9 Merge "Fix issue where smart auto rotate toggle is not disabled" into sc-dev am: c077b490f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14504137

Change-Id: Id099e99921d7151cf2d64319873a4b268c284823
2021-05-14 16:12:37 +00:00
Abel Tesfaye
c077b490f4 Merge "Fix issue where smart auto rotate toggle is not disabled" into sc-dev 2021-05-14 15:55:01 +00:00
ykhung
1ec8f04feb Add battery usage metric
Bug: 188046672
Test: make SettingsRoboTests
Change-Id: I1716913eee7c93cafd622052dcbca940c9726a17
2021-05-14 14:18:55 +00:00
Arc Wang
39bc5840e8 Merge "Fix hint text color contrast problem in LocalePickerWithRegionActivity" into sc-dev am: c0d31a80d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14540525

Change-Id: Ib297a18d06d0600aee40192b0faad94c8589ab7c
2021-05-14 13:13:54 +00:00
Arc Wang
fba9aaa468 Merge "Fix NPE in DrawOverlayDetails#getSummary" into sc-dev am: 20d45cc6f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14519528

Change-Id: Ife6621b0f0fbdcb7060b5e7310a574183bbad56d
2021-05-14 13:13:47 +00:00
Arc Wang
c0d31a80d3 Merge "Fix hint text color contrast problem in LocalePickerWithRegionActivity" into sc-dev 2021-05-14 12:59:11 +00:00
Arc Wang
20d45cc6f2 Merge "Fix NPE in DrawOverlayDetails#getSummary" into sc-dev 2021-05-14 12:58:36 +00:00
Jan Tomljanovic
e6070f9f0e Filter out SecuritySettings search results when alternative available.
When alternative fragment is shown for the security settings page, we
don't want to show search results that would lead to an unused security
settings page.

Test: manual
Test: atest SettingsUnitTests
Test: make RunSettingsRoboTests -j
Bug: 184613149
Change-Id: I525bd87d1ac6a24a7a26f59ae917e35ac39732e3
2021-05-14 11:52:12 +01:00
TreeHugger Robot
5bd765fda8 Merge "Apply transition on the back arrow on NotificationHistory page" into sc-dev am: 5af530a054
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14542668

Change-Id: I4ec6182ccd3a29ae2080985737021191821b423f
2021-05-14 10:25:49 +00:00
TreeHugger Robot
5af530a054 Merge "Apply transition on the back arrow on NotificationHistory page" into sc-dev 2021-05-14 10:18:46 +00:00
YUKAI HUNG
f122a57757 Merge "Export a method for app info page to get last 24 battery history data" into sc-dev am: abd364e1f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14542666

Change-Id: I7995b155530e968ce510c53ccc0021f8f913c2be
2021-05-14 10:18:19 +00:00
YUKAI HUNG
abd364e1f3 Merge "Export a method for app info page to get last 24 battery history data" into sc-dev 2021-05-14 10:11:28 +00:00
TreeHugger Robot
3b42fe7212 Merge "[Rohan] Two battery level, but no charging status in Rohan Setting" into sc-dev am: 0174c4bad0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14515925

Change-Id: Ifb968f06ece8cc38d9358590764d02f51cc6bdfd
2021-05-14 10:03:32 +00:00
TreeHugger Robot
661d7691ae Merge "Fix foreground Service background launch restriction" into sc-dev am: 7c50995261
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14542667

Change-Id: Ida331d3c2b8a4a257310f50f6637501ace7593a4
2021-05-14 10:03:24 +00:00
TreeHugger Robot
0174c4bad0 Merge "[Rohan] Two battery level, but no charging status in Rohan Setting" into sc-dev 2021-05-14 09:59:54 +00:00