Commit Graph

144161 Commits

Author SHA1 Message Date
Aleksandr Lukin
cb7b10156b Merge "Remove Android %s from search results" into main 2024-10-09 08:45:10 +00:00
Yiyi Shen
c349422e55 Merge "[Audiosharing] Update audio sharing section title in call" into main 2024-10-09 07:38:45 +00:00
chenjean
0ac1ba5920 Makes Use Color correction and Color correction shortcut searchable.
Fix: 354079305
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: atest ToggleDaltonizerPreferenceFragmentTest
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for 'use color correction' & 'color correction shortcut', observe 'use color correction' & 'color correction shortcut' present;
Change-Id: I0fd1885c1e82ac14290dfe40636e652a624e003a
2024-10-09 14:17:06 +08:00
Evan Chen
10175bf1ce Merge "Update AssociationInfo with deviceIcon field" into main 2024-10-09 05:42:30 +00:00
mxyyiyi
c3b20d3a31 Also clear the foreground service usage time for BatteryDiffEntry should hide background usage time.
- Usage time in background is the sum{bg + fgs} usage time

Bug: 371919020
Fix: 371919020
Test: atest DataProcessorTest
Flag: EXEMPT for simple fix
Change-Id: I058d8511eac7510e2df6d9ac1713824cd8dbf3ba
2024-10-09 13:31:18 +08:00
Jean Chen
685f66695f Merge changes Iad13fbe1,I6eed7598 into main
* changes:
  Makes Use Color inversion searchable.
  Create a method to allow child classes to define it's main switch toggle's pref key
2024-10-09 03:25:55 +00:00
Treehugger Robot
f4a3bd1487 Merge "Don't show default payment component in search if Wallet role is enabled" into main 2024-10-09 02:18:37 +00:00
Treehugger Robot
35b675f882 Merge "Makes Settings > Accessibility > Magnification prefs searchable." into main 2024-10-09 00:53:39 +00:00
yomna
f309500281 Handle IllegalStateExceptions in CellularSecurityPreferenceController
Bug: b/354833801, b/369941495, b/371447524, b/371689932
Flag: EXEMPT bug fix
Test: m
Change-Id: Ic21021016dcfe7fcc9cf2314117ab0e3cc84757e
2024-10-09 00:22:49 +00:00
Edgar Wang
b246d2e815 [Homepage Revamp] hide the scroll bar of homepage
Bug: 364612225
Test: visual
Flag: EXEMPT bugfix
Change-Id: I0d4c48ef6debfa82597db48a4320b0500f330b1b
2024-10-08 23:55:10 +00:00
chenjean
806b91414d Makes Use Color inversion searchable.
Fix: 354773587
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: atest ToggleColorInversionPreferenceFragmentTest
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for 'use color inversion', observe 'use color inversion' present;
Change-Id: Iad13fbe163002af6e84a79fdeafb8517d53e2b09
2024-10-09 07:45:11 +08:00
Daniel Norman
3079b2d108 Makes Settings > Accessibility > Magnification prefs searchable.
All preferences are searchable except for "Keep on while switching apps"
which is only searchable if the user already has a magnification
shortcut enabled, to minimize user confusion from that generically-named
preference.

NO_IFTTT=adding IFTTT

Fix: 353772926
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for the items in the bug
Change-Id: I01c7e5586ec0ea432cb2df80f156141683b97522
2024-10-08 23:42:18 +00:00
James Willcox
1133353e5d Don't show default payment component in search if Wallet role is enabled
Bug: 372254720
Test: atest PaymentSettingsTest
Flag: android.permission.flags.wallet_role_enabled
Change-Id: I4044d8fcd95db215d4a06b335b3cb96f8a5e3697
2024-10-08 23:29:06 +00:00
Alina Zaidi
1cc49800be Merge "[dev_option] Move DestopModeFlags out of android.windows.flags" into main 2024-10-08 20:24:09 +00:00
Treehugger Robot
f9d76f5cc4 Merge "Remove "Add supervised user" from search result if such user type is not allowed on the device" into main 2024-10-08 17:54:53 +00:00
Yuri Lin
c8fcd603eb Merge "Fix title on specific app's channel settings page" into main 2024-10-08 17:11:43 +00:00
Yuri Lin
bdf3f6471a Fix title on specific app's channel settings page
Fixes: 371518043
Test: manual
Flag: android.app.modes_ui
Change-Id: Ic4091ea54e1c3fd4aeaffa7ea50f2cfcc65f0ee1
2024-10-08 15:04:20 +00:00
alukin
9b62541d80 Remove Android %s from search results
Currently when "Android" is entered in Settings search,
"Android %s" appears in search results.

