Commit Graph

56480 Commits

Author SHA1 Message Date
Treehugger Robot
e303458082 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Move PreferenceRestrictionMixin
  [Catalyst] Move metrics class
2025-02-11 10:11:44 -08:00
Jacky Wang
a2e663dadd [Catalyst] Move PreferenceRestrictionMixin
NO_IFTTT=Catalyst only

Bug: 377600992
Flag: EXEMPT refactor
Test: atest
Change-Id: I3c26a5a56d8fd6e887e4ff4d38d8e8eb97844672
2025-02-11 20:18:43 +08:00
Jacky Wang
afbcf06654 [Catalyst] Move metrics class
NO_IFTTT=Catalyst only

Bug: 389886085
Flag: EXEMPT refactor
Test: atest
Change-Id: I8c24a4edf768aa2286adf66f16077e962080bb48
2025-02-11 20:18:30 +08:00
Vaibhav Devmurari
9dc7367909 Merge "Flag cleanup: keyboard_a11y_(bounce/slow/sticky)_keys_flag" into main 2025-02-11 04:03:17 -08:00
Yiyi Shen
970eb2075a Merge "[Audiosharing] Set fallback group to -1 when routing to classic buds" into main 2025-02-10 22:23:32 -08:00
Treehugger Robot
63c0fd61c3 Merge "[Catalyst] Fix restriction issue on sound settings" into main 2025-02-10 21:29:48 -08:00
Yiyi Shen
009747cef9 Merge "[Audiosharing] Block pairing during audio sharing" into main 2025-02-10 21:10:43 -08:00
Jacky Wang
e9afa7c7c6 [Catalyst] Fix restriction issue on sound settings
After ag/31443354, sliders on sound settings are not disabled when
"no_adjust_volume" restriction is set. The root cause is that
`SeekBarVolumizer.setSeekBar` updates the SeekBar enabled state.

Bug: 386162594
Flag: EXEMPT bugfix
Test: atest&manual
Change-Id: I5d37c9958a693a26717a8e2d9a62ec5ef225e28f
2025-02-11 12:26:23 +08:00
SongFerng Wang
30af231cc4 Merge "Handle the sim switch for restricted ss mode case" into main 2025-02-10 20:25:41 -08:00
Treehugger Robot
1b1fa4810f Merge "[Satellite] Add satellite string for KDDI if no entitlement" into main 2025-02-10 19:30:27 -08:00
songferngwang
2d5a231a46 Handle the sim switch for restricted ss mode case
The restricted ss mode case is the device lock the sim switch function
in the single sim mode. For this case, UI did not use sim onboarding
flow, and use the sim switch dialog.

Bug: 393151990
Test: verify the sim switch function in the restricted ss mode.
Flag: EXEMPT bugfix
Change-Id: I04439f254010052c78a702618d972a9cf54cece0
2025-02-11 02:26:46 +00:00
tom hsu
292f1bdd01 [Satellite] Add satellite string for KDDI if no entitlement
- Currently Android only handles Satellite w/ entitlement for any notifications. Some carriers such as KDDI have no entitlement for satellite service, so this change is to add some strings to avoid any confuse to Android user on satellite service.

Flag: EXEMPT resource update
Fix: b/382387532
Test: Manual test
Test: atest pass
Change-Id: I835787c9e0fe29eeecec0470e9bd6b38939abd8c
2025-02-10 18:26:35 -08:00
Matthew DeVore
a7caa23deb Merge "Show topology pane in per-display fragment" into main 2025-02-10 09:47:44 -08:00
Tomasz Wasilczyk
f38579f786 Merge "Fix settings crashes on missing Telephony features" into main 2025-02-10 09:20:25 -08:00
Yiyi Shen
2ac50a14c1 [Audiosharing] Set fallback group to -1 when routing to classic buds
Bug: 385835055
Bug: 381946931
Test: manual
Flag: com.android.settingslib.flags.adopt_primary_group_management_api
Change-Id: I3f184c9af750221187917751e2cfdf50df112496
2025-02-10 19:08:21 +08:00
Yiyi Shen
93f9061794 [Audiosharing] Block pairing during audio sharing
When a) there are two sinks in sharing b) there is at least one temp
bond device connected

Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 392004799
Change-Id: Id093b4c0b67bdc1db621e0241e79900abbd26c0f
2025-02-10 18:38:53 +08:00
Yiyi Shen
ef77d14185 Merge "[Audiosharing] Set temp bond metadata for just bonded lea buds in sharing" into main 2025-02-10 01:52:41 -08:00
Jack Yu
94ecf1f216 Merge "Removed the flag enable_modem_cipher_transparency_unsol_events" into main 2025-02-10 00:47:42 -08:00
Treehugger Robot
50e464f3da Merge "[Catalyst] Implement metrics/tags for Settings Catalyst" into main 2025-02-09 16:55:47 -08:00
Treehugger Robot
b2c1cf22bd Merge "[Catalyst] Implement metrics/tags for "Remove Animation"" into main 2025-02-09 16:55:12 -08:00
Tomasz Wasilczyk
6a311b9f5b Fix settings crashes on missing Telephony features
Bug: 310710841
Test: open settings app
Flag: EXEMPT bugfix
Change-Id: Ic96585fb34902de54ec838c5692673b33edd2c27
2025-02-08 21:34:21 -08:00
Ben Lin
1493a261d7 Merge "Update DesktopMode API name." into main 2025-02-08 10:48:00 -08:00
Jacky Wang
ba3dbd9d12 [Catalyst] Add launch intent for Battery Saver screen
Fix: 395163443
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: Idfc0300ffe8f5e944fb39425280fff20b1e2c16d
2025-02-08 18:02:06 +08:00
Sunny Shao
5700104b92 [Catalyst] Implement metrics/tags for "Remove Animation"
NO_IFTTT=Catalyst only

