Commit Graph

138731 Commits

Author SHA1 Message Date
Omer Ozer
392e4f1abe Disable nfc foreground setting ui when the wallet role
is enabled.

Bug: 315194263
Test: local
Change-Id: I495c6c62b841617cf7914703740d8b52f628fd45
2024-02-04 03:45:22 +00:00
Ze Li
b47d077dd0 Merge changes from topic "exclusive-manager" into main
* changes:
  [Hide DCK devices] Hide DCK devices from settings app (other devices section).
  [Hide DCK devices] Hide DCK devices from settings app (saved devices page).
2024-02-04 03:22:24 +00:00
Yiyi Shen
94e7399979 Merge "Fix CallsAndAlarmsPreferenceControllerTest" into main 2024-02-04 03:19:54 +00:00
YK Hung
d7ac64555d Merge "Fix failed test case for BatteryTip in Settings" into main 2024-02-04 02:13:34 +00:00
Lifu Tang
7a792e0b8f Restrict WifiScanModeActivity when user restriction applies
Bug: 299633613
Change-Id: If8cfb7047c0131da451a7af0d2b5108080876b85
2024-02-03 18:55:47 +00:00
Yiyi Shen
4e0315d2a3 Fix CallsAndAlarmsPreferenceControllerTest
Test: atest
Fix: 323634491
Change-Id: I627a3b6926c86f5e90dcfb27ed794ffb09aa4cfa
2024-02-03 21:53:16 +08:00
Jason Hsu
2eba5be9b4 Merge "Fix corss-link hearing device settings" into main 2024-02-03 09:57:04 +00:00
Pajace Chen
4af6ae88a4 Fix failed test case for BatteryTip in Settings
- Replace the deprecated mocktio rule with MockitoJUnit.rule
- Fix the failed test cases
- Update the testing convention

Bug: 323627875
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip
Change-Id: I25a39c8e7ad07482352c1e2152d8e16555429ab1
2024-02-03 17:24:42 +08:00
Chaohui Wang
213c998557 Use collectAsCallbackWithLifecycle
Instead of observeAsCallback, since isAllowed is a flow now.

Bug: 322916468
Test: manual - on Toggle Permission page and switch between apps
Test: unit test
Change-Id: Ic33a7d6cd7c71c7cf6cd4a6e353505fa12cf0046
2024-02-03 04:12:39 +00:00
Richard MacGregor
dc15244a5d Add developer option for screenshare protections
Add developer option that allows disabling screenshare protections to
allow for better bug reports and debugging.

Bug: 320757744
Bug: 316955558
Bug: 316954829
Flag: ACONFIG com.android.server.notification.sensitive_notification_app_protection DISABLED
Flag: ACONFIG com.android.server.notification.screenshare_notification_hiding DISABLED
Test: atest SensitiveContentProtectionPreferenceControllerTest
Change-Id: Ibcb9f886aa599fe2442e755653c49f44cfa1830f
2024-02-02 19:33:35 -08:00
Pajace Chen
32587dbdcf Merge changes from topics "low_battery_tip", "new_settings_card" into main
* changes:
  [BatteryTip] Implement new CardPreference to apply new style
  [BatteryTips] Separate the low battery tips
2024-02-03 01:45:21 +00:00
Daniel Norman
6c229865c9 Revert "Replace ShortcutType with UserShortcutType to reduce dup..."
Revert submission 25959129-chunkulin-replace-shortcutTypeConstant

Reason for revert: Reverting refactoring, to land after 24Q2 branches off of main. See b/323463488

Reverted changes: /q/submissionid:25959129-chunkulin-replace-shortcutTypeConstant

Change-Id: I323637727f4b642b3a6c626eae62bdaf0032eaf2
2024-02-03 00:23:15 +00:00
Becca Hughes
d8a82105e0 Merge "Fix settings flakiness bug" into main 2024-02-03 00:15:57 +00:00
Adam Bookatz
5eccc6327b Merge "Settings: Profiles inherit call restrictions" into main 2024-02-02 22:47:27 +00:00
Becca Hughes
7df4f0f4bd Fix settings flakiness bug
The flakiness was caused by mVisibility
being out of sync and resulting in the
preference being hidden / shown incorrectly.

Test: manual & unit tests
Bug: 322072349
Change-Id: I588da2100b8f2cea38f2bdb63af4e8d19d0efd0b
2024-02-02 22:43:30 +00:00
Aishwarya Mallampati
abf2a6ae52 Merge "Disable Wi-Fi calling roaming preferrence while using NTN." into main 2024-02-02 22:40:50 +00:00
Jacky Wang
b16781d2bc Merge "Support "Independent system keyboard haptics settings"" into main 2024-02-02 19:23:33 +00:00
Hao Dong
cdf34b66cb Merge "Show split screen dialog on the introduction and enrolling page." into main 2024-02-02 18:30:46 +00:00
Torne (Richard Coles)
80ef43e7be Use WebViewUpdateManager instead of raw AIDL.
Use the new IPC wrapper WebViewUpdateManager instead of directly
consuming IWebViewUpdateService.

