Commit Graph

54714 Commits

Author SHA1 Message Date
Edgar Wang
28d45b49e8 Refactor layout of ProcessStatsPreference
- only this preference use AppPreference.setProgress()
- create layout to handle progressbar in this class

Bug: 365506467
Test: atest
Flag: EXEMPT bugfix
Change-Id: Ie0daf4e4fc1736943afe243566392d57c63fe65a
2024-09-09 11:24:32 +00:00
Pechetty Sravani (xWF)
457ab0748e Merge "Revert "Customize Fingerprint enroll activities"" into main 2024-09-09 05:10:26 +00:00
Pechetty Sravani (xWF)
994bff0033 Revert "Customize Fingerprint enroll activities"
Revert submission 29139483-494-trampoline

Reason for revert: DroidMonitor created revert due to b/365453068.

Reverted changes: /q/submissionid:29139483-494-trampoline

Change-Id: Ie2ab22694e7128e10eb11bf29340023e2bfd1343
2024-09-09 04:06:57 +00:00
Treehugger Robot
6aee1bfe5c Merge "Customize Fingerprint enroll activities" into main 2024-09-09 01:55:52 +00:00
Treehugger Robot
c3cfb42524 Merge "Update main toggle state in User Settings onResume()" into main 2024-09-06 14:29:09 +00:00
MiltonWu
e401ce51ec Customize Fingerprint enroll activities
Provide an interface for ODM/OEM to override Fingerprint enrollment
activities.

Bug: 364794493
Flag: EXEMPT can't apply flag for manifest change
Test: atest SettingsRoboTests:FingerprintEnrollTest

Change-Id: I9e5d904fc9382a9b5eff84a7f462e1a9c16c4ba0
2024-09-06 09:40:58 +00:00
Haijie Hong
680df21339 Merge "Show a dialog if bluetooth key is missing when reconnecting" into main 2024-09-06 08:18:55 +00:00
Treehugger Robot
3ed2123b10 Merge "Fix no content change if activity start from onNewIntent" into main 2024-09-06 07:58:00 +00:00
SongFerng Wang
83a80dd7c1 Merge "Fix the DSDS dialog status" into main 2024-09-06 07:39:25 +00:00
Treehugger Robot
0f49457203 Merge "Launch Wi-Fi details for connected Wi-Fi network" into main 2024-09-06 07:38:02 +00:00
Weng Su
99cd495d5b Launch Wi-Fi details for connected Wi-Fi network
- Since the posspoint Wi-Fi entry can be connected even if the entry is not saved

- Allow to launch Wi-Fi details when the entry is connected but not saved

Bug: 363151879
Flag: EXEMPT bugfix
Test: Manual testing
atest -c NetworkProviderSettingsTest

Change-Id: I004b8a33bdd07cb92e167039949919f255c5303e
2024-09-06 07:42:15 +08:00
Treehugger Robot
dcc2530964 Merge "Populates collection info count for A11y toggle feature pages." into main 2024-09-05 21:27:35 +00:00
songferngwang
74a76a8067 Fix the DSDS dialog status
To avoid the dsds dialog status to reset.

Bug: 364668360
Test: verify enabling DSDS mode
Flag: EXEMPT bugfix
Change-Id: I80a8abd896856740fad1f98de50c79034a4cc602
2024-09-05 18:35:27 +00:00
tomhsu
74c7f9b65f Fix no content change if activity start from onNewIntent
- Mobile network page can not change content to another subscription
   if this is started from onNewIntent. This is because intent is not
   udpated so current fragment still get the information from old
   Intent.

Flag: EXEMPT bug fix
Bug: 270416514
Test: Manual test passed
 - adb shell am start -a android.settings.NETWORK_OPERATOR_SETTINGS --ei android.provider.extra.SUB_ID x
Change-Id: Ib6aa9d359232ff602551e121b52894a27a84e4e1
2024-09-05 14:13:43 +00:00
Treehugger Robot
25038de609 Merge "Fix: Show string "Layout" if only single valid IME exists" into main 2024-09-05 11:15:59 +00:00
Chaohui Wang
ecac69fdcf Merge "[Safer intents] App Time Spent Preference" into main 2024-09-05 08:02:36 +00:00
Zoey Chen
5f3872baad Merge "[Settings] Restore the position" into main 2024-09-05 06:13:19 +00:00
Treehugger Robot
d8b1e2944c Merge "Fix Wi-Fi details crash in secondary users" into main 2024-09-05 05:47:11 +00:00
Shaowei Shen
7910315b7a Merge "[Physical Keyboard][A11y Page] Add new Keyboard A11y page" into main 2024-09-05 03:35:32 +00:00
Weng Su
c749ba028a Fix Wi-Fi details crash in secondary users
- When Wi-Fi details are restricted for secondary users, UI components will be removed to prevent user interaction
  - The UI update function may not obtain the expected resources, causing NPE issues

