Commit Graph

140296 Commits

Author SHA1 Message Date
Fiona Campbell
288d98797b Merge "Set EvenDimmer to true by default" into main 2024-05-07 21:26:02 +00:00
Ahmad Khalil
93fe16fc25 Merge "Make haptics team owners on vibration files in Settings" into main 2024-05-07 19:44:46 +00:00
Chun-Ku Lin
fdc7d4afa9 Merge "Add null pointer check to prevent crash" into main 2024-05-07 19:09:38 +00:00
Chun-Ku Lin
3e4247ad9a Merge "Use system_ext as the container of the aconfig flags in Settings" into main 2024-05-07 18:42:53 +00:00
Marcus Ge
ff99e1f72f Merge "[Settings] Migrate color roles to respect color contrast" into main 2024-05-07 18:17:14 +00:00
Joshua McCloskey
3e25356829 Update face & fingerprint pref logic
This change makes it possible for face & fingerprint settings to be
presented to the user only to delete their face/fingerprint if the
feature has been disabled by a device admin.

Bug: 323280069
Test: atest BiometricFaceStatusPreferenceControllerTest
BiometricFingerprintStatusPreferenceControllerTest

Change-Id: I62cab3ddf7cf708d1b0b4da61dc3ffb7052dee84
2024-05-07 18:12:41 +00:00
Daniel Kim
f000f82ac2 Merge "Replace credential provider placeholder" into main 2024-05-07 17:53:14 +00:00
Tetiana Meronyk
6d95ba3664 Merge "Remove telephony related settings preferences for HSUM devices" into main 2024-05-07 17:02:40 +00:00
Ahmad Khalil
37edeb1219 Make haptics team owners on vibration files in Settings
Updating owners file in settings/accessibility to make the haptics team owners on the vibration files in Settings.

No flag for changing owners, no UI changes.

Fix: 339187294
Test: N/A
Change-Id: I962040b509f40393101eadc76ca46afc2b0696ef
2024-05-07 16:34:06 +00:00
Automerger Merge Worker
276b1db7b2 Merge "Fix isInCallFlow when no active subscription am: c63f06d4c8" into main 2024-05-07 14:49:05 +00:00
Chaohui Wang
33df5bb68b Fix isInCallFlow when no active subscription am: c63f06d4c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27205448

Change-Id: I5a58046c3e7ed2a1164648516248b39ee4feb5ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 14:48:55 +00:00
Pawan Wagh
fca47dc818 Merge "Turn off automatic updates in page-agnostic mode" into main am: ef175b48f8 am: 9cd187ba6e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073273

Change-Id: Icec627b7b79ab932a76c6b5d2c60f3c9fc2477c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 14:48:46 +00:00
Pawan Wagh
9cd187ba6e Merge "Turn off automatic updates in page-agnostic mode" into main am: ef175b48f8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073273

Change-Id: I6bb3f97b0ddc16c7914a26507b2820d3d5b51413
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 14:28:23 +00:00
Chaohui Wang
107cca7a77 Fix data usage when policy has no cycle
Fallback to four weeks, as the same as no policy.

Fix: 336108815
Test: manual - on DataUsageList
Test: unit test
Change-Id: I63140a13ea3f3ee790cc911432fbdfd6247f7318
2024-05-07 14:22:35 +00:00
Pawan Wagh
ef175b48f8 Merge "Turn off automatic updates in page-agnostic mode" into main 2024-05-07 14:11:01 +00:00
Treehugger Robot
0212b6770e Merge "Fix AppStateAppBatteryUsageBridge test fail" into main 2024-05-07 13:46:15 +00:00
Ahmad Khalil
b905c0a0a7 Merge "Fix feedback for main haptic settings toggle" into main 2024-05-07 13:06:47 +00:00
Fiona Campbell
8443ce8f9a Set EvenDimmer to true by default
- Read from setting with true as fallback

Bug: 336476693
Test: atest DisplayServiceTests
Test: manual up/downgrade with settings / off

Change-Id: I5279db2b35af9e84057d8f89bbbe9f26c62237c6
2024-05-07 12:29:10 +00:00
Treehugger Robot
f348f87508 Merge "Use material color res from settingslib for battery tips card" into main 2024-05-07 11:18:33 +00:00
Chaohui Wang
c63f06d4c8 Fix isInCallFlow when no active subscription
Direct emit false in this case to fix.

