Commit Graph

23546 Commits

Author SHA1 Message Date
Jason Hsu
a1046fc847 Merge "[HA Input] Add UI to support hearing device microphone change ability in device details page" into main 2024-12-23 19:50:24 -08:00
Daniel Huang
4a580bcda0 Merge "Migrate ToA to the new entry point" into main 2024-12-23 19:37:47 -08:00
Solti Ho
288aa8b183 Merge "Disable ANGLE as system GLES dev option" into main 2024-12-23 19:25:49 -08:00
Chaohui Wang
8c0b1ef270 Merge "Send initial status for wifiStateFlow" into main 2024-12-23 19:02:54 -08:00
Angela Wang
a4e7f063bd Merge "Migrate SeekBarPreference to SliderPreference" into main 2024-12-23 17:51:06 -08:00
Zhibin Liu
b5b9402925 Merge "Check package name format before using it for SPA nav" into main 2024-12-23 06:47:04 -08:00
zhibinliu
b2ee5ccf5b Check package name format before using it for SPA nav
Bug: b/372895305
Test: unit test
Flag: EXEMPT bug fix
Change-Id: Ife615c78c48a2d6f5b938c880c9c2128c5551644
2024-12-23 06:41:40 -08:00
jasonwshsu
1258059feb [HA Input] Add UI to support hearing device microphone change ability in device details page
In this patch:
* Add custom dialog preference: HearingDeviceInputRoutingPreference and its controller
* Contain radio group to show 'hearing device microphone' and 'this phone's microphone' for user's preference
* set/get user's preference via BluetoothDevice#isMicrophonePreferredForCalls, BluetoothDevicwe#setMicrophonePreferredForCalls
* check if support HapProfile and if in AudioManager#getDevice(GET_DEVICES_INPUTS) list

Bug: 349255906
Test: atest HearingDeviceInputRoutingPreferenceTest BluetoothDetailsHearingDeviceInputRoutingControllerTest BluetoothDetailsHearingDeviceControllerTest
Flag: com.android.settingslib.flags.hearing_devices_input_routing_control
Change-Id: I2e4dbc7fb98353ed52d0d175df4e8725df6b9a05
2024-12-23 19:57:39 +08:00
danielwbhuang
bedf5c3805 Migrate ToA to the new entry point
1. Add the new entry point
2. Use flag to control the migration

Bug: 379962955
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv and atest TermsOfAddressCategoryControllerTest
Change-Id: Ie78a0f16188f3c4414dcd653189e5772f99ecb4d
2024-12-23 17:56:55 +08:00
Jacky Wang
6291dd79e6 Fix flaky LifecycleAwareAsyncTaskTest
Fix: 385137513
Flag: TEST_ONLY
Test: atest SettingsRoboTests:LifecycleAwareAsyncTaskTest --rerun-until-failure 500
Change-Id: I269d2fa1c63e0b805d7d1b0710919f60c2096ec0
2024-12-23 15:31:45 +08:00
Chaohui Wang
d830acf625 Send initial status for wifiStateFlow
To make sure this flow is never empty, use unknown as default.

Fix: 383050153
Flag: EXEMPT bug fix
Test: manual - on Network & internet
Test: unit test
Change-Id: Iaa421749ab917ebc651a95ccdf1a4ab1cb9ba112
2024-12-23 11:50:51 +08:00
Jacky Wang
6d9de7840f [Catalyst] Simplify RemoveAnimationsPreferenceTest
Bug: 373451690
Flag: TEST_ONLY
Test: atest
Change-Id: Idc64a811d97b5fd3047ad4167b98da5b97c0fee0
2024-12-23 10:23:46 +08:00
Vladimir Komsiyski
18fe317f1d Merge "VDM Settings" into main 2024-12-20 23:46:44 -08:00
Kyle Zhang
a538d07519 Merge "Fix force L3 preference unit test" into main am: 3874c11b94 am: 8d7fc7232b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3426487

Change-Id: I5a86b61ebee69fb52b4bc7bcf83e901d1aeab300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20 15:26:40 -08:00
Solti
5a3cfb9f0c Disable ANGLE as system GLES dev option
This change prevents the feature from being inadvertently exposed to the
wider user base while it undergoes further refinement and stabilization
for a smoother user experience.

Test: atest SettingsUnitTests:com.android.settings.development.graphicsdriver.GraphicsDriverEnableAngleAsSystemDriverControllerJUnitTest
Test: locally build Husky and confirm the dev option is disabled, even
with the "debug.graphics.angle.developeroption.enable" prop set.
Flag: EXEMPT bugfix
Bug: b/384047927

Change-Id: I160840a25d38bf305871d7e146745df0d56f0227
2024-12-20 23:06:49 +00:00
Chris Antol
6877d115e5 Support IntRange of value in PrefService
Bug: 384955673
Test: unit test
Flag: com.android.settingslib.flags.settings_catalyst
Change-Id: I0d5f67541ee48d758fc8fd0e38fe4c348127017c
2024-12-20 21:59:44 +00:00
Treehugger Robot
54653364bc Merge "[Catalyst] Refine Wi-Fi preferences" into main 2024-12-20 06:56:56 -08:00
Weng Su
9d83ce76ba [Catalyst] Refine Wi-Fi preferences
- Use application context to get system services to avoid memory leaks