Bug: 319292658
Test: m RunSettingsRoboTests
Change-Id: I75a3788aeac9757ce423454c4b6a2a63f5c4f4b2
2024-02-02 12:37:21 -05:00
Mark Kim
7adac0459c Use a separated flag for archiving feature in Settings
The new flag will replace the current PM-flag eventually, once they reach the same rollout status. Until then both flags are kept concurrently, to avoid a rollback of the feature.

This is done to reduce risk and potentially enable an isolated rollback
of Settings related logic, while keeping system logic intact.

Additionally, fix bug by replacing `System.getProperty("pm.archiving.enabled")` to `SystemProperties.getBoolean("pm.archiving.enabled", false)`

Test: InstalledAppCounterTest, AppButtonsTest, HibernationSwitchPreferenceTest
Bug: 323164382
Change-Id: I44a41d6a43a12134c4e3aa5df8ad6a9eb91758d4
2024-02-02 17:16:47 +00:00
Valentin Iftime
07695e0b29 Enable polite notifications by default for work profiles
Test: atest PoliteNotifWorkProfileToggleControllerTest
Bug: 323337417
Change-Id: I859b76156573e62c217c67522a0df601338ecee2
2024-02-02 17:17:25 +01:00
pajacechen
d171a8b946 [BatteryTip] Implement new CardPreference to apply new style
- Implement a new CardPreference to apply SettingsCard
- Apply CardPreference on battery tips

Bug: 315748218
Test: atest SettingsSpaUnitTests:com.android.settings.widget.CardPreferenceTest
Test: atest SettingsRoboTest:com.android.settings.fuelgauge
Change-Id: I9a57e7739275854278b2c586793af718b0680d23
2024-02-02 22:27:16 +08:00
pajacechen
5dd8460c3e [BatteryTips] Separate the low battery tips
Bug: 315748218
Test: atest SettingsRoboTestStub:com.android.settings.fuelgauge.batterytip.detectors.LowBatteryDetectorTest
Change-Id: Id973be37012da414d6125a4dd29ec4522ab80e95
2024-02-02 22:16:58 +08:00
Yiyi Shen
d8d977d442 Merge "[Audiosharing] Fix tests when flag is on." into main 2024-02-02 10:23:53 +00:00
Yiyi Shen
769f9ae45e [Audiosharing] Fix tests when flag is on.
Test: atest
Bug: 305620450
Change-Id: I85e8be4aef84a550bd4fe556848f3627b0f29fa6
2024-02-02 16:05:13 +08:00
Yiyi Shen
3b0d829152 Merge "[Audiosharing] Handle fallback device for calls and alarms." into main 2024-02-02 07:36:48 +00:00
Fan Wu
63a9d21e26 Merge "Remove redundant cast" into main 2024-02-02 06:43:24 +00:00
Aishwarya Mallampati
aab23344cb Disable Wi-Fi calling roaming preferrence while using NTN.
When phone is connected to non-terrestrial network, carrier can specify
whether to override Wi-Fi calling roaming mode or not using
KEY_OVERRIDE_WFC_ROAMING_MODE_WHILE_USING_NTN_BOOL.

If KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL is false,
and if KEY_NTN_EDITABLE_WFC_ROAMING_MODE_BOOL is true and
if KEY_OVERRIDE_WFC_ROAMING_MODE_WHILE_USING_NTN_BOOL is true, then
Wi-Fi calling roaming preferrence is disabled.

Bug: 318871716
Test: atest CarrierConfigManagerTest, atest ImsManagerTest,
atest WifiCallingSettingsForSubTest

Change-Id: I95bf5e6a0f11796e67bd7e6a2c12a331481f8187
2024-02-02 06:34:18 +00:00
Yiyi Shen
e96833943a [Audiosharing] Handle fallback device for calls and alarms.
Test: atest
Bug: 305620450
Change-Id: I1c7a49b6aed7d47b7fdbcc6b475b8e99edc52443
2024-02-02 13:32:50 +08:00
Joanne Chung
8541c6c4ef Merge "Allow uninstallation of current home app" into main 2024-02-02 05:02:50 +00:00
Fan Wu
148640e72d Remove redundant cast
Bug: 313569889
Test: atest
Change-Id: Idad218e3722f29063b6c357139f7120414dea09e
2024-02-02 02:35:53 +00:00
lpeter
b3e2179531 Allow uninstallation of current home app
Change the behavior to allow uninstallation of the current home app
if it is a non-system app and/or there are other candidate apps
available.

