Commit Graph

141991 Commits

Author SHA1 Message Date
Kyle Zhang
febb0822a0 Merge "Keep FakeFeatureFlagsImpl" into main 2024-06-28 05:25:10 +00:00
Chaohui Wang
d101f2d154 Merge "Clean up MobileNetworkInfoEntity unused fields" into main 2024-06-28 05:18:07 +00:00
songferngwang
1892d20ce8 Add condition for askEveryTime of SMS at Primary Sim
Using the config_sms_ask_every_time_support control the askEveryTime

Bug: 349169874
Test: atest PrimarySimRepositoryTest
Flag: EXEMPT bugfix

Change-Id: Ida82ed3a6b5264f8d8c5997584e9fd27f25bf09f
2024-06-28 05:17:38 +00:00
Chaohui Wang
6afb2f3006 Merge "Not use SubscriptionInfoEntity in DataUsageList" into main 2024-06-28 05:14:06 +00:00
Chaohui Wang
e25c208277 Merge "Migrate SearchFeatureProviderImpl to Kotlin" into main 2024-06-28 02:39:20 +00:00
Lyn Han
48576381cf Merge "Bind action to fragment: adaptive notif settings" into main 2024-06-28 00:54:37 +00:00
Pajace Chen
b83151f324 Merge "[Bug Fix] "Dock defend string and tips in settings are incorrectly" issue" into main 2024-06-28 00:39:12 +00:00
Treehugger Robot
bdd205e1b4 Merge "fix TrustAgentsPreferenceControllerTest" into main 2024-06-27 20:15:46 +00:00
Pawan Wagh
234872e187 Fix UI issues in localization
- Some of the locales don't display entire text and BigTextStyle doesn't
display ellipsis for them. Removing bigText.
- Fixing strings to display 4KB
- Reduce string for bootloader unlock title

Bug: 345291007
Bug: 343893991
Bug: 343815951
Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Flag: EXEMPT bugfix
Change-Id: I3e5bf9bf70be1240cfe7d3a381bb8fef62ce2efa
2024-06-27 19:49:38 +00:00
Billy Huang
dd0ae72eb9 fix TrustAgentsPreferenceControllerTest
Removed non-platform Robolectric shadow in favor of setting up fake
package/services directly with ShadowApplicationPackageManager.

Bug: 313612480
Test: atest "SettingsRoboTests:TrustAgentsPreferenceControllerTest" --host
Flag: TEST_ONLY
Change-Id: Iadcb5bcb977201e2f394b699621bfb34657a7820
2024-06-27 19:21:22 +00:00
Yuri Lin
978cba142a Merge "Migrate "duration for quick settings" to new modes page." into main 2024-06-27 18:22:39 +00:00
Joshua Mccloskey
b5bf28f697 Merge "Added flag to biometric environment" into main 2024-06-27 17:58:06 +00:00
Yuri Lin
c1a4abbc51 Migrate "duration for quick settings" to new modes page.
This mostly continues to use the existing dialogs in settingslib (ZenDurationDialog, SettingsEnableZenModeDialog) and creates a controller to read from the settings value.

Also updates the "turn on / turn off" button to respect the preferred duration.

Flag: android.app.modes_ui
Bug: 343444249
Test: ZenModeButtonPreferenceControllerTest, ManualDurationPreferenceControllerTest
Change-Id: I2fd49a79d9a5807fefdd7ec310a6cc60d70f9bb1
2024-06-27 12:48:27 -04:00
pajacechen
daeb06c3b0 [Bug Fix] "Dock defend string and tips in settings are incorrectly" issue
Symptom: After the dock defend was triggered, the battery tips still
show "Future-Bypass" dock defend mode. It should be the "Active" dock
defend mode.

Root Cause: The original `BatteryInfo.isBatteryDefender` was implemented
by using `longlife`, due to the charging limit also reuse `longlife`
issue, we replace the implementation of `BatteryInfo.isBatteryDefender`
with HAL API call `isTempDefend` and `isDwellDefend`. However, the
dock defend also needs `longlife`, the original
`BatteryInfo.isBatteryDefender`. So the dock defend checking failed
after replacing the implementation of `BatteryInfo.isBatteryDefender`

Solution:
- Add new property isLonglife in BatteryInfo
- Replace all isBatteryDefender reference that needs isLonglife

