Commit Graph

145261 Commits

Author SHA1 Message Date
YK Hung
702da9b565 Merge "[Expressive Battery] Tweak the animation of Battery Usage screen." into main 2024-12-18 19:04:30 -08:00
Angela Wang
7dfbf6c92e Merge "[Ambient Volume] Migrate to use AmbientVolumeUiController in SettingsLib" into main 2024-12-18 17:52:47 -08:00
Treehugger Robot
0abc339959 Merge "[Catalyst] Update brightness preference to FloatPersistentPreference" into main 2024-12-18 17:05:42 -08:00
Treehugger Robot
4436870086 [automerger skipped] Merge "Fix the NPE in the tryToFetchUsageData() method" into main am: 250101cd8f am: 3464d757ff -s ours
am skip reason: Merged-In I4167becf373a6279135261bbaff44ef0888728fa with SHA-1 291e92d649 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3424441

Change-Id: I18325002f4036652b8b471e0cb86d7d090c5309a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-18 15:15:13 -08:00
Treehugger Robot
3464d757ff Merge "Fix the NPE in the tryToFetchUsageData() method" into main am: 250101cd8f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3424441

Change-Id: I7376d3e498ebca9eeaa90244d8b2da6b6ad7d658
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-18 14:50:31 -08:00
Treehugger Robot
250101cd8f Merge "Fix the NPE in the tryToFetchUsageData() method" into main 2024-12-18 14:30:37 -08:00
Pat Manning
18ca825d21 Merge "Update pointer fill option backgrounds for color contrast and touch target size." into main 2024-12-18 14:22:07 -08:00
YK Hung
7ea9d15853 Fix the NPE in the tryToFetchUsageData() method
Test: atest
Bug: 371490669
Fix: 371490669
Flag: EXEMPT for simple fix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:291e92d6493b9640bc87bc787b58daa0936bae8e)
Merged-In: I4167becf373a6279135261bbaff44ef0888728fa
Change-Id: I4167becf373a6279135261bbaff44ef0888728fa
2024-12-18 13:35:29 -08:00
Riley Jones
821bbb415d Merge "Cleanup of AccessibilityUtil#hasValueInSettings" into main 2024-12-18 12:04:56 -08:00
Henri Chataing
4918001a03 Merge "Update the cache of a2dp config before writing config." into main am: 18eac4ef27 am: bde00faa0c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350514

Change-Id: Id958e2cfc3802dda11c26b9b21a8509a8bbd0473
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-18 09:13:15 -08:00
Henri Chataing
bde00faa0c Merge "Update the cache of a2dp config before writing config." into main am: 18eac4ef27
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350514

Change-Id: I56c1fe945677d5eac84756cf87aab233724ef01d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-18 08:50:14 -08:00
Treehugger Robot
881a8248ac Merge "Replaced exception with more elegant option in Time Settings" into main 2024-12-18 08:30:10 -08:00
Geoffrey Boullanger
b20399d91f Replaced exception with more elegant option in Time Settings
Currently, some controllers in the Date and Time settings page throw exceptions if a capability is not known. This would cause the Settings app to crash, so we are moving away from exception and replacing it with the deactivation of the controller.

Test: manual
Flag: EXEMPT refactor
Bug: 296835792
Change-Id: I56b01ec6d9eebf721deeb4f67aa177742482dd53
2024-12-18 16:28:41 +00:00
Henri Chataing
18eac4ef27 Merge "Update the cache of a2dp config before writing config." into main 2024-12-18 08:17:34 -08:00
Pat Manning
b50acbfeea Update pointer fill option backgrounds for color contrast and touch
target size.

Fix: 374885995
Fix: 374886964
Test: Manual.
Flag: EXEMPT Bugfix.
Change-Id: Ibf09bfae4a93868ac3605748854ccaaa10847eb6
2024-12-18 14:56:45 +00:00
mxyyiyi
c369a8df5a [Expressive Battery] Tweak the animation of Battery Usage screen.
Fix the blinking while tapping chart to select time intervals.
- setHasStableIds(true) to avoid BatteryChartView create viewHolder again when SettingsPreferenceGroupAdapter invoke notifyDataSetChanged()

Recover the fade-in animation when display the hourly chart for the first time.
- set the default alpha of hourly chart in xml to 0.

