Wesley Wang
9a539a46d1
Invoke close() method for BatteryUsageStats to close cursor window
...
- Invoke close() method for BatteryUsageStats to close cursor window,
avoid OOM.
Bug: 245385410
Test: make SettingsRoboTests
Change-Id: I68f36a42a33d2546cb191cec88f5431e24dd5b84
(cherry picked from commit f164be387e
)
2022-11-18 10:19:07 +00:00
Arc Wang
ccf4fa052a
Should not show loading animation after size loading complete
...
SettingsPreferenceFragment#setLoading(boolean loading, boolean animate)
shows loading animation when 'animate' parameter is true.
This change sets 'animate' parameter false to fix this issue.
Bug: 254003456
Test: manual visual
Settings -> Storage -> Free up space -> back
then see if loading animation shows.
Change-Id: Ic804bcf950a9c57297ccefd6e942edea0b792a3b
2022-11-18 17:34:00 +08:00
Jason Chang
764a786547
Merge "Add pad animation for STAGE_CENTER & STAGE_GUIDED"
2022-11-18 09:06:48 +00:00
Bonian Chen
e1f641a130
[Settings] Code Refactor
...
Adjust code structure for maintainance.
Bug: 259611847
Test: auto test
Change-Id: I6710aa814441c0858c712f416ffddde44081d4d1
2022-11-18 08:36:53 +00:00
Milton Wu
0a7fce7bb7
Fingerprint Unlock doesn't handle feature flag
...
When user click `Fingerprint Unlock`, FingerprintStatusUtils shall also
check feature flag of SETTINGS_BIOMETRICS2_ENROLLMENT to determine final
class name
Bug: 259639962
Test: manully enable flag and test activity
Change-Id: I421dc8325ff2a28386081645318488a5e291e7f4
2022-11-18 16:32:27 +08:00
Varun Shah
3e2917b91b
Update AnomalyJobServiceTests.
...
Update the JobSchedulerImpl constructor for the related tests,
specifcally Cleanup, Config, and Detection.
Bug: 255371817
Test: make -j RunSettingsRoboTests ROBOTTEST_FILTER="AnomalyCleanupJobServiceTest|AnomalyConfigJobServiceTest|AnomalyDetectionJobServiceTest"
Change-Id: I53ccfffc278a60f4b109169fde6675cee34e5fd0
2022-11-18 07:14:23 +00:00
Varun Shah
b33256a0fc
Add a new special app access screen for long background tasks.
...
This new screen shows apps that hold the new RUN_LONG_JOBS permission.
Also add a reference to this screen in an app's info page under the
"Advanced" section for apps that have requested this permission.
Bug: 255821578
Test: atest AppFilterRegistryTest
Test: make -j RunSettingsRoboTests \
ROBOTTEST_FILTER="LongBackgroundTasksDetailsTest|
LongBackgroundTasksDetailsPreferenceControllerTest"
Test: visually via the Settings page
Change-Id: Idc498e52d29abc6df757c35e8bc91f00de92ba4a
2022-11-18 07:14:12 +00:00
Edgar Wang
a94e8d0bc7
Avoid media transcode can be bypass guard of developer options
...
When developer options switch is off, a user including guest user
can still configure media transcoding settings via slices.
Bug: 244569778
Test: manual
Change-Id: I3d70045c2498e683bf615cbe521e2f98d50b7eec
2022-11-18 14:16:08 +08:00
Chaohui Wang
1b763b188d
Use isEssentialPackage instead of isSystemPackage
...
This is faster, and we also no longer need to load the PackageInfos with
the deprecated flag PackageManager.GET_SIGNATURES.
Bug: 235727273
Test: Unit test
Test: Manually with Settings App
Change-Id: Ia09ed24ca2622a162ce6008fcd29a930812dbcc2
2022-11-18 13:49:51 +08:00
TreeHugger Robot
d30577a129
Merge "Add OWNERS for biometrics2 src"
2022-11-18 05:29:58 +00:00
TreeHugger Robot
8a171f0843
Merge "Fix crash during inflate intro fragment view"
2022-11-18 05:13:15 +00:00
Zoey Chen
469b708a2a
[Settings] Add NPE protection
...
Bug: 257197354
Test: manual
Change-Id: Icd944feac79acb9cfdefb4f82fe1183b0a0e3218
2022-11-18 04:16:05 +00:00
Milton Wu
dceff7d722
Add OWNERS for biometrics2 src
...
Bug: 236072782
Test: build pass
Change-Id: Iac4b8f994b9f585ed85125be000a24eb1359ee2b
2022-11-18 03:20:19 +00:00
Milton Wu
c5a855bfea
Fix crash during inflate intro fragment view
...
Bug: 259614476
Test: Enable biometric v2 flag and test enrollment
Change-Id: I2858a32b16dbcb1a56d1f90913f7f942ecdee2b7
2022-11-18 02:46:31 +00:00
Chaohui Wang
47c0ee6b38
Merge "Update for MoreOptionsAction"
2022-11-18 02:06:01 +00:00
Milton Wu
fb98cb5276
Merge "Fix face enroll introduction crash after 10mins"
2022-11-18 01:55:31 +00:00
Alisher Alikhodjaev
a442e2ea58
Merge "Revert "Update for Utils.isSystemPackage()""
2022-11-18 01:02:34 +00:00
Florian Mayer
ef5e8670a5
Rename ACTION_MEMTAG_SETTINGS
...
Bug: 259140983
Change-Id: Ia8fd50d2c470ec44ac0aface9a80bc9ce9fc9861
2022-11-17 16:46:05 -08:00
Florian Mayer
c6ab4081c7
Merge "Add "beta" to Advanced memory protection."
2022-11-17 22:33:19 +00:00
Alisher Alikhodjaev
c0fd86f781
Revert "Update for Utils.isSystemPackage()"
...
Revert submission 20385585-isSystemPackage
Reason for revert: DroidMonitor: Potential culprit for Bug 259576639 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Reverted Changes:
Id80c40a30:Update for Utils.isSystemPackage()
I8af59268c:Use ApplicationInfo.isSignedWithPlatformKey()
Change-Id: If161c0e418fe623ac0bf8c0b164c1ba16a876a6a
2022-11-17 22:19:13 +00:00
TreeHugger Robot
29cdd60a6d
Merge "Update for Utils.isSystemPackage()"
2022-11-17 18:04:14 +00:00
Joshua Mccloskey
6727dbe7c7
Merge "Ensure text doesnt jump during enrollment" into tm-qpr-dev am: 1d04eb6eb7
am: db1ec87cb6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20488559
Change-Id: I179da8e21e096856d08425b6e737096faa56ab5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 17:54:03 +00:00
Joshua Mccloskey
db1ec87cb6
Merge "Ensure text doesnt jump during enrollment" into tm-qpr-dev am: 1d04eb6eb7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20488559
Change-Id: I85f20ce7a8c0d4973cdcb42744bb7d04b9a7b548
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 17:25:44 +00:00
Joshua Mccloskey
1d04eb6eb7
Merge "Ensure text doesnt jump during enrollment" into tm-qpr-dev
2022-11-17 16:56:48 +00:00
Sam Dubey
c536eb4dc4
Revert "Add configuration for defaulting notification behavior" am: a2d06273c1
am: 48eae58586
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20505171
Change-Id: I0e2693f89594f6c473c5c2e9dbb6a34ea6bf5864
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 14:29:58 +00:00
Sam Dubey
48eae58586
Revert "Add configuration for defaulting notification behavior" am: a2d06273c1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20505171
Change-Id: Ic9b89ba7d709e09be8217252485adcfc49575d70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 14:01:32 +00:00
Jason Chang
966ffa1b2a
Add pad animation for STAGE_CENTER & STAGE_GUIDED
...
1. STAGE_CENTER reference
- String : security_settings_sfps_enroll_finger_center_title
- raw : udfps_center_hint_lottie
2. STAGE_GUIDED
- String : security_settings_fingerprint_enroll_repeat_message
- raw : udfps_center_hint_lottie (Same with STAGE_CENTER)
Bug: 228100413
Test: manually verified on Settings > Security > Face & Fingerprint
Unlock > Fingerprint Unlock > Touch & Hold fingerprint sensor page
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
"com.android.settings.biometrics.fingerprint
.FingerprintEnrollEnrollingTest"
Change-Id: Ic308b9bffee32b36f7280cf263c67adc3ca31c66
2022-11-17 10:13:10 +00:00
Neil Fuller
00b549f75a
Merge "Track changes in frameworks/base"
2022-11-17 09:28:37 +00:00
Zaiyue Xue
a08d22aab5
Merge "Refoactor 2 util functions from DatabaseUtil to BatteyUtils."
2022-11-17 09:13:42 +00:00
Bonian Chen
7dc161dcc8
[Settings] configuration for hidding SIM related UI
...
Add overriable configuration for hidding SIM related UI.
Bug: 240515161
Test: test cases and local testing
Merged-In: I03d17beac0fb85a3d17acd7d0d581feb35e9582b
Merged-In: I8d7ddd18861a696830da39f040dfb14b9ed46726
Merged-In: I45b7898da440c36045aec64a0a86fb804116cd9d
Merged-In: Ie00bdce2fad429f2ed343e1d7aea4967bcaddf5a
Change-Id: Id5ea14ca888f0cfc6ed5a7df3f77a8176232ef4f
2022-11-17 09:01:09 +00:00
Sam Dubey
a2d06273c1
Revert "Add configuration for defaulting notification behavior"
...
Likely causing b/259499400
This reverts commit a92688d642
.
Change-Id: I781a7ecf9139eca11e1db895f86268b893258543
2022-11-17 07:33:18 +00:00
Chaohui Wang
125baab6ec
Merge "Remove lifecycle-extensions from Settings"
2022-11-17 07:15:00 +00:00
Milton Wu
a174486803
Fix face enroll introduction crash after 10mins
...
When requestGatekeeperHat() throws exception in FaceEnrollIntroduction
page, remove gk_pw_handle and recreate activity to trigger confirmLock.
Test: robotest for FaceEnrollIntroductionTest
Bug: 234437174
Change-Id: Ie1dd6f36e4deb3f776e3b39acd165fc47d04f526
2022-11-17 06:57:21 +00:00
Sayak Dutta
e274c85474
Merge "Modify call to Header function of Glif Layout to disable autosize" into tm-qpr-dev am: 03ed8c0477
am: 3765a09a58
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20472167
Change-Id: Ic88e98b23b7724e99eb322b446e901d27bcb97fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 06:47:33 +00:00
Zaiyue Xue
bc1f4798a6
Refoactor 2 util functions from DatabaseUtil to BatteyUtils.
...
Bug: 252407178
Test: presubmit
Change-Id: I393777186cc308298f0a8b76af4672b9012ed681
2022-11-17 14:25:10 +08:00
Sayak Dutta
3765a09a58
Merge "Modify call to Header function of Glif Layout to disable autosize" into tm-qpr-dev am: 03ed8c0477
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20472167
Change-Id: I580b3e0944fe2d232a11e73a7e349c6564debd48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 06:19:40 +00:00
Sayak Dutta
03ed8c0477
Merge "Modify call to Header function of Glif Layout to disable autosize" into tm-qpr-dev
2022-11-17 06:07:12 +00:00
Kuan Wang
1493fa2fea
Database restructure: use protobuf to save battery information fields.
...
This patch only updates the existing fields.
There will be 2 following patches to:
1. Expose the new fields (foreground / foreground service / background x
usage time / power consumption) to UI.
2. Get the full charge cycle start time from Database and remove the
SharedPreference.
Test: make RunSettingsRoboTests + manual
Bug: 253553141
Change-Id: Iee02dc7e671f97899cb1495323acfa0173e31df2
2022-11-17 06:06:54 +00:00
Bill Yi
45c9b11655
Merge "Import translations. DO NOT MERGE ANYWHERE"
2022-11-17 05:24:20 +00:00
Bill Yi
66087f9266
Merge "Import translations. DO NOT MERGE ANYWHERE"
2022-11-17 05:24:20 +00:00
Bill Yi
f6b3c7caa6
Merge "Import translations. DO NOT MERGE ANYWHERE"
2022-11-17 05:24:20 +00:00
TreeHugger Robot
be679b68a6
Merge "Clean up BatteryAppListPreferenceController"
2022-11-17 05:05:25 +00:00
Chaohui Wang
271d59bec4
Update for MoreOptionsAction
...
Bug: 259492166
Test: Manually with Settings
Change-Id: I0b0b570a456d9464043a221a628ed33c19d780df
2022-11-17 13:05:12 +08:00
Chaohui Wang
386eac8b5c
Merge "Remove kotlin.RequiresOptIn"
2022-11-17 04:53:20 +00:00
Xuanang Zhao
8ad4ac66c8
Add type annoation.
...
Change-Id: Idb0b5db3a2116b71ab1aaa7e55d332144ff2b8fb
2022-11-17 11:32:42 +08:00
Zaiyue Xue
7a30768503
Clean up BatteryAppListPreferenceController
...
Bug: 256123455
Bug: 258576047
Fix: 258576047
Test: presubmit
Change-Id: I8c3d05f76e7a6995fccc34b2cc60ee126bb3d350
2022-11-17 11:28:06 +08:00
Diya Bera
f0da87dae8
Merge "Remove header "When using fingerprint unlock" for Udfps" into tm-qpr-dev am: b4a0a0563d
am: 4688fd9074
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20499435
Change-Id: I6251ada6b0da4222bb676ac4e4b04db3e7b73717
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 01:41:02 +00:00
Diya Bera
4e8b9135c3
Merge "Device displays fingerprint enrollment after swiping back" into tm-qpr-dev am: dfe2bd2df2
am: 6c1eae8a1e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20497232
Change-Id: I2814b4cd69881415a5a4105058f00973b29a3000
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 01:38:36 +00:00
Diya Bera
4688fd9074
Merge "Remove header "When using fingerprint unlock" for Udfps" into tm-qpr-dev am: b4a0a0563d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20499435
Change-Id: I65f8405eda3e12b83a365bd469a3a0ce3f5c9f62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 01:13:18 +00:00
Diya Bera
6c1eae8a1e
Merge "Device displays fingerprint enrollment after swiping back" into tm-qpr-dev am: dfe2bd2df2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20497232
Change-Id: I3a0bcd951ba560a25e257f3dbe4c9657a1e82134
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-17 01:12:56 +00:00