Commit Graph

138579 Commits

Author SHA1 Message Date
rambowang
b010448689 Add ResetMobileNetworkSettingsActivity into Settings
The feature introduces an API (an activity action) that
allow applications to launch the Reset mobile network settings
page in Settings Reset options menu.

Since the page is not implemented as an activity and can't directly
work as a intent filter of such activity action, a trampoline activity
is introduced to service as the default one.

Bug: 271921464
Test: atest TelephonyManagerTest
Test: Feature functionality test with flag on and off
Change-Id: Idfba4bedaac8841205424ecdc6300042c2e94733
2023-12-21 16:37:19 +00:00
Jan Tomljanovic
c4ec19acfa Protect "Lock after timeout" page with an auth challenge.
Test: manual
Bug: 315937886

Change-Id: Ib3da9f783892828c0c9cfdc4ebb27b2d982e5274
2023-12-21 14:45:12 +00:00
Jason Chiu
05c7b59361 Merge "Make the suggestion view dismissible" into main 2023-12-21 06:23:33 +00:00
Haijie Hong
204f36c7cb Merge "Provide Spatializer in BluetoothFeatureProvider for Spatial Audio toggle" into main 2023-12-21 03:14:08 +00:00
Fangqiu Su
a7164bbb35 Merge "Update the imports to androidx.test.filters.*" into main 2023-12-20 23:18:59 +00:00
Varun Somani
a36612c003 ARC: Follow-up fix AndroidLint error
Add missing default resource value to fix AndroidLint failure.

Bug: 295397004
Test: Presubmit
Change-Id: If7ff54c527f48b5260a9f8f8bdddcbf410ac8931
2023-12-20 23:00:10 +00:00
Fangqiu Su
4c40fd308f Merge "Update the imports to androidx.test.filters.*" into main 2023-12-20 22:34:52 +00:00
Andy Yu
fd6e4f8a9a Merge "Add Settings switch to disable Game default frame rate" into main 2023-12-20 21:59:42 +00:00
Jan Tomljanovic
6b4c754f5e Add auth challenge for increasing screen timeout.
We only require one auth after onStart(), and only for increasing the
timeout.

Test: atest SettingsRoboTests:com.android.settings.display.ScreenTimeoutSettingsTest
Test: also manually tested
Bug: 315937886
Change-Id: If4aed67736cd7545d3a518aadd8253ea6a9fae43
2023-12-20 21:53:56 +00:00
Beth Thibodeau
7368747e31 Merge "Update media recommendation setting string" into main 2023-12-20 16:27:58 +00:00
Rhed Jao
19dcf2dc19 Do not finish the activity if the activity result is required
Repair mode requires the completion result after an user chooses
a new screen lock. This change defers finishing the activity until
the activity result is available.

Bug: 281641188
Test: atest SettingsRoboTests:com.android.settings.password
Change-Id: If635521ef7e1c509950d9683c15dffe45375cf4f
2023-12-20 09:47:51 +00:00
Chaohui Wang
ce18c81da6 Show "MMS messages" when mobile data is off
For some corner case,
- Single SIM, data off, auto switch on (although hidden)
- Dual SIM, default data off, auto switch on

Bug: 303759893
Test: manual - on Mobile Settings
Test: unit test
Change-Id: I70dd792ecff590f34100efaaf6ee4efcc2b759fd
2023-12-20 17:07:45 +08:00
Chaohui Wang
28b85b5810 Refresh "Choose network" summary when service state changes
This summary display service connection state, which should be refreshed
when service state changes.

Fix: 313026209
Test: manual - on Mobile Settings
Test: unit test
Change-Id: I6ca2f89e05f21460a7db055f037919b6ebd19182
2023-12-20 16:19:08 +08:00
Jason Chiu
72d638e681 Merge "Finish HomepageActivity when it's not the root of a task and not singleTask." into main 2023-12-20 06:10:18 +00:00
Jason Chiu
5a305645c1 Finish HomepageActivity when it's not the root of a task and not singleTask.
HomepageActivity should be the first activity in a task, or be launched
in singleTask mode. Finishing it will bring up the previous activity in
the task.

Fix: 297857732
Test: robotest
Change-Id: Iddcba1652060d755693dd20d0e350e3d6c1ae138
2023-12-20 03:40:29 +00:00
sunnyshao
cf0501e4d7 Nullability Annotations replacement
-- Replace the android.annotation.Nullable / android.annotation.NonNull
   with androidx.annotation.Nullable / androidx.annotation.NonNull

