Commit Graph

138799 Commits

Author SHA1 Message Date
Fan Wu
2db3415b2e Merge "Update ShadowContentResolver to extend from the official shadow package. Also removes redundant API" into main 2024-01-12 07:01:24 +00:00
Yiyi Shen
389ab6a6ef [Audiosharing] Update the volume control registration flow.
Based on the framework API redesign, we will start/stop the volume control callback registration when user enter/leave the volume control page.
We will temporarily keep a map of the device to volume map and use the
volume value to set the initial state of the volume progress bar if it is valid.
If the volume value is null or invalid, we will read the music stream
volume from the audio manager to set the initial state.

Test: manual
Bug: 305620450
Change-Id: Iee3fba39af388782ac3498cb1610b248ced22c3c
2024-01-12 06:35:24 +00:00
Mark Kim
043c06fabd Show restoring toast message only after Play Store responded
successfully

Test: n/a

Bug: 317130255
Change-Id: I4250689f761c86655861c0d04cd1d67e4407c5e3
2024-01-12 05:36:05 +00:00
SongFerngWang
0a7fb7fec3 Add the String of dual sim onboarding
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
Change-Id: I0096c4238b3aab199b553775ae4812240b4bde87
2024-01-12 13:18:31 +08:00
Treehugger Robot
baa3893b0e Merge "Update shadow class method name" into main 2024-01-12 04:25:44 +00:00
Mark Kim
ee1491c811 Merge "Get and save app label before archiving the app" into main 2024-01-12 04:12:29 +00:00
Fan Wu
48bb9fe8e2 Update ShadowContentResolver to extend from the official shadow package. Also removes redundant API
Bug: 319052511

Test: atest SettingsRoboTests
Change-Id: I88ccbb5ca8c239f42c8bc6bb3a875bb4c503bdc9
2024-01-12 11:40:16 +08:00
Bill Yi
acdbb25cd7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If73569771424eaeb9341c61542af25645b96c4d7
2024-01-11 19:00:07 -08:00
Bill Yi
e98378f080 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id0ec173803e3ca774d9eec5874bcbba2f3bba8dd
2024-01-11 18:58:21 -08:00
Bill Yi
9a5a8054b8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1e7abc10279e262f9e8faac753cf3cdf0ae46d91
2024-01-11 18:54:53 -08:00
Zhen Zhang
bd9f09003e Update shadow class method name
The method name was updated in ag/25864369
Bug: 302296979
Test: atest SettingsRoboTests

Change-Id: Ib3fa0f6e36135831e2ece6e483f3a8c089ffc076
2024-01-11 15:27:04 -06:00
Nikhil Kumar
1a115d3ea0 Toast warning message when non-admin user tries to open dev options.
Developer Settings are only accessible for the Admin users. Added a new toast warning message to be displayed when a non-admin user tries to open the Developer options.

Bug: 259941142
Test: Manually verfied by tapping on the USB debugging option from a Secondary user.
Change-Id: Ibd1b8e19d9130982982ee13ac98cbc1d8f5b8835
2024-01-11 16:27:07 +00:00
Jan Tomljanovic
a01eee9bd2 Merge "Protect "Lock after timeout" page with an auth challenge." into main 2024-01-11 15:32:30 +00:00
Hani Kazmi
4e0fc12d05 Merge "Enable ECM restrictions for Usage Access and Device Admin" into main 2024-01-11 13:26:43 +00:00
Edgar Wang
13afe11227 Merge "Fix time zone settings restriction logic" into main 2024-01-11 13:06:35 +00:00
Edgar Wang
a27ea5b128 Update Personal dictionary layout to fix A11y issue
- update padding
- update text color
- update editbox height

Bug: 317848523
Bug: 317850573
Bug: 317848597

Test: visual
Change-Id: Idbe09fe6e197d7f70d438cb1f62f8ccc6e6a4eb2
2024-01-11 12:58:11 +00:00
Mark Kim
5e5f1dd724 Get and save app label before archiving the app
Test: manual

Bug: 317125320
Change-Id: I34763106f669e3f2c0f349cdec977ceb57291e01
2024-01-11 12:17:33 +00:00
Edgar Wang
d0fcba932c Fix time zone settings restriction logic
- Time zone should be restricted when "no_config_date_time" enabled

