Commit Graph

13569 Commits

Author SHA1 Message Date
Sunny Shao
1c2216e543 Merge "Implement new "Open by default" page" into sc-dev 2021-03-25 10:58:22 +00:00
Wesley.CW Wang
af4cba2778 Adjust battery tips action am: f1e41c0bd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13981627

Change-Id: Id12399cde2dea47f0db8d70367ac13d711490b0b
2021-03-25 10:02:23 +00:00
Wesley.CW Wang
f1e41c0bd9 Adjust battery tips action
- Change low battery tips action to launch battery saver page
 - Enable smart battery tip when battery level is lower than expected and battery saver is off

Bug: 183582881
Test: make RunSettingsRoboTests -j40
Change-Id: I38b0ff7109d5ea95703edeade26cdfeed50f1403
2021-03-25 09:46:31 +00:00
changbetty
8fcb1f5974 Display WiFi Version number
- Display these type and hide the item in other case
   WIFI_STANDARD_11AX(6) WiFi 6
   WIFI_STANDARD_11AC(5) WiFi 5
   WIFI_STANDARD_11N (4) WiFi 4

-Screenshot
 https://photos.app.goo.gl/BbyZEQFyganEPfuw8

Bug: 117216087
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiDetailPreferenceController2Test

Change-Id: Ic360e501d2e3bd80ce3bcb3ddf529ec5d00c1bcc
2021-03-25 17:29:31 +08:00
Ahaan Ugale
2c80a7ca98 Update summary for Passwords and Accounts.
Bug: 169455298
Test: manual - disable silky home and check summary
Test: make RunSettingsRoboTests
Change-Id: Id4574f5865c57ec6a5cd010412a59411ab9af546
2021-03-25 09:25:30 +00:00
Arc Wang
14db8ee16e Merge "Fix resource problem in PrivateVolumeForgetTest" into sc-dev am: 89222adb7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13989775

Change-Id: I6c77ad950d3744784ed365afd8de05c8807f60df
2021-03-25 09:24:58 +00:00
Weng Su
c3b036845e Merge "Correct the defined value of Maximize compatibility" into sc-dev am: 4675222987
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13981642

Change-Id: I09f264fb071f7af47c461bc19f246cc394c519a4
2021-03-25 09:22:27 +00:00
Arc Wang
89222adb7f Merge "Fix resource problem in PrivateVolumeForgetTest" into sc-dev 2021-03-25 09:17:58 +00:00
Weng Su
4675222987 Merge "Correct the defined value of Maximize compatibility" into sc-dev 2021-03-25 08:30:02 +00:00
Sunny Shao
81fa20a4f1 Implement new "Open by default" page
- Use the new MainSwitch and TopIntro widgets.
- Create VerifiedLinksPreference and LeftSideCheckBoxPreference.
- Create ProgressDialogFragment and SupportedLinksDialogFragment.
- Retrieve the links info from DomainVerificationManager.
- Allow user to change the supported links into selected links.
- Refactor the ClearDefaultsPreference.
- Move AppLaunchSettings into intentpicker directory.

Bug: 177923646
Bug: 182530528
Test: manual test
Change-Id: I935a2fdd0f62cdb8b8d3210fb2f800f682249cb7
2021-03-25 16:01:28 +08:00
Almaz Mingaleev
1ba515b224 Merge "Show pop-up banner when Location is off and user tries to enable GeoTZ." into sc-dev am: 206f12fd0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13930308

Change-Id: Ie4fa75d85250bb0e4e482a7b9149099d374e973d
2021-03-25 07:28:12 +00:00
Almaz Mingaleev
206f12fd0a Merge "Show pop-up banner when Location is off and user tries to enable GeoTZ." into sc-dev 2021-03-25 07:09:43 +00:00
Arc Wang
e22d1493af Fix resource problem in PrivateVolumeForgetTest
Somehow Resource IDs are inconsistent between SettingsLib and
SettingsUnitTests. Import SettingsLibMainSwitchPreference to fix.

