Commit Graph

24034 Commits

Author SHA1 Message Date
Menghan Li
c26eb7fd24 feat(A11yFeedback): Implements page ID to feedback bucket ID mapping
This change adds a new API to a Pixel overlay feature provider,
allowing Android to map page IDs to feedback bucket IDs.

Bug: 393980229
Test: Manual testing for Pixel and non-Pixel overlay in real device
Test: atest AccessibilitySettingsTest
            FeedbackManagerTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I8a110b08816cac9c8a8e8c3e1218530fffb6f121
2025-03-05 05:23:00 +00:00
Zoey Chen
4cbc560d1d Merge "[Settings] Add test case for new LocalePicker page - suggested language" into main 2025-02-25 00:40:30 -08:00
Zoey Chen
c0a09796b8 [Settings] Add test case for new LocalePicker page - suggested language
Bug: 396285228
Test: atest
Test: atest SettingsRoboTests:com.android.settings.localepicker.SystemLocaleSuggestedListPreferenceControllerTest
Test: atest SettingsUnitTests:com.android.settings.localepicker.SystemLocaleSuggestedListPreferenceControllerTest
Flag: EXEMPT refactor
Change-Id: I70d731b50775bf45ae0d73e4da9ea78dfcd3826c
2025-02-24 22:36:29 -08:00
Zoey Chen
6429735cb3 [Settings] Fix test failure
Change-Id: I06b56a378ab37f476801d0da97b68c4e3e07906c
Test: atest SettingsUnitTests:com.android.settings.localepicker.LocaleDialogFragmentTest
Bug: 396802384
Flag: EXEMPT bugfix
2025-02-24 20:09:09 -08:00
Wa Gao
c668a9e5c1 Merge "Disable the ContentProtection setting switch bar when current user is a guest user." into main 2025-02-24 16:02:09 -08:00
Treehugger Robot
b865f8a60d Merge "FactoryResetPreferenceController return null when permission isn't grandted." into main 2025-02-24 14:29:36 -08:00
Omer Ozer
3a8f193bb5 FactoryResetPreferenceController return null when permission isn't
grandted.

Flag: EXEMPT bugfix
Bug: 396580123
Test: manual
Change-Id: Id68dcebc600de21fddf8801757dfb56b92a1a773
2025-02-24 21:17:57 +00:00
Kanyinsola Fapohunda
ca552d4e89 Merge "Change namespace for time_help_and_feedback_feature_supported server flag" into main 2025-02-24 04:48:22 -08:00
Haijie Hong
5e79d18636 Merge "Add Nearby share entrypoint in DevicePicker" into main 2025-02-23 23:30:32 -08:00
Shaowei Shen
49859abb4b Merge "[Physical Keyboard] Update Input Setting Dialog" into main 2025-02-22 02:36:32 -08:00
Yuhan Yang
664df0f4cc Update autoclick shortcut searchable
Add autoclick shortcut to search index when
enable_autoclick_indicator flag is enabled.
Hide it when the flag is off.

Bug: 397719419
Test: atest ToggleAutoclickPreferenceFragmentTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Ib6d25067d024ff0dbea64d17d38fc544c615db97
2025-02-21 22:36:53 +00:00
Matthew DeVore
bdd9cca602 Merge changes I550fc918,I16b3ae92 into main
* changes:
  Disable mirror toggle if feature turned off
  Use PrefRefresh for Preference caching
2025-02-21 08:59:44 -08:00
Jason Hsu
d879711020 Merge "Fix default microphone for calls sometimes not work and not show UI" into main 2025-02-21 08:44:13 -08:00
Matthew DeVore
c37fc8b827 Use PrefRefresh for Preference caching
Refactor a couple of fields to use PrefRefresh for caching instead
instead of fields. This makes us construct PrefRefresh for display
categories, which we hadn't been doing before, and was causing
b/397466966. This also limits the tests' dependency on implementation.

We had been using fields for caching Preference objects, which doesn't
account for the same preference being needed for each display.
PrefRefresh is a more flexible mechanism for recycling View objects and
it largely makes the fields obsolete.

The reuse* methods (previously get*Preference) can actually be inlined
now that tests aren't calling into them, but to keep the diff easy to
review I left them as separate methods.

Because @NonNull doesn't actually do anything, and is considered the
default, I neglected to add them to new arguments, and deleted them from
lines I modified.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: ExternalDisplayPreferenceFragmentTest.java
Test: with fragment visible, plug-in and activate a new physical display with the Mirror prompt
Test: with topology disabled, verify footer is shown with and without a display attached
Bug: b/397466966
Bug: b/397591022
Change-Id: I16b3ae925ca3d9d79471fd5df00b571ae3fc696f
2025-02-21 09:43:10 -06:00
Haijie Hong
a9e67c0327 Add Nearby share entrypoint in DevicePicker
Bug: 381799866
Test: local build
Flag: com.android.settings.flags.enable_nearby_share_entrypoint
Change-Id: Ied79b9eebe7eaf669e45922787c5b01e504822d8
2025-02-21 17:24:10 +08:00
Tom Hsu
3c1e8e19cb Merge "Make Satellite UI updatable during receiving callback" into main 2025-02-20 23:27:01 -08:00
shaoweishen
4da457f8a9 [Physical Keyboard] Update Input Setting Dialog
1. update button style to use custom one
2. use scrollview so it won't be truncated in shorter screen