Removing it from the search results to fix the
issue.

Bug: 356111486
Bug: 359689134
Bug: 365040064
Test: manually verified
Test: atest StorageItemPreferenceControllerTest
Change-Id: I4f8c1fb9d94fb585ed4e84654d8a9b335cd5f748
2024-10-08 14:49:41 +00:00
Yiyi Shen
6261de509c Merge "[Audiosharing] Fix call audio device in call" into main 2024-10-08 12:51:08 +00:00
chenjean
012ba80c50 Create a method to allow child classes to define it's main switch toggle's pref key
We'd like to make the main switch toggle's preference searchable. Since we construct the preference programmatically, this would allow the preference to be automatically scrolled to when the user is brought to this page from a search result.

Bug: 372171003
Flag: EXEMPT refactor
Test: manual
Test: atest ToggleColorInversionPreferenceFragmentTest
      atest ToggleDaltonizerPreferenceFragmentTest
      atest ToggleFeaturePreferenceFragmentTest
Change-Id: I6eed7598ad296a758573318cf4bde5de30c7005c
2024-10-08 18:08:17 +08:00
shaoweishen
31d82a0288 [Physical Keyboard][A11y Page] Add custom slider
add slider for setting custom value under bounce key dialog.

demo video: b/346949547#comment26

Bug: 346949547
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I3b7f08ebe5ebc287e61713749c193c8b1cf71b99
2024-10-08 09:54:13 +00:00
hoffc
2545f06558 Fix force close for updating UI after activity destroyed.
If activity is finishing or destroyed, getting activity context will return null results in settings app force close.

Directly return if network select activity is finishing or destroyed when handling network scan callback.

Bug: 372123288
Change-Id: Ia8c89569761b66da58cafd0140ceda29ac7d678c
2024-10-08 17:29:45 +08:00
Paul Duffin
899a6d8f75 Merge "Fully qualify @attr reference to android.R field" into main am: e61c03648d am: aea2622b91
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3296753

Change-Id: I1ce024dc4ecf70f6aedff0811abe38718140dd20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-08 09:14:17 +00:00
Paul Duffin
aea2622b91 Merge "Fully qualify @attr reference to android.R field" into main am: e61c03648d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3296753

Change-Id: Ic25c2d5d5e0c2ba9a9da492f2bb5be1f1b2bb458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-08 09:00:55 +00:00
Paul Duffin
e61c03648d Merge "Fully qualify @attr reference to android.R field" into main 2024-10-08 08:31:47 +00:00
Haijie Hong
4f3d7c0056 Merge "make device setting be able to use both Intent and PendingIntent" into main 2024-10-08 07:48:54 +00:00
Yiyi Shen
ea5832e174 [Audiosharing] Update audio sharing section title in call
In call mode, change title "Active media devices" to "Call devices",
also allow device click to switch active.

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I8195934f19de534d07f5a655aac17d6966ae6f32
2024-10-08 15:44:10 +08:00
Shaowei Shen
f81d492243 Merge "[Physical Keyboard][A11y Page] Add Bounce keys dialog" into main 2024-10-08 07:14:03 +00:00
Shaowei Shen
4e1d24c5eb Merge "[Language Setting] Cleanup Language and Input Setting" into main 2024-10-08 06:33:28 +00:00
Yiyi Shen
b77c619ebe [Audiosharing] Fix call audio device in call
During call, BT stack will keep the broadcast in a hysteresis mode,
however BT stack will remove the fallback group id, which leads the Call
audio summary empty. Here we check if there is active device on LE_AUDIO
profile when the fallback group id is removed. The active device on
LE_AUDIO profile should be the call audio device.

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I906f30631027439ed4060af758ef63eda1a0b12d
2024-10-08 14:20:28 +08:00
Treehugger Robot
7da4079a91 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-10-08 05:01:59 +00:00
Treehugger Robot
addac242db Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-10-08 05:01:59 +00:00
Treehugger Robot
a7204d7c08 Merge "Migrate DisplayScreen" into main 2024-10-08 04:27:22 +00:00
shaoweishen
f0a01c51dd [Physical Keyboard][A11y Page] Add Bounce keys dialog
1.Add dialog for adjust bounce key to different values.
demo video: b/346949547#comment24.
2.Update summary text.
3.When receive update from content uri, update toggle state directly.
4.Rename Controller to more suitable name.