Bug: 183342958
Test: atest com.android.settings.deviceinfo.PrivateVolumeForgetTest
Change-Id: Id8dfccd520577fc1a8e5177e20e99b52bb57a66a
2021-03-25 06:31:57 +00:00
Peter Wang
4b8a6cd4b8 Merge "Removed unused import" am: 3fbb8612f5 am: 3cac950712 am: 204f35dc58 am: fe042ac08e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1652770

Change-Id: I3daef123a7aee6810f4512f099c18c7fa22eb533
2021-03-25 05:47:51 +00:00
Peter Wang
fe042ac08e Merge "Removed unused import" am: 3fbb8612f5 am: 3cac950712 am: 204f35dc58
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1652770

Change-Id: Ib9676c28c112cc712f91f9e8c40b1e1e9aa61fa4
2021-03-25 05:09:59 +00:00
Peter Wang
204f35dc58 Merge "Removed unused import" am: 3fbb8612f5 am: 3cac950712
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1652770

Change-Id: I9764d7070c44f8b8db654e9f6520d4f5c6d00cb3
2021-03-25 04:25:54 +00:00
Jeremy Goldman
c3723e22d5 Merge "VpnPreferenceControllerTest converted to JUnit" into sc-dev 2021-03-25 03:24:40 +00:00
Kevin Han
d2d32a8dc0 Merge "Fix HibernationSwitchPreferenceControllerTest" into sc-dev am: bad7c091d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13986126

Change-Id: If6b6de316c761e30ffca47a8174bd4a93b563e38
2021-03-24 20:55:30 +00:00
Kevin Han
bad7c091d6 Merge "Fix HibernationSwitchPreferenceControllerTest" into sc-dev 2021-03-24 20:37:03 +00:00
Sally Yuen
cbe24179ad Merge "Update Reduce Bright Colors preference string" into sc-dev am: 286247a9b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13960429

Change-Id: Ia963ff0d90637deac7bd0c2ca5b18794f0d1251d
2021-03-24 19:51:47 +00:00
Soonil Nagarkar
2491d63996 Remove dynamic location settings footer
Replace with static location settings footer.

Bug: 182210346
Test: manual
Change-Id: If3ab492418e5f3461f7b0123fc771ecdd56db6c9
2021-03-24 12:43:03 -07:00
Peter Wang
447fc31966 Merge "Added an option in reset menu in Settings to enable resetting Euicc data only" am: 0b5532f67c am: e74a04b3a8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1562838

Change-Id: I7a0a8993fbadd72cfe1dfb16879fb235b67ff007
2021-03-24 19:32:58 +00:00
Sally Yuen
286247a9b6 Merge "Update Reduce Bright Colors preference string" into sc-dev 2021-03-24 19:11:31 +00:00
Ahaan Ugale
861a58ab89 Merge "Autofill Settings: Display the number of saved passwords." into sc-dev am: a8df0386ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13803855

Change-Id: I7e0be679fd52df2f3c5fd17779166521801b5a14
2021-03-24 18:55:51 +00:00
Ahaan Ugale
a8df0386ae Merge "Autofill Settings: Display the number of saved passwords." into sc-dev 2021-03-24 18:42:50 +00:00
Peter Wang
f8f7876c01 Removed unused import
Test: Build
Bug: N/A
Change-Id: Idd87913a67486deaf125b5b5aed89600bfac1982
2021-03-24 11:26:16 -07:00
Peter Wang
0b5532f67c Merge "Added an option in reset menu in Settings to enable resetting Euicc data only" 2021-03-24 18:12:14 +00:00
Zhen Zhang
c86abd9b99 Fix HibernationSwitchPreferenceControllerTest
Fix the HibernationSwitchPreferenceControllerTest

