Commit Graph

23546 Commits

Author SHA1 Message Date
Chaitanya Cheemala (xWF)
b2986f77a4 Revert "Integrate Settings with Preference Service"
This reverts commit 9edbc798bf.

Reason for revert: Likely culprit for b/382590599  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Ib41c13e8ba2e0eaa1ec31486ccf1f61f55793e95
2024-12-06 13:41:46 +00:00
tomhsu
63469da6f6 Remove Satellite SOS entry from AOSP
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: b/378408877
Test: make pass
Test: Manual test
Change-Id: If47081be0ed0734be841b2fe9129d22a76ed8e1b
2024-12-06 11:57:15 +00:00
Weng Su
6fb75678e5 [Catalyst] Migrate Wi-Fi Hotspot preference
Bug: 368359963
Flag: com.android.settings.flags.catalyst_tether_settings
Test: Manual testing
atest -c TetherSettingsTest \
         TetherScreenTest

Change-Id: I89d418454af7887a4892c616f4efff481b536a91
2024-12-06 10:47:37 +00:00
Treehugger Robot
aa2379967c Merge "Remove replicated page of Satellite SOS." into main 2024-12-06 05:06:04 +00:00
tomhsu
c2d25241a1 Remove replicated page of Satellite SOS.
Flag: EXEMPT bug fix.
Bug: b/370509415
Test: make pass
Change-Id: Iff96dd09f8c0876a32064853629f64b0db173099
2024-12-06 03:06:52 +00:00
Chelsea Hao
fbb07d3520 Merge "Part 1 of use bluetooth toggle catalyst migration." into main 2024-12-06 03:03:49 +00:00
Chris Antol
cd8dcec82d Merge "Integrate Settings with Preference Service" into main 2024-12-06 02:22:11 +00:00
Riley Jones
6107fd8591 Cleanup deprecated functions in AccessibilityUtil
Flag: EXEMPT code cleanup
Bug: 367414968
Test: atest com.android.settings.accessibility
Change-Id: If69a964720fc91ce0ad3661f956c4818f4f2f9dd
2024-12-05 23:45:33 +00:00
Chris Antol
9edbc798bf Integrate Settings with Preference Service
Bug: 379750656
Flag: com.android.settingslib.flags.settings_catalyst
Test: unit tests
Change-Id: I6584e61bcdaa370ed879686fa5abc3f9e1c039e4
2024-12-05 16:48:34 +00:00
Treehugger Robot
cfd023dc1f Merge "[Catalyst] Migrate Airplane Mode preference" into main 2024-12-05 10:47:21 +00:00
Weng Su
efbe144a9a [Catalyst] Migrate Airplane Mode preference
NO_IFTTT=Catalyst only

Bug: 375925972
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Test: Manual testing
atest -c AirplaneModePreferenceTest \
         NetworkDashboardFragmentTest
atest -c NetworkDashboardScreenTest

Change-Id: Ie63f2208a64cadf5faaa274fd4e069d839da850e
2024-12-05 09:10:54 +00:00
chelseahao
a7d6d46246 Part 1 of use bluetooth toggle catalyst migration.
Test: atest
Bug: 372774767
Flag: com.android.settings.flags.catalyst
Test: atest
Change-Id: Ic4be881ead92c6d56412ea3210bc5890e7f1695b
2024-12-05 15:52:25 +08:00
tomhsu
480053e03f fix failed of PrimarySimRepositoryTest#getPrimarySimInfo_verifySmsList
- config_sms_ask_every_time_support was changed from true to false, so cause this test failed.

Flag: EXEMPT bug fix
Fix: b/382189034
Test: atest pass
Change-Id: Ia7ae0812f2b417bd8350d09417547dfc474397a0
2024-12-05 07:51:55 +00:00
Yining Liu
84571f53f9 Merge changes from topic "lockscreen-notif-settings-page" into main
* changes:
  Replace the existing notifications on lock screen preferences with new page
  Implement the preference switch for minimalism on ls settings page
  Implement the Hide seen notifications toggle
  Implement the hide silent notifications toggle
  Implement the show sensitive content toggle
  Implement the main switch of notifications on lock screen
  Add the new settings page for lock screen notifs