Bug: 346949547
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I94d8d1a77528b13f59b2d67dfa30e17dd177e385
2024-10-08 03:13:40 +00:00
Sunny Shao
b31c54b6f4 Migrate DisplayScreen
Add the skeleton of the DisplayScreen

Test: atest DisplayScreenTest
Bug: 368359268
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: I806504ae839ba0a53320fd94fb4fe21a52dc249b
2024-10-08 11:12:41 +08:00
Dongzhuo Zhang
dfd901d2a4 Merge "Add Contacts Stroage fragment class for Contacts Storage settings page." into main 2024-10-08 01:33:10 +00:00
Bill Yi
2a47174e4a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I75cbfc5fb76ebd2a8d037a61ec74fcfe88e7948d
2024-10-07 17:51:38 -07:00
Bill Yi
cb6b37e922 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I436ebc70a9cddecb5698ef3002d3b41a2bf0c5b6
2024-10-07 17:50:04 -07:00
YK Hung
291e92d649 Fix the NPE in the tryToFetchUsageData() method
Test: atest
Bug: 371490669
Fix: 371490669
Flag: EXEMPT for simple fix
Change-Id: I4167becf373a6279135261bbaff44ef0888728fa
2024-10-07 23:46:43 +00:00
Dongzhuo Zhang
fa433271a8 Add Contacts Stroage fragment class for Contacts Storage settings page.
Test: atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStorageSettingsTest

Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I6ece3eeea64d07d4a97574f67549a72267371df8
2024-10-07 22:02:13 +00:00
Treehugger Robot
efd16c7df9 Merge "Fixes for errorprone update" into main am: 28f83ffab0 am: 3c2d44c3ff
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3297590

Change-Id: I7811516823e50a4422932a491ee3229b094bc160
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-07 20:51:46 +00:00
Treehugger Robot
3c2d44c3ff Merge "Fixes for errorprone update" into main am: 28f83ffab0
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3297590

Change-Id: If54aa111229245173d625b445cf9e1f10182196d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-07 20:40:21 +00:00
Treehugger Robot
28f83ffab0 Merge "Fixes for errorprone update" into main 2024-10-07 20:25:20 +00:00
Treehugger Robot
c7be2f126e Merge "Better Support for profiles in "People that can interrupt"" into main 2024-10-07 20:11:09 +00:00
Cole Faust
b237fe7e6a Fixes for errorprone update
When updating errorprone from 2.23.0 -> 2.32.0, more issues are found.

Bug: 253827323
Flag: EXEMPT refactor
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Iebb442f5e616861d1f2a2e2dc56a8ac72b18cb95
2024-10-07 11:27:07 -07:00
Treehugger Robot
7aabe039f4 Merge "Don't disable "Done" button when it cannot be pressed" into main 2024-10-07 17:27:33 +00:00
Matías Hernández
25d75c0df7 Merge "Don't crash when recreating ZenModeTimePickerFragment" into main 2024-10-07 16:49:20 +00:00
Paul Duffin
ad48f03f53 Fully qualify @attr reference to android.R field
Currently, Metalava has some special handling of '@attr ref R.<field>`
references to make sure that they are fully qualified, i.e.
`@attr ref android.R.<field>`. That special handling complicates
Metalava and is blocking some flagged API work so will be removed.
Before that can be done, the existing incorrect documentation needs to
be cleaned up.

This change cleans up those cases in this repo.

Bug: 371997321
Test: Run `m offline-sdk-docs` before and after to make sure that
      there are no differences.
Flag: DOCS_ONLY
Change-Id: Ic97f01b90193d058d65e6d3c6d0a04ce5e55d7c7
2024-10-07 17:10:02 +01:00
Matías Hernández
73c7ee115b Don't disable "Done" button when it cannot be pressed
Show an error on tap instead. According to a11y guidelines this is preferrable.

Fixes: 369942776
Test: atest ZenModeEditDonePreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Ib5e47a4151c1515e5085a776d538a27c2ef41574
2024-10-07 15:56:21 +00:00
Matías Hernández
504e927168 Better Support for profiles in "People that can interrupt"
* Show contacts from personal and work profile.
* Open personal or work profile Contacts app when choosing settings.
* Skip conversations with no ShortcutInfo (they are returned for a disabled work profile but we cannot show an icon for them).

Fixes: 371513451
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: Id8653a85ee4fd15dfccbecb3ea2d31e615d29f8c
2024-10-07 17:37:37 +02:00