Test: this is the test
Bug: 183585589
Change-Id: If97f664596e2724b3435b88ed7f3ea8c3fa4df94
2021-03-24 10:56:30 -07:00
sallyyuen
cd09b3a571 Update Reduce Bright Colors preference string
Test: manual, atest ReduceBrightColorsPreferenceControllerTest
Bug: 182116724
Change-Id: Ifde343aad7c6931efd083a1c728a2504b74f089f
2021-03-24 09:54:57 -07:00
Jason Chang
d75463cb1e Merge "Fix refresh in Gestures, not reflecting the changes after toggling on/off one-handed mode" into sc-dev am: aafe9ac0a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13849832

Change-Id: I0c2c63ff60ccb4652801cbfd14ac4e17a579f701
2021-03-24 15:20:16 +00:00
Ahaan Ugale
c5761363d5 Merge "Merge Autofill settings into Account settings." into sc-dev am: 7f3534925f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13958194

Change-Id: I885977691d21e665af4d7b239778245eea507548
2021-03-24 15:19:59 +00:00
Jason Chang
aafe9ac0a0 Merge "Fix refresh in Gestures, not reflecting the changes after toggling on/off one-handed mode" into sc-dev 2021-03-24 15:15:52 +00:00
Ahaan Ugale
7f3534925f Merge "Merge Autofill settings into Account settings." into sc-dev 2021-03-24 14:48:58 +00:00
Weng Su
f50e9c24c1 Correct the defined value of Maximize compatibility
- The return value defined by the Wi-Fi framework API is opposite to the
UI
  Compatibility on:  isBridgedModeOpportunisticShutdownEnabled() = false
  Compatibility off: isBridgedModeOpportunisticShutdownEnabled() = true

- Need to use the reverse value from Settings UI to the Wi-Fi framework API.

Bug: 183576049
Test: manual test
atest -c WifiTetherMaximizeCompatibilityPreferenceControllerTest

Change-Id: I731156806661bfbca14e7eaaa648a205a3d77b74
2021-03-24 21:56:57 +08:00
Jason Chang
858bda81f1 Fix refresh in Gestures, not reflecting the changes after
toggling on/off one-handed mode

1) Remove disabling on swipe down notification.
2) Update to align asset with One-Handed mode temporarily.
3) Change some states when toggle on/off and align with
One-Handed mode.
4) Set temporary asset style to "centerInside" to avoid image
corrupted problem when device rotate.
5) Add new string on Swipe down notification toggle switch.

Bug: 177679988
Bug: 181970213

Test: manual verified on Settings > System > Gesture page
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures.OneHandedSettingsTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures
      .OneHandedAppTapsExitPreferenceControllerTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures
      .OneHandedEnablePreferenceControllerTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures
      .OneHandedTimeoutPreferenceControllerTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures.OneHandedSettingsUtilsTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures.SwipeBottomToNotificationPreferenceControllerTest"
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
      "com.android.settings.gestures.SwipeBottomToNotificationSettingsTest"

Change-Id: Ifd2346a7694323d21eb424891987c8317847e7c5
2021-03-24 21:40:08 +08:00
Jason Chiu
94d4e539d0 Merge "Settings homepage redesign" into sc-dev am: 923cd0de6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13946305

Change-Id: Ib7238f1ca180ff3f7d2a2bb2af62cb94ae4a0281
2021-03-24 13:10:46 +00:00
Jason Chiu
923cd0de6c Merge "Settings homepage redesign" into sc-dev 2021-03-24 13:05:34 +00:00
Arc Wang
fd8f6c9159 Merge "Fix resource problem in SettingsSliderPreferenceControllerTest" into sc-dev am: 7ed6ce93da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13981625

Change-Id: I138a8d5dd0479b6d89987c49822f0023b6e67580
2021-03-24 11:32:25 +00:00
Arc Wang
7ed6ce93da Merge "Fix resource problem in SettingsSliderPreferenceControllerTest" into sc-dev 2021-03-24 11:17:53 +00:00
Jason Chiu
c37dd71260 Settings homepage redesign
- Support new suggestion design
- Search bar relayout
- Move avatar icon to the top right corner