Bug: 362151753
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiNetworkDetailsFragmentTest

Change-Id: Ia97b4e202faff85ced0b6eaf2e4b4f0dc04b5cef
2024-09-05 03:58:40 +08:00
Pavel Grafov
56ffe954e3 Merge "Clean up fully rolled out HeadlessSingleUserFixes" into main 2024-09-04 17:48:46 +00:00
Treehugger Robot
ab1f6480c2 Merge "Update the time zone picker to work with location containing diacritics" into main 2024-09-04 12:02:26 +00:00
shaoweishen
bf4442162d [Physical Keyboard][A11y Page] Add new Keyboard A11y page
Add new Keyboard A11y page, and controled with flag.
Demo video: b/345399212#comment6

Bug: 345399212
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I4bd45ff16c8abb33e1cf56c377ea86c20195fe26
2024-09-04 10:00:52 +00:00
Geoffrey Boullanger
766c7951fb Update the time zone picker to work with location containing diacritics
Currently, looking for a location containing diacritics (e.g. accents) requires the user to type in exactly those characters. With this change, diacritics are ignored and the strings are returned if they match (using startsWith).
For example, looking for "reun" will show you "Réunion".

Bug: b/364245352
Test: atest tests/robotests/src/com/android/settings/datetime/timezone/BaseTimeZoneAdapterTest.java
Change-Id: I507a9ebc1c830ad3162fb2382814935fc337328d
Flag: EXEMPT bugfix
2024-09-04 09:23:20 +00:00
Zoey Chen
d99ea6b397 [Settings] Restore the position
Bug: 314888469
Test: manual
Flag: EXEMPT bugfix
Change-Id: I419a863b55b1357b9fbe14f2f2a88dd623bd5b53
2024-09-04 09:19:01 +00:00
Haijie Hong
f93aaadad0 Show a dialog if bluetooth key is missing when reconnecting
Previous change is reverted due to test failure in b/362901443.

BUG: 360031750
Test: atest BluetoothKeyMissingDialogTest
Flag: com.android.settings.flags.enable_bluetooth_key_missing_dialog
Change-Id: I05b940e8aac26c14f93baa19c224ad98c291b891
2024-09-04 09:05:08 +00:00
SongFerng Wang
1ffafd365e Merge "Update error dialog text for SIM switching" into main 2024-09-04 08:39:31 +00:00
Haijie Hong
637984a38d Merge "Make HIGH_QUALITY_AUDIO_PREF_TAG public" into main 2024-09-04 05:17:43 +00:00
Chaohui Wang
8e28dbbee7 Merge "Clean up FileSizeFormatter" into main 2024-09-04 04:44:22 +00:00
Chaohui Wang
d74026cfc4 Merge "Settings search for Data warning & limit" into main 2024-09-04 04:31:10 +00:00
Haijie Hong
a43ff10579 Make HIGH_QUALITY_AUDIO_PREF_TAG public
BUG: 360031750
Test: local tested
Flag: EXEMPT no logic change
Change-Id: Icfb5879f9b44b83c3e4bcfb4628a36b7cefcff01
2024-09-04 03:23:24 +00:00
Chaohui Wang
426cbd623d [Safer intents] App Time Spent Preference
Set package com.android.internal.R.string.config_systemWellbeing to the
intent.

Fix: 356117796
Flag: EXEMPT bug fix
Test: manual - on App info
Test: atest AppTimeSpentPreferenceTest
Change-Id: I2af7b53a75fe5c6915dd9781406039822789c18c
2024-09-04 11:18:28 +08:00
Yiyi Shen
5e9afcf59c Merge "[Audiosharing] Disable main toggle till device gets active." into main 2024-09-04 02:50:54 +00:00
Chaohui Wang
b12a4d30ad Settings search for Data warning & limit
Bug: 358238959
Flag: EXEMPT bug fix
Test: manual - search data warning
Change-Id: Ifc29b8979a5ba523e930b0c3a59fcb3d9ab99571
2024-09-04 02:33:23 +00:00
Matías Hernández
c43be041f5 Merge "Support (non-editable) display of DND with a filter != PRIORITY" into main 2024-09-03 18:45:16 +00:00
Chun-Ku Lin
e1e7464dde Merge "Use the correct package name for DevelopmentMemtagFooterPreferenceController" into main 2024-09-03 17:13:54 +00:00
Chun-Ku Lin
3ed0afc982 Merge "Pass null looper if the looper is not prepared in the calling thread" into main 2024-09-03 17:09:29 +00:00
SongFerng Wang
43392fe071 Update error dialog text for SIM switching
The error dialog text for SIM switching is not accurate.
This CL updates the error dialog text for SIM switching.

