Commit Graph

17609 Commits

Author SHA1 Message Date
Matías Hernández
7cfc461e63 Merge "Add support for rules with filter=ALL in ZenModesBackend" into main 2024-04-24 12:02:41 +00:00
Matías Hernández
3819299a08 Add support for rules with filter=ALL in ZenModesBackend
This is represented as an extra, special value for the AllowChannels field in ZenPolicy, with special treatment.

Bug: 327419222
Bug: 331267485
Test: atest ZenModeTest
Flag: android.app.modes_ui
Change-Id: I44440e40e729d295150b36beda824ddbfa1f170d
2024-04-24 12:07:20 +02:00
Paulz Chen
a2187ca756 Merge "Reland add FeatureProvider for SyncAcrossDevices Settings integration." into main 2024-04-24 02:27:31 +00:00
paulzhchen
5f391359e3 Reland add FeatureProvider for SyncAcrossDevices Settings integration.
Prior CL ag/26930404 was reverted because an unused class was
trimmed in AOSP, causing test cases to throw NoClassDefFoundError
exceptions. This CL combines ag/26930404 and ag/26995936 to address
the failure.

Bug: 330498032
Test: atest FakeFeatureFactory, atest SyncAcrossDevicesPreferenceControllerTest
Change-Id: I0a7ebccdebcad20e06d7542d7c4a0005885f393b
2024-04-24 02:02:35 +00:00
YK Hung
7cfa402cf9 Merge "Remove redundant battery usage slot in database." into main 2024-04-23 16:13:50 +00:00
mxyyiyi
740f348265 Remove redundant battery usage slot in database.
Bug: 336423923
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I1b2d172a42a20a8cc8dc734498e37ed92e4624dd
2024-04-23 18:59:24 +08:00
Pechetty Sravani
dbb7d1772b Merge "Revert "Add FeatureProvider for SyncAcrossDevices Settings integ..."" into main 2024-04-23 09:12:48 +00:00
Pechetty Sravani
ea26f2d729 Revert "Add FeatureProvider for SyncAcrossDevices Settings integ..."
Revert submission 26930404-syncacrossdevices

Reason for revert: Potential culprit for b/336431732- 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: /q/submissionid:26930404-syncacrossdevices

Change-Id: I9da0de82978fa6984a4636e0c9ccc891d9287fd2
2024-04-23 07:43:47 +00:00
Yiling Chuang
1aa4bcf17d Clean up on the charging remaining time label for WLC.
Bug: 336204618
Test: robotests
Change-Id: Ic2c9d653f8bd9ec25383319766256162d81424c2
2024-04-23 03:36:06 +00:00
Yiling Chuang
ce51f659df Merge "Customize the remaining time label during wireless charging." into main 2024-04-23 02:40:06 +00:00
Paulz Chen
319245cdbe Merge "Add FeatureProvider for SyncAcrossDevices Settings integration." into main 2024-04-22 23:52:23 +00:00
Yuri Lin
9dbd8ddffe Merge "Add info on whether the rule is active to ZenMode" into main 2024-04-22 16:20:38 +00:00
Yuri Lin
af82199317 Add info on whether the rule is active to ZenMode
modifying the corresponding methods on ZenModesBackend to collect that information from NotificationManager.

Bug: 327419222
Test: ZenModesBackendTest, ZenModeTest
Change-Id: I01cb0ffa21a7fecaa5128cec51ced3eff384f370
2024-04-22 10:57:32 -04:00
Yiling Chuang
901a46c93e Customize the remaining time label during wireless charging.
Bug: 336204618
Test: robotests
Change-Id: Ic7025f219ee09fba0922ac183daa891e7b63b673
2024-04-22 10:14:13 +00:00
paulzhchen
132e7341ea Add FeatureProvider for SyncAcrossDevices Settings integration.
Bug: 330498032
Test: FakeFeatureFactory
Change-Id: Iccf7ca4411a03d29e9eeba6c1544ccbd95b97654
2024-04-22 06:58:31 +00:00
Chaohui Wang
07335514c4 Create AppDataUsageSummaryController
Content description for usage will be added later.