Bug: 394002861
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: I2891c31de419294324e8c7e17cd191a370cfa305
2025-02-08 08:57:30 +00:00
Sunny Shao
e9f0fdcd66 [Catalyst] Implement metrics/tags for Settings Catalyst
NO_IFTTT=Catalyst only

Bug: 394002861
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: Ia879883c3f29cd7ac286b431680d66ab52e87db0
2025-02-08 08:37:35 +00:00
Victor Li
cc2b6ab418 Merge "Set a value in Settings.Global to indicate if user is on audio sharing dashboard fragment" into main 2025-02-07 23:03:51 -08:00
Chelsea Hao
1415a784b9 Merge "Add onMediaButtonEvent to handle button clicks." into main 2025-02-07 22:44:24 -08:00
Victor Li
3ac6ab440c Set a value in Settings.Global to indicate if user is on audio sharing dashboard fragment
Change-Id: I081db5db644cdc42294063783c29a93914e12328
BUG: 394810407
2025-02-07 21:14:23 -08:00
Jacky Wang
02c378757f [Catalyst] Provide GetValueResult.metadata whenever possible
Fix: 394975570
Flag: com.android.settingslib.flags.settings_catalyst
Test: atest
Change-Id: Ifbe92902e0337f00d6b2154c7bad9fda460a4a78
2025-02-08 12:51:01 +08:00
chelseahao
877387edb0 Add onMediaButtonEvent to handle button clicks.
Test: atest
Bug: b/384381891
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: If8e974a6d021e23a7f06d4476eb94153945c50fc
2025-02-08 03:18:24 +00:00
Jacky Wang
089e6378b5 [Catalyst] Take write permit into account for SettingsPreferenceMetadata.writable
NO_IFTTT=Catalyst only

Fix: 394973168
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I4c09ab50d3a08ab50f4fced29ea70bb50b14e5d7
2025-02-08 10:12:45 +08:00
Treehugger Robot
60c6d8ead5 Merge "Support customization for biometrics SafeSourceIssue" into main 2025-02-07 16:05:30 -08:00
Ronald Braunstein
1d81f30656 Merge "Remove palanki@google.com from src/com/android/settings/location/OWNERS" into main am: f888596ac5 am: 97fef8e771
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2854008

Change-Id: I54be3b03a5475f3850732f04f6c3fb5e89e1a4cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-07 16:03:08 -08:00
Ronald Braunstein
e0ce9c145f Merge "Remove jaggies@google.com from src/com/android/settings/biometrics/OWNERS" into main am: da41204d7e am: cfb5778952
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2957652

Change-Id: I155820b00f33821020bcb5b2c4baa5d27e65298b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-07 16:01:25 -08:00
Jack Yu
a8db4d190e Removed the flag enable_modem_cipher_transparency_unsol_events
Removed the 24Q3 flag enable_modem_cipher_transparency_unsol_events

Bug: 283336425
Test: atest FrameworksTelephonyTests
Test: Basic telephony functionality tests
Flag: EXEMPT flag cleanup
Change-Id: I08e206d721f99f9422a117dbe009561b434a43bf
2025-02-07 15:41:18 -08:00
Ronald Braunstein
f888596ac5 Merge "Remove palanki@google.com from src/com/android/settings/location/OWNERS" into main 2025-02-07 15:14:55 -08:00
Ronald Braunstein
da41204d7e Merge "Remove jaggies@google.com from src/com/android/settings/biometrics/OWNERS" into main 2025-02-07 15:12:07 -08:00
Yuhan Yang
92754decdb Merge "Add summary for autoclick cursor size row" into main 2025-02-07 14:13:50 -08:00
Yuhan Yang
b968400c13 Merge "Add Autoclick cursor area size settings dialog" into main 2025-02-07 14:12:58 -08:00
Yuhan Yang
c3f467dd71 Add summary for autoclick cursor size row
Screencast: go/screencast-njm3ndi4njm4ntixnzuznnw3nmy5m2fkms00ng