Test: robotest
Bug: 178068045

Change-Id: I07f1577488d6d1827ee07d55db6759f02d655d5f
2021-03-24 18:53:27 +08:00
Alex Johnston
ba6ed1e827 Merge "Settings: Disable USB preferences if USB signaling is off" into sc-dev am: 74d2ec5c2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13901306

Change-Id: I7dee32ff0899087df7654c393421626daca38725
2021-03-24 10:28:51 +00:00
Alex Johnston
74d2ec5c2d Merge "Settings: Disable USB preferences if USB signaling is off" into sc-dev 2021-03-24 10:13:47 +00:00
Wesley.CW Wang
bb50410e58 Remove Battery Settings page battery saver tips am: 3da3bf7a21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13946306

Change-Id: Ib139a456ce581d06918d08057ad4f98a8e1d0ff2
2021-03-24 09:09:43 +00:00
Wesley.CW Wang
3da3bf7a21 Remove Battery Settings page battery saver tips
- Not present Battery saver tips when it's enabled
 - Not redirect Low battery tips to saver tips when saver is enabled
 Screenshots:
   https://screenshot.googleplex.com/4ehKSRs8gM64wfm.png
   https://screenshot.googleplex.com/92pd3q9jnTEXd8o.png
   https://screenshot.googleplex.com/BzLYwTjdi3kH4RF.png
   https://screenshot.googleplex.com/4w9ubmHaajNxB9b.png

Bug: 183079415
Test: make RunSettingsRoboTests -j40
Change-Id: Ib9783a95df88753342ff217b1a402f2dbb99079d
2021-03-24 08:42:21 +00:00
Arc Wang
2383c6c806 Fix resource problem in SettingsSliderPreferenceControllerTest
Somehow Resource IDs are inconsistent between Settings and
SettingsUnitTests. Import SettingsLibTwoTargetPreference to fix.

Bug: 183340630
Test: atest SettingsSliderPreferenceControllerTest
Change-Id: Icc404d8ebefe1399806775272a37c56845406bc7
2021-03-24 16:39:05 +08:00
Ahaan Ugale
9b183778f2 Merge Autofill settings into Account settings.
Autofill settings are removed from Language and Input.

They are now in a new top-level Passwords and Accounts page.

Some polish work is left to match the new design.

Bug: 169455298
Test: manual - check settings page and some search keywords
Test: manual - add work profile and check the above again
Test: make RunSettingsRoboTests
Change-Id: I3981ce73fef63f06a40e61e894481d24284614ba
2021-03-23 23:48:09 -07:00
Zhen Zhang
d64dff2c98 Merge "Update summary based on hibernated apps number" into sc-dev am: 59aa4f9cb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13955152

Change-Id: I2eaf37a821808a3797d0cf620ad9eeb852c01651
2021-03-24 06:48:01 +00:00
Zhen Zhang
59aa4f9cb1 Merge "Update summary based on hibernated apps number" into sc-dev 2021-03-24 06:42:56 +00:00
Jeremy Goldman
dcbde1138b VpnPreferenceControllerTest converted to JUnit
global settings string set to guarantee pre-test environment.
PreferenceManager and PreferenceScreen instantiated instead of mocks,
and mock preference inserted with getKey function overridden.

Bug: 176821216
Test: atest -c VpnPreferenceControllerTest
Change-Id: I94a881df13d1b35126de10f561d657136e4fed7f
Merged-In: I94a881df13d1b35126de10f561d657136e4fed7f
(cherry picked from commit 7361f8557c)
2021-03-24 05:33:13 +00:00
Weng Su
0b34d62f6b Merge "Hide edit menu if network is uneditable" into rvc-qpr-dev am: 5cb66024fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13945393

Change-Id: If5fddd3870d6c1bf94cf235439bf3543432824d9
2021-03-24 05:25:04 +00:00