Commit Graph

147442 Commits

Author SHA1 Message Date
Wes Okuhara
f2767a794b Merge "Settings: Do not show install info for Play Store app" into main 2025-03-05 09:10:11 -08:00
Oleg Petšjonkin
f1d0ce612b Merge "Updating NightLight Intensity slider to SliderPreference component" into main 2025-03-05 08:03:34 -08:00
Adrian Roos
d85d04d98a packages/apps/Settings: remove deprecated Mockito usages
Test: m checkbuild
Flag: TEST_ONLY
Bug: 310268946
Change-Id: Ibfe27bc2399bf1f06d6b790f9fe68d31da60e43a
2025-03-05 06:02:12 -08:00
Daniel Huang
2871b8dfce Merge "Add Confirmation Dialog" into main 2025-03-05 05:51:36 -08:00
Azhara Assanova
fe0ee75515 Merge "Update preference summary for ExternalSourcesDetails page when Advanced Protection is on" into main 2025-03-05 03:47:43 -08:00
Aleksander Morgado
e96d71fc41 Hide 'Reset mobile network settings' if not telephony capable
The entry is hidden either via the build-time
config_show_sim_info=false boolean flag, or when not
declaring the PackageManager.FEATURE_TELEPHONY_DATA feature flag.

Bug: 399208058
Test: mm && atest NetworkResetPreferenceControllerTest
Flag: EXEMPT bugfix

Change-Id: I178a0cae9d4ffd1ea4492a6b1feca697373d6e20
2025-03-05 00:43:11 -08:00
Menghan Li
86fa16ba52 Merge changes from topics "A11yFeedback1P", "A11yFeedbackTopLevelPage", "AccessibilityPageIdFeatureProvider" into main
* changes:
  refactor(A11yFeedback): Rename AccessibilityMetricsFeatureProvider
  feat(A11yFeedback): Add feedback entry for downloaded Accessibility
  chore(A11yFeedback): Removing Legacy Android M Menu Behavior
  feat(A11yFeedback): Implements page ID to feedback bucket ID mapping
2025-03-05 00:06:01 -08:00
Menghan Li
b511fe690b refactor(A11yFeedback): Rename AccessibilityMetricsFeatureProvider
The AccessibilityMetricsFeatureProvider currently provides page IDs
derived from component names, primarily for metrics purposes.
However, its functionality should be expanded to also support
feedback needs, not just metrics collection, by returning
appropriate settings enum values.

Bug: 393980229
Test: atest AccessibilityMetricsFeatureProviderGoogleImplTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I2d64db866010ae5e3c6a9738f92860df3d0b86aa
2025-03-05 05:25:05 +00:00
Menghan Li
9ffca7cbfc feat(A11yFeedback): Add feedback entry for downloaded Accessibility
This entry point allows users to access in the action bar.
Visibility is controlled by the aconfig and FeedbackManager#isAvailable

Bug: 393980229
Test: Manual testing on Pixel and non-Pixel devices
Test: atest ToggleFeaturePreferenceFragmentTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: Ie6dfb6a887fe5a894622e86bab39878f8adea758
2025-03-05 05:24:38 +00:00
Menghan Li
bcddc529ba chore(A11yFeedback): Removing Legacy Android M Menu Behavior
Removed legacy code that suppressed search and help menus for
accessibility features. This workaround was implemented in Android M
(ag/10438579) and is no longer needed.

Bug: 393980229
Test: Manual testing on Pixel and non-Pixel devices
Flag: EXEMPT cleanup
Change-Id: Ide4978bb5d2fdacad48399fb8525c6a0dfcd4277
2025-03-05 05:23:50 +00:00
Menghan Li
c26eb7fd24 feat(A11yFeedback): Implements page ID to feedback bucket ID mapping
This change adds a new API to a Pixel overlay feature provider,
allowing Android to map page IDs to feedback bucket IDs.

