Commit Graph

23874 Commits

Author SHA1 Message Date
Alyssa Ketpreechasawat
f480cdd56f Remove ModuleInfo#isHidden Usage from the source code.
ModuleInfo#isHidden is used for getting hidden module status from
ModuleMetadata package (Mainline). It was set to hide Mainline modules'
Apk to show in the Settings UI and this has caused the issue as it
disallowed the user to toggle permissions where it was needed. Thus, we
decided to deprecate the usage of ModuleInfo#isHidden (see
go/aml-hidden-modules-permissions).

Bug: 379056868
Test: unittest
Test: check behavior before/after enable flags
Flag: android.content.pm.remove_hidden_module_usage
Change-Id: I670c95350e3c21db9f74f37b675aba1b23c67a61
2025-01-07 19:39:31 -08:00
Wenyu Zhang
83046e7ff9 Merge "a11y: Plumb autoclick cursor area size settings to PrefController" into main 2025-01-07 17:39:23 -08:00
Wenyu Zhang
6052ab619f a11y: Plumb autoclick cursor area size settings to PrefController
Screen recording: http://go/scrcast/NTk0ODczOTE4MDAzNjA5Nnw0ZGNhMzVmYS0wYg

Bug: b/383901288
Test: ToggleAutoclickCursorAreaSizeControllerTest
Change-Id: I745ef71d035d379e06a747f085ef9b0fef60d968
Flag: com.android.server.accessibility.enable_autoclick_indicator
2025-01-07 23:37:39 +00:00
Rex Hoffman
f4290c1d03 Removing Dead Flag
Test: CI
Bug: 386652866

Change-Id: Ib8a48063738f6362342957b39451a7c352a9a9d5
2025-01-07 14:01:21 -08:00
Lorenzo Lucena Maguire
fbf2a46140 Merge "Support Double Tap Power to open camera via config resource" into main 2025-01-07 12:06:03 -08:00
Johannes Gallmann
ed8348e161 Merge "Clean up predictive_back_system_anims flag" into main 2025-01-07 08:32:25 -08:00
Angela Wang
a6c383eced Remove flag enable_hearing_aid_preset_control
Flag: EXEMPT remove flag
Bug: 388175226
Test: atest BluetoothDetailsHearingDeviceControllerTest
Change-Id: I97b633f32794feb86e5a940448270ed74ed26387
2025-01-07 08:45:14 +00:00
Ze Li
205c81ed3a [Temp bonding] Hide rename button from device details page for temp bond device
Test: com.android.settings.bluetooth.AdvancedBluetoothDetailsHeaderControllerTest
Bug: 362859132
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Change-Id: I22d54c322029c606425c8f48b091ad1b53e100de
2025-01-07 15:00:32 +08:00
Lorenzo Lucena Maguire
0e64487bc3 Support Double Tap Power to open camera via config resource
"Quickly open camera" screen was previously replaced by the "Double
Tap Power Button" screen and accessible only if the
feature flag
android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
was disabled.

This CL introduces the possibility to set, via a config resource, "Quickly open camera" as the double tap power
gesture screen.

Test: atest DoubleTapPowerSettingsTest
Test: atest DoubleTapPowerPreferenceControllerTest
Test: atest DoubleTapPowerSettingsUtilsTest
Test: manually modified config and verified screen and gesture behavior
change
Flag: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Bug: 384794943
Change-Id: I5ab4422da09fa90848c66a41829327494080b5a2

Change-Id: I8e04cac3999a7ed99a611ef084c54bc07a5505dc
2025-01-07 03:59:59 +00:00
Chaohui Wang
3380884efc Merge changes from topic "BytesFormatter" into main
* changes:
  Migrate all data usage format use case
  Clean up unused DataUsageSummary.formatUsage
  Use BytesFormatter for data usage
2025-01-06 19:06:34 -08:00
Wenyu Zhang
2387fc0053 Merge "a11y: Initialize skeleton for autoclick indicator related settings" into main 2025-01-06 18:15:23 -08:00
Wenyu Zhang
32e2f97578 a11y: Initialize skeleton for autoclick indicator related settings
Screenshot: http://screen/5wWt8Tvr9K3fuoi.png