Bug: 131721576
Test: atest com.android.settings.applications.appinfo.AppButtonsPreferenceControllerTest
Test: atest com.android.settings.spa.app.appinfo.AppButtonRepositoryTest
Change-Id: I556966894240aaf91c0e6424dce514b6a35d1001
2024-02-01 23:57:15 +00:00
Aman Gupta
61649100c9 Updating strings as per the suggestion in b/318837875.
Change-Id: Ia5d9fd68ee009bad99344a6a31f7370f4edcbd54
Test: Manual
2024-02-01 21:19:45 +00:00
Beverly Tai
29c3b87546 Merge "Update fold setting illustrations" into main 2024-02-01 21:14:16 +00:00
Ahmad Khalil
92fb442d09 Merge "Fix notification vibration demos in settings" into main 2024-02-01 13:59:24 +00:00
Bill Yi
16462ab00f [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev am: dc549ff191 -s ours
am skip reason: contains skip directive

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

Change-Id: If9504c382bb0f73ff3411b9ef87cae0310a41e6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-01 13:53:53 +00:00
Bill Yi
d49fbdd697 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: e1a2a0f164 -s ours
am skip reason: contains skip directive

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

Change-Id: Ia9fd060f000f814b808e0ca93f965d16f4d64b54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-01 13:53:46 +00:00
Bill Yi
798751d4cd [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: e99d19cd85 -s ours
am skip reason: contains skip directive

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

Change-Id: I12b56068bb6d3e126a7328eb37a64a5c7e5eec72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-01 13:53:27 +00:00
Ze Li
b68ccb0d79 [Hide DCK devices] Hide DCK devices from settings app (other devices section).
Set preferences of DCK devices to be invisible in other devices section.

Test: atest: com.android.settings.bluetooth.ConnectedBluetoothDeviceUpdaterTest
Bug: 322285078
Change-Id: I13572250f6e1d6b1562a052a0c25e8af60eba9cd
2024-02-01 21:28:22 +08:00
Bill Yi
dc549ff191 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev 2024-02-01 13:20:30 +00:00
Ze Li
25128d1102 [Hide DCK devices] Hide DCK devices from settings app (saved devices page).
Set preferences of DCK devices to be invisible in saved devices page.

Test: atest: com.android.settings.bluetooth.SavedBluetoothDeviceUpdaterTest
Bug: 322285078
Change-Id: I9bd38c1866f469f3c0395b77f935f7eb143ec70c
2024-02-01 20:32:32 +08:00
Joseph Vincent
47abd1ba60 Merge "Add Private space Delete settings page inside PS settings page" into main 2024-02-01 10:12:14 +00:00
Hao Dong
c9aaa73b51 Show split screen dialog on the introduction and enrolling page.
Revert ag/22361082 and ag/22460413, show the split screen dialog on
the introduction and enrolling page, instead of relying on the callers
to show the dialog.

Test: atest BiometricsSplitScreenDialogTest
Test: atest FaceEnrollIntroductionTest
Test: atest SetupFingerprintEnrollIntroductionTest
Bug: 299573056

Change-Id: Ieb106a4a623ad5ca0e6eb1633413df75767bef52
2024-02-01 08:36:04 +00:00
Jason Chiu
901880a1d2 Replace getCallingActivity() with getLaunchedFromPackage()
getLaunchedFromPackage() reports who launched this Activity or built
PendingIntent used to launch it, whereas getCallingActivity() reports
who will get result of Activity.

Bug: 316891059
Test: robotest, manual
Change-Id: If97018c2741caef622f0596bbfeaa42ef1788b78
2024-02-01 14:35:59 +08:00
Adam Bookatz
84bc8a918d Settings: Profiles inherit call restrictions
Currently, if Settings applies CALLS or SMS restrictions to a user, that
restriction doesn't propogate to its child profiles. It should.

This is actually a no-op right now, since it's not possible to have a
profile on a user that isn't the Admin user anyway. But one day such a
thing may be allowed, so this implementation is more future-proof and
safer.

Test: Manual verification that applying the restriction continues to
work properly a full user
Test: UserDetailsSettingsTest
Bug: 261469887

Change-Id: Ib19cecbd37b6efc90f9655565295e7856427f049
2024-01-31 16:14:38 -08:00
SongFerng Wang
5fa73d14ab Merge "[Sim UI enhancement] remove the "Tap to show info"" into main 2024-01-31 19:53:35 +00:00
SongFerng Wang
35b3ad939c Merge "[Sim UI enhancement] MobileNetworkSettings UI enhancement" into main 2024-01-31 19:50:39 +00:00
josephpv
e1a2c82db3 Add Private space Delete settings page inside PS settings page
Contains implementation of settings page for Delete private space
controller inside private space settings page.
- On selecting to delete private space displays list of account signed in
to private profile and deletes the private space after authentication.
- Shows a toast message after private space is deleted

- Adds dependency for setupdesgin loading layout to show a loading
  screen while deletion of private space is in progress.

Recording Link : b/318383729
go/ss/4Aq3rmbSGHMHesK.png

Bug: 318383729
Test: atest DeletePrivateSpaceControllerTest

Change-Id: Ia1730915e2469b47823c507f9ef6cd8f63c99baf
2024-01-31 19:29:13 +00:00
Jacky Wang
2651a6ff69 Support "Independent system keyboard haptics settings"
Bug: 308387862
Change-Id: Iebb67a80859d08a059261a30dc64acef395f43a1
Test: manual test
2024-02-01 03:06:33 +08:00
Treehugger Robot
dfa229a1cb [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod am: 72df0d20a9 -s ours
am skip reason: contains skip directive

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

Change-Id: Iec65d1a0d79951e9040e1a26c0ae3b18a421cd3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 18:36:14 +00:00