Commit Graph

17775 Commits

Author SHA1 Message Date
Vlad Marica
e968a66489 Merge "Ignore OEM Unlocking when wiping PDB during factory reset on V+" into main 2024-05-29 16:23:18 +00:00
Alexander Roederer
4e10ac8dae Merge changes from topic "b308819928-ModesSettingsAppBreakthroughPage" into main
* changes:
  Moves ZenModeBypassingAppsSettings into modes dir
  Adds modes settings page for bypassing apps
2024-05-29 14:20:02 +00:00
Alexander Roederer
c50457613e Moves ZenModeBypassingAppsSettings into modes dir
Copies these files into modes dir, so we can continue to deprecate the
old zen directory

Bug: 308819928
Test: flash+test, atest ZenModeAllBypassingAppsPreferenceControllerTest,
atestZenModeAddBypassingAppsPreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Ib18930bb16a3d675e460028f5c52ef32060541ad

Change-Id: Id6c8d834bbd106fef068c5f04acf8cd71229a5e3
2024-05-29 12:23:59 +00:00
Edgar Wang
fc53dbe13b Merge "Fix homepage icon didn't hide in portriat mode" into main 2024-05-29 08:56:32 +00:00
Edgar Wang
fb30cb68cf Fix homepage icon didn't hide in portriat mode
- also fix don't tint homepage icons when homepage_revamp enabled

Bug: 343162224
Test: manual
Change-Id: I85b65239cb852cd914a5fd889ec366bf336fd446
2024-05-29 08:54:12 +00:00
Jason Chiu
5d44b3f0c8 Merge "Suppress rawData settings from indexing when page is disabled for search" into main 2024-05-29 03:51:38 +00:00
Alexander Roederer
c512046eb9 Adds modes settings page for bypassing apps
Adds the settings page that a user will reach from a mode settings page
when they tap on "App," to allow  them to select whether all, none, or
priority modes can break through and send notifications.

Bug: 308819928
Bug: 331267485
Flag: android.app.modes_ui DEVELOPMENT
Test: build and test, controller unit tests
Change-Id: I5bcebfca0fc2882f839afdced8d2b817dad14e6c
2024-05-28 22:12:27 +00:00
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
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
Jason Chiu
d1b0ad25fa Suppress rawData settings from indexing when page is disabled for search
Test: robotest, manual
Fix: 324424783
Change-Id: Ie8423d16df387f13cf35c03005640cfd08a5b492
2024-05-28 17:26:18 +08: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
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
a54a9756c0 Merge "Setup backup calling for new UI" into main 2024-05-27 09:03:01 +00:00
Treehugger Robot
75bfd43513 Merge "Fix atest build error in settings.fuelgauge." into main 2024-05-27 08:45:53 +00:00
Yiyi Shen
43c971f621 Merge "[Audiosharing] Rename CallsAndAlarms components" into main 2024-05-27 07:50:33 +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
Joseph Vincent
5d062852c9 Merge "Face and fingerprint unlock strings for private space" into main 2024-05-25 01:29:35 +00:00
Vlad Marica
31938e13d8 Ignore OEM Unlocking when wiping PDB during factory reset on V+
On Android V and newer, the PDB will no longer wipe itself on start,
even if OEM Unlocking is enabled, so trusted factory resets must
wipe it.

