Commit Graph

55815 Commits

Author SHA1 Message Date
Yiyi Shen
17018dd7e1 Avoid AudioManager#getMode in isFilterMatched
AudioManager#getMode is a slow binder call which should not be called on
UI thread. isFilterMatched will be frequently triggered on UI thread when updating the
Connected devices page.

Cache and update the audio mode when receive onModeChanged callback in
this change. For long term, we should better separate the UI/background
thread tasks in those classes. Also send request to Audio team to
improve the API latency.

Flag: EXEMPT small fix
Bug: 380993178
Test: atest
Change-Id: I054f3fa62f0fdf03b9a436a532ac1fb4738aaf58
2024-12-12 15:25:34 +08:00
David Liu
aad7bf5ea8 Fixed battery chart flickering
- Hide the hourly chart view by default to avoid the calculate the
  space.
- Remove the alpha animation in chart group which causes the flickering
  when open the battery page.

Bug: 378997970
Flag: EXEMPT bugfix
Test: atest BatteryChartPreferenceControllerTest
Change-Id: I1b7e5f74fe63ebcae9f9737b0797d870fd56b134
2024-12-12 14:39:50 +08:00
Daniel Huang
626017d196 Merge "Add measurement system" into main 2024-12-11 22:23:42 -08:00
danielwbhuang
fffe05404f Add measurement system
1. add UX
2. add main functionality

Bug: 375979373
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: manual, atest
Change-Id: Ie0c82551ff4e9ab0c70fa5d3c32c62d1d7e26b87
2024-12-12 12:31:57 +08:00
chelseahao
18444f826f Use BluetoothLeBroadcastAssistant#getSourceMetadata to retrieve broadcast name.
Test: atest
Bug: 381944659
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I6e4c83a0858717727066de708fbde88e4b03ed8e
2024-12-12 11:31:33 +08:00
Jason Chang
7bd52367bb Merge "Change resource id to the correct package name" into main 2024-12-11 09:16:37 -08:00
Hani Kazmi
2ccbf1dbe9 Merge "[AAPM] UX for disabling WEP" into main 2024-12-11 09:05:58 -08:00
Joshua Mccloskey
15ca2dddf7 Merge "Updated initial value for accessibility interactor" into main 2024-12-11 08:49:55 -08:00
Jacky Wang
dc80bddc1e [Catalyst] Partially revert ag/30664694
The preference is not yet migrated, we should not update fragment based
on current flag rollout plan.

Bug: 368355361
Bug: 368359963
Flag: com.android.settings.flags.catalyst_tether_settings
Test: manual
Change-Id: I89a5d2ee29e1c3428d40428b3d3d4ba3afcd4ece
2024-12-11 18:18:09 +08:00
Jason Chang
a55788d3b9 Change resource id to the correct package name
Change resource id to the correct SUW package name.

Flag: EXEMPT bug-fixing

Bug: 383030121

Test: Build and manually then check the UI
Change-Id: I31c8c7e79a65edd7953080a9bd16b638a901d607
2024-12-11 08:10:17 +00:00
Yiyi Shen
810309413a Merge "[Audiosharing] Check profile readiness before adding source" into main 2024-12-11 08:04:04 +00:00
Qiang Chen
f00508c4b5 Add nonNull check for SubscriptionInfoEntity to avoid Settings NPE
This NPE can be found in MTBF stress testing

Bug: 290855314
Test: Manaul

Change-Id: I03aaa6618255638a485f32e1bab34c6fa71945e4
2024-12-11 13:24:33 +05:30
Treehugger Robot
5b6d4b0821 Merge "Settings: Fix face enroll stack overflow" into main am: e0e07dab27 am: 0b36bd05ec
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3389339

Change-Id: I95f203f635d00b619d0739cf344caf509958edc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-11 04:13:44 +00:00
Treehugger Robot
0b36bd05ec Merge "Settings: Fix face enroll stack overflow" into main am: e0e07dab27
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3389339

Change-Id: I83098683c5e25576db53963e032253cc5eb5780b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-11 03:48:37 +00:00
Treehugger Robot
e4b0181232 Merge "[Catalyst] Remove UserManager.addUserRestrictionsListener usage" into main 2024-12-11 03:45:26 +00:00
Treehugger Robot
e0e07dab27 Merge "Settings: Fix face enroll stack overflow" into main 2024-12-11 03:22:16 +00:00
Jason Chang
42e47f1a6e Merge "Change resource id to the correct package name" into main 2024-12-11 02:41:39 +00:00
Jacky Wang
2043c1e7d8 [Catalyst] Remove UserManager.addUserRestrictionsListener usage
Bug: 377600992
Bug: 379130874
Flag: com.android.settings.flags.catalyst
Test: testdpc
Change-Id: If0111a19af7a077a0a06c4a4fa7f1e555fbed3b9
2024-12-11 10:09:54 +08:00
Chris Antol
5d10090d77 Update write sensitivity field name
Bug: 383388493
Flag: com.android.settingslib.flags.settings_catalyst
Test: unit tests
Change-Id: I657451d208e1d8663902a3499510368eec44b159
2024-12-11 00:42:00 +00:00
Matthew DeVore
913b836bd8 Allow tweaking minimum block size and max block ratio
The original settings of 48 and 0.05 resulted in very small results in
real-world use. The min edge length of 48 does not account for possible
padding and is unnecessarily small. The block ratio of 0.05 is probably
OK to exceed, and is unnecessarily limiting. It is worth noting that the
previous defaults usually caused a conflict between the min length and
max ratio.