Bug: 363265948
Change-Id: I8b0348fc791cc4d4ce84e1b33f1fe99fb4e03ed7
Test: NA
Flag: EXEMPT bugfix
2024-09-03 10:48:48 +00:00
Angela Wang
ed519640fa Add hearing device related logs in Settings
1. The HAC toggle on/off event
2. The "See more devices" button click in hearing device pairing page
3. The preset changed event in Bluetooth device details page

Flag: EXEMPT, simple log
Bug: 361206470
Test: manually check on go/atomviewer
Test: atest BluetoothDetailsHearingAidsPresetsControllerTest
Change-Id: I743ea136ec4cb3370c0463df865db830e73e7997
2024-09-03 08:06:43 +00:00
Yiyi Shen
db89eaa0a2 [Audiosharing] Update cancel btn label.
When broadcast is off, the negative btn of share audio dialog should be
"Switch to xxx"

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 305620450
Change-Id: I8006e2901b8f859d1ee86cbf12d81401e004aa0f
2024-09-03 07:57:12 +00:00
Chaohui Wang
b2c6bf49c4 Clean up FileSizeFormatter
Which is not used after Change I37c7b3a4b5860323cb55581b23a90f583f4af216

Fix: 364129275
Flag: EXEMPT clean up
Test: robotests
Change-Id: I0db29c77a1dd938bff53df9e5f33c95cc0fbaad4
2024-09-03 11:39:20 +08:00
Chaohui Wang
61166c99b2 Merge "Refine CrossSimCalling updating" into main 2024-09-03 02:58:25 +00:00
Matías Hernández
b210f35a76 Prevent "new mode" and "choose schedule" dialogs from being created without a listener
This can happen if the activity is recreated; our approach doesn't support this case very well. With this change, the dialog is not reshown when the activity is recreated, which is not optimal but better than crashing (as it does today). There is no lost work because it's the first choice, and the follow-on steps (icon picker, etc) can be recreated without problems.

Fixes: 359746551
Test: manual, with don't keep activities
Flag: android.app.modes_ui
Change-Id: I84bdeb0007e8c50ec9dd8af61991c7e55ddb8298
2024-09-02 18:29:23 +02:00
Pavel Grafov
95efbfa8bb Clean up fully rolled out HeadlessSingleUserFixes
Flag was rolled out in Android V.

Bug: 335663055
Test: TH
Flag: EXEMPT flag cleanup
Change-Id: Iaccd1c594f588b40f46e653b83e257f90b048bf4
2024-09-02 16:44:04 +01:00
Yiyi Shen
85d1148e87 Merge "[Audiosharing] Avoid audio sharing dialogs in call" into main 2024-09-02 10:40:28 +00:00
Tetiana Meronyk
9ba90e5b3b Update main toggle state in User Settings onResume()
The toggle state used to be set on creation and only changed onSwitchToggled(). But the state can also change when restrictions are applied from outside of settings, or when user is added with toggle being off by default.

This change updates the state during execution of onResume() in Users Settings, which also aligns with the update strategy of other Toggles on this Settings page.

Bug: 362706097
Test: atest MultiUserSwitchBarControllerTest
Flag: EXEMPT bugfix
Change-Id: I8a994b2e0ddb672362e69653374b87f85ae1548c
2024-09-02 10:28:51 +00:00
Chaohui Wang
355ee0a1ee Refine CrossSimCalling updating
Currently, this setting depends on whether wifi calling is supported,
since wifi calling could takes some time to provision after sim is
turned on, this state could be wrong when set cross sim calling.

Use wifiCallingReadyFlow() to retrieve the latest state, and update
setting when state changes.

Fix: 352736998
Fix: 348529996
Flag: EXEMPT bug fix
Test: manual - by turn on / off sim
Change-Id: Id4b099e0c5d7cf47b007f37e6f278d1c46e58659
2024-09-02 17:58:17 +08:00
Yiyi Shen
b819fa9020 [Audiosharing] Disable main toggle till device gets active.
Broadcast <-> unicast costs some time, so we grey out the audio
sharing toggle until the device get active on unicast when users toggle
off the sharing.

Flag: com.android.settingslib.flags.enable_le_audio_sharing
Test: atest
Bug: 359755881
Change-Id: I868a470430f6fb54c142f17552d70fa5fa8a2476
2024-09-02 06:54:41 +00:00
Yiyi Shen
abd3889b5c [Audiosharing] Avoid audio sharing dialogs in call
Test: atest
Bug: 362714470
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I972d65727865793454de3eb0d9f07926d236afd7
2024-09-02 13:41:09 +08:00
Yiyi Shen
a63f6cc528 Merge "[Audiosharing] Avoid dialog when onPlaybackStarted after call ends" into main 2024-09-02 05:24:06 +00:00