Bug: 393980229
Test: Manual testing for Pixel and non-Pixel overlay in real device
Test: atest AccessibilitySettingsTest
            FeedbackManagerTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I8a110b08816cac9c8a8e8c3e1218530fffb6f121
2025-03-05 05:23:00 +00:00
shaoweishen
0c07f16443 [Physical Keyboard] Listen input devices change
Create new fragment which listen input device change, when input device
detached while pages show, it will exist correctly.

Bug: 399284521
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest
packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/

Change-Id: I3d6b9a4558866a8c4a3aa4fc30e500b8b6be90cd
2025-03-05 03:48:24 +00:00
Shawn Lin
10cf921fb7 Update strings for summary in device unlock page
Bug: 370940762
Test: atest FaceStatusUtilsTest
            FingerprintStatusUtilsTest
            ScreenLockPreferenceDetailsUtilsTest
	    FaceSafetySourceTest
	    FingerprintSafetySourceTest
	    FaceStatusPreferenceControllerTest
	    FingerprintStatusPreferenceControllerTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I0927529e939a8e16ddf6692adc8ad427bdbe1bca
2025-03-05 03:11:27 +00:00
Shawn Lin
744ed22075 Merge "Support the ability to enroll face unlock first" into main 2025-03-04 19:06:09 -08:00
Wes Okuhara
79563030fb Settings: Do not show install info for Play Store app
Clicking the "App details" row in the info subpage for the Play Store
app results in a crash. It appears that this app is not considered a
mainline module and has an installer label, but this app is a special
case. Hide the row for the Play Store app.

Bug: 302093631
Test: atest com.android.settings.spa.app.appinfo.AppInstallerInfoPreferenceTest
Flag: EXEMPT bugfix
Change-Id: I291ee3e5dec2075381cb52d041982583cdd04323
2025-03-04 19:05:23 -08:00
Treehugger Robot
170531768d Merge "Fixed EditText Talkback issue in VPN Settings" into main 2025-03-04 17:24:50 -08:00
Yongshun Liu
20d1a7d1b6 a11y: Add cursor following mode dialog
This a pure UI change that adds a new magnification cursor following
mode dialog behind a flag. The framework support will be added
separately later.

There are 3 modes as the following:
  - continuous mode
  - center mode
  - edge mode

It also renames magnification mode dialog xml file for general purpose
within accessibility.

NO_IFTTT=linter not working

Bug: b/388335935
Flag: com.android.settings.accessibility.enable_magnification_cursor_following_dialog
Test: SettingsRoboTests:com.android.settings.accessibility.ToggleScreenMagnificationPreferenceFragmentTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationModePreferenceControllerTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationCursorFollowingModePreferenceControllerTest
Change-Id: If2672186faf7443cc210d79630b1ea4f3808d7e4
2025-03-04 23:47:56 +00:00
Diya Bera
b5482ac6a9 Update Identity Check for Fingerprint Settings
Flag: EXEMPT bug fix
Fixes: 398045898
Test: N/A
Change-Id: Icc71921c331bf445f2c70e9e6a7ac99a2e67f8a5
2025-03-04 20:04:31 +00:00
Casey Burkhardt
5c7811274e Merge "Ensure accessibility shortcut preference summaries are not focusable" into main 2025-03-04 11:54:21 -08:00
Azhara Assanova
07f9680835 Merge "Update ActionDisabledByAdvancedProtectionDialog" into main 2025-03-04 11:52:18 -08:00
Weng Su
a361eca799 Fixed EditText Talkback issue in VPN Settings
- Use Material3 TextInputLay & TextInputEditText to replace TextView & EditText