Keep the parameters in case we change our mind later.

Test: TopologyScaleTest
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Change-Id: If8f72dd2e0652ffb33f3d61b137ac7d64a4477f5
2024-12-10 15:37:36 -06:00
Riley Jones
f337bf1fad Cleaning up deprecated QS tooltip code
Flag is rolled out, so tooltips other than font size shouldn't show anymore.
Much code can be removed.

Flag: EXEMPT code cleanup
Test: atest com.android.settings.accessibility
Bug: 367414968
Change-Id: I55084982fee0d0537aade49d36f52e121e24574b
2024-12-10 21:20:15 +00:00
Vaibhav Devmurari
58c4286ec9 Remove old PK settings pages that are unused
Test: manual
Bug: 330517633
Flag: EXEMPT cleanup
Change-Id: I2e0e21cf13ae39a09cd8c7b3697bbf18188e1fa8
2024-12-10 18:49:26 +00:00
Yining Liu
b4cbd1913b Merge "Use the new logging event for "Notifications on lock screen" in Settings" into main 2024-12-10 17:52:21 +00:00
Matías Hernández
5cf2306221 Merge "Use different "None" strings for Messages and Calls in Modes breakthrough" into main 2024-12-10 15:58:06 +00:00
Matías Hernández
6ba4109c2b Use different "None" strings for Messages and Calls in Modes breakthrough
Bug: 330870672
Test: manual
Flag: android.app.modes_ui
Change-Id: I33c6ebce9281313d5d1cb483b82dfd90d1ff48a1
2024-12-10 12:47:31 +01:00
Treehugger Robot
f9fcfaff15 Merge "[Catalyst] Fix enable state for Wi-Fi hotspot" into main 2024-12-10 10:43:31 +00:00
Jacky Wang
3d595b169d [Catalyst] Fix enable state for Wi-Fi hotspot
NO_IFTTT=Catalyst only

Bug: 383232049
Flag: com.android.settings.flags.catalyst_tether_settings
Test: manual
Change-Id: I067e97820a19822eaad2e93e30d42f7f767bf855
2024-12-10 17:29:49 +08:00
Yiyi Shen
c9c088ae34 [Audiosharing] Check profile readiness before adding source
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858921
Change-Id: I9ee6226d1bd16225adf1756678ef7565941d7c60
2024-12-10 17:01:09 +08:00
Jason Chang
bc26a1decc Change resource id to the correct package name
Change resource id to the correct SUW package name.

Flag: EXEMPT bug-fixing

Bug: 383030121

Test: Build ABTD manually then check the UI
Change-Id: Ic7dce3c0f61abf56e49163240d12ac5da8b627c6
2024-12-10 07:58:16 +00:00
Jacky Wang
249e381a63 [Catalyst] Fix MainSwitchBarPreference NPE when configuration changed
When activity is recreated (due to configuration is changed),
preference screen is created before SettingsActivity sets view layout
and results in NPE. As a workaround, save the states inside
MainSwitchBarPreference to fix the problem.

Bug: 332201912
Flag: EXEMPT library
Test: manual
Change-Id: I052cd0a521dac203a5f58963c550911e7a741e6f
2024-12-10 15:25:39 +08:00
Jacky Wang
fdbfa69183 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Migrate bluetooth screen to catalyst
  [Catalyst] Migrate BluetoothFooterPreference
  [Catalyst] Fully migrate BluetoothMainSwitchPreference
  [Catalyst] Add SatelliteRepository.isSatelliteOn helper method
  [Catalyst] Support callChangeListener for MainSwitchBarPreference
2024-12-10 07:11:09 +00:00
Angela Wang
05783a589d Merge "Show battery info for mono audio location device" into main 2024-12-10 03:38:31 +00:00
chelseahao
e306ee4c6c Disable announcing "Enabled / disabled" when toggling BT in settings.
Test: atest
Bug: b/375545416
Flag: EXEMPT bugfix
Change-Id: I1992faaf813c147fa734a3522b070ccbf0531dab
2024-12-10 02:28:25 +00:00
Olivier Nshimiye
bda181160f Merge "Set Private Space usehandle to null if we receive ACTION_PROFILE_REMOVED for PS user" into main 2024-12-10 01:52:22 +00:00
Olivier Nshimiye
24b05b053d Set Private Space usehandle to null if we receive ACTION_PROFILE_REMOVED for PS user
Flag: EXEMPT bugfix

