Commit Graph

147526 Commits

Author SHA1 Message Date
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
97fef8e771 Merge "Remove palanki@google.com from src/com/android/settings/location/OWNERS" into main am: f888596ac5
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2854008

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

Change-Id: I6712313387b969490fa09a38057fa27363a847d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-07 15:37:07 -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
Treehugger Robot
b0a4c54cc3 Merge "Removed the tests with flags disabled" into main 2025-02-07 14:21:26 -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
Jack Yu
068fbc9860 Removed the tests with flags disabled
Flags are enabled already. The flag disabled tests should be
removed.

Fix: 395131189
Test: atest CellularSecurityNotificationsPreferenceControllerTest
Flag: EXEMPT test fix
Change-Id: I40d5c56956b714ba563cb545807deb1dee9e8d8a
2025-02-07 13:37:25 -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
Yuhan Yang
999564498b Merge "Add mouse scrolling category title" into main 2025-02-07 10:19:14 -08:00
Aleksander Morgado
035a15ac37 Added unit test for MobileNetworkPhoneNumberPreferenceController visibility
The new test checks whether the item is available when the
SubscriptionUtil.isSimHardwareVisible() method returns true, i.e. if
the config_show_sim_info boolean flag is true on non-test runtime.

The default visibility status for all tests is defined in the test
setup() method, as this will also simplify the addition of new checks
later on.

Bug: 392808943
Flag: EXEMPT test only
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest

Change-Id: Icedef190a8140fd8164dd8035ae93735a666b9f0
2025-02-07 14:53:25 +00:00
Aleksander Morgado
616fbc4f93 Added unit tests for PhoneNumberPreferenceController visibility
The tests check whether the item is available based on the result of
the SubscriptionUtil.isSimHardwareVisible() method, which is the one
allowing to check the value of the config_show_sim_info boolean flag
on non-test runtime.

Bug: 392808943
Flag: EXEMPT test only
Test: atest PhoneNumberPreferenceControllerTest

Change-Id: I2d1361ecef8a9c1083b4fd6fd4462c7815574827
2025-02-07 14:53:16 +00:00
Andreea Costinas
a185b43616 Ensure certificate alias is always visible
If the user credentials dialog displays multiple elements (e.g. if the
certificate is used by a wifi configuration), the content size exceedes
the available space.

Currently, the alias text view is the only element which declares a
`layout_weight`. The LinearLayout failes to distribute the space
correctly, pushing it beyond the bounds.

Bug: 287533409
Flag: EXEMPT bugfix
Test: manual
Change-Id: Ieff1b3011080dabf823c7689a3781c6e52b9791d
2025-02-07 13:46:57 +00: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
Treehugger Robot
b7ac496c3d Merge "[Catalyst] Implement metrics/tags for "Battery Saver"" into main 2025-02-07 01:56:28 -08:00
Treehugger Robot
a477817f06 Merge "[Catalyst] Implement metrics/tags for "Wi-Fi"" into main 2025-02-07 01:55:53 -08:00
Treehugger Robot
dff59dfde7 Merge "[Catalyst] Implement metrics/tags for "Wi-Fi Calling"" into main 2025-02-07 01:54:32 -08:00
Treehugger Robot
3c79d2d267 Merge "[Catalyst] Implement metrics/tags for "Mobile data"" into main 2025-02-07 01:51:10 -08:00
Shawn Lin
ec6db75081 Merge "Fixed incorrect screen lock settings category title" into main 2025-02-07 01:28:24 -08:00
Sunny Shao
1995fb420d [Catalyst] Implement metrics/tags for "Bluetooth"
NO_IFTTT=Catalyst only

Bug: 394002861
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: I793f81bc5195ae83927acd19f5da3e96a09ba430
2025-02-07 09:16:56 +00:00
Sunny Shao
d5915b775a [Catalyst] Implement metrics/tags for "Screen attention"
NO_IFTTT=Catalyst only

Bug: 394002861
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: I1ed0d0113d7efac4c6cfa9b95ea130b8edd04407
2025-02-07 09:03:44 +00:00
Sunny Shao
ea89c3ebfc [Catalyst] Implement metrics/tags for "Adaptive brightness"
NO_IFTTT=Catalyst only

Bug: 394002861
Flag: com.android.settings.flags.catalyst
Test: devtool
Change-Id: Ida22810a8e3335eeff3632a989885fa7b6da433d
2025-02-07 08:50:35 +00:00
Shawn Lin
bf3f9a0bda Fixed incorrect screen lock settings category title
Bug: 394999568
Test: manual - Go to Screen lock settings page and check the title
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I51352a43297e226cd1a72bd9edfe1211f02a4191
2025-02-07 00:34:48 -08:00
Aleksander Morgado
4799b02066 Merge "Avoid explicit reference to 'mobile' in tethering_footer_info" into main 2025-02-07 00:19:24 -08:00