2024-12-05 05:49:31 +00:00
YK Hung
ecf9da2554 Merge "[ExpressiveBattery] Replace LayoutPreference with IntroPreference." into main 2024-12-05 03:36:41 +00:00
Yining Liu
c16c9b2df6 Implement the show sensitive content toggle
Implement the show sensitive content only when unlocked toggle on the
notifications on lock screen page. The toggle will become invisible
when the main toggle is unset or when there's no screen locks.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: adb shell settings get secure \
 lock_screen_allow_private_notifications <1|0>
Change-Id: I174478540c4cc2e2df7047049671266041dd41cf
2024-12-04 18:53:35 +00:00
Matthew DeVore
7403db7745 Merge changes Icd3e0c93,I8932e80c into main
* changes:
  TopologyScale: limit vertical padding
  TopologyScale values for scaling the topology pane
2024-12-04 17:59:21 +00:00
Hani Kazmi
4efa8adfa6 [AAPM] UX for disabling WEP
Toggle is restricted, and trying to connect shows an error

Bug: 352420507
Change-Id: If20bf030d1c0aba55dac135a9f5f51e9a4255596
Test: Manually. Automated tests to follow
Flag: com.android.wifi.flags.wep_disabled_in_apm
2024-12-04 16:01:07 +00:00
Treehugger Robot
98f593c569 Merge "Customize the availability of Testing Settings Menu" into main am: d25fdc50d8 am: b6683ea552
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2927822

Change-Id: I64e8986fc4ae55290851b6f084bed6848626eb45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 12:27:35 +00:00
Treehugger Robot
b6683ea552 Merge "Customize the availability of Testing Settings Menu" into main am: d25fdc50d8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2927822