Change-Id: Iaf07e738d64e0e22caf7571a7529cccbf3079f87
Bug: b/383901288
Test: ToggleAutoclickCursorAreaSizeControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
2025-01-07 00:53:16 +00:00
YuhanYang
c3426d0a87 Add preference toggle for mouse scrolling acceleration
Bug: 383555305
Bug: 384795606
Test: Local DUT with aconfig flags enabled, verified settings appears
and is togglable. Verified toggle affects scrolling acceleration.

Flag: com.android.hardware.input.mouse_scrolling_acceleration
Change-Id: Ibba2bb1c3cb57b98ad34a5851bae7b9d73e48d74
2025-01-06 23:48:43 +00:00
Matthew DeVore
74a61215fb Use topology listener to detect changes
If some other app or the system changes the topology, we detect it and
refresh the topology pane. If the listener reports a topology that we
just applied, do not actually refresh the pane.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: atest DisplayTopologyPreferenceTest.kt
Test: with added logs, verify that a detach and re-attach w/o new topology does not cause a full refresh
Change-Id: Iecf50d563b430755c93bee5a1ff54f3f3d6eb3da
2025-01-06 20:26:03 +00:00
Yuri Lin
5979b88c7c Merge "Send APP_NOTIFICATION_PROMOTION_SETTINGS intent to the preference" into main 2025-01-06 10:59:50 -08:00
Treehugger Robot
54bb776d5a Merge "Touchpad: remove individual gesture settings" into main 2025-01-06 09:05:06 -08:00
Matthew DeVore
ace72e4455 Merge "Tweak TopologyScale API according to current usage" into main 2025-01-06 09:00:02 -08:00
Matías Hernández
837a3477ab Merge "Remove incorrect call to Window.addFlags with a system flag" into main 2025-01-06 07:16:05 -08:00
Geoffrey Boullanger
98cfa0af0a Add notifications toggle to Settings > Date and Time
Design doc: go/android-tznotifications
Test: atest and on device
Bug: 283267917
Bug: 283437447
Flag: com.android.server.flags.datetime_notifications

Change-Id: I91ea363a145d7184c997beae17862387114bc09b
2025-01-06 15:06:12 +00:00
Chelsea Hao
856a577b17 Merge "Support generic qr code scanners." into main 2025-01-06 02:26:22 -08:00
Ze Li
6856d1ebd3 Merge "[Temp bonding] Hide temp bond devices from existing lists" into main 2025-01-06 02:18:32 -08:00
chelseahao
679b76d8e9 Support generic qr code scanners.
Test: atest
Bug: 308368124
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I8dee57903c42d00351e28a891cee917e078839ac
2025-01-06 15:11:40 +08:00
Chelsea Hao
1d10e6bba2 Merge "[Audiosharing] When bt is off or unsupported, we show "Please connect a device" dialog after camera scans a QR code" into main 2025-01-05 19:07:56 -08:00
Matthew DeVore
154c32e5f3 Tweak TopologyScale API according to current usage
Use Float rather than Int for View coordinates as mostly Floats are
required. Also stop requiring Point/PointF boxing of arguments, since
the Preference implementation ended up not using Point/PointF objects
very much.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: atest DisplayTopologyPreferenceTest.kt
Change-Id: Iecccb9d524014c3b6ad600f99b9e769418e57a4d
2025-01-03 14:35:16 -06:00
Matthew DeVore
4e78151345 Merge "Allow drag/drop of display blocks" into main 2025-01-03 10:56:31 -08:00
Ioana Alexandru
0bb0d0c402 Update usages of TestModeBuilder
The API of the builder was changed a bit to clean up some things and
make others more explicit. Update tests in settingslib accordingly.

Bug: 382497909
Flag: TEST_ONLY
Test: this
Change-Id: Ib31991d61e7b232c8a2befda92537d7b388beb5b
2025-01-03 19:56:19 +01:00
Matthew DeVore
d1510f4bee Allow drag/drop of display blocks
After dropping, apply the new topology to the DisplayManager. We assume
the new topology is immediately written and read it back.