Bug: 318780411
Test: manual - on AppDataUsage
Test: unit test
Change-Id: I3990218395dfd7553554346ea8ef00368ba57589
2024-04-22 04:58:49 +00:00
Chun-Ku Lin
5b08a3d7ce Make QS shortcut as the default shortcut type only if it's an a11y tool
Bug: 333602196
Test: atest ToggleAccessibilityServicePreferenceFragmentTest
Flag: android.view.accessibility.a11y_qs_shortcut aconfig Nextfood
Change-Id: I108e8ab127bcae545b92166a0147f5fee89f9e94
2024-04-19 23:20:16 +00:00
YK Hung
491cb8fbe1 Merge "Add content description string for '<1%'." into main 2024-04-19 12:04:41 +00:00
YK Hung
e57842bd40 Merge "Help talkback to read the hyphen of time frame '{day}{time}-{time}'" into main 2024-04-19 11:57:55 +00:00
Treehugger Robot
b5f7d62bbd Merge "Log optimization mode for app usage in BatteryUsageSlot." into main 2024-04-19 10:07:56 +00:00
Haijie Hong
724af770b7 Merge "Hide LeAudio toggle for LeAudio-only device" into main 2024-04-19 08:07:39 +00:00
mxyyiyi
6853021975 Add content description string for '<1%'.
Bug: 322855583
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I704a591ab4cba21644e86457c2dd1000ceecc291
2024-04-19 12:21:55 +08:00
mxyyiyi
3950632041 Help talkback to read the hyphen of time frame '{day}{time}-{time}'
Talkback Hover: https://screenshot.googleplex.com/6Z5KMhXRPRWrqh9
Talkback Click: https://screenshot.googleplex.com/5iYVWXE95rgH98D

Bug: 322855775
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I54b78e9e29c67d514c0346ddae8331450bf53f01
2024-04-19 12:18:57 +08:00
mxyyiyi
08d4b7a2ae Log optimization mode for app usage in BatteryUsageSlot.
Bug: 335374932
Test: atest ConvertUtilsTest
Change-Id: Icf86b9bee58b3b70d99e166d9fce0dfd7e30dea3
2024-04-19 10:58:15 +08:00
Chun-Ku Lin
0245c465b9 Merge "Update footer text whenever the ScreenPinningSettings is shown" into main 2024-04-18 17:25:17 +00:00
Roy Chou
39e42bf97a Merge "feat(onefingerpan): hide the one finger pan settings when window mode only" into main 2024-04-18 03:07:04 +00:00
Amith Yamasani
83da3f0041 Merge "Call noteAppRestrictionChanged when toggling restrictions/exemptions" into main 2024-04-18 01:47:35 +00:00
Matías Hernández
fb0e00e3eb Merge "Introduce ZenModesBackend and ZenMode" into main 2024-04-17 08:59:48 +00:00
Haijie Hong
0307bbfb1f Hide LeAudio toggle for LeAudio-only device
Bug: 333827147
Test: atest BluetoothDetailsProfilesControllerTest
Change-Id: Ie446d8866fb51972795b66aac2db84703ef51b84
2024-04-17 16:12:42 +08:00
Chun-Ku Lin
247476bab7 Update footer text whenever the ScreenPinningSettings is shown
Bug: 333029993
Test: atest ScreenPinningSettings
Test: manual
Flag: EXEMPT low risk bug fix
Change-Id: Ia14a50fcc81d672732b78c523968a5921cae65b1
2024-04-17 05:34:59 +00:00
Amith Yamasani
7676217e4d Call noteAppRestrictionChanged when toggling restrictions/exemptions
This is to log the reasons for restriction level change and force stop

Bug: 333882527
Test: statsd_testdrive 863
      Toggle battery restrictions manually for an app and verify logging
      of reason
      atest BatteryOptimizeUtilsTest
Change-Id: Ifcc99efc1b6acc5a992f7d952967210b07319f2e
2024-04-16 21:58:40 -07:00
YK Hung
84050edcdd Merge "Update wireless charging string" into main 2024-04-17 04:47:38 +00:00
Yiling Chuang
37a35d5833 Update wireless charging string
Add a capability to provide different strings during wireless charging.

Bug: 316239566
Test: robotests
Change-Id: Ic7c70ae33ae951dfe931995e5ab0d478222d57c9
2024-04-17 03:22:38 +00:00
Jason Chiu
fd8c705af9 Merge "Restart or finish HomepageActivity when it's launched unexpectedly" into main 2024-04-17 01:37:23 +00:00
Jason Chiu
b0c011e077 Restart or finish HomepageActivity when it's launched unexpectedly
Settings homepage should be started with the flag FLAG_ACTIVITY_NEW_TASK
to ensure it's the first activity in a task. Otherwise, there will be UI
issues.

When homepage is started with FLAG_ACTIVITY_NEW_TASK but not the first
activity, it means another homepage activity has been started, so
finishing the current invocation will bring up the previous activity in
the task.

On the other hand, when homapage is not started with the flag and not
the first activty, it indicates that the invocation is from another
app. Restarting the homepage activity with FLAG_ACTIVITY_NEW_TASK will
keep the UI behavior consistent.