NO_IFTTT=Catalyst only

Bug: 385116691
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiHotspotSwitchPreferenceTest \
         WifiSwitchPreferenceTest

Change-Id: I4340136d8d0118801ef450809424127f84afbb92
2024-12-20 21:45:49 +08:00
Angela Wang
5ccc566161 Migrate SeekBarPreference to SliderPreference
Flag: EXEMPT flag by System prop
Bug: 349675952
Bug: 384648854
Test: manually check the UI
Test: atest AmbientVolumePreferenceTest
Change-Id: Ibe8ba3f8e46337b9771fd4921aee4dea21612e06
2024-12-20 01:17:22 -08:00
Jacky Wang
70c56ec8c9 [Catalyst] Update getRead/WritePermissions return type
NO_IFTTT=Catalyst only

Bug: 374115149
Flag: com.android.settings.flags.catalyst_mobile_network_list
Test: devtool
Change-Id: I30c93cc1c07691c1e0498916bbdfb423fa1734a0
2024-12-20 13:38:49 +08:00
Treehugger Robot
75cae48694 Merge "[HSUM] Fix BatteryOptimizationModeAppListPageProviderTest" into main 2024-12-19 21:06:29 -08:00
mxyyiyi
56c4bd723a [HSUM] Fix BatteryOptimizationModeAppListPageProviderTest
Headless System User Mode will use startActivityAsUser() instead of startActivity().

Bug: 383541859
Flag: EXEMPT bug fix
Test: atest BatteryOptimizationModeAppListPageProviderTest
Change-Id: Ic4a0fca1a5835c0dab292b8665551cb2ca9f6640
2024-12-20 11:52:04 +08:00
Kyle Zhang
3d84ccf8a2 Fix force L3 preference unit test
Bug: 385101776
Change-Id: I898b7855d3922636c09c99414cdaefee236fc71f
2024-12-19 16:02:45 -08:00
Azhara Assanova
f2f9874122 Merge "[AAPM] Add advanced protection dialog according to API feedback" into main 2024-12-19 09:41:27 -08:00
Vladimir Komsiyski
af3e3026ff VDM Settings
Demo: go/vdm-settings-demo

Bug: 371713473
Bug: 338974320
Test: atest
Flag: android.companion.virtualdevice.flags.vdm_settings
Change-Id: I4a818b1b31ad59ee3de22105b969aec4c7f4d529
2024-12-19 04:57:19 -08:00
Daniel Norman
5e390e57b5 Merge "Strings updates for the new version of High contrast text." into main 2024-12-18 20:24:22 -08:00
Treehugger Robot
352a867aec Merge "[Catalyst] Include read/write permissions in get preference API" into main 2024-12-18 20:11:28 -08:00
Daniel Norman
d6e53163fd Strings updates for the new version of High contrast text.
These strings may be replaced again after our UX Writing team provides
new strings for the final public release.

Bug: 384791485
Test: observe new strings; see http://b/384791485#comment2
Flag: EXEMPT strings changes
Change-Id: I5359bc3d6faca84238fe00801a5d68e5ef8ffc2f
2024-12-18 18:35:45 -08:00
Jacky Wang
a8dad23365 [Catalyst] Include read/write permissions in get preference API
Bug: 374115149
Flag: com.android.settingslib.flags.settings_catalyst
Test: unit
Change-Id: I69a92a8029b94ca03d6232164edddf1a987201be
2024-12-19 10:13:19 +08:00
Angela Wang
7dfbf6c92e Merge "[Ambient Volume] Migrate to use AmbientVolumeUiController in SettingsLib" into main 2024-12-18 17:52:47 -08:00
Riley Jones
821bbb415d Merge "Cleanup of AccessibilityUtil#hasValueInSettings" into main 2024-12-18 12:04:56 -08:00
Graciela Putri
554684444a Merge "Clean up app default flag" into main 2024-12-18 05:38:14 -08:00
Roy Chou
b694a0afc9 Merge "feat(brightness suw): hide brightness preferences if restricted" into main 2024-12-18 00:21:45 -08:00
Roy Chou
79632a9fc5 feat(brightness suw): hide brightness preferences if restricted
By default if a RestrictedPreference is restricted then the preference
becomes disabled but still visible. But for brightness preferences in
A11y SUW we'd like to hide them if they're restricted and disabled,
since it's meaningless to show disabled items in SUW.

To achieve this, in PreferenceController#displayPreference we check the
whether the preference is RestrictedPreference and restricted, so we can
decide whether to hide it. Besides, if the preference is restricted and
we hide it, in PreferenceController#getAvailableStatis we also return
CONDITIONALLY_UNAVAILABLE to make consistency.