Bug: 378997970
Bug: 349652542
Flag: EXEMPT bug fix
Test: visual
Change-Id: Ia6c131452fca65db7149664c7e18ca68e9703def
2024-12-18 21:38:27 +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
Jacky Wang
45b0bfe612 [Catalyst] Update brightness preference to FloatPersistentPreference
NO_IFTTT=Catalyst only

Bug: 375895862
Flag: com.android.settings.flags.catalyst_display_settings_screen
Test: N/A
Change-Id: I230d30add8f6524db8548de14d9d227c167e0ef4
2024-12-18 15:47:07 +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
Yuchen Sun
9660169518 Merge "[Expressive design] Update MainSwitch in SettingsActivity." into main 2024-12-17 17:29:06 -08:00
Yining Liu
b7ecb25410 Merge "Expose Lock screen notifications settings page." into main 2024-12-17 16:21:30 -08:00
Treehugger Robot
297c39c5f3 Merge "Update write sensitivity field name" into main 2024-12-17 15:42:34 -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
Treehugger Robot
74b1086f23 Merge "[Settings] Update PIP with new Settings integration" into main 2024-12-17 09:50:29 -08:00
Perry Wu
046ad86d79 [Settings] Update PIP with new Settings integration
Updates PIP settings to be compatible with new Settings guidelines.

For context we have 2 settings pages PictureInPictureSettings.java
and PictureInPictureDetails.java, both of which inherit from standard
androidx components, so there should not be any other required
changes.

Bug: b/349659719
Flag: EXEMPT refactor
Test: manually enable update and check settings pages
Change-Id: Iafc3cda8cdb2fcdba466755bf537188ee2005dc2
2024-12-17 08:36:48 -08:00
Jacky Wang
23e5072732 Merge "Fix potential OOM caused by DataProcessManager" into main 2024-12-17 03:20:12 -08:00
Treehugger Robot
9156122b1d Merge "[Catalyst] Add the store and get API into BrightnessLevelPreference" into main 2024-12-17 02:18:43 -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
Sunny Shao
9648e58eaa [Catalyst] Add the store and get API into BrightnessLevelPreference
NO_IFTTT=Catalyst migration

Test: atest DisplayScreenTest
Bug: 375895862
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: Ifb4fcf6553b070959ae233ed32e806c4c13d7136
2024-12-17 16:46:02 +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
Haijie Hong
8cf4af9c90 Merge "Fix lcr icon direction in RTL layout" into main 2024-12-16 23:50:14 -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
Haijie Hong
5790356990 Fix lcr icon direction in RTL layout
BUG: 382407010
Test: local tested
Flag: EXEMPT minor fix
Change-Id: I62afca941d428e9b5510d54d1b3ed60d6f09a99c
2024-12-17 14:27:36 +08:00
Yuchen Sun
a4ed8acd25 Merge "[Expressive design] Update ApnPreference." into main 2024-12-16 22:16:32 -08:00
Yuchen
b7e0923414 [Expressive design] Update MainSwitch in SettingsActivity.
Bug: 349681531
Flag: EXEMPT migration
Test: visual
Change-Id: I0dc55e2ced5ba4ce808e0b29a9b3b60549972637
2024-12-17 03:17:38 +00:00
Wei-Hong Hsu
d7a54332f0 Merge "nfc: allow the nfc quick toggle title to be searchable" into main am: 5565b51402 am: c02f0aa033
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3414601

Change-Id: I76168ee64e771da57c7541c1ffdbe484c607b7cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-16 19:13:12 -08:00
Wei-Hong Hsu
c02f0aa033 Merge "nfc: allow the nfc quick toggle title to be searchable" into main am: 5565b51402
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3414601

Change-Id: I7bf83da36439231e011e5462161867d78c278043
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-16 18:50:24 -08:00
Wei-Hong Hsu
5565b51402 Merge "nfc: allow the nfc quick toggle title to be searchable" into main 2024-12-16 18:24:24 -08: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
Yining Liu
2ad1f26902 Expose Lock screen notifications settings page.
Expose the Lock screen notifications settings page for intents.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: atest
Change-Id: I439e214f5a9bfda40777ffb60ca0bbf2a15e196d
2024-12-16 23:27:36 +00:00
Treehugger Robot
87ce9dbbcf Merge "[Catalyst] Fix calling pid/uid in PreferenceService" into main 2024-12-16 11:55:38 -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