Commit Graph

145881 Commits

Author SHA1 Message Date
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
Victor Li
9e36d12ec5 Merge "Set audiostreams service exported=true with BLUETOOTH_PRIVILEGED permission." into main 2025-01-06 18:13:44 -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
Nikhil Nayunigari
891ea3d18a Merge "Feature flag for Ethernet Settings" into main 2025-01-06 09:53:14 -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
Victor Li
c1b478c9cb Set audiostreams service exported=true with BLUETOOTH_PRIVILEGED permission.
Bug: 387887193

Change-Id: Ie80d8ad9ae3d169eda04d1f4cc87da71c34cbd44
2025-01-06 05:12:31 -08:00
chelseahao
4668c58347 Fix play/pause button.
Test: atest
Bug: 385844038
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I2007f5d4ade3254f2eeb6e5fa6ed677772083376
2025-01-06 19:47:56 +08:00
Tom Hsu
e2ba1a89c2 Merge "NTN connected type is manual, UI status shall be checked by callback." into main 2025-01-06 02:48:39 -08: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
shaoweishen
1f436509f0 [Physical Keyboard] Fix L18n test bugs
1. update string to match with Markup
2. a space for label keys as suggested

Bug: 387267421
Bug: 387572420
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod
Change-Id: I787cf6ff4e15509d669317a0d968235a08b4dc43
2025-01-06 10:03:53 +00:00
tomhsu
88a0a7610c NTN connected type is manual, UI status shall be checked by callback.
- Manual type shall check with onCarrierRoamingNtnAvailableServicesChanged
 - Automatic type check shall check with getAttachRestrictionReasonsForCarrier

Flag: EXEMPT bug fix
Fix: b/387523217
Test: Manual test
Change-Id: Id28885a0972a7f7d6c43ae22149b6e3e49d7f374
2025-01-06 09:15:19 +00: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
Haijie Hong
12f53fadd8 Merge "Fix device icon overflow issue" into main 2025-01-05 22:16:49 -08:00
YK Hung
3ebad89891 Merge "Use try-with-resources for BatteryUsageStats" into main 2025-01-05 20:42:01 -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
Treehugger Robot
a98694a34c Merge "Add talkback hint to SIM name EditText" into main 2025-01-05 17:17:08 -08:00
Weng Su
e5c80148b7 Add talkback hint to SIM name EditText
Bug: 385808957
Flag: EXEMPT bugfix
Test: Manual testing
Change-Id: Ide9161690f87c048eaa348d410674a6fb74ea07c
2025-01-06 07:22:20 +08:00
Bill Yi
ea095beb6c Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-04 22:17:23 -08:00
Bill Yi
3c389cfa99 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-04 22:17:23 -08:00
Haijie Hong
7928455af6 Fix device icon overflow issue
Flag: EXEMPT minor fix
Bug: 373988997
Test: local tested
Change-Id: I13185e3fc0b57dd6079eb0bef5d8fbda5efbddb9
2025-01-04 21:47:22 +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
Aishwarya Mallampati
45926f698b Merge "Address API review comments." into main 2025-01-03 11:30:49 -08: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
Yuri Ufimtsev
3eff731e52 Allow to open Content Protection settings externally
Test: adb root && adb shell aflags enable android.view.contentprotection.flags.exported_settings_activity_enabled && adb reboot && sleep 60 && adb shell am start -a android.settings.CONTENT_PROTECTION_SETTINGS
Bug: 385310040
Flag: android.view.contentprotection.flags.exported_settings_activity_enabled
Change-Id: I1a5e33196051de88ceaddb638edab702f762fe5d
2025-01-03 15:48:27 +00: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
Menghan Li
f4dfdda4b7 Add a new API: checkSurveyAvailable
This change introduces a new API within SettingsIntelligence to enable
SettingsGoogle to identify available surveys for Pixel device users.
This API will be used by SettingsGoogle to determine if there are any
surveys available for a user to take.

Bug: 380346685
Flag: com.android.server.accessibility.enable_low_vision_hats
Test: atest SurveyFeatureProviderImplTest
Change-Id: Ia4e694b6c8a240af4422baff61386d9ee5ffc346
2025-01-03 12:12:28 +00: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
Zaiyue Xue
5a3107b940 Use try-with-resources for BatteryUsageStats
This is a better practice for closable class BatteryUsageStats. It can
make sure BatteryUsageStats will be closed even exception is thrown.

Bug: 384795117
Test: presubmit
Flag: EXEMPT bug fix
Change-Id: Ie8f0e34aed38ffd5402e3c16a9ace4128d431286
2025-01-03 17:51:11 +08:00
Treehugger Robot
509c1d7834 Merge "[Catalyst] Use the AbstractKeyedDataObservable in BatterySaverStore" into main 2025-01-03 01:04:08 -08:00
Yiyi Shen
c670db6ebf Merge "Update talkback text for device details gear button" into main 2025-01-03 00:39:34 -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
Hakjun Choi
5a622211dc Merge "Prevent possible crash by adding null pointer check" into main 2025-01-02 18:47:27 -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
Haijie Hong
2d2770b835 Merge "Don't update UI if getActivity returns null" into main 2025-01-02 17:37:50 -08:00