We don't yet respond to updates of the topology from other apps or
components; this will come in a follow-up patch soon.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: drag a display when there is only one in the topology
Test: drag a display when there are two in the topology
Test: close and re-open settings to verify a topology is persisted
Test: atest DisplayTopologyPreferenceTest.kt
Change-Id: I26aa7325570c5fd3e8b5fb60cb6e1196f8657b80
2025-01-03 11:43:23 -06:00
Hani Kazmi
57e649ae4e Merge "Revert "Revert "[AAPM] Add advanced protection dialog according ..."" into main 2025-01-03 09:25:46 -08:00
Johannes Gallmann
05f8420d87 Clean up predictive_back_system_anims flag
Bug: 320510464
Test: Presubmit
Test: Manual, i.e. verified system animations enabled on device
Flag: EXEMPT flag cleanup
Change-Id: Ie3b9ecd3355fcf86a1b4f597d45635b3fc794be9
2025-01-03 14:30:26 +00:00
Matías Hernández
e0510a62eb Remove incorrect call to Window.addFlags with a system flag
The same flag is being (correctly) added in onCreate, so on top of being wrong this was also completely unnecessary.

Bug: 368579654
Test: atest NotificationAccessConfirmationActivityTest
Flag: EXEMPT bugfix

Change-Id: I539fca77a1d136bdd0e4892993020884430b8a4e
2025-01-03 14:54:52 +01:00
chelseahao
d187437c57 [Audiosharing] When bt is off or unsupported, we show "Please connect a device" dialog after camera scans a QR code
Bug: 308368124
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Test: atest
Change-Id: I89697e25b57d67fa765f5ad593b72f6cdecda418
2025-01-03 02:07:44 -08:00
Shawn Lin
962f57dc3d [Biometric Onboarding & Edu] Update Set up Face Unlock page
Update icons, strings and layouts for new UX design

Bug: 370940762
Test: manual:
      Pre condition - no face enrolled
      Go Settings>Security & privacy>Device unlock>Face unlock
Test: atest FaceEnrollTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: Ie469c47005afb941f5646a2f790736362c23c697
2025-01-02 23:49:00 -08:00
Ze Li
440de09d47 [Temp bonding] Hide temp bond devices from existing lists
The metadata change listener will be added in later changes.

Test: atest: com.android.settings.bluetooth.ConnectedBluetoothDeviceUpdaterTest
Bug: 362859132
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Change-Id: I3ba5a978ce66e748fc1a7666fa4f6e84144c2c54
2025-01-03 14:03:10 +08:00
Chaohui Wang
d3448f3a91 Migrate all data usage format use case
Now they are all aligned.

Bug: 321861088
Flag: EXEMPT bug fix
Test: unit test
Change-Id: I1981fd32fd24de7c9eff93e0cd638e862f01b9b9
2025-01-02 18:14:10 -08:00
Chaohui Wang
2fdbe30929 Clean up unused DataUsageSummary.formatUsage
Bug: 321861088
Flag: EXEMPT bug fix
Test: atest DataUsageSummaryTest
Change-Id: Idea8401a81d738272a8f7b23d22c1fbd3feb6903
2025-01-02 18:14:10 -08:00
Chaohui Wang
611c62294a Use BytesFormatter for data usage
Change "480 B" to "480 byte".

And no longer use FormattedDataUsage.

Bug: 321861088
Flag: EXEMPT bug fix
Test: manual - App data usage
Test: unit test
Change-Id: I9ed220e2d5b8fc512d7d28f6fa7faebb37beab83
2025-01-02 18:14:10 -08:00
Yining Liu
9d200f1f38 Merge changes I1dffab01,I6e34ef9b,Ia8d472ea,Icf4e7003 into main
* changes:
  Notification on lockscreen settings: adapt text view for large font
  Inverse toggles on the notifications on locks screen settings page
  Update appearance of notifications on locks screen settings page
  Remove description from notifications on locks screen settings page
