Commit Graph

36186 Commits

Author SHA1 Message Date
Weng Su
045b3eba93 Merge "[Provider Model] Move the Internet unavailable Wi-Fi down" into sc-dev am: 4e341b780a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13990616

Change-Id: I5845d9691397f86ade3e69279d8e9c33a6f53b99
2021-03-30 11:57:01 +00:00
Weng Su
4e341b780a Merge "[Provider Model] Move the Internet unavailable Wi-Fi down" into sc-dev 2021-03-30 11:32:57 +00:00
Arc Wang
5db8f5ae05 Merge "Check config to decide if Smart Storage toggle should exist" into sc-dev am: 21cf6c04db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13994999

Change-Id: Ib25fad04992539fb95bc32870a0ea28ab562a8c0
2021-03-30 11:18:35 +00:00
Arc Wang
71ec654fcc Merge "Show "Files" category for public storage in Storage Settings" into sc-dev am: dd2f2f51e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13975110

Change-Id: Iea8ea56dfa32eca83adeb75b5fc98668af017b80
2021-03-30 11:18:15 +00:00
Arc Wang
21cf6c04db Merge "Check config to decide if Smart Storage toggle should exist" into sc-dev 2021-03-30 09:49:48 +00:00
Arc Wang
dd2f2f51e0 Merge "Show "Files" category for public storage in Storage Settings" into sc-dev 2021-03-30 09:48:04 +00:00
Arc Wang
78bafc988a Check config to decide if Smart Storage toggle should exist
Bug: 174964885
Test: AutomaticStorageManagementSwitchPreferenceControllerTest
Change-Id: I3090e3d1b01b18b3d0f68396671c8791321cc480
2021-03-30 07:58:37 +00:00
Mill Chen
dc67195a45 Merge "Update lock pattern for landscape" into sc-dev am: ad8a4029c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14025285

Change-Id: Idca74002b472c842e403d8b269b693a6aea67476
2021-03-30 07:55:57 +00:00
Arc Wang
c626380689 Show "Files" category for public storage in Storage Settings
Users can click this preference to see public storage files
in external file browsers.

Bug: 170918505
Test: make RunSettingsRoboTests ROBOTEST_FILTER=StorageItemPreferenceControllerTest
      manual
      Select private storage and public storage and observe UI
Change-Id: If3f0d59b2ebf941d70e81e60c4c2015b80e7cf33
2021-03-30 15:51:49 +08:00
Mill Chen
ad8a4029c3 Merge "Update lock pattern for landscape" into sc-dev 2021-03-30 07:24:17 +00:00
Wesley Wang
9d58d7455e Merge "Reset smart battery page switch component" into sc-dev am: 4559d22e51
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14017668

Change-Id: I723254c68196c75607d21d89a400164fee908abf
2021-03-30 06:48:44 +00:00
Wesley Wang
4559d22e51 Merge "Reset smart battery page switch component" into sc-dev 2021-03-30 06:15:00 +00:00
Bonian Chen
e12af7c44d Merge "Revert "[Settings] Support getSystemService(Class<T>)"" into sc-dev am: fecfb7f5e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14022667

Change-Id: If7b7aed4d406cea84e118a9b8f9c29ae6206287d
2021-03-30 05:37:24 +00:00
YUKAI HUNG
6d80b45b15 Merge "Export methods from BatteryEntry and controller for battery usage" into sc-dev am: c0c7d4a5cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14008232

Change-Id: I71233bfa5cc56bb34e30dce628ae02fba1a9a681
2021-03-30 05:36:44 +00:00
Bonian Chen
fecfb7f5e4 Merge "Revert "[Settings] Support getSystemService(Class<T>)"" into sc-dev 2021-03-30 05:31:52 +00:00
YUKAI HUNG
c0c7d4a5cc Merge "Export methods from BatteryEntry and controller for battery usage" into sc-dev 2021-03-30 04:51:11 +00:00
Mill Chen
0cbd13d0df Update lock pattern for landscape
- Using GlifLayout api to set title and description
- Hide the header area for landscape mode

Bug: 179317709
Test: visual verified
1) Settings -> Security -> Screen lock -> Pattern
2) Try setting screen lock if there's no pattern
3) Rotate the screen during the settings flow and see if there's
an empty space leaving in the left side
4) Settings -> Security -> Fingerprint
5) Device will display a confirm lock pattern page
6) Rotate the screen and see if there's an empty space left

Change-Id: I16f614eceb873f40b7c48583223aedcbcbd7447d
2021-03-30 11:51:08 +08:00
ykhung
3828724b76 Export methods from BatteryEntry and controller for battery usage
Export getting icon and name function as static method in the
BatteryEntry for further restoring from database history records, and
export the mBatteryConsumer to record the type into local database.