Bug:389973784
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: I57765e88751b6090606d56bbe2335813ef7fd2fc
2025-02-21 07:10:40 +00:00
Ze Li
025fff5a85 Merge "[Battery refactor] Move stylus related functions to BluetoothUtils as util functions." into main 2025-02-20 21:36:37 -08:00
Pawan Wagh
bbf2e6c700 Merge "16KB -> 16 KB" into main am: 63a8931a41 am: 1c2464aae4
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3501682

Change-Id: Ib9d413563cf8ebf1d9385e4c6ef2fba0ec9e178c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-20 20:13:38 -08:00
Pawan Wagh
06e764f264 Merge "Connect and enable root before running each testcase" into main am: b03384d426 am: 60c7026389
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3501231

Change-Id: I91e57e73653654414e737413a5d5dc4bff047925
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-20 20:12:56 -08:00
Treehugger Robot
6df46b06a7 Merge "Fix mobile data in Settings is not disable under satellite session" into main 2025-02-20 20:05:18 -08:00
Pawan Wagh
63a8931a41 Merge "16KB -> 16 KB" into main 2025-02-20 19:28:35 -08:00
Pawan Wagh
b03384d426 Merge "Connect and enable root before running each testcase" into main 2025-02-20 19:28:03 -08:00
tom hsu
2a91e80acc Fix mobile data in Settings is not disable under satellite session
Flag: EXEMPT bug fix
Bug: b/386424636
Test: atest pass
Change-Id: I8d28419f295b172c2929acca5f5896aa4deeb09c
2025-02-21 02:48:55 +00:00
Chun-Ku Lin
e4daa2786b Ignore test that would fail when running together
The two tests when running together, one of them would fail. Verified the user workflow is not affected, so simply ignore the test to unblock presubmit. Will fix the test later.

BUG: 398023330
Test: atest SettingsRoboTests:com.android.settings.accessibility.DaltonizerPreferenceTest SettingsRoboTests:com.android.settings.accessibility.ColorInversionPreferenceTest
Flag: EXEMPT test only

Change-Id: Ie978223dc9ec85aead624e4d6e0b91b033a7f7d1
2025-02-20 15:23:56 -08:00
Treehugger Robot
69c4f2dff0 Merge "Make ColorAndMotionFragment fully in Catalyst" into main 2025-02-20 12:39:07 -08:00
jasonwshsu
691a3fd641 Fix default microphone for calls sometimes not work and not show UI
Root Cause: Only setMicrophonePreferredForCalls and show UI to current device, but audioManager
might hold other device in the same set

Solution: setMicrophonePreferredForCalls to whole device set and also check if any address in device
set contain in audioManager GET_DEVICES_INPUTS list

Bug: 392902067
Test: atest BluetoothDetailsHearingDeviceInputRoutingControllerTest
Flag: EXEMPT bugfix
Change-Id: Ic5846de26df4a8db67fa8efcf474fa4509f7918a
2025-02-21 04:10:03 +08:00
Treehugger Robot
1d8a9df2eb Merge "Change range of battery saver schedule seekbar" into main am: a9d0f2b261 am: bec906daaa
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3494973

Change-Id: I800977e4a6e005169c346e41b5958cd6cddc4baa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-20 04:36:04 -08:00
Treehugger Robot
540361621a Merge "Fixed crash issues in Emergency Callback Mode" into main 2025-02-20 03:35:54 -08:00
Treehugger Robot
a9d0f2b261 Merge "Change range of battery saver schedule seekbar" into main 2025-02-20 03:22:43 -08:00
Treehugger Robot
acd833886f Merge "Persist dev option reboot dialog on rotation." into main 2025-02-20 02:37:32 -08:00
Weng Su
af065146d5 Fixed crash issues in Emergency Callback Mode
- Avoid using controllers when Catalyst design is enabled

Bug: 394015881
Flag: EXEMPT bugfix
Test: Manual testing
  atest NetworkDashboardFragmentTest
Change-Id: I4393be5e76c0328f2a53f1d828814491991557f1
2025-02-20 18:24:16 +08:00
tom hsu
d5548d1463 Make Satellite UI updatable during receiving callback
- Refactor code
 - Make Satellite category be updatable by callback.

Flag: EXEMPT bug fix
Fix: b/396233604
Fix: b/382664790
Test: atest pass
Change-Id: I893030005ae5af1403557f7bd22e8cdaf038ffcf
2025-02-20 09:34:45 +00:00
alinazaidi
cf33160dc5 Persist dev option reboot dialog on rotation.
Use a ViewModel to store reboot dialog fragment state on rotations.

Test: locally verified rotations on few dev options that use the reboot fragment
Test: atest
com.android.settings.development.RebootConfirmationDialogFragmentTest
--iterations 25 (Passed)
Bug: 356273849
Flag: EXEMPT bug fix