2025-01-02 16:11:51 -08:00
Adam Bookatz
2a828c6bde Merge "Expand uninstallForAll to Admins" into main 2025-01-02 11:01:50 -08:00
Yuri Lin
023509c895 Send APP_NOTIFICATION_PROMOTION_SETTINGS intent to the preference
This adds APP_NOTIFICATION_PROMOTION_SETTINGS to the set of intents that can go to AppNotificationSettings, and additionally adds the appropriate highlight key when the fragment is started with that intent action.

Flag: android.app.ui_rich_ongoing
Test: manual with flag on & off via sending intents over adb; AppNotificationSettingsTest
Bug: 369150427
Change-Id: I1c48fdae161979f1a221f7c57e83e94f6aadc306
2025-01-02 11:04:22 -05:00
Treehugger Robot
1d0c7054b4 Merge "Add talkback hint to Wi-Fi hotspot preferences" into main 2025-01-02 05:11:03 -08:00
Hani Kazmi
8e28132ba2 Revert "Revert "[AAPM] Add advanced protection dialog according ..."
Revert submission 31078830-revert-30767017-aapm-dialog-api-feedback-TBLFTCNTUN

Reason for revert: Addressed failing test

Reverted changes: /q/submissionid:31078830-revert-30767017-aapm-dialog-api-feedback-TBLFTCNTUN

Change-Id: I3321b4f5baaca9dd270350b9201998ffe0d40473
2025-01-02 05:07:50 -08:00
Haijie Hong
967a05a32d Merge "Add content description for battery charging status icon" into main 2025-01-02 02:55:58 -08:00
Shawn Lin
299449e29f Merge "[Biometric Onboarding & Edu] Support check enrolled fingerprint" into main 2025-01-01 21:51:52 -08:00
Chaohui Wang
99c5bf8b2c Merge "Reduce Mobile data switch flaky" into main 2025-01-01 17:44:56 -08:00
Harry Cutts
d4a469b4ca Touchpad: remove individual gesture settings
These were never plumbed in, never mind launched, and are sometimes
causing confusion in design discussions when people have the feature
flag turned on. Let's remove them.

Bug: 245989146
Test: check System > Touchpad > Touchpad gestures option is removed even
      when the flag's enabled
Flag: EXEMPT removing code controlled by a legacy sysprop-based flag
Change-Id: I22ca19faf6fed430bb3f0733867716a02514ac8d
2024-12-31 11:47:51 +00:00
Chaohui Wang
440c3c2779 Reduce Mobile data switch flaky
Set initial value to null, so no animation when the actual value true
is emitted.

Bug: 329584989
Flag: EXEMPT bug fix
Test: manual - on SIMs
Test: unit test
Change-Id: I3eea55115f02e65dcdcc44ccf917f9083622b723
2024-12-31 14:54:54 +08:00
Weng Su
0403cda3be Merge "[Catalyst] Add back Airplane toggle metrics" into main 2024-12-30 19:22:41 -08:00
Michael Checo
b33674eb4f Merge "Add preference toggle for mouse pointer acceleration setting" into main 2024-12-30 08:24:32 -08:00
Shawn Lin
4bfbb8782a [Biometric Onboarding & Edu] Support check enrolled fingerprint
- Add a new PreferenceItem for check enrolled fingerprint
- Create a new DialogFragment for the check enrolled
  fingerprint with functions:
  - request an authentication to FingerprintManager
  - highlight the item when a authentication successes
  - show error text when authentication fails
  - close the authentication

Bug: 370940762
Test: atest FingerprintSettingsFragmentTest
Flag: com.android.settings.flags.biometrics_onboarding_education

Change-Id: I90637e4ec20ea46e6f530ffd7ba79df9c31eda6b
2024-12-30 10:20:23 +00:00
Haijie Hong
cc28aba208 Add content description for battery charging status icon
BUG: 372622360
Test: atest AdvancedBluetoothDetailsHeaderControllerTest
Flag: EXEMPT minor fix
Change-Id: I23a889e1576c0625cefb91386987df8826c1935f
2024-12-30 16:09:48 +08:00