Commit Graph

22097 Commits

Author SHA1 Message Date
Manish Singh
50b5bae531 Don't send data for non-main users
This is a regression caused by ag/26661827

Fix: 333872544
Test: manual
Test: atest PrivateSpaceSafetySourceTest
Change-Id: I0465899af3745fa39eab8806dbceb347d70b0aa3
2024-04-25 12:23:40 +00:00
Angela Wang
93f4595b4e Merge "Update string resource for HA summary" into main 2024-04-25 12:11:26 +00:00
Joseph Vincent
19d7d5be78 Merge "Mock LockPatternUtils.isSecure() method in test setup" into main 2024-04-25 11:53:15 +00:00
josephpv
6655fcd04e Mock LockPatternUtils.isSecure() method in test setup
Added mockd for LockPatternUtils class in test setup as per the comment
in b/323649600#comment7 to handle for the test failure bug.
The tests are passing locally without this.

Bug: 336518132
Test: atest com.android.settings.privatespace
Change-Id: Ie042bb7dd6edefef094d3b658946ff6eaaa6f801
2024-04-25 10:13:35 +00:00
Manish Singh
544fa52e1a Merge "Don't show uninstall for all users" into main 2024-04-25 09:30:05 +00:00
Angela Wang
14a708a2ad Update string resource for HA summary
Update the message format to align with existing pattern.

Bug: 333912856
Bug: 307705966
Test: atest AccessibilityHearingAidPreferenceControllerTest
Change-Id: Ib8b38e6dc0df732c16f976911597076f6f92ed25
2024-04-25 07:55:34 +00:00
Chaohui Wang
446e0a18d1 Refresh the preferred APN after "Reset to default"
Previously, ApnSettings will updated the preferred APN selection when
data connection changes, but this is not the source of truth.

Observe the preferred APN directly to fix.

Fix: 257316932
Test: manual - on ApnSettings
Test: unit test
Change-Id: Ie323316ab8f7fa63edf5cf90633bcdd4486728c4
2024-04-25 11:14:21 +08:00
Ivan Chiang
6afb9ece62 Add the different summary for the app store details
When the initiating package is different from the installing package,
show the different summary. E.g WebApk

Test: atest AppInstallerInfoPreferenceTest
Bug: 329140383
Change-Id: Icd5559bce06c059844269d70926b3c0b39589edb
2024-04-25 02:41:33 +00:00
Rafael Higuera Silva
36d99e8b09 Extract and fix logic for showing rac dialog.
Added tests to make sure the logic makes sense.

Bug: 335745726
Test: make, manual, atest SubscriptionUtilRoboTest, atest SubscriptionUtilTest, atest ResetNetworkTest
Change-Id: I7092f2747f1ca1f9ef4dc99275a916b9e24d8b28
2024-04-25 01:34:47 +00:00
David Jacobo
240b32fa91 settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS
This CL makes use of the newly introduced action for
NETWORK_PROVIDER_SETTINGS.

Bug: None
Test: atest -c ProviderModelSliceTest
Change-Id: Ie0ccde2f49502a634801401e1b33f1d4b9c7d728
2024-04-24 17:08:42 -07:00
Thomas Nguyen
f6f2f6135d Disable SIM On/Off operation when device is in a Satellite session am: c6005fb22a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27073216

Change-Id: I529d0a86739891873c205b3ff9eff065e50ed201
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 21:56:40 +00:00
Jeff DeCew
1d4d5343cc Remove redundant call to SetFlagsRule.initAllFlagsToReleaseConfigDefault()
Change-Id: I1b628f9430cfdd4b1c12deb7e8f4345658f05ca8
Test: atest
Bug: 336802415
Flag: none
2024-04-24 16:56:31 +00:00
Thomas Nguyen
c6005fb22a Disable SIM On/Off operation when device is in a Satellite session
Bug: 330585109
Test: SatelliteManagerTestOnMockService SatelliteSessionControllerTest SatelliteControllerTest
Manual test with demo and real mode

Change-Id: Iade6426981f76a0b9b71828e0c86d3088c3e974e
2024-04-24 16:35:13 +00:00
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
Treehugger Robot
3d435c7283 Merge "Fix failure in BiometricsSafetySourceTest" into main 2024-04-24 08:35:59 +00: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
Manish Singh
9229860d60 Don't show uninstall for all users
when the only profiles that have the package are hidden in quiet mode

Fix: 334041279
Test: atest AppInfoSettingsMoreOptionsTest
Test: manual
Change-Id: Ic8e594eb1db5bed926783a244a24e24c4435f04e
2024-04-23 16:54:09 +00:00
YK Hung
7cfa402cf9 Merge "Remove redundant battery usage slot in database." into main 2024-04-23 16:13:50 +00:00
YK Hung
ed1789a0d3 Merge "Fix AppBatteryPreferenceTest flaky" into main 2024-04-23 16:13:06 +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
Elliot Sisteron
4fffb3ad64 Fix failure in BiometricsSafetySourceTest
Bug: 335886401
Change-Id: I07ce2a1f3b4938348c93208a35b1407960617917
Test: atest BiometricsSafetySourceTest
2024-04-23 10:57:47 +00:00
Chaohui Wang
23c66d1278 Fix AppBatteryPreferenceTest flaky
Bug: 335887683
Test: unit test
Change-Id: I5a1753835d2d47712ea249081c9a77c455eb3291
2024-04-23 17:53:25 +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
Elliot Sisteron
365c16b217 Reset SafetyCenterManagerWrapper instance between tests.
This is because some other tests may set a mock on this static value, which will persist across test cases (whereas in this test we want to test the real thing).

Bug: 335557039
Change-Id: I14fc81922761159241636c78dbd47fce7bfeb533
Test: atest SafetyCenterManagerWrapperTest
2024-04-22 14:49:57 +00: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
Chaohui Wang
2ecc77ef08 Merge "Create AppDataUsageSummaryController" into main 2024-04-22 08:30:19 +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
ea89a3cb1d Not include user input in regex am: 4f5920c3f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27048156

Change-Id: I2a3740b52b65ff650f309aa62a42e57f9ba8dffb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 06:34:24 +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
Chaohui Wang
4f5920c3f5 Not include user input in regex
Check prefix and remove prefix first, to avoid include user input in
the regex to fix.

Fix: 335136289
Test: manual - on SIMs
Test: unit test
Change-Id: Iff4dcfc3662c744d00b586d05e64b4f5fe33a0d8
2024-04-22 04:56:57 +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
Varun Shah
74668d1e7e Merge "Remove RUN_BACKUP_JOBS special app access page." into main 2024-04-19 17:41:28 +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
Becca Hughes
862e71b73d Merge "Fix bug where empty section is sometimes shown" into main 2024-04-18 22:08:29 +00:00
Becca Hughes
1c3fb49913 Fix bug where empty section is sometimes shown
There is a bug where the empty section is
sometimes shown for additional providers. This
is because the logic for calculating the
visibility gets the providers and then the
logic for displaying the list gets the providers
and can result in getting out of sync. This aligns
both sets of logic to use the same data.

Test: ondevice & unit
Bug: 330163369
Change-Id: Icf71c78d67d55c929476f8e699d5893e60a49776
2024-04-18 19:52:15 +00:00
Chun-Ku Lin
0245c465b9 Merge "Update footer text whenever the ScreenPinningSettings is shown" into main 2024-04-18 17:25:17 +00:00