Bug: 316867690
Test: build pass
Change-Id: I0c1da55dfb09ece855151c47e0492d6f46538621
2023-12-20 08:50:09 +08:00
Mark Kim
6ca4c0fb5a Merge "Update archive's button enable property whenever hibernation toggle has changed its value" into main 2023-12-19 21:55:56 +00:00
Beth Thibodeau
f81d6d7240 Update media recommendation setting string
Test: build
Bug: 317067644
Change-Id: I908a8681b52f7da7c61936b8410b3a29fe13ad83
2023-12-19 14:26:20 -06:00
josephpv
0b7d46746c Add Biometrics settings inside private space One Lock settings
This includes below changes:
- Add Biometrics preferernce in Private Space One Lock settings page
- Face and Fingerprint enrolment for Private profile
- Feature is behind flag android.multiuser.enable_biometrics_to_unlock_private_space

Screenshots:
go/ss/9cWZRAuvGGW7gMm.png
go/ss/B3NoFbL3KbpSzeN.png
go/ss/7xH3DLi9d6Lu2mR.png
go/ss/8WBEgKychWpduXg.png
go/ss/8pmPGshd9aiPvVC.png
go/ss/AFPBPbiaBBvTj3p.png
go/ss/3fE4XKLLUdP8LmF.png

Bug: 308862923
Test: atest CombinedBiometricStatusUtilsTest, atest FaceFingerprintUnlockControllerTest
Change-Id: I1853107a4df4fc97db53c97524c6d44a4f554e37
2023-12-19 18:57:10 +00:00
Joseph Vincent
a123021e1d Merge "Finish PS sub-settings page if PS is locked" into main 2023-12-19 18:14:53 +00:00
Fangqiu Su
69c5d2f4af Update the imports to androidx.test.filters.*
Bug: 316941721
Test: mmma .
Change-Id: Id77c442066426ab52fb5c976f980a8881d0f8615
2023-12-19 18:12:48 +00:00
Fangqiu Su
7dfb2a182b Update the imports to androidx.test.filters.*
Bug: 316941721
Test: mmma .
Change-Id: Ia19c53850a0440b89434fcb5bf3fc1f61b58a46c
2023-12-19 18:12:46 +00:00
Shaowei Shen
d564f0b6de Merge "[PK Setting] Refine layout for Keyboard review" into main 2023-12-19 15:59:01 +00:00
Mark Kim
5528e94455 Update archive's button enable property whenever hibernation toggle
has changed its value

Test: AppArchiveButtonTest

Bug: 304257274
Change-Id: I95b8a2219a7d04437b5c7d217a520e8c8b05d395
2023-12-19 14:11:16 +00:00
Joseph Vincent
61fa50254e Merge "Update strings in PS entrypoint summary and auto advance screen" into main 2023-12-19 12:52:35 +00:00
josephpv
4c055dd097 Finish PS sub-settings page if PS is locked
Bug: 317026141
Test: Manual
Change-Id: If3a3045c40dd61779b272589231d395ce7ae9fa9
2023-12-19 11:32:11 +00:00
josephpv
25ce6462c9 Update strings in PS entrypoint summary and auto advance screen
go/ss/B6UTjGhqwJkwGan.png
go/ss/7vniU5Q5Vz3ZEEx.png

Bug: 311343086, 316839546
Test: Verifed updated strings are shown
Change-Id: I7b1cf54f52c0e4a1480ed95924ee28e05a2fdaf3
2023-12-19 11:01:41 +00:00
Joseph Vincent
65ae0d8219 Merge "Show customized message for private space while choosing lock" into main 2023-12-19 10:37:05 +00:00
shaoweishen
5446813ac5 [PK Setting] Refine layout for Keyboard review
1. add background for keyboard review
2. add text for showing selected keyboard's name

Test: Verified on device
Bug: 305588594
Change-Id: Icf0f2b7798cc5cbddefc1b3a95480b48271b276f
2023-12-19 09:41:17 +00:00
Jun Lan
ac90fd15c7 Merge "Fix work profile apps are in Uninstalled" into main 2023-12-19 09:22:26 +00:00
Jason Chiu
dfd802da92 Make the suggestion view dismissible
The suggestion view could just be operated once to eliminate flicker.
When the suggestion is completed, there was no way to dismiss it unless
users kill Settings.

This patch allows updating the view's visibility after the activity is
stopped. When the activity restarts, the view can be updated.

Fix: 294153594
Test: robotest
Change-Id: Idc3aada3bff001d603bf2f7737f70f2880f6cc35
2023-12-19 16:12:42 +08:00
Chaohui Wang
83c46eb1b6 Fix DataUsageListTest
Using androidx.fragment.app.testing.launchFragment to rewrite the test.