Bug: 390460480
Test: ToggleAutoclickCustomSeekbarControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I951be8da3e10f2a3ba0c6ff6e88a8a059db0f1ed
2025-02-07 21:06:12 +00:00
Matthew DeVore
faa7bc846e Merge "Run body of applyTopology for all non-noop drags" into main 2025-02-07 12:20:19 -08:00
Yuhan Yang
7630d396a6 Add Autoclick cursor area size settings dialog
Replace Autoclick sliderbar with an alert dialog
and radio group to match the new UI requirement.

Screenshot:
 - Click area column:
   go/screenshot-5AfdF7FGghsdiXk
 - Alert dialog:
   go/screenshot-4dgtojcc6lvjtyy

Bug: 390460480
Test: ToggleAutoclickCustomSeekbarControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Ic79f8833e69dde8d8eb3e945e5acd551d2ee9ff5
2025-02-07 19:58:53 +00:00
Matthew DeVore
83a1d4360f Show topology pane in per-display fragment
Some changes made to the UI, i.e. presence or absence of items, based on
feedback. There is some ambiguity because we are not fully v2 yet, hence
this change.

When all external displays are attached after opening the fragment, we
now show no preference items, whereas before we showed the pane with
built-in display options.

If only one external display is attached, we skip the "display list"
version of the fragment, and instead show the pane and other v2 items in
the per-display fragment.

If 2 or more external displays are attached, we do not show the pane
after selecting a display, which makes the rotation/resolution items
easier to find. I tried to get scrollToPreference to work but could not,
and it could be a little disorienting anyway.

To help manage the growing number of setOrder calls, keep the order
values as well as other pref data in a single spot. This also reduces
the amount of boilerplate around constants needed and makes uniform how
multiple preferences are built.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/366056922
Bug: b/394361999
Test: TODO
Change-Id: Iaa33f6d9220a1658a372c0432fe159a69dbb88a5
2025-02-07 19:18:16 +00:00
Matthew DeVore
eeec7d0d66 Run body of applyTopology for all non-noop drags
In onBlockTouchUp, if DisplayTopology.rearrange happened to revert the
change made by the drag so that it matched the before-drag layout, the
blocks would not be moved, so the block would be in the dragged position
but not the normalized position.

This will happen when rearrange has a bug or is otherwise optimizing the
layout, which is dependent on the implementation of rearrange.

The test field mTimesReceivedSameTopology has been replaced with one
that represents an observable positive operation:
mTimesRefreshedBlocks, the validation of which has been added to some
existing tests.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: move display so that rearrange reverts the change, then exit and re-enter the external display fragment, and verify it matches the state when left
Test: DisplayTopologyPreferenceTest
Bug: b/394361999
Bug: b/394355269
Change-Id: Ic3028747d283db77f144831352b7687fe2706391
2025-02-07 12:58:06 -06:00
Treehugger Robot
cbecb7e5b8 Merge "[Catalyst] Introduce the Tags for Get/Set APIs" into main 2025-02-07 04:06:32 -08:00
Yiyi Shen
5732773031 [Audiosharing] Set temp bond metadata for just bonded lea buds in sharing
Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 392004799
Change-Id: I99e9955d00362125b7cbf54e2013c99dd2f9b457
2025-02-07 19:20:29 +08:00
Treehugger Robot
ad9576aacf Merge "[Catalyst] Implement metrics/tags for "Screen attention"" into main 2025-02-07 02:51:23 -08:00
Treehugger Robot
e07b3e8860 Merge "[Catalyst] Implement metrics/tags for "Bluetooth"" into main 2025-02-07 02:33:20 -08:00
Sunny Shao
8397f1056b [Catalyst] Introduce the Tags for Get/Set APIs
NO_IFTTT=Catalyst only

Test: atest ExternalSettingsProviderTest
Bug: 394002861
Flag: EXEMPT bugfix
Change-Id: I630a9f5ffbaaeed16e13674efa507f3a7b681839
2025-02-07 10:29:49 +00:00
Treehugger Robot
b729305ad3 Merge "[Catalyst] Implement metrics/tags for "Adaptive brightness"" into main 2025-02-07 01:57:12 -08:00