Bug: 183906918
Test: make RunSettingsRoboTests
Test: make RunSettingsGoogleRoboTests
Change-Id: Ib3f0a457c8265baf0f6b97798bef0ea4a7156070
2021-03-30 10:55:55 +08:00
Bonian Chen
234b698fb2 Revert "[Settings] Support getSystemService(Class<T>)"
This reverts commit d5ccde31a8.

Reason for revert: failure on test cases

Change-Id: I0a179a6ebb5ef1dec566ce6e8facd5f3b82d7c8a
2021-03-30 00:51:15 +00:00
Sunny Shao
164692eb20 Merge "Fix runInstrumentableFragmentCodeInspection test case fail" into sc-dev am: 11eabdf3e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14017670

Change-Id: I2dc10e0542b76374405c5d6c45d7dcf2c87f23e2
2021-03-29 15:51:27 +00:00
Sunny Shao
11eabdf3e8 Merge "Fix runInstrumentableFragmentCodeInspection test case fail" into sc-dev 2021-03-29 15:18:32 +00:00
Jernej Virag
2fd49165eb Merge "Create a setting for Assist invocation via long press power button" into sc-dev am: 0a0721fb8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13921369

Change-Id: I3fc6f35d63d9767b8d6e18c2f32a08c62f5162f4
2021-03-29 14:15:59 +00:00
Sunny Shao
13f36a58dc Fix runInstrumentableFragmentCodeInspection test case fail
- Replace DialogFragment with InstrumentedDialogFragment.
- Remove the redundant code in the SupportedLinksDialogFragment.

Fixes: 183918543
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.core
Change-Id: I2a5eb97ec6669853f158a21695e49339aeb5808d
2021-03-29 22:00:04 +08:00
Jernej Virag
0a0721fb8a Merge "Create a setting for Assist invocation via long press power button" into sc-dev 2021-03-29 13:52:14 +00:00
Wesley.CW Wang
5c8caa3154 Reset smart battery page switch component
- Reset the switch to default design

Bug: 178199757
Test: make RunSettingsRoboTests -j40
Change-Id: I698493a946d7c8daaac73bfd3aaab807244997b0
2021-03-29 10:55:50 +00:00
Tiffany Nguyen
9eca32944f Merge "Update BatterySettingsFeatureProvider signature." into sc-dev am: 6a8ca4062e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13984446

Change-Id: I6a8006c6c79c2c69719076a735fddb9e2170bd67
2021-03-29 10:03:12 +00:00
Tiffany Nguyen
6a8ca4062e Merge "Update BatterySettingsFeatureProvider signature." into sc-dev 2021-03-29 09:50:37 +00:00
Tsung-Mao Fang
3e8f738828 Merge "Follow footer preference guildance on some pages" into sc-dev am: 0dae5d005f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13989773

Change-Id: Icba1862d5d5eb3ab8367b490d1892dc932ddf5c8
2021-03-29 09:43:01 +00:00
Tsung-Mao Fang
0dae5d005f Merge "Follow footer preference guildance on some pages" into sc-dev 2021-03-29 09:14:32 +00:00
Wesley Wang
d8556c43e7 Merge "Update Battery settings main page string (1/2)" into sc-dev am: e2217fc5c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13994994

Change-Id: Ia466ce3c84adfb044339465f0dfcbc08b6587896
2021-03-29 08:21:01 +00:00
Wesley Wang
e2217fc5c5 Merge "Update Battery settings main page string (1/2)" into sc-dev 2021-03-29 07:59:34 +00:00
Tiffany Nguyen
7a86b63115 Update BatterySettingsFeatureProvider signature.
Test: no-op
Bug: 181827717

Change-Id: I891452f0195e712dd775f458b16f985c63803370
2021-03-29 07:57:52 +00:00
Tsung-Mao Fang
2f8e8dcb5e Merge "Add collapsing toolbar to Device Admin Add page" into sc-dev am: 2a959d470a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13994990

Change-Id: I0f90ab6ed39ca7041335482bae56ca6bdddf6c5e
2021-03-29 07:57:32 +00:00
Jernej Virag
4f1e17eba1 Create a setting for Assist invocation via long press power button
Adds a setting which allows the user to enable invoking the Assist app via long pressing the power button. The availability of setting is controlled by config_longPressOnPowerForAssistantSettingAvailable configuration value.