Bug: 315449973
Test: manual - on DataUsageList
Test: unit test
Change-Id: Ief373becb4ac8ab1ba93b8ff3c594b5682c4821e
2023-12-19 12:54:31 +08:00
Vincent Wang
40f6264056 Merge "Add talkback feedback when setting passowrd/pin/pattern complete" into main 2023-12-19 02:40:43 +00:00
Milton Wu
08ac06313b Merge "Apply nosensor for face unlock enroll activities" into main 2023-12-19 02:34:27 +00:00
Treehugger Robot
cb1650c405 Merge "Prevent NetworkRequestDialogActivity recreation on some configuration change" into main 2023-12-18 23:46:43 +00:00
Matías Hernández
c76c679f63 Merge "Tag Zen operations from Settings as coming from the user" into main 2023-12-18 22:57:58 +00:00
Varun Somani
45711dccb4 ARC: Show location services setting in ARC-T
Add a new flag that controls location services setting. The current flag
controls location services as well as wifi and bluetooth scanning.
Seperating these flag will help show GLA setting to the user.

UI: go/screen-recording-location-setting-arc-t

Bug: 295397004
Test: atest SettingsRoboTests and manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:37a14be139542f0d6dbc4b75863368279e8053ba)
Merged-In: I3fc377fb118fea031b0ca7dca84f645998486304
Change-Id: I3fc377fb118fea031b0ca7dca84f645998486304
2023-12-18 21:55:24 +00:00
josephpv
223737e0b5 Show customized message for private space while choosing lock
The change adds private profile checks in addition to the exisiting
managed profile check to show customized message while choosing lock for
private profile in Pattern, PIN and Password screens.

Bug: 311343571
Test: Verify lock screen message for private space
Change-Id: Ic8173ff8c1af23fc593390acaff4c67390f99b9c
2023-12-18 19:34:29 +00:00
Treehugger Robot
bb49d847a2 Merge "Log start of sign in flow" into main 2023-12-18 19:12:27 +00:00
Joseph Vincent
ad8dbc37d2 Merge "Calling requestQuietMode with peindingIntent to match PS settings with PS state" into main 2023-12-18 18:32:27 +00:00
Treehugger Robot
f5f4e0eebd Merge "Block the disable option for WebView Default package" into main 2023-12-18 15:59:38 +00:00
Chaohui Wang
fb72154a8e Merge "Prevent crash on SIM Lock settings while rotating" into main 2023-12-18 14:43:30 +00:00
Anna Bauza
0d64b9831a Merge "Integrating new Avatar Picker App in Settings" into main 2023-12-18 14:18:41 +00:00
josephpv
16c32a5e2c Calling requestQuietMode with peindingIntent to match PS settings with
PS state

Bug: 314910049, 312399293
Test: Manually verified

Change-Id: Iebdd09d4c6f319d50b8c0f118de0ddb2eaeb95d6
2023-12-18 14:16:11 +00:00
Jakob Schneider
5e8a4ab400 Merge "Add temporary system property checks in addition in addition to flag checks." into main 2023-12-18 13:27:15 +00:00
Matías Hernández
907b47105b Tag Zen operations from Settings as coming from the user
Bug: 308670715
Test: atest ApprovalPreferenceControllerTest
Change-Id: Id118f867e84f3d742db6b12eab0f34df1357d178
2023-12-18 13:32:32 +01:00
Haijie Hong
6b1393a2d7 Fix AdvancedBluetoothDetailsHeaderControllerTest
Bug: 313014781
Test: atest AdvancedBluetoothDetailsHeaderControllerTest
Change-Id: I42cea3add9d61abeae339b3aa0ec7025ab238d89
2023-12-18 20:17:02 +08:00
Chaohui Wang
45fb655286 Prevent crash on SIM Lock settings while rotating
Prevent crash when getContext() returns null.

Fix: 316244109
Test: manual - rotating on SIM Lock settings
Change-Id: Iae17585cb52ea74e92129df2a1ced25454678d9a
2023-12-18 18:57:36 +08:00
Jun Lan
cd516c8d46 Fix work profile apps are in Uninstalled
Context: work profile apps needs to pass userId to packageManager to get the uid.
Fixed screenshot: https://screenshot.googleplex.com/AkXfMWvmREyQJvv

Bug: 315477872
Fix: 315477872
Test: manual
Change-Id: I96eb42ef6ce27f15415f0e1fc32060d69b3fab2d
2023-12-18 10:28:16 +00:00
Haijie Hong
cce5ff810d Provide Spatializer in BluetoothFeatureProvider for Spatial Audio toggle
BUG: 316490612
Test: atest BluetoothDetailsSpatialAudioControllerTest
Change-Id: I7fdb671d5395e08c517af58e88b4aeb48f193e5d
2023-12-18 06:32:32 +00:00