Bug: 384620216
Flag: com.android.settings.accessibility.add_brightness_settings_in_suw
Test: manually
      atest AutoBrightnessPreferenceControllerForSetupWizardTest
      atest BrightnessLevelPreferenceControllerForSetupWizardTest
Change-Id: Ifb68b4d64fc111d91a23457882a006002173d232
2024-12-18 07:05:45 +00:00
Treehugger Robot
c3fecca761 Merge "Remove old PK settings pages that are unused" into main 2024-12-17 19:50:54 -08:00
Riley Jones
178bdd4c60 Cleanup of AccessibilityUtil#hasValueInSettings
Settings should now be able to directly use the equivalent ShortcutUtils functions,
so the unnecessary code is being removed from AccessibilityUtil.
This does cause much behavior to depend on A11yManager instead of Settings.Secure,
so several tests need their conditions updated.

Test: atest com.android.settings.accessibility
Flag: EXEMPT internal refactoring
Bug: 367414968

Change-Id: I95f81f7d78b074def0fe2d1e01f60ceb7e142dac
2024-12-17 20:03:16 +00:00
Jacky Wang
23e5072732 Merge "Fix potential OOM caused by DataProcessManager" into main 2024-12-17 03:20:12 -08:00
Angela Wang
fb1efa69ac Merge changes from topics "ha-aics", "ha-aics-mute", "ha-local-data" into main
* changes:
  [Ambient Volume] Ambient volume icon
  [Ambient Volume] Show value with remote data
  [Ambient Volume] Show value with local data
  [Ambient Volume] UI of volume sliders in Settings
2024-12-17 01:17:38 -08:00
Jacky Wang
356fe97185 Fix potential OOM caused by DataProcessManager
The AsyncTasks started in DataProcessManager are not cancelled when
fragment is closed. Introduce helper class LifecycleAwareAsyncTask to
cancel AsyncTask automatically when lifecycle is stopped.

Bug: 384473507
Flag: EXEMPT bug fix
Test: Unit test & open/close battery usage screen 1000 times
Change-Id: I060f559fa85cc5feb9a42cb8dcc0581782a91d09
2024-12-17 17:17:15 +08:00
Yuchen Sun
d49cf23cf9 Merge changes from topic "AppDataUsage" into main
* changes:
  [Expressive design] Update AppDataUsage.
  [Expressive design] Rename ComposeMainSwitchPreference to ComposeGroupSectionPreference.
2024-12-17 00:05:34 -08:00
Angela Wang
fc79e74955 [Ambient Volume] Migrate to use AmbientVolumeUiController in SettingsLib
Moove the common ui logic code into settingslib for using in both
settings and systemui.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest AmbientVolumePreferenceTest
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I97d5ac2d1862fed7249af8b35f04fa36fc47d16d
2024-12-17 06:47:01 +00:00
Angela Wang
0724f2a811 [Ambient Volume] Ambient volume icon
1. Click on the icon on the header will mute/unmute the remote devices in the same set if the remote devices are both mutable.
2. Show different icon when the value of the volume slide bars changed.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest AmbientVolumePreferenceTest
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I829c5e08f1456c8ef9936d0314045dc8da37cd95
2024-12-17 06:46:59 +00:00
Daniel Huang
7b0e140dc5 Merge "Create language and region settings page" into main 2024-12-16 18:17:07 -08:00
Menghan Li
fe13deda24 Merge "fix(ReduceBrightColorsPreferenceController) Different feature configs" into main 2024-12-16 18:06:20 -08:00
Edgar Wang
a3677c7f6a Merge "Clean-up after com.android.settings.flags.revamp_toggles rollout" into main 2024-12-16 17:12:28 -08:00
Matthew DeVore
7b7f72d902 Merge "Show display topology in the pane" into main 2024-12-16 16:24:18 -08:00
Riley Jones
66dde6fea1 Merge "Cleaning up deprecated QS tooltip code" into main 2024-12-16 15:51:52 -08:00
Matthew DeVore
807cf78a51 Show display topology in the pane
Populate the topology pane with the topology as returned from
DisplayManager.

This adds padding but not the proper rounded corners or highlighting for
the blocks. That will come later, probably after feature complete while
still in dogfood.

Test: add and remove overlays while external display fragment is shown - verify pane is refreshed
Test: add two overlay displays, verify two blocks appear in pane with system wallpaper
Test: with no freeform window displays, verify a "not enabled" message appears in pane with no display blocks
Test: DisplayTopologyPreferenceTest
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Change-Id: Ibb35af53c24d6feb1d763e4b2bf2ec9fee2ae24d
2024-12-16 19:04:58 +00:00
Angela Wang
46537a6576 [Ambient Volume] Show value with remote data
Sync local data with remote data when UI need to refresh and set the
corresponding local value to remote when the control expanded/collapsed.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: If748e696eb62b199d4fd9abafa2300d301a8079c
2024-12-16 15:26:26 +00:00
Angela Wang
c2ca7dadd9 [Ambient Volume] Show value with local data
Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I3dad0f5424b44fee6d049fd778c4f8f71db0b58e
2024-12-16 15:24:20 +00:00