Bug: 316584466
Change-Id: I90dfc2c84ef0b2155740c7b890f17376c9e57e51
Test: manual via TestDPC
2024-01-11 11:18:52 +00:00
Chaohui Wang
52ebf58566 Show policy transparent of "Force stop" when no DO
PackageManager.isPackageStateProtected() is moving to permission based,
so force stop button can also be protected when no DeviceOwner.

The ActivityManger side has already handled correctly, no Settings UI
side need to show a device policy transparent dialog.

Fix: 319579347
Test: manual - Force stop on AppInfo
Test: unit test
Change-Id: I4432dcb798a0cfcbb6bfc8b30c9191dd91b980a2
2024-01-11 17:05:26 +08:00
Hakjun Choi
197a10a0a9 Filter out satellite plmn when in SAT mode
[SAT-070] : PLMNs associated with SAT MODE, as specified in SAT-008, should not be displayed or selectable in Manual Selection/Network Operator Menu

Bug: 316264277
Test: Manual test with pixel in live network
Test: atest NetworkSelectSettingsTest

Change-Id: Ic100772c97fa1ab18d7e63b654e397d8a80eda8a
2024-01-11 07:14:30 +00:00
Shaowei Shen
59d67c3dc2 Merge "[Physical Keyboard Setting] Add log and null check" into main 2024-01-11 06:17:39 +00:00
Wilson Wu
e13209fbaa Merge "Add metrics for keyboard vibration settings" into main 2024-01-11 05:53:38 +00:00
shaoweishen
ff74d9db0b [Physical Keyboard Setting] Add log and null check
update getParcelable api usage, add null check and logging.

Bug: 317416208
Test: Verified on device
Change-Id: I125a6c9cdb5c86be7582ad5102257efb1fa6a1a4
2024-01-11 03:48:07 +00:00
Wilson Wu
55a7023af5 Add metrics for keyboard vibration settings
Log the state when keyboard vibration settings changed.

Bug: 289107579
Test: atest KeyboardVibrationTogglePreferenceControllerTest
Change-Id: I96999fe49a86514561c85c5b589a7b90e3c3cb67
2024-01-11 03:36:03 +00:00
Fan Wu
2a1051cbab Merge "Update custom shadow usage of ShadowActivityManager" into main 2024-01-11 02:59:31 +00:00
Daniel Norman
889de5bd4a Merge "Adapt clickShortcutSettingsPreference* test to shortcut edit activity." into main 2024-01-11 02:10:06 +00:00
Fan Wu
1ce7938afc Update custom shadow usage of ShadowActivityManager
Test: atest SettingsRoboTests

Bug: 319052511
Change-Id: I15ee6a19d039808aab5089e309a872cf6bc818bc
2024-01-11 09:45:41 +08:00
Daniel Norman
6fd5a4c84d Adapt clickShortcutSettingsPreference* test to shortcut edit activity.
This failure appeared when rolling out flag
cleanup_accessibility_warning_dialog. This test used to always launch
the editor dialog, but that logic has changed with the rollout of
another feature to replace the dialog with an activity launch.

Bug: 319497827
Test: ToggleAccessibilityServicePreferenceFragmentTest
Change-Id: Ie4e3ae5eff8ed16cded622ce71bbd3a6a55cdedb
2024-01-10 23:50:06 +00:00
Zhen Zhang
306df3beaa Merge "Rename method name" into main 2024-01-10 13:16:22 +00:00
Yiyi Shen
180a686af0 Merge "[Audiosharing] Skip active device switch" into main 2024-01-10 12:11:38 +00:00
Yuanru Qian
6abf22553f Merge "Switch some debug level logging to regular logging in the bluetooth settings for the ease of issue triage." into main 2024-01-10 12:03:57 +00:00
Yiyi Shen
9f60c22fad [Audiosharing] Skip active device switch
For framework investigation on the handover issue.

Test: manual
Bug: 305620450
Change-Id: I84f87feac4b72f54eaa1f59ff5524b887bfd00f1
2024-01-10 19:22:11 +08:00
Yiyi Shen
a60dc6ca5a Merge "Increase code coverage." into main 2024-01-10 11:13:30 +00:00
Sunny Shao
bee65b4109 Merge "Revert^2 "Nullability Annotations replacement"" into main 2024-01-10 08:35:06 +00:00
Sunny Shao
076ed573eb Revert^2 "Nullability Annotations replacement"
This reverts commit 19d1d3d15d.

