Commit Graph

22161 Commits

Author SHA1 Message Date
Kevin Liu
1df39c3d5f Merge "Add strict_mode: false" into main 2024-05-28 20:09:07 +00:00
Julia Reynolds
a5a7c14b0f Merge "Add button for activating modes manually" into main 2024-05-28 20:08:25 +00:00
SongFerng Wang
b462f9fa11 Merge "The pages of sim onboarding flow is wrong." into main 2024-05-28 19:58:55 +00:00
David Jacobo
7b986e7e45 Merge "Revert "settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS"" into main 2024-05-28 19:38:10 +00:00
Lucas Silva
593ab5ee2d Merge "Fix CommunalPreferenceControllerTest" into main 2024-05-28 19:13:36 +00:00
Lucas Silva
8b13cd4b6d Fix CommunalPreferenceControllerTest
Migrate test to robolectric, as this test doesn't require a device to
run. This also speeds up the test, and allows for use of roboelectric
shadows.

Fixes: 337417918
Test: atest CommunalPreferenceControllerTest
Flag: EXEMPT fix broken test
Change-Id: I32b2760c98bf527b33a8ccbe46314395a03da1e0
2024-05-28 13:21:58 -04:00
Julia Reynolds
97b462dbf0 Add button for activating modes manually
Fixes: 308819907
Flag: android.app.modes_ui
Test: ZenModeButtonPreferenceControllerTest
Test: atest com.android.settings.notification.modes
Change-Id: Id018d360c648dd948d2f950ca67cfbea71cc5c68
2024-05-28 13:17:43 -04:00
Yining Liu
3e46f1f1c9 Merge changes I081a35c8,I8a84f688,I60b64a0c into main
* changes:
  Clean un-used code for notification cool down
  Add tests for updating Settings Page for Avalanche Suppression
  Update Settings Page for Avalanche Suppression
2024-05-28 15:55:14 +00:00
Treehugger Robot
0dca9f78c5 Merge "Fix Messages onClick." into main 2024-05-28 15:13:23 +00:00
Julia Reynolds
91c67cf728 Fix Messages onClick.
The state of the preference doesn't change until after we get the
callback.

Test: ZenModePrioritySendersPreferenceControllerTest
Flag: android.app.modes_ui
Fixes: 337079247
Change-Id: I1c98561de89e9398f26300bb14710f18991f78f4
2024-05-28 13:42:38 +00:00
Yiyi Shen
5ae060ac00 Merge "[Audiosharing] Update media devices section title in audio sharing" into main 2024-05-28 11:20:48 +00:00
songferngwang
98efa51681 The pages of sim onboarding flow is wrong.
Switch from SS mode to DSDS mode, the esim status will use the last
status. It causes the condition of page selection is wrong.

Bug: 342972402
Test: atest SimOnboardingPageProviderTest
Change-Id: I8bb0b5f2802ec24f10467bac179ce54d13a9755e
2024-05-28 08:47:23 +00:00
Treehugger Robot
9efdfafb9e Merge "Refer the SoftApCapability cache if getUsableChannels is unsupported" into main 2024-05-28 06:37:06 +00:00
Xinyi Mao
2550fb6dbf Merge "Revert "Fix atest build error in settings.fuelgauge."" into main 2024-05-28 05:27:41 +00:00
Xinyi Mao
d91809b752 Revert "Fix atest build error in settings.fuelgauge."
This reverts commit 3b962e3b9d.

Reason for revert: No need to update long -> int

Change-Id: I060b57c5b8c871ccc938ca84fe1aa916293acada
2024-05-28 05:15:43 +00:00
Weng Su
8d4eb82d95 Refer the SoftApCapability cache if getUsableChannels is unsupported
- Get SAP band capability from SoftApCapability#getSupportedChannelList

Bug: 272450463
Bug: 338503507
Bug: 340789513
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiHotspotRepositoryTest

Change-Id: I7b792c27bc3c41e78417032f797d57b030d6db72
2024-05-28 13:08:45 +08:00
Yiyi Shen
bce1511a75 [Audiosharing] Update media devices section title in audio sharing
Bug: 305620450
Test: atest
Change-Id: I2451fd11921270f624067d9655cc41b881910a92
2024-05-28 11:38:39 +08:00
Chaohui Wang
659e512b1c Merge "Fix CellDataPreferenceTest" into main 2024-05-28 02:21:30 +00:00
Chaohui Wang
a54a9756c0 Merge "Setup backup calling for new UI" into main 2024-05-27 09:03:01 +00:00
Chaohui Wang
49feaed3b7 Merge "Sort in slot selectable subscriptions first" into main 2024-05-27 09:02:40 +00:00
Treehugger Robot
75bfd43513 Merge "Fix atest build error in settings.fuelgauge." into main 2024-05-27 08:45:53 +00:00
Chaohui Wang
4520d1365f Fix CellDataPreferenceTest
Fix: 337417779
Test: unit test
Change-Id: I47ba4057a036e63809376a3a88c1a0b1e1767d0a
2024-05-27 16:26:53 +08:00
Yiyi Shen
43c971f621 Merge "[Audiosharing] Rename CallsAndAlarms components" into main 2024-05-27 07:50:33 +00:00
Chaohui Wang
a45efe1bbf Sort in slot selectable subscriptions first
Then the ones that not in slot.

Bug: 340361264
Test: manual - on SIMs
Test: unit test
Change-Id: If7150bd2fa5c1b7d42fe34ef2e814ba540454ed8
2024-05-27 07:39:38 +00:00
mxyyiyi
3b962e3b9d Fix atest build error in settings.fuelgauge.
Bug: 342963499
Fix: 342963499
Test: atest SettingsRoboTests:com.android.settings.fuelgauge
Change-Id: If34e7dd6af990dd4e678002e46c0e3794b9c0a61
2024-05-27 15:19:47 +08:00
Chaohui Wang
59a28a244c Setup backup calling for new UI
Backup calling new handles by CrossSimCallingViewModel.
CrossSimCallingViewModel keep monitoring the active SIMs, and setup
backup calling if needed.

Fix: 340444839
Test: manual - SIMs
Test: manual - Mobile Settings
Test: unit test
Change-Id: I0a3451f1e8c3984b2348cf628fb1d91ce7aaecec
2024-05-27 15:16:33 +08:00
Yiyi Shen
75572734b4 [Audiosharing] Rename CallsAndAlarms components
Bug: 305620450
Test: atest
Change-Id: I470bc3300fe385c6a2e03c4623204d58c697c89e
2024-05-27 11:44:24 +08:00
David Jacobo
1377be2323 Revert "settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS"
Revert submission 27019285-ACTION_NETWORK_PROVIDER_SETTINGS

Reason for revert: b/338527563 CL seems to be introducing jank for systemui tests somehow, reverting to get out of the way

Reverted changes: /q/submissionid:27019285-ACTION_NETWORK_PROVIDER_SETTINGS

Change-Id: I48bc0f4efc22dbff9f983b4606442b3ebd6d584c
2024-05-25 05:30:22 +00:00
Chaohui Wang
5b0211ea75 Merge "Check APN type is selected before save" into main 2024-05-25 03:47:22 +00:00
Joseph Vincent
5d062852c9 Merge "Face and fingerprint unlock strings for private space" into main 2024-05-25 01:29:35 +00:00
Yining Liu
3d0640985b Clean un-used code for notification cool down
Clean the un-used code for notification cool down.

Bug: 330606963
Test: PoliteNotificationGlobalPreferenceControllerTest
Flag: com.android.server.notification.polite_notifications
Change-Id: I081a35c8be8b9996fabb04b238cb426f0da2de58
2024-05-24 22:18:48 +00:00
Yining Liu
fae05be212 Add tests for updating Settings Page for Avalanche Suppression
Add unit tests for the updating of the Settings
Page for the Avalanche
visual and auditory Suppression.

Bug: 330606963
Test: PoliteNotificationGlobalPreferenceControllerTest, PoliteNotifWorkProfileToggleControllerTest
Flag: com.android.server.notification.polite_notifications
Change-Id: I8a84f688eb0b3981fbb0fdb699755b4601583702
2024-05-24 22:18:48 +00:00
Chaohui Wang
2faad6df6e Check APN type is selected before save
Not allow save APN without type.