Bug: 376044598
Test: Manually verified on a test device

Change-Id: Id7e3caed8bbe3afe301a3c29a70ba5ec77c90116
2024-12-09 22:04:14 +00:00
Joshua McCloskey
e0f75b626b Updated initial value for accessibility interactor
Test: Verified the default value is correct
Bug: 383060578
Flag: EXEMPT bugfix
Change-Id: I205609165a746d9d155eb6a3b91c89d22a97ed9f
2024-12-09 19:21:59 +00:00
Jacky Wang
efd08c4bfb [Catalyst] Migrate bluetooth screen to catalyst
Bug: 372774767
Flag: com.android.settings.flags.catalyst_bluetooth_switchbar_screen
Test: devtool
Change-Id: I08730e63f17b5fe57268e57f796f88f52ef5caa0
2024-12-09 21:07:37 +08:00
Jacky Wang
1c63279c3d [Catalyst] Migrate BluetoothFooterPreference
Bug: 372774767
Flag: com.android.settings.flags.catalyst_bluetooth_switchbar_screen
Test: devtool
Change-Id: Ic1f5cc897bcbaf8775fb4b841625c9a40644adfc
2024-12-09 21:07:33 +08:00
Shawn Lin
97072e434d Merge "[Biometric Onboarding & Edu] Update Set up Fingerprint/Face Unlock page" into main 2024-12-09 10:37:03 +00:00
Jacky Wang
2b21d69c0c [Catalyst] Fully migrate BluetoothMainSwitchPreference
Bug: 372774767
Flag: com.android.settings.flags.catalyst_bluetooth_switchbar_screen
Test: atest
Change-Id: Ie7a78a0ef2a8739d30ece4c1c4fde5651876dc8a
2024-12-09 17:47:40 +08:00
Jacky Wang
95719f21b3 [Catalyst] Add SatelliteRepository.isSatelliteOn helper method
NO_IFTTT=Catalyst only

Bug: 335132588
Flag: EXEMPT refactor
Test: manual
Change-Id: Ib10f7f616a6deed438a129da4b2cb927915bfcda
2024-12-09 17:47:14 +08:00
Jacky Wang
f79173a664 [Catalyst] Support callChangeListener for MainSwitchBarPreference
Bug: 335132588
Flag: EXEMPT library
Test: manual
Change-Id: I6924ccfa0d66b9a643811f49a2ec3fcdc1d749ae
2024-12-09 16:59:16 +08:00
Marcelo Arteiro
bedda9d1f2 Merge "Migrate materialColor* attributes into colors" into main 2024-12-09 08:36:04 +00:00
Treehugger Robot
759c5644d1 Merge "[Expressive design] Migrate WifiPrivacyPage." into main 2024-12-09 07:55:43 +00:00
Shawn Lin
087ac777a8 [Biometric Onboarding & Edu] Update Set up Fingerprint/Face Unlock page
Update icons, strings and layouts for new UX design

Bug: 370940762
Test: manual:
      Pre condition - no fingerprint/face enrolled
      For FP: Go Settings>Security & privacy>Device unlock>Fingerprint unlock
      For Face: Go Settings>Security & privacy>Device unlock>Face unlock
Test: atest FaceEnrollIntroductionTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: Iaee6792d1a27be8fa4b443f783a47a3715b6d3a1
2024-12-09 07:52:08 +00:00
Treehugger Robot
6123cb9aeb Merge "[Catalyst] Refactor some Text Reading items" into main 2024-12-09 07:07:59 +00:00
Fan Wu
224988e2e8 Merge "Disable Reset app preference during the call. Similar with ag/27511802, this is for non-SPA environment" into main 2024-12-09 06:32:45 +00:00
Jacky Wang
2e3fc47765 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Refine WifiHotspotSwitchPreference
  [Catalyst] Refine DataSaverMainSwitchPreference
2024-12-09 06:26:53 +00:00
Fan Wu
c6544f991f Disable Reset app preference during the call. Similar with ag/27511802, this is for non-SPA environment
Bug: 342627537
Test: manual
Flag: EXEMPT Bug fix
Change-Id: If64b6c878b2f793c6852d000d9d90dda18ef2420
2024-12-09 06:18:23 +00:00
Treehugger Robot
6346a9538f Merge "[Expressive design] Remove extra background of MainSwitchPreference." into main 2024-12-09 05:16:57 +00:00