Fix: 338484668
Test: manual - on SIMs
Test: unit test
Change-Id: I5286701160d95b1c06e577db6232f7e70f040cdb
2024-05-07 10:57:24 +00:00
Chaohui Wang
179a7204a3 Merge "Clean up unused params from SubscriptionAnnotation" into main 2024-05-07 09:40:34 +00:00
Jason Chang
42af64f9df Fix the text under the "Setup for limited vision or head motion" am: f1be1400b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27219697

Change-Id: I6d8228ffe04b9401c723bb790bfed8d8a061a34a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 09:39:14 +00:00
Mengjun Leng
120adb2349 Refacotr mobile data observer for repository
In current design, the mobile data observer might be removed due to
SIM absence after registered so that mobile data network info can't
be updated to clients.

To fix it, migrate it to use API TelephonyCallback.onUserMobileDataStateChanged
Bug: 327696232

Change-Id: I26c8f946823abb7505f0227c8dd8ab0700d0c5f2
2024-05-07 09:35:28 +00:00
Mengjun Leng
0a9e7046cc Refacotr mobile data observer for repository
In current design, the mobile data observer might be removed due to
SIM absence after registered so that mobile data network info can't
be updated to clients.

To fix it, migrate it to use API TelephonyCallback.onUserMobileDataStateChanged

Change-Id: I26c8f946823abb7505f0227c8dd8ab0700d0c5f2
Merged-In: I26c8f946823abb7505f0227c8dd8ab0700d0c5f2
2024-05-07 09:05:25 +00:00
Yiling Chuang
eda8e23f78 Merge "Update strings for charging optimization mode." into main 2024-05-07 08:48:29 +00:00
songferngwang
137b5e503c Avoid to show sim onboarding during the SUW
Bug: 339154888
Test: build pass
Change-Id: Ic0c5b22284a046d76cb1d07e5f6928d1e4c71d2d
2024-05-07 08:39:21 +00:00
Wesley Wang
9b68d1b5fb Fix AppStateAppBatteryUsageBridge test fail
- Remove mock context to fix the component cast issue

Bug: 337417563
Fix: 337417563
Test: atest SettingsUnitTests
Change-Id: I2d375a4828d2a7b020f15535383c07e4f017bb84
2024-05-07 16:38:12 +08:00
Mill Chen
f472d99145 Merge "Redirect NFC Panel to settings page" into main 2024-05-07 08:18:42 +00:00
Treehugger Robot
f671734c1b Merge "Disallow turning off developer options in page-agnostic mode" into main am: 0d124654ca am: 74da70de2d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073278

Change-Id: I985bf4d4f78e2d17915d330430eae5818e7fb44b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 07:03:35 +00:00
mxyyiyi
1df242994a Add new action to log battery optimizaition mode updated by Turbo.
Bug: 338965652
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.BatteryOptimizeUtilsTest
Change-Id: I80a53d327fee4b0442784e9b20617029f0e63f46
2024-05-07 15:02:01 +08:00
Treehugger Robot
74da70de2d Merge "Disallow turning off developer options in page-agnostic mode" into main am: 0d124654ca
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073278

Change-Id: I87d83efc72a97bd942b522716d799efd6e5ed033
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 06:44:32 +00:00
Yiling Chuang
7b77729db6 Update strings for charging optimization mode.
Update the battery settings summary and the charging string on the Battery settings page if charging optimization mode is applied.

Bug: 329020954
Test: atest SettingsRoboTests
Change-Id: Ie906a010d70bcef7fafe235f0287b289ea934705
2024-05-07 06:34:24 +00:00
Treehugger Robot
0d124654ca Merge "Disallow turning off developer options in page-agnostic mode" into main 2024-05-07 06:30:59 +00:00
Treehugger Robot
ecfed70bb3 Merge "[Install-unknown-apps] not include all the apps that have OP_REQUEST_INSTALL_PACKAGES granted" into main 2024-05-07 06:21:55 +00:00
mxyyiyi
03fdbbe504 Use material color res from settingslib for battery tips card
Settings Anomaly Card
[Before-Dark] 	https://screenshot.googleplex.com/5PZC6mbWjqunvuv
[Before-Light] 	https://screenshot.googleplex.com/7eoF6yLX6t3JeHz
[After-Dark]  	https://screenshot.googleplex.com/5j4mQFDXjkVcxHs
[After-Light] 	https://screenshot.googleplex.com/5ySzfzft9293GXb