Bug: 348563863
Test: Manual Test and robotest
Test: http://ab/I08300010291126076 (unit test)
Test: http://ab/I67800010291096764 (robo test)
Flag: EXEMPT bugfix
Change-Id: I58424927522acc29dc49261a2c24829a5b34ef85
2024-06-27 23:19:08 +08:00
Chaohui Wang
75a382fc46 Migrate SearchFeatureProviderImpl to Kotlin
This is no-op.

Bug: 346776183
Flag: EXEMPT refactor
Test: manual - do settings search
Change-Id: I5c113f6ed5db1401e1d237f0022ab6dccde8d060
2024-06-27 14:11:02 +00:00
Chaohui Wang
03e9188830 Merge "Export SpaDestination.startFromExportedActivity" into main 2024-06-27 14:09:42 +00:00
Chelsea Hao
94cfea7ed1 Merge "[Audiosharing] onDestroy() is not guaranteed to be called after stopSelf(). In this case callbacks are not unregistered timely and the notification kept being brought up again if any callback is received." into main 2024-06-27 11:13:13 +00:00
Yiyi Shen
9c5ac400a0 Merge "[Audiosharing] Fix IllegalStateException at getChildFragmentManager" into main 2024-06-27 10:53:15 +00:00
Angela Wang
2746c6015e Fix text cropping in pairing dialog
Eliminated child view margins, which were causing incorrect content height calculation within the parent ScrollView. Added padding to ScrollView to maintain visual spacing and ensure all text is visible.

Bug: 328519578
Test: manually, attach screenshots in bug
Flag: EXEMPT bugfix
Change-Id: If31c8a9b491ca3bee834ba470dbc1ec4e8a5e9bc
2024-06-27 10:28:10 +00:00
chelseahao
c49658d154 [Audiosharing] onDestroy() is not guaranteed to be called after stopSelf(). In this case callbacks are not unregistered timely and the notification kept being brought up again if any callback is received.
This CL also moved some binder calls to bg thread.

Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostream
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 347605485
Change-Id: I1a3a3db88178a43f27cac74cf743bdb75cdfb60e
2024-06-27 09:57:37 +00:00
Chaohui Wang
b8ad25f8bd Clean up MobileNetworkInfoEntity unused fields
It's safe since MobileNetworkDatabase is in memory only.

Bug: 348118234
Flag: EXEMPT clean up
Test: manual - check Mobile Settings
Change-Id: I25141a87b9afb42b85d73cbcd7307b899b3f0a3b
2024-06-27 17:30:19 +08:00
Kyle Zhang
7dbe6517ec Keep FakeFeatureFlagsImpl
* Keep FakeFeatureFlagsImpl.
* Use EnableFlags and DisableFlags annotation
* Switch back from `assumeTrue` to `assert` when flag is enabled or disabled.
* Remove flag rollback test.

Bug: 342830919
Change-Id: Ic9b3438f3f0e31e64d5405ed81903b352195714a
2024-06-27 08:46:17 +00:00
Chelsea Hao
f647356d62 Merge "[Audiosharing] Increase test coverage." into main 2024-06-27 08:36:02 +00:00
chelseahao
7529e1bea7 [Audiosharing] Increase test coverage.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostream
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 345686602
Change-Id: I668df463ec1c6e994d2dcaa363a20aa06f69f199
2024-06-27 07:11:37 +00:00
Chaohui Wang
7ef8b0c518 Export SpaDestination.startFromExportedActivity
To be called from other exported activity in the future.

Bug: 346776183
Flag: EXEMPT refactor
Test: adb shell am start \
          -a android.settings.REQUEST_MEDIA_ROUTING_CONTROL
Test: unit test
Change-Id: Ica105ab3b56d33e4cd2fe1bb1c1218ef2f219ab3
2024-06-27 14:16:58 +08:00
Jason Chiu
af053aa3cc Merge "Allow the background activity start from legacy suggestion cards" into main am: d78409d41f am: 6234e5a2fb
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3148096

Change-Id: I8606fde889c1378d23fd87a23522d558d1cf639b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-27 04:58:23 +00:00
Jason Chiu
6234e5a2fb Merge "Allow the background activity start from legacy suggestion cards" into main am: d78409d41f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3148096

Change-Id: If973cd5c6aa3d743fc7e764b8c59101311ad06ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-27 04:35:52 +00:00
Jason Chiu
d78409d41f Merge "Allow the background activity start from legacy suggestion cards" into main 2024-06-27 04:14:16 +00:00
Roy Chou
5d5392d48e Merge "chore(onefingerpan): update onefingerpan preference summary and magnification settings page footer description" into main 2024-06-27 01:11:31 +00:00
David Lin
15fad2a16f [automerger skipped] Merge "FaceEnrollIntro requires scroll for accessibility" into 24D1-dev am: 43d0dfdc5f -s ours
am skip reason: Merged-In Ia9f24ee658df96647fe953e84119d20270200011 with SHA-1 4b66abd921 is already in history

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