Change-Id: I154170ea5fa91bcbec32af43853c5f99f8e8253d
2025-02-20 01:25:12 -08:00
Henrik Baard
37bf0fbe57 Change range of battery saver schedule seekbar
The minimum value which can be set as trigger for
Battery saver was changed from 10% -> 20% however the
settings UI was not aligned with this change.

ref: b0fe225 Update the battery saver scheduler minimum level

Update the UI to align with the minimum trigger
level.

Bug: 396444535
Test: manual, check minimum seekbar value after reboot.
Test: atest BatterySaverScheduleSeekBarControllerTest
Change-Id: I4baa766ff1cb78ce656ae340ce930094b9e124e0
2025-02-20 09:13:39 +01:00
Ze Li
6a29b1c779 [Battery refactor] Move stylus related functions to BluetoothUtils as util functions.
Test: com.android.settings.bluetooth.BluetoothDeviceDetailsFragment, com.android.settings.connecteddevice.stylus.StylusDevicesControllerTest
Bug: 397847825
Flag: EXEMPT utils function
Change-Id: I6819844cd686fe29b8b1c760c3e4035787a2b903
2025-02-20 15:35:01 +08:00
Steven Moreland
911a99932c 16KB -> 16 KB
To be consistent with our docs and communication elsewhere.

Bugs: me
Change-Id: I0233412e452a27a14eb14336b0229114d022183c
Test: N/A
2025-02-19 15:11:18 -08:00
Pawan Wagh
24a65ba02b Connect and enable root before running each testcase
- Enable16KbTest is flaky for aosp targets. Make sure that device
is connected and with root each time before and after running the
test.
- Add OWNERS file Enable16KbTest

Test: atest -c Enable16KbTest
Bug: 396984821
Change-Id: Ifffb73496b0947dda13a4022733677bd645b7e16
2025-02-19 20:59:06 +00:00
Nikhil Nayunigari
81bb2588f5 Merge "Add ethernet interface details settings subpage" into main 2025-02-19 08:34:03 -08:00
Yiyi Shen
92721a8650 Merge "[Audiosharing] Handle add source from notif in receiver" into main 2025-02-19 07:38:47 -08:00
Yiyi Shen
2114b0252f Merge "[Audiosharing] Handle cancel notification in receiver" into main 2025-02-19 07:38:32 -08:00
Kanyinsola Fapohunda
c9569b1cbd Change namespace for time_help_and_feedback_feature_supported server flag
This change moves the time_help_and_feedback_feature_supported flag from the settings_ui namespace to the system_time namespace.

Flag: EXEMPT refactor
Bug: 283239837
Change-Id: Ic1fcafd3cdbd263d7b800ac7676701628361de63
2025-02-19 07:09:49 -08:00
Matías Hernández
a8b18f953d Merge "Hide ZenMode.getRule() - Settings" into main 2025-02-19 05:43:17 -08:00
Yiyi Shen
b7518c56e1 Merge "[Audiosharing] Revert ag/31626042 (exclude utils)" into main 2025-02-19 02:32:06 -08:00
Yiyi Shen
fca184598d [Audiosharing] Handle add source from notif in receiver
Test: atest
Bug: 395786392
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ia9a74a48224974c10524f1ae379cd9de2ff42430
2025-02-19 18:04:13 +08:00
Garvita Jain
c543fa8101 Merge "L10n fix for IW locale in storage_summary string" into main 2025-02-19 01:38:19 -08:00
Yiyi Shen
2c5f451b3a [Audiosharing] Revert ag/31626042 (exclude utils)
FP will handle set temp for manual pair in Settings

Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 392004799
Change-Id: I3afae523ef0d5a6c236a482127a714f422a6e000
2025-02-19 01:23:52 -08:00
Aleksander Morgado
4a2abf7705 Early check for SIM EID availability based on telephony or user admin
The SIM EID field was already not being shown if the
PackageManger.FEATURE_TELEPHONY_DATA feature flag was not set, per the
check in getIsAvailableAndUpdateEid().

The async availability update was introduced in the context of bug
304560734, because the UI could block until the EID value was ready.
The config_show_sim_info check was left in getAvailabilityStatus() as
that cannot block.

This change moves to getAvailabilityStatus() the availability check
based on the PackageManager feature flags (which are set on system
boot and not changed during runtime) and also based on whether the
user is admin or not, as with any other telephony related setting.
None of these two checks would lead to ANR state.

Bug: 395714454
Flag: EXEMPT bugfix
Test: atest SimEidPreferenceControllerTest

Change-Id: I3447091670345285132a2acaf45cd129c2b84c00
2025-02-19 00:50:05 -08:00
Yiyi Shen
0ccc9eefc4 [Audiosharing] Handle cancel notification in receiver
Test: atest
Bug: 395786392
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ib4b8ed3eff1df01819b37be2c1334abeae00ea2c
2025-02-19 15:01:03 +08:00
Treehugger Robot
9fb0e28bf7 Merge "Fix BiometricEnrollActivityTest Fail" into main 2025-02-18 23:00:01 -08:00