Reason for revert: revert it because this is not the root cause.

bug: 316867690
Change-Id: I0f168dbb64044aa720202af7b1040afd4f028c9c
2024-01-10 07:34:01 +00:00
Yuanru Qian
0b91cdfbaa Switch some debug level logging to regular logging in the bluetooth settings for the ease of issue triage.
Change-Id: I9b73d24eb22613f6401c31352efc516f527b30d9
Bug: N/A
2024-01-10 06:23:58 +00:00
Hyunho
b6a6b1e91a Add the config to show the pSIM conversion menu and set it to false
Bug: b/314881248
Test: manual done
Change-Id: I258471182cb9092fade50881f52f7299c10c8da2
2024-01-10 06:00:12 +00:00
Yiyi Shen
0ae19606eb Increase code coverage.
Test: atest
Bug: 296507968
Change-Id: I031cc4b4f762bb574623da9485bb1981d9c912ea
2024-01-10 12:05:27 +08:00
Omer Ozer
c1c500ae67 Merge "Add logic to redirect default payment setting to default wallet selector." into main 2024-01-10 01:19:01 +00:00
Edward Savage-Jones
03bde3d8c6 Prevent the disabling of specified apps
Prevent the disabling of specified apps, avoiding cases
where disabling the app may result in an unusable system.

Bug: 200043113
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ApplicationFeatureProviderImplTest

(cherry picked from https://android-review.googlesource.com/q/commit:e6279dd6a20ee254bab9a66e545b9dbaf1895db0)
Change-Id: I0b298af76cec20e4f31ec7411bbf3200a2869035
2024-01-09 21:21:34 +00:00
Yuri Lin
583b3dfcab Settings changes for changing default for zen policy.
This change sets a rule's ZenPolicy to the device default right before entering the customization screen, rather than setting it to a copy of the global DND policy. Further, because all policies are now fully specified, when the MODES_API flag is on, skip the radio button screen for selecting between a default and a custom setting and jump straight to the page for setting custom settings.

Bug: 312739308
Test: manual -- entered settings for rules created before and after V, modified settings, verified they took

Change-Id: I1e3a777b60a8fcf06732879f823b033826a52a43
2024-01-09 15:50:21 -05:00
Eric Biggers
6482c08de3 Merge "Use isCeStorageUnlocked() in ConfirmDeviceCredentialActivity" into main 2024-01-09 20:01:38 +00:00
Eric Biggers
45f71ab1ce Use isCeStorageUnlocked() in ConfirmDeviceCredentialActivity
isUserKeyUnlocked() is being renamed to isCeStorageUnlocked() to make it
clear what it does (considering that there are many types of user keys).
Temporarily, the method exists under both names.  Change
ConfirmDeviceCredentialActivity to use the new name.  No change in
behavior.

Bug: 306204742
Flag: exempt, mechanical refactoring
Test: presubmit
Change-Id: I9a3f686b57cfbf99b6c915565e5ecc38ddfe9b22
2024-01-09 18:12:41 +00:00
Omer Ozer
ea4ca29090 Add logic to redirect default payment setting
to default wallet selector.

Bug: 283989236
Bug: 313968146
Test: Manual
Change-Id: I984497baa1689d1b31eedd6a4f9ab453b10dd93c
2024-01-09 18:00:05 +00:00
Jigar Thakkar
d4d9c4fe59 Merge "Disable strong auth for all profiles after successful unlock" into main 2024-01-09 16:49:31 +00:00
Xinyi Mao
d92f82b437 Merge "Update accessibility content description for battery usage chart view." into main 2024-01-09 04:00:23 +00:00
Treehugger Robot
2a5dda45a1 Merge "Add a linter requiring Nullability Annotations" into main 2024-01-09 03:47:06 +00:00
Milton Wu
ea31df38e6 Merge "Refine udfps enrolling icon" into main 2024-01-09 02:10:37 +00:00
Fan Wu
3809fb6f4b Merge "Update Usage statistics string to avoid confusion" into main 2024-01-09 01:34:26 +00:00
Treehugger Robot
a5e48292a7 Merge "Implemented nested scrolling parent in TextReadingPreviewPager" into main 2024-01-09 01:16:08 +00:00