Change-Id: I046aa04827315ad8679b53561baa00c36574f1b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-27 01:09:12 +00:00
Joshua McCloskey
04ef48e495 [automerger skipped] FaceEnrollIntro requires scroll for accessibility am: 5434bb2a0f -s ours
am skip reason: Merged-In Ia9f24ee658df96647fe953e84119d20270200011 with SHA-1 4b66abd921 is already in history

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

Change-Id: I4623dc166f1e4dd7d705a6a4d2c0cb8f74fe5ae6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-27 01:09:08 +00:00
David Lin
43d0dfdc5f Merge "FaceEnrollIntro requires scroll for accessibility" into 24D1-dev 2024-06-27 00:51:14 +00:00
Lyn
60d3a11662 Bind action to fragment: adaptive notif settings
Bug: 330608738

Test: send high pri HUN => see edu HUN from sysui
      tap HUN/action => shows adaptive notif settings page,
                        notif menu key highlighted in split screen

Test: adb shell am start-activity -a android.settings.MANAGE_ADAPTIVE_NOTIFICATIONS

Flag: com.android.systemui.notification_avalanche_throttle_hun

Change-Id: I8bc36412b6ce6364887b04d737310e6b01478964
2024-06-26 22:55:24 +00:00
Joshua McCloskey
4a2a3c1279 Added flag to biometric environment
Test: Manually verified everything works with flag on/off
Bug: 346161718
Flag: com.android.settings.flags.fingerprint_v2_enrollment
Change-Id: Id08b2e876fad05db2b9a2be42126521e97515d5e
2024-06-26 22:53:12 +00:00
Treehugger Robot
2d94e186b9 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod am: d4fe5b213b -s ours
am skip reason: contains skip directive

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

Change-Id: Ifd9d1dce65439f2239c2c80f20ebd10b9079b738
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 21:35:55 +00:00
Bill Yi
b119b4867c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 0117f0587d -s ours
am skip reason: contains skip directive

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

Change-Id: Ia0c397017a6b648c4174e4f380db51482b8345c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 21:35:42 +00:00
Treehugger Robot
d4fe5b213b Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod 2024-06-26 21:17:07 +00:00
Bill Yi
5d6decda38 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-26 21:05:30 +00:00
Bill Yi
35af1e3df6 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-26 21:05:30 +00:00
Bill Yi
1174976e22 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-26 21:05:30 +00:00
David Anderson
d3e4daaa7c Merge "Allow overriding DeviceDiagnosticsPreferenceController." into main 2024-06-26 21:02:52 +00:00
Priyanka Advani
e200279002 Merge "Revert "Fix "Dock defend string and tips in settings are incorrectly" issue"" into main 2024-06-26 20:42:45 +00:00
Treehugger Robot
943a43d16b Merge "Removed redundant dependcy from build file" into main 2024-06-26 19:51:06 +00:00
Treehugger Robot
15d8b29ddb [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: a1129fdc72 -s ours
am skip reason: contains skip directive

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

Change-Id: I011c594be6e45652502ea5e2f2fc3fda7f8091fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:44:58 +00:00
Bill Yi
e774cac38f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a1928d2b29 -s ours
am skip reason: contains skip directive

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

Change-Id: Ic7432ea0252e97a2ac4d4a5b2c4082e484dc12e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:44:54 +00:00
Treehugger Robot
fcc4c945eb [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 62604c15c7 -s ours
am skip reason: contains skip directive

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

Change-Id: I566a07460dbd7675e5100faf22eafb28869702ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:44:50 +00:00
Bill Yi
a15ac0cfc1 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 2b31680efe -s ours
am skip reason: contains skip directive

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

Change-Id: I24ae7e96e6c4d1b73636297ea42bdde86b20b9ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:44:44 +00:00
Bill Yi
77a56d31cb [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: e908765fab -s ours
am skip reason: contains skip directive

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

Change-Id: I757d2cfd2377e8a42bd5a2bc56254e0c439af665
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:44:25 +00:00
Bill Yi
5653acd533 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a80e4c070b -s ours
am skip reason: contains skip directive

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

Change-Id: I4fb02558f2849d8de99333e0ed81ea545430d1a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-26 19:29:43 +00:00
Treehugger Robot
a1129fdc72 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-26 19:21:17 +00:00