Bug: 386014810
Flag: EXEMPT resource file only update
Test: Manual testing
Change-Id: I19ea8f64569173367c84e39fe9e892ecebdf2e2a
2025-03-05 03:32:46 +08:00
Bill Yi
4a907d6186 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-04 10:54:53 -08:00
Bill Yi
3a03699f69 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-04 10:54:53 -08:00
Srinivas Patibandla
aba8de169b Merge "24Q3: Remove Flag enable_hide_exclusively_managed_bluetooth_device" into main 2025-03-04 10:08:39 -08:00
Jason Chang
00dc2384f4 Merge "(1/n) Fix Wrong button color in lockscreen dialog." into main 2025-03-04 08:40:14 -08:00
Randy Pfohl
0d2afeeb33 Merge "Remove demo button from animation and move to gesture navigation settings fragment" into main 2025-03-04 08:13:40 -08:00
Azhara Assanova
db59b0e729 Update ActionDisabledByAdvancedProtectionDialog
For UI, the dialog was migrated to SpaDialogWindowTypeActivity, which
has a Material3 theme and can support rendering over QuickSettings.

This change also adds logic around which message to show depending on
the received extras for feature ID and the dialog type.

Finally, the dialog will display the support button if the help Intent
URI exists and resolves to an activity. Tests around the support button
will be added in a follow up CL.

Bug: 389080341
Test: Visual test
Test: atest ActionDisabledByAdvancedProtectionDialogTest
Flag: EXEMPT bug fix
Change-Id: I0ed23cd44666a40ad54d755f628cd36ef06cc145
2025-03-04 12:00:50 +00:00
Azhara Assanova
c278a92940 Update preference summary for ExternalSourcesDetails page when Advanced Protection is on
The summary is now "Disabled".

Bug: 398167869
Test: ExternalSourcesDetailsTest
Flag: EXEMPT bug fix
Change-Id: I1d8975671671c31b3176a39e07574ff623ed1a96
2025-03-04 11:49:26 +00:00
Oleg Petšjonkin
d82f6583fb Merge "Fixing resolution announced by Talkback" into main 2025-03-04 02:37:03 -08:00
Haijie Hong
ac0cb81ea0 Merge "Check bluetooth key missing count in BluetoothKeyMissingReceiver" into main 2025-03-04 00:37:36 -08:00
Jason Chang
dd4c8d2d1a (1/n) Fix Wrong button color in lockscreen dialog.
Use SUW API ThemeHelper.shouldApplyGlifExpressiveStyle() to update
AlertDialog style.

Flag: EXEMPT use SUW Expressive style API to check

Bug: 390544548

Test: atest SetupSkipDialogTest
Test: build and manually check the UI and its behaviors
Change-Id: I953270f4dc38796c3b64cba8cc3e84c3f4dcc2f2
2025-03-04 07:07:46 +00:00
Nick Croll
809c055562 Merge "Support apply override feature in SupportPreferenceController" into main 2025-03-03 20:49:09 -08:00
Treehugger Robot
87ca4b0ea8 Merge "[Expressive] Apply expressive style for Factory Reset page" into main 2025-03-03 20:47:45 -08:00
Bill Yi
7ea265bbd5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I58080ea2d161ab82ff70136e47d187ec59d56837
2025-03-03 20:39:10 -08:00
Bill Yi
065cda3b1f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I199089f90c4ef1f16250a8944526eade2b0f0c80
2025-03-03 20:37:01 -08:00
Casey Burkhardt
046b5038b9 Ensure accessibility shortcut preference summaries are not focusable
In this case, keyboard focusability causes TalkBack to exclude summary
text from the grouped content surfaced when focusing the top-level list
item.

Bug: 400538324
Test: Manually with TalkBack, including ClickableSpan in summaries
Flag: EXEMPT bug fix
Change-Id: Ib8bc3276aee857121381de7bc4e23e05cd512383
2025-03-03 20:26:05 -08:00
Nick Croll
86626c886a Support apply override feature in SupportPreferenceController
- Let SupportPreferenceController call SupportFeatureProvider#applyOverrides to override Support preference.