Change-Id: I3d6a579d6a5b999b783610e1a2b80031aa1b1ec3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 11:51:51 +00:00
David Magno
8839335d58 Customize the availability of Testing Settings Menu
Add the possibility to disable the Testing Settings Menu
(secret code *#*#4636#*#*) on user builds.

Bug: 306338055
Test: atest TestingSettingsBroadcastReceiverTest
Flag: NA
No-Typo-Check: trivial
Change-Id: I451f094864bd9a0ad8086e9646e2d666ab2388dc
2024-12-04 11:23:25 +00:00
mxyyiyi
7ce71c7619 [ExpressiveBattery] Replace LayoutPreference with IntroPreference.
Use IntroPreference to show apps' icon and label in
(1) App info > App battery usage page
(2)App info > App battery usage > Allow background usage

Bug: 349652542
Test: visual
Flag: EXEMPT flag by System prop
Change-Id: I44f3369e48f073d98455fcab3ccd10ffecdb8d66
2024-12-04 17:38:42 +08:00
Treehugger Robot
aa7fd384d9 Merge "Fix crash due to resource not found." into main 2024-12-04 08:02:41 +00:00
SongFerng Wang
2950121243 Merge "Skip the notification when the userId is not main" into main 2024-12-04 07:06:55 +00:00
tomhsu
f0e06b6cab Fix crash due to resource not found.
Flag: EXEMPT bug fix
Fix: b/382071330
Test: atest pass.
Change-Id: I18ddeea7a9d077444838f39b07ffb2ebc5eb974d
2024-12-04 05:47:42 +00:00
Yining Liu
9836d6a69a Add the new settings page for lock screen notifs
Add a new empty settings page, which is flag-guarded. When the flag
is disabled, show the original Notifications on lock screen
tri-state switch, otherwise show the new page.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: atest LockScreenNotificationsPreferenceControllerTest

Change-Id: I8a81ad651626f39380767b2c9cfa2f1c19d0e7c5
2024-12-04 00:30:05 +00:00
Lorenzo Lucena Maguire
18d0d26395 Create Double Tap Power Illustrations based on target action
Creates illustration for when double tap power gesture is set to open
wallet and preference controller to alternate illustration based on gesture
target action

Android Settings Feature Request: b/380287172

Test: atest DoubleTapPowerIllustrationPreferenceControllerTest
Test: manually verified illustration corresponds to selected target
action
Bug: 381789181
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap

Change-Id: Id73a38e09bd72856d46d74f04c0c0d2b3f989929
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
d3af193384 Support wallet launch in Double Tap Power Gesture Settings
Modify Double Tap Power Gesture Settings screen to be able to set the
gesture to launch the wallet.

If the feature flag is disabled, the
Double Tap Power Gesture Settings screen defaults to the current
screen ("Quickly open camera"), which only provides the option to open the camera upon detecting the
gesture.

If the feature flag is enabled, the Double Tap Power Gesture Settings
screen defaults to the new "Double Tap Power Button" screen, which
provides the option to open the camera, the wallet, or neither upon
detecting the gesture.

Android Settings Feature Request: b/380287172

Bug: 378131008
Test: manual tested screen alternates based on feature flag
Test: atest DoubleTapPowerSettingsTest
Test: atest DoubleTapPowerPreferenceControllerTest
Test: atest DoubleTapPowerToOpenCameraPreferenceControllerTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap

Change-Id: I1fc05ab3cfee2e86a80a1756655c368aae16747c
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
406a01dfab Rename Double Tap Power To Open Camera Gesture Xml
Rename double_tap_power_settings.xml to
double_tap_power_to_open_camera_settings.xml

Android Settings Feature Request: b/380287172

Bug: 381554683
Test: atest DoubleTapPowerSettingsTest
Flag: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: I6ff3c0384602a5f0eeeafcc560e7854af8480f99
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
75536b091f Refactor DoubleTapPowerPreferenceController
DoubleTapPreferenceController was previously used as the controller for
the "Quickly open camera" entry in the "System > Gestures"  screen and as the controller for
the toggle in the ["System > Gestures > Quickly open camera" screen.

This CL separates the DoubleTapPowerPreferenceController into two new
controllers to handle each case:
- Double Tap Power Preference Controller to control the "Quickly open camera" entry
- Double Tap Power To Open Camera Preference Controller to control the
  gesture's enable/disable toggle.

Android Settings Feature Request: b/380287172

Bug: 381499912
Test: atest DoubleTapPowerPreferenceControllerTest
Test: atest DoubleTapPowerToOpenCameraPreferenceControllerTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: I73fc7d97e1e330163858a60a4ba9a63bd9b5574f
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
235556daeb Create Double Tap Power For Wallet Launch Preference Controller
Create preference controller for radio button to select wallet launch as
target action for Double Tap Power Button gesture.

Android Settings Feature Request: b/380287172

Bug: 379308160
Test: atest DoubleTapPowerForWalletLaunchPreferenceControllerTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: Ib1629996401ea88aeec2831a55fdc9f2ad9dcd5e
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
7e6e2b81c2 Create Double Tap Power Gesture For Camera Preference Controller
Create Preference controller to select camera launch as a target action
for the Double Tap Power Button gesture.

Android Settings Feature Request: b/380287172

Bug: 379309894
Test: atest DoubleTapPowerForCameraLaunchPreferenceControllerTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: I3b6b90177293066b04f9f4eb0139f8ac3b3812b0
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
260f37f849 Create Double Tap Power Gesture Main Switch Preference Controller
Create Preference controller for main switch to enable/disable double
tap power gesture

Android Settings Feature Request: b/380287172

Bug: 378131071
Test: atest DoubleTapPowerMainSwitchPreferenceControllerTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: I6205805768d917521b7d9c8ff074678ef5c36a46
2024-12-03 23:44:22 +00:00
Lorenzo Lucena Maguire
c09909489f Create DoubleTapPowerSettingsUtils
Create Utils class to store common methods used by Preference
controllers

Android Settings Feature Request: b/380287172

Bug: 378130789
Test: atest DoubleTapPowerSettingsUtilsTest
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: I0bd47579bd3c8163e2e48ac572577c72f2aab785
2024-12-03 23:44:22 +00:00
Riley Jones
6d1c378972 Merge "Cleaning up quick settings flag in Settings app" into main 2024-12-03 22:03:04 +00:00
Matthew DeVore
607b01760f TopologyScale: limit vertical padding
In the original design, we don't allow the vertical padding to be more
than the tallest display block on the top or bottom. This patch simply
applies that strategy that was in the design.

Test: TopologyScaleTest
Bug: b/352648432
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: Icd3e0c93e4201d8251de0be4ca636352115c657d
2024-12-03 20:22:38 +00:00
Joshua Mccloskey
ec0086ef43 Merge "Fast enroll" into main 2024-12-03 18:32:52 +00:00
Matthew DeVore
5d2ddfc6dd TopologyScale values for scaling the topology pane
TopologyScale helps to size the topology pane and properly size and
place the display blocks inside it. It is based on the algorithm
described in the design doc.

Test: TopologyScaleTest
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Change-Id: I8932e80c2b490fab0097fa315e536b292376d4a8
2024-12-03 16:26:56 +00:00
Treehugger Robot
351f6258d8 Merge "Satellite UX - Add learn more into Footer" into main 2024-12-03 12:57:03 +00:00
Tom Hsu
13c6cad5dc Merge "Fix crash due to no Satellite" into main 2024-12-03 11:30:08 +00:00
tomhsu
ceac8c1dde Satellite UX - Add learn more into Footer
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: 378408877
Test: atest pass
Test: Manual test pass.
Change-Id: I27f2c82fe5d6c34cf204472c4199538326d6aec4
2024-12-03 11:21:18 +00:00
songferngwang
178befee5e Skip the notification when the userId is not main
Fix: 381585049
Test: atest SimSelectNotificationTest
Flag: EXEMPT bugfix

Change-Id: I9a08a1c28948051cbf5a316b8cc5c676f25ff8cc
2024-12-03 10:17:33 +00:00
tomhsu
9329684c86 Fix crash due to no Satellite
- AutoSelectPreferenceController get null pointer exception

Flag: EXEMPT bug fix
Fix: b/381995900
Test: atest pass
Change-Id: Iadbd83825cdfbc0aabd85b79e9ad7043f172a8a1
2024-12-03 09:02:31 +00:00
Treehugger Robot
0496fc2de5 Merge "[Catalyst] Migrate Wi-Fi switch preference" into main 2024-12-03 08:31:30 +00:00
Ze Li
c8d926c4d0 Merge "[Connected devices page] Move the refresh logic to main thread." into main 2024-12-03 08:06:04 +00:00
Weng Su
9faf231dc4 [Catalyst] Migrate Wi-Fi switch preference
NO_IFTTT=Add Catalyst preference

Bug: 372733639
Flag: com.android.settings.flags.catalyst_internet_settings
Test: Manual testing
atest -c NetworkProviderSettingsTest \
         NetworkProviderScreenTest
atest -c WifiSwitchPreferenceTest

Change-Id: Ic6023907608e831d0a946005dd0eb6fd88b301c0
2024-12-03 06:51:18 +00:00
tomhsu
50e695fdb6 Ignore test case to avoid post submit failed
Flag: EXEMPT bug fix
Fix: b/381904824
Test: atest pass
Change-Id: Ie8401c2ac887726090812236882d23ae710c30c8
2024-12-03 05:58:00 +00:00
Ze Li
7c11a45735 [Connected devices page] Move the refresh logic to main thread.
As the caller of adding or removing devices may not be performing on background thread, sync problem could occur. So here we make sure all updates to UI happens on the main thread.

Test: atest: com.android.settings.connecteddevice.PreviouslyConnectedDevicePreferenceControllerTest
Bug: 365044575
Flag: EXEMPT bugfix
Change-Id: I5b697acb7cf7469fe3bbff33b820b4e9f4c5104f
2024-12-03 13:54:57 +08:00
Riley Jones
acccaff128 Cleaning up quick settings flag in Settings app
Removes all instances of a11y_qs_enabled. Any code that would be nontrivial to remove has been deprecated for later cleanup.

Test: atest com.android.settings.accessibility
Flag: EXEMPT flag cleanup
Bug: 367414968

Change-Id: I81f3c9cee377535eaa552a170d58ec1a79d1da65
2024-12-02 20:38:10 +00:00
Matías Hernández
aaee1a1511 Merge "(Once more) fix minimum height of mode name edit box for a11y" into main 2024-12-02 17:41:06 +00:00