Fix: 340969975
Test: manual - APN Settings
Test: unit test
Change-Id: I91f8e8137fc234c9c860fd446b7a1e2acfa11fc7
2024-05-24 14:58:42 +00:00
mxyyiyi
777418e178 Fix flaky test in BootBroadcastReceiverTest.
Bug: 342512308
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: Ia4542995137ddbec0740e1da7347bf535f62f849
2024-05-24 13:38:25 +08:00
josephpv
c5611bfbc1 Face and fingerprint unlock strings for private space
Recordings:
b/326399895#comment10

Bug: 326399895
Test: Manual
Change-Id: I9f4449439639c93a10475333a91059f855bce07b
2024-05-24 05:00:44 +00:00
Matías Hernández
1dc5bf026b Merge "Refactor preference controllers to receive and mutate ZenMode/ZenPolicy" into main 2024-05-24 00:01:46 +00:00
Matías Hernández
43d67b0080 Refactor preference controllers to receive and mutate ZenMode/ZenPolicy
Also fixed a handful of style issues / warnings along the way.

Fixes: 341950853
Fixes: 341910620
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: I65900941fcdf53824caf052fd0a24401c1bfb476
2024-05-23 20:29:06 +00:00
SongFerng Wang
392fb96dfc Merge "Add the Primary IMEI" into main 2024-05-23 19:20:32 +00:00
Joshua Mccloskey
dd88792a5b Merge "UDFPS Enrollment Refactor (6/N)" into main 2024-05-23 18:26:10 +00:00
Chaohui Wang
51dc721031 Merge "Refresh DataUsageSummaryPreferenceController" into main 2024-05-23 16:22:03 +00:00
Julia Reynolds
11b10202fe Merge "Add display and notif vis effects to new modes ui" into main 2024-05-23 13:32:56 +00:00
songferngwang
f42ec74abf Add the Primary IMEI
As per GSMA specification TS37, below Primary IMEI requirements are mandatory to support

-TS37_2.2_REQ_5
-TS37_2.2_REQ_8 (Attached the document has description about this test cases)
Bug: 341006304
Test: atest MobileNetworkImeiPreferenceControllerTest

Change-Id: I839440de7d2680d21832dce6d0d56db992796fca
2024-05-23 09:12:06 +00:00
Chaohui Wang
513ca3a808 Refresh DataUsageSummaryPreferenceController
When re-enter the page contains it.

Fix: 341234382
Test: manual - on Data usage
Test: unit test
Change-Id: Ib6a4624e11b60d703c35cea07232cc24f1516389
2024-05-23 16:50:54 +08:00
Julia Reynolds
4a84e58dba Add display and notif vis effects to new modes ui
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Fixes: 337087926
Fixes: 308820151
Change-Id: Id9cd9cc4b2d521713a2ba1d4581eb818ad0e5eee
2024-05-22 13:22:16 -04:00
Matías Hernández
52ac9410e8 Merge "Load app-provided mode icons asynchronously, and cache them" into main 2024-05-22 13:57:13 +00:00
Chelsea Hao
33add1b7ee Merge "[Audiosharing] Add tests." into main 2024-05-22 10:02:10 +00:00
Chaohui Wang
2237766fce Merge "Migrate to new ImsRegistrationCallback" into main 2024-05-22 09:40:26 +00:00
chelseahao
83ec0a30f3 [Audiosharing] Add tests.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I8fc458d37cc3456085e1017ca0e6ca86cdae1a9c
2024-05-22 16:39:50 +08:00
Chaohui Wang
162796b6fe Merge "Create AppForceStopRepository" into main 2024-05-22 05:53:39 +00:00
Chaohui Wang
fa0c8d4fd1 Migrate to new ImsRegistrationCallback
Migrate from deprecated api, and use new api as flow.

Bug: 337417520
Test: manual - on SIM status
Test: unit test
Change-Id: I8f938c0ccb6e3e61f8d4f6cb72c293f564351d52
2024-05-22 10:51:00 +08:00