Fix: 297857732
Fix: 309045575
Test: robotest, manual
  1. Start Settings from QuickSettings, go to any subpage, navigate to
     home, click Settings icon on the launcher, and the previously
     opened page should be kept.
  2. On a LS device, start Settings from another app without
     FLAG_ACTIVITY_NEW_TASK, Settings should be started in dual-pane
     mode.
Change-Id: If1f31e26dc37f681bd97c185cbeac2de06bdd48f
2024-04-17 01:33:04 +00:00
Samuel Huang
8782bd4fdc Merge "Disable SIM On/Off operation when device is in Satellite Enabled Mode" into main 2024-04-16 09:54:41 +00:00
Matías Hernández
59c6a66f5c Introduce ZenModesBackend and ZenMode
Test: atest ZenModesBackendTest ZenModeTest
Bug: 327419222
Change-Id: Ic2871a6124b2df4b77275b54a940f7b47666991c
2024-04-16 11:21:37 +02:00
shaoweishen
90e70b15d7 [Physical Keyboard] Clean up old ui and flag
Change-Id: I9423d0e9debcef37338e5733aab56b98920621e3

Test: n/a
Bug: 330517633
Change-Id: I485848f67e0eb3ab207413a6ed8f7de809f80c5c
2024-04-16 05:21:30 +00:00
Fan Wu
3a1252ebcc Merge "Remove two usages of LooperMode.LEGACY" into main 2024-04-16 03:05:43 +00:00
Fan Wu
b385dbca33 Merge "Bluetooth Codec Settings: Assure flag enabled" into main 2024-04-16 01:27:55 +00:00
Pajace Chen
30a03c4ee8 Merge "Fix "Free up space" not clickable issue" into main 2024-04-15 13:15:16 +00:00
Samuel Huang
cbf5154291 Disable SIM On/Off operation when device is in Satellite Enabled Mode
Bug: 315928920
Test: atest, manual
Change-Id: I7aaaf43b4c449129197e7cc92565d274ffdd2d8c
2024-04-15 12:31:17 +00:00
pajacechen
e5d99fa93d Fix "Free up space" not clickable issue
- Adding CardPreference.java back for "Free up space" item
- Rename CardPreference.kt to TipCardPreference.kt

Bug: 333016642
Test: http://ab/I85800010265092964
Change-Id: I36062703b7ab5c21083459616234e3a86500719b
2024-04-15 19:45:17 +08:00
Jakub Rotkiewicz
14ea291d2a Bluetooth Codec Settings: Assure flag enabled
Assure flag a2dpOffloadCodecExtensibilitySettings is enabled before
calling BluetoothA2dp API.

Bug: 331612641
Tag: #feature
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.AbstractBluetoothListPreferenceController
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.BluetoothCodecListPreferenceControllerTest
Change-Id: Iac33a6c95a544230e034807b320c80a727ade307
2024-04-15 10:43:23 +00:00
Zaiyue Xue
1ee693f0ed Support tips card directly changing settings [step-5]
Support clicking tips card directly changing settings.

Bug: 333989261
Test: manual
Change-Id: Idc485ee7430edff7f6d7265caf8d9d5cf97548b6
2024-04-15 17:39:43 +08:00
mxyyiyi
4fe887e908 Fix failed test in BatteryTipsCardPreferenceTest.
Fix: 313582999
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage.BatteryTipsCardPreferenceTest
Change-Id: I31e4073332872df521cbc6811dae5e4b067e6ffa
2024-04-15 16:19:00 +08:00
Roy Chou
acf98a6a4a feat(onefingerpan): hide the one finger pan settings when window mode only
Like MagnificationAlwaysOn toggle behavior, when the magnification
capability is window-mode only we'll hide the OneFingerPan toggle too.

Also do a small refactoring in MagnificationOneFingerPanningPreferenceControllerTest

Bug: 333821725
Flag: ACONFIG com.android.server.accessibility.enable_magnification_one_finger_panning_gesture TEAMFOOD
Test: manually
      atest MagnificationOneFingerPanningPreferenceControllerTest
      atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I8684b5bae5cbfc5b75fc4c14d2e9173b17d0fb02
2024-04-15 07:16:57 +00:00
Chun-Ku Lin
e24b145d48 Merge "[Flag cleanup] remove separate_accessibility_vibration_settings_fragments" into main 2024-04-12 18:10:11 +00:00
Manish Singh
341595b792 Merge "Fix location services for all profiles" into main 2024-04-12 18:00:17 +00:00
Fan Wu
ad61db703f Remove two usages of LooperMode.LEGACY
Bug: 330824314

Test: atest
Change-Id: I77c18520cd8b6f9b394ef04ee46e870e70ee1f8b
2024-04-12 07:14:25 +00:00