Commit Graph

145055 Commits

Author SHA1 Message Date
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
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
Haijie Hong
e0c0476432 Merge "Post hiding loading view operation into to the message queue" into main 2024-12-05 10:46:34 +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
Haijie Hong
b93828930e Post hiding loading view operation into to the message queue
BUG: 382407178
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I23acb528b3801b167d5bd7335b4c324ba38bdada
2024-12-05 16:40:46 +08: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
Treehugger Robot
69a0c61feb Merge "Update OWNERS for Android Settings" into main am: 01af7b14de am: 0decf6e746
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3381149

Change-Id: I0a56b11c926a314a22f0918d058e8e7bd18f0707
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-05 03:45:38 +00:00
YK Hung
ecf9da2554 Merge "[ExpressiveBattery] Replace LayoutPreference with IntroPreference." into main 2024-12-05 03:36:41 +00:00
Treehugger Robot
0decf6e746 Merge "Update OWNERS for Android Settings" into main am: 01af7b14de
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3381149

Change-Id: I6ad17f8ae918a5e16ee3e7107aceb203640d9cd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-05 03:21:36 +00:00
Treehugger Robot
01af7b14de Merge "Update OWNERS for Android Settings" into main 2024-12-05 02:41:39 +00:00
Yining Liu
85aa7f7c86 Replace the existing notifications on lock screen preferences with new page
Replace the existing notifications on lock screen preferences with the new
notifications on lock screen page entries.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: Manual, Settings - Display & touch - Lockscreen; Settings - Security &
privacy - More security & privacy

Change-Id: I858f84db8b5c09895d6b196426b32b3bfbd80d15
2024-12-04 22:08:25 +00:00
Yining Liu
81d390968b Implement the preference switch for minimalism on ls settings page
Implement the preference switch for notification minimalism on the
notifications on lock screen settings page. The illustrations and
summaries will also update when switching the preference. This
preference will hide when the main toggle is unset or when the lock
screen notification minimalism feature flag is disabled.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: adb shell settings get secure \
 lock_screen_notification_minimalism <1|0>
Change-Id: Ie6596e518bd1aa2e828587d7d174b57256aec45b
2024-12-04 22:08:25 +00:00
Yining Liu
bd6561accf Implement the Hide seen notifications toggle
Implement the Hide seen notifications toggle on the notifications on
lock screen page. The toggle will become invisible
when the main toggle is unset or when the lock screen notification
minimalism feature flag is disabled.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: adb shell settings get secure \
 lock_screen_show_notifications <1|0>
Change-Id: I6f94be3295dfbaa978d145d113e03cacc1a232fc
2024-12-04 22:08:24 +00:00
Yining Liu
4c507b1132 Implement the hide silent notifications toggle
Implement the hide silent notifications toggle on the notifications
on lock screen page. This toggle will become invisible when the main
toggle is unset. This toogle will replace the existing Notifications
- notifications on the lock screen - hide silent conversations and
notifications preference when the flag is enabled.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: adb shell settings put secure \
 lock_screen_show_silent_notifications <1|0>
Change-Id: Icc0b26afd199ec3f14237fd1cdb27981383ae69f
2024-12-04 22:03:12 +00:00
Pawan Wagh
4f6155320b Merge "Fix UI string" into main 2024-12-04 21:46:25 +00:00
Daniel Norman
908bd398bd Adds null checks on callers of Nullable method getA11yServiceInfo().
Also renames mPackageName to mFeatureName. This string is used as the
user-visible feature name, e.g. TalkBack, not the APK package name.

Fix: 382054546
Test: n/a (existing presubmit)
Flag: EXEMPT minor bugfix
Change-Id: I1ce6902612d89bbb68bddf30227ca231ea98dce7
2024-12-04 19:41:07 +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
Yining Liu
0d75a26a68 Implement the main switch of notifications on lock screen
Add the ability of controlling whether to show notifs on the lock
screen (secure setting: lock_screen_show_notifications) to the new
lock screen notification settings page main switch. This switch also
listens to the change of lock_screen_show_notifications to update
its status in case of other places change the value.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: atest LockScreenNotificationsPreferenceControllerTest
Change-Id: Id598d508ac383563a0d9413578251eb22ed4ca90
2024-12-04 18:53:32 +00:00
Daniel Norman
4a84a244b2 Merge "Updates A11y Shortcut animations to not loop in code." into main 2024-12-04 18:37:28 +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
Pawan Wagh
dfdff04fb9 Fix UI string
Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Flag: page_size_app_compat_setting
Bug: 371049373
Change-Id: I75efccf3aefdd970b0de41b7e1c298a8d16a9a0e
2024-12-04 17:08:58 +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
Treehugger Robot
d25fdc50d8 Merge "Customize the availability of Testing Settings Menu" into main 2024-12-04 11:24:50 +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
Lorenzo Lucena Maguire
56e536f4d9 Merge changes from topic "DoubleTapPowerButtonGestureSystemSettings" into main
* changes:
  Create Double Tap Power Illustrations based on target action
  Support wallet launch in Double Tap Power Gesture Settings
  Rename Double Tap Power To Open Camera Gesture Xml
  Refactor DoubleTapPowerPreferenceController
  Create Double Tap Power For Wallet Launch Preference Controller
  Create Double Tap Power Gesture For Camera Preference Controller
  Create Double Tap Power Gesture Main Switch Preference Controller
  Create DoubleTapPowerSettingsUtils