Bug: 179175321
Bug: 182983853
Test: make RunSettingsRoboTests
Change-Id: I2eb23e5b7539b2fb8e5bc85d23ca5795a08366c5
2021-03-29 07:57:13 +00:00
Tsung-Mao Fang
2a959d470a Merge "Add collapsing toolbar to Device Admin Add page" into sc-dev 2021-03-29 07:32:20 +00:00
Tsung-Mao Fang
ff727efe7b Follow footer preference guildance on some pages
- Footer preference should have a info icon in tethering page.
- Rmove an empty icon for screen attention setting.
- Revise the "More details" to "Learn more"
- Add more empty line between footer info and "Learn more"

Test: Built apk, and check the screen
Fix: 183472971
Fix: 183472858
Change-Id: I7edb71639b59efb8205c0ef6a50ab483f88aa63d
2021-03-29 15:26:59 +08:00
Mill Chen
19dea56c55 Merge "Add a reverse landscape layout for UDFPS" into sc-dev am: dc96037cea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13995001

Change-Id: Ia000e29cb7e37a7b77ed6e3e3810fef1e82ff6d8
2021-03-29 06:53:48 +00:00
Mill Chen
dc96037cea Merge "Add a reverse landscape layout for UDFPS" into sc-dev 2021-03-29 06:26:31 +00:00
Mill Chen
474093e8cc Add a reverse landscape layout for UDFPS
Bug: 181614043
Test: visual verified
1) Settings -> Security -> Fingerprint
2) Follow the setup flow to find sensor page and enrolling page
3) Rotate your device and see if fingerprint icon is overlapping with
the title.

Change-Id: Ia1202e9688f2472c8063287164f4fc8f479cdae9
2021-03-29 11:53:13 +08:00
Weng Su
439cc64b1c [Provider Model] Move the Internet unavailable Wi-Fi down
- Check the Wifi network have both INTERNET and VALIDATED capabilities
to achieve effective network access

- Move the Internet unavailable Wi-Fi down to the top of Wi-Fi list

- Don't paint color for the Internet unavailable Wi-Fi

- Screenshot:
  https://screenshot.googleplex.com/w82kbALssdTZmg4

Bug: 178457619
Bug: 178926547
Bug: 178978070
Test: manual test on device
atest -c InternetUpdaterTest \
         NetworkProviderWorkerTest \
         ProviderModelSliceTest

Change-Id: Idf04e556ab5a87abc5bc96d1934f5e8fd91fbfaa
2021-03-26 23:24:14 +08:00
Dmitri Plotnikov
8747218c03 Merge "Adjust consumed power for SystemBatteryConsumers" into sc-dev am: 6af63e3b07
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13944852

Change-Id: Iee3a3ab280bc2aebd89c77880e18a05b0ed80b95
2021-03-26 14:45:13 +00:00
Dmitri Plotnikov
6af63e3b07 Merge "Adjust consumed power for SystemBatteryConsumers" into sc-dev 2021-03-26 14:31:35 +00:00
Arc Wang
f40049c873 Merge "Launch StorageDashboardFragment instead of StorageSettings" into sc-dev am: fd9c0c7e90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13922076

Change-Id: I506945d33073dd9ac8791ca17ff4077e57e52146
2021-03-26 08:00:01 +00:00
Arc Wang
fd9c0c7e90 Merge "Launch StorageDashboardFragment instead of StorageSettings" into sc-dev 2021-03-26 07:36:07 +00:00
Soonil Nagarkar
32f2642f17 Merge "Remove dynamic location settings footer" into sc-dev am: 75703b3993
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13809765

Change-Id: Ib267ec047e2f5e3d265bed003b994fdd20727a09
2021-03-25 21:16:20 +00:00
Soonil Nagarkar
75703b3993 Merge "Remove dynamic location settings footer" into sc-dev 2021-03-25 21:08:32 +00:00
Ahaan Ugale
8d31bb3b16 Merge "Update summary for Passwords and Accounts." into sc-dev am: 2e46cdb287
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13978938

Change-Id: I9b39dca2831445ace957a872ec3ec15b54f44bc2
2021-03-25 16:43:50 +00:00
Ahaan Ugale
2e46cdb287 Merge "Update summary for Passwords and Accounts." into sc-dev 2021-03-25 16:22:46 +00:00
Betty Chang
107492d43f Merge "Display WiFi Version number" into sc-dev am: 62ba6db719
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13989774

Change-Id: I945fa8dafc9b1bde34e81479117cc14968516bcd
2021-03-25 15:44:38 +00:00
Betty Chang
62ba6db719 Merge "Display WiFi Version number" into sc-dev 2021-03-25 15:04:58 +00:00