Bug: 336362291
Flag: EXEMPT bugfix
Test: atest & manual testing
Change-Id: I67cc0fc3e7470c5ddddd03d23942706345361f8f
2024-05-24 22:47: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
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
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
Julia Reynolds
11b10202fe Merge "Add display and notif vis effects to new modes ui" into main 2024-05-23 13:32:56 +00: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
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
Roy Chou
bc0758fa54 Merge "chore(magnification): cleanup flag usage of hide_magnification_always_on_toggle_when_window_mode_only" into main 2024-05-22 00:56:13 +00:00
Matías Hernández
90f60e5912 Load app-provided mode icons asynchronously, and cache them
Bug: 333528586
Bug: 308819461
Test: atest IconLoaderTest
Flag: android.app.modes_ui
Change-Id: I230d0a17bf21533dfca1f25d4806f9231105801b
2024-05-21 19:16:26 +00:00
Julia Reynolds
a24c7183d2 Merge "Migrate alarms and other interruptions to modes_ui" into main 2024-05-21 17:12:26 +00:00
Joshua Mccloskey
890eecf2e4 Merge "UDFPS Enrollment Refactor (5/N)" into main 2024-05-21 16:59:33 +00:00
Roy Chou
dc92a296b5 chore(magnification): cleanup flag usage of hide_magnification_always_on_toggle_when_window_mode_only
The bug-fix flag is already soaking in trunkfood full stage for a while.
Since there is no coming issues related to the fix, we can apply the fix
and remove the flag usage.

Bug: 341203230
Flag: NONE
Test: manually
      atest MagnificationAlwaysOnPreferenceControllerTest
Change-Id: I7e6ef8e03e7b7291d2faa15351669a91a50f59a5
2024-05-21 16:07:25 +00:00
Omer Ozer
81a2c38a98 Merge "Add get permissions flag to package info query in factory reset preference controller." into main 2024-05-21 16:04:41 +00:00
Julia Reynolds
3f2bcf973a Migrate alarms and other interruptions to modes_ui
Also add missing tests for repeat callers

Flag: android.app.modes_ui
Test: ZenModesSummaryHelperTest
Test: ZenModeOtherPreferenceControllerTest
Test: ZenModeOtherLinkPreferenceControllerTest
Bug: 337086854
Change-Id: Ie0a849de61c32b5f9feacae9a1bac457f9dd526c
2024-05-21 11:54:48 -04:00
Julia Reynolds
640ad978b8 Merge "Migrate people settings to new modes UI" into main 2024-05-21 13:28:37 +00:00
Roy Chou
575259e049 Merge changes Ife935485,Ic9b44d73,I44f7f058,I39868ac1,I05c59a76 into main
* changes:
  chore(magnification suw): hide joystick toggle in setup wizard
  chore(magnification suw): hide one finger pan toggle in setup wizard
  refactor(magnification suw): hide follow typing toggle in setup wizard
  chore(magnification suw): hide always on toggle in setup wizard
  chore(magnification suw): create MagnificationFeaturePreferenceController
2024-05-21 05:25:12 +00:00
Roy Chou
a511ddb75a chore(magnification suw): hide joystick toggle in setup wizard
Although we haven't implemented joystick feature, but the joystick
preference controller is already in the codebase, so we also add hiding
logic for joystick toggle when in setup wizard.

Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationJoystickPreferenceControllerTest
Change-Id: Ife93548583c3e82eac030e6e3aa55b9f643b055a
2024-05-21 03:37:37 +00:00
Roy Chou
f094c19d0a chore(magnification suw): hide one finger pan toggle in setup wizard
Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationOneFingerPanningPreferenceControllerTest
Change-Id: Ic9b44d73f75b47e6b97c5f4994b2e0b23bfb623b
2024-05-21 03:37:12 +00:00
Roy Chou
c9d3b39a62 refactor(magnification suw): hide follow typing toggle in setup wizard
Originally we cache mFollowingTypingSwitchPreference in fragment so in
ToggleScreenMagnificationPreferenceFragmentForSetupWizard we can set the
preference visible to false to hide it. After creating MagnificationFeaturePreferenceController,
the MagnificationFollowTypingPreferenceController can extend it and
check isInSetupWizard internally then dicide whether to hide. Therefore,
we don't need to cache mFollowingTypingSwitchPreference in fragment
and let the fragment control the preference visibility anymore.

Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationFollowTypingPreferenceControllerTest
      atest ToggleScreenMagnificationPreferenceFragmentForSetupWizardTest
      atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I44f7f0589b2df3d83a27139323fc68a0561f1cfa
2024-05-21 03:36:51 +00:00