2024-12-04 06:19:12 +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
Chaohui Wang
8043fba40b [automerger skipped] Merge "[Safer intents] App Time Spent Preference" into udc-dev am: 0691d3040b am: 3c8101a303 -s ours am: 169fa08b6d -s ours
am skip reason: Merged-In I2af7b53a75fe5c6915dd9781406039822789c18c with SHA-1 87dbf9c4b8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30341738

Change-Id: Ic92023981923006ae0b4cf87fb75e2a68fd0ba74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:58:29 +00:00
Chaohui Wang
169fa08b6d [automerger skipped] Merge "[Safer intents] App Time Spent Preference" into udc-dev am: 0691d3040b am: 3c8101a303 -s ours
am skip reason: Merged-In I2af7b53a75fe5c6915dd9781406039822789c18c with SHA-1 87dbf9c4b8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30341738

Change-Id: I6d243e343e2dab99e14e6459e882db36b1fc9dbd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:34:07 +00:00
Chaohui Wang
b6675ea4a8 [automerger skipped] Merge "[Safer intents] App Time Spent Preference" into udc-dev am: 0691d3040b am: a8e4522f8c -s ours
am skip reason: Merged-In I2af7b53a75fe5c6915dd9781406039822789c18c with SHA-1 87dbf9c4b8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30341738

Change-Id: I2e3e5543d1b687850f1ccf4a8dd0421c7cdcaa99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:33:48 +00:00
Chaohui Wang
0767df6b14 [automerger skipped] Merge "[Safer intents] App Time Spent Preference" into udc-qpr-dev am: d5881e2dfc -s ours
am skip reason: Merged-In I2af7b53a75fe5c6915dd9781406039822789c18c with SHA-1 426cbd623d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30290694

Change-Id: Ib657a5efe5fa00b58ee18f2d360b9d992284deb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:11:40 +00:00
Chaohui Wang
8de4d17c92 [automerger skipped] [Safer intents] App Time Spent Preference am: 87dbf9c4b8 -s ours
am skip reason: Merged-In I2af7b53a75fe5c6915dd9781406039822789c18c with SHA-1 426cbd623d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30290694

Change-Id: I8c4a37b76b359b54b97f913facc2d8c994f1340b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:11:35 +00:00
Chaohui Wang
a8e4522f8c Merge "[Safer intents] App Time Spent Preference" into udc-dev am: 0691d3040b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30341738

Change-Id: I2cb164d28c75c4de511c18548130835570a170c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:11:14 +00:00
Chaohui Wang
3c8101a303 Merge "[Safer intents] App Time Spent Preference" into udc-dev am: 0691d3040b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/30341738

Change-Id: Iaed38eeb96a64f84330b2115372c8bd7a5728d6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 02:09:43 +00:00
Jacky Wang
29a901743f Merge "[Catalyst] Refine WifiSwitchPreference" into main 2024-12-04 01:42:50 +00:00
Jin Jeong
7975c1c217 Merge "New System API to launch SIM Preference in Setting" into main 2024-12-04 01:31:58 +00:00
Chaohui Wang
d5881e2dfc Merge "[Safer intents] App Time Spent Preference" into udc-qpr-dev 2024-12-04 01:27:30 +00:00
Chaohui Wang
0691d3040b Merge "[Safer intents] App Time Spent Preference" into udc-dev 2024-12-04 01:27:28 +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
Daniel Norman
5862b31f21 Updates A11y Shortcut animations to not loop in code.
Continuously repeated animations go against accessibility guidelines
to avoid unstoppable motion.

The animation files themselves have been updated to loop twice
so that the user can still see the animation temporarily.
The loop restarts if the user exits and enters the page again.

Bug: 370661517
Flag: EXEMPT minor bugfix with resource changes
Test: Manually observe animations
Change-Id: I52348a094680ef345bf8c2b12ab91c9406bf5cb4
2024-12-04 00:14:09 +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