Bug: 397691102
Change-Id: I16fefe3058d5f3f318ed4a5aa6aa4868012be505
Test: MANUAL
Flag: EXEMPT no-op new APIs for partner override
2025-03-03 19:01:35 -08:00
Treehugger Robot
0aa7850791 Merge "Use userContext instead of context" into main 2025-03-03 18:24:44 -08:00
Justin Yun
11a995c0c5 [automerger skipped] Revert "Replace system_ext container with system" am: 48b13e5cb1 -s ours
am skip reason: Merged-In I8f52d5f86e6ffaccd624846fbe1ba0a8fc842af6 with SHA-1 1337a88d11 is already in history

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

Change-Id: I44d1d6cca9744ca734b16cd4dbe5bccd8d98c999
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-03 15:13:31 -08:00
Treehugger Robot
26023eb72f Merge "Use Fake context and settings provider to prevent test flakiness" into main 2025-03-03 15:06:43 -08:00
Jan Tomljanovic
6fd9cd771b Merge "Always set source status, even when null." into main 2025-03-03 14:57:37 -08:00
Michael Mikhail
aec68e2372 [catalyst] migrate media controls settings
Flag: com.android.settings.flags.catalyst_media_controls
Fixes: 337243570
Fixes: 389133530
Fixes: 389133114
Test: atest MediaControlsLockScreenSwitchPreferenceTest
Test: atest MediaControlsSwitchPreferenceTest
Change-Id: Ibe8fed064cd6223085764f5125cff45a9bea734d
2025-03-03 22:50:05 +00:00
Pawan Wagh
e713abaae7 Use userContext instead of context
- update string to remove word 'forced'

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Bug: 389696304
Flag: EXEMPT bug_fix
Change-Id: I79d4ec1afbf44131bd53d786c126c14c163a9207
2025-03-03 22:43:09 +00:00
Yomna N
ec412eb802 Merge "Handle failing calls to TelephonyManager" into main 2025-03-03 14:35:40 -08:00
Srinivas Patibandla
6607546f1e 24Q3: Remove Flag enable_hide_exclusively_managed_bluetooth_device
Bug: 324475542
Test: atest: com.android.settings.bluetooth.ConnectedBluetoothDeviceUpdaterTest
Test: atest: com.android.settings.bluetooth.SavedBluetoothDeviceUpdaterTest
Flag: EXEMPT removing com.android.settingslib.flags.enable_hide_exclusively_managed_bluetooth_device
Change-Id: Ibcf78a0a72409371557f07f4c42c676d07c0741b
2025-03-03 12:51:53 -08:00
Matthew DeVore
9e1e4f18a3 Merge changes I95721d9b,Id43d2f10 into main
* changes:
  Connected displays: use Robolectric for tests
  CD settings: minimal DisplayDevice metadata class
2025-03-03 11:10:00 -08:00
Daniel Norman
b0103842f5 Merge "fix(deep): Add intent actions for a11y magnification & flash notif pages" into main 2025-03-03 10:59:32 -08:00
Evan Chen
1d32a08384 Fix the namespace for CDM flag in Settings
Test: unit test
Bug: 398042032
Flag: com.android.settings.flags.enable_remove_association_bt_unpair
Change-Id: I6bb813d6dce5a879e25e99f3cb680e38f36e90b2
2025-03-03 18:24:54 +00:00
Allen Su
25c54af982 Add Confirmation Dialog
Bug: 388418881
Test: atest LocaleListEditorTest
Flag: EXEMPT bug fix
Change-Id: Iacec13b9ef6edd44f9548354888cac39fd6b2892
2025-03-03 17:58:14 +00:00
yomna
3d66e6b6fe Handle failing calls to TelephonyManager
If the phone process has died, Settings cannot make calls to
TelephonyManager. Update the handling of this case to new best
practices.

Bug: b/394077023
Test: m & atest CellularSecurityPreferenceController
Flag: EXEMPT bugfix
Change-Id: I64ecb143d0830873b590ce4a397c398d8b41943f
2025-03-03 17:34:14 +00:00