App Anomaly Card
[Before-Dark] 	https://screenshot.googleplex.com/JKkcqCiAKxkPZds
[Before-Light] 	https://screenshot.googleplex.com/ASB4CnDhPjsQohH
[After-Dark]  	https://screenshot.googleplex.com/5y3LVvng54vndi9
[After-Light] 	https://screenshot.googleplex.com/NCJeuViCtDcNhiV

Bug: 339130556
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I29d68713c14068fd9961082a148dd02ad38289a6
2024-05-07 13:51:32 +08:00
Pawan Wagh
e4b9c69442 Disallow turning off developer options in page-agnostic mode
When device is in page-agnostic mode, it would be OEM unlocked and
filesystem will be different than production. Don't allow to turn
off developer options in that state.

Bug: 329657279
Bug: 295035851
Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Change-Id: I9b8a9dbaf8192bb3758c53501450eb45e2fe8d9c
2024-05-07 05:30:23 +00:00
SongFerng Wang
ceda48c70c Merge "Add the OtherSection for NetworkCellularGroupProvider" into main 2024-05-07 04:58:28 +00:00
SongFerng Wang
3131ed3cef Merge "Show sim onboarding for user when insert sim and no DDS" into main 2024-05-07 04:54:19 +00:00
Pawan Wagh
412739469c Merge "Show persistent notification for page-agnostic mode" into main am: 4795662e6a am: e84cce90b3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073296

Change-Id: I886b3bdfcc3ea8d554862002aa8c89f4d63b1a0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:43:24 +00:00
Pawan Wagh
8bd4c730fd Merge "Make links in dialog text clickable" into main am: 12ff1e2422 am: f224840b37
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3072263

Change-Id: Ida544e3b0fd77e62b9a7e47f7a140705cf4d1471
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:43:09 +00:00
Pawan Wagh
e84cce90b3 Merge "Show persistent notification for page-agnostic mode" into main am: 4795662e6a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073296

Change-Id: Ic8c971596e79dd0fd54ba6c22b0c003cbd8564f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:29:30 +00:00
Chun-Ku Lin
49d1fa359d Use system_ext as the container of the aconfig flags in Settings
Bug: 332723689
Test: Run `adb shell printflags` and verify the flags defined in aconfig
folders show up
Flags: EXEMPT aconfig file only changes

Change-Id: If0b497117c303a0bd0b366819c90bd11b41232c3
2024-05-07 02:29:25 +00:00
Pawan Wagh
f224840b37 Merge "Make links in dialog text clickable" into main am: 12ff1e2422
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3072263

Change-Id: Id907c80bdb3f090ea83bd7c74f3df329142b46cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:29:12 +00:00
Pawan Wagh
4795662e6a Merge "Show persistent notification for page-agnostic mode" into main 2024-05-07 02:13:53 +00:00
Pawan Wagh
12ff1e2422 Merge "Make links in dialog text clickable" into main 2024-05-07 02:13:30 +00:00
Chun-Ku Lin
4959e0fba0 Add null pointer check to prevent crash
Bug: 338082036
Test: atest EditShortcutsPreferenceFragmentTest
Flag: EXEMPT bugfix low risk
Change-Id: I70f00eb2912e4ddd6efbd298ae6b6885f28160de
2024-05-07 02:10:25 +00:00
Mill Chen
f6895743cf Deprecate Settings panels and its infrastructure
Bug: 328525899
Test: robotest
Change-Id: I30bc423e31e9202e70c509459f4397c296c8423f
2024-05-06 22:47:07 +00:00
Mill Chen
f4d7fe3082 Deprecate Volume panel and relevant objects
Bug: 328529042
Test: robotest
Change-Id: I462ddb72b2f764a016d957cc4195fc8298c5f21d
2024-05-06 22:33:06 +00:00
Mill Chen
840aa5e40b Deprecate Nfc panel and relevant objects
Bug: 328528962
Test: robotest
Change-Id: Ia2acf4268e9a444d8b4cfe36c6eb2bd198f4be64
2024-05-06 22:27:02 +00:00
Mill Chen
4c061771b7 Deprecated Wifi panel and relevant objects
Bug: 328529085
Test: robotest
Change-Id: I960718acbdf1d2be6c3b6b396cf2ac69d4aa3046
2024-05-06 22:22:52 +00:00