Commit Graph

52676 Commits

Author SHA1 Message Date
Angela Wang
4972c58783 New hearing device pairing page: ignore bonded device
The device might still in advertising mode even if it's bonded. We can
just ignore this kind of devices in the scanning result.

Bug: 307890347
Test: manual test
Change-Id: I782cc62edd4fec779f5f55444425b32a77f85e5e
2024-02-07 10:22:24 +00:00
Angela Wang
3ca9ef8edc New hearing device pairing page: check gatt status
Checks the gatt status in `onConnectionStateChange()` and `onServiceDiscovered()` callbacks. Disconnects and removes the gatt from the `mConnectingGattList` if the gatt status is not success in these callbacks.

Bug: 307890347
Test: manual test
Change-Id: Iab09f13b2ff3d33e5c4d6a8710736307c26b17e7
2024-02-07 08:54:41 +00:00
Yiling Chuang
f709de6d27 Add a new tip type for wireless charging.
Bug: 316239566
Test: rebuild
Change-Id: Ib1a27375896a9ecd64f82f5a3744a0559e7fe2bd
2024-02-07 08:06:28 +00:00
Wesley Wang
ffcce1e7cf Add AOSP smart battery entries
- Revert "Cleanup smart battery entries (1/3)" patch only instead whole topic, updated part of codes to resolve the conflicts

This reverts commit 742e506d13.

Reason for revert: b/315401539

Bug: 315401539

Change-Id: I75a4e4f75b624c90aae18288c77214c0238e43eb
2024-02-07 07:29:48 +00:00
Zoey Chen
7dc497dfcc [ToA] Metrics in Settings
Bug: 323462103
Test: atest TermsOfAddressNotSpecifiedControllerTest
Test: atest TermsOfAddressNeutralControllerTest
Test: atest TermsOfAddressMasculineControllerTest
Test: atest TermsOfAddressFeminineControllerTest
Change-Id: I09c3ad4c92275ba48b810b1971a4e98e54e5136d
2024-02-07 05:46:16 +00:00
SongFerng Wang
5b716c2c6b Merge "SIM Onboarding flow completed" into main 2024-02-07 04:48:55 +00:00
Becca Hughes
3aa7212b26 Merge "Fix enterprise settings bug" into main 2024-02-06 22:35:07 +00:00
songferngwang
f1ea484425 SIM Onboarding flow completed
- Add the setup flow for switching sim and rename and setup primary sim
  items
- Add the bottom sheet and progress dialog.
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: build pass. Will upload another cl for testing

Change-Id: Ie9680f0a67afe453c1449c0f2b59e98fd627e215
2024-02-06 10:56:59 +00:00
Yiyi Shen
ac869a57ad Merge "[Audiosharing] Avoid dialog flickering for same bt device group." into main 2024-02-06 06:26:30 +00:00
Yiyi Shen
10bddfd334 [Audiosharing] Avoid dialog flickering for same bt device group.
Before this change, the dialog will dismiss and show up again if the
second bud of the same group is connected.

In this change, StopDialog and JoinDialog will only update the message
and event listener when the dialog is triggered by another device with the same group id or the new bt device with different group id. (No dismiss and show); DisconnectDialog will only dismiss and show again when a new bt device with different group id is connected and update the event listener when another device with the same group id connected.

Also dismiss the dialog when the triggering device disconnect or join
the sharing.

Test: atest
Bug: 305620450
Change-Id: I798812101cefb24185d76d56f78eae27712dd7a6
2024-02-06 11:52:58 +08:00
Chris Antol
9531458ca5 Merge "Multiple users yields a search result despite being disabled" into main 2024-02-05 20:36:03 +00:00
Omer Ozer
aed65c3423 Merge "Disable nfc foreground setting ui when the wallet role is enabled." into main 2024-02-05 19:44:48 +00:00
Becca Hughes
401ebcb53d Fix enterprise settings bug
This fixes a bug where the picker
is not using the correct user id
and also ensures that the settings
activity uses the correct user when
launched.

Test: flash & test w/ work profile
Bug 322071206

Change-Id: I846593ff9ae320d9bb774e3e79ed9ef41f101ff5
2024-02-05 10:58:09 -08:00
Richard MacGregor
9ed6467714 Merge "Add developer option for screenshare protections" into main 2024-02-05 18:34:50 +00:00
YK Hung
e1563ef347 Merge "Update the battery saver scheduler minimum level" into main 2024-02-05 16:33:19 +00:00
Mark Kim
6b64e92fc8 Merge "Use a separated flag for archiving feature in Settings" into main 2024-02-05 10:55:37 +00:00
Iavor-Valentin Iftime
fd83c37c8b Merge "Enable polite notifications by default for work profiles" into main 2024-02-05 10:28:28 +00:00
ykhung
b0fe225a17 Update the battery saver scheduler minimum level
Fix: 317069349
Test: make -j64 RunSettingsRoboTests
ROBOTEST_FILTER="com.android.settings.fuelgauge"

Change-Id: I398cd192609914841a55f110290915df8cd0e9eb
2024-02-05 17:58:37 +08:00
Chaohui Wang
0f120783bf Merge "Use AppOpsController for AlarmsAndReminders" into main 2024-02-05 08:14:25 +00:00
Daniel Norman
4ed106c909 Merge "Revert "Replace ShortcutType with UserShortcutType to reduce dup..."" into main 2024-02-05 02:56:49 +00:00
Chaohui Wang
0c630c348d Use AppOpsController for AlarmsAndReminders
Instead of AlarmsAndRemindersController, to always provide the correct
status.

Bug: 322916468
Test: manual - on Alarms & reminders page and switch between apps
Test: unit test
Change-Id: Ia428b426895f35e0d11c25c58dc89a06e564afe7
2024-02-04 07:11:45 +00:00
Lifu Tang
2f1943b267 Merge "Restrict WifiScanModeActivity when user restriction applies" into main 2024-02-04 06:55:41 +00:00
Chaohui Wang
2222ab9438 Merge "Use collectAsCallbackWithLifecycle" into main 2024-02-04 05:52:59 +00:00
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
Lifu Tang
7a792e0b8f Restrict WifiScanModeActivity when user restriction applies
Bug: 299633613
Change-Id: If8cfb7047c0131da451a7af0d2b5108080876b85
2024-02-03 18:55:47 +00:00
Jason Hsu
2eba5be9b4 Merge "Fix corss-link hearing device settings" into main 2024-02-03 09:57:04 +00: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
3b0d829152 Merge "[Audiosharing] Handle fallback device for calls and alarms." into main 2024-02-02 07:36:48 +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
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
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
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