Commit Graph

21569 Commits

Author SHA1 Message Date
Alice Kuo
fdbdc16285 Add BluetoothLeAudioModePreferenceControllerTest
Bug: 273153850
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioModePreferenceControllerTest
Change-Id: I967764848c953a9156981e121e924d5a18617d2f
2024-01-26 12:25:10 +00:00
Treehugger Robot
5fe4714851 Merge "Restrict WifiDialogActivity" into main 2024-01-26 10:56:00 +00:00
Weng Su
51fa3d798a Restrict WifiDialogActivity
- Don't show WifiDialogActivity if user has DISALLOW_ADD_WIFI_CONFIG

Fix: 299931761
Bug: 314867581
Flag: None
Test: manual test with TestDPC
atest -c SettingsRoboTests:WifiDialogActivityTest

Change-Id: Icbb8f45922ded163208976be9c2816060dcf09f1
2024-01-26 18:01:28 +08:00
Fan Wu
24045ade0c Merge "Fix ProfileSelectLocationFragmentTest" into main 2024-01-26 01:25:00 +00:00
Chaohui Wang
745c69b76a Make MoreOptionsScope abstract class
Bug: 321724969
Test: m Settings
Test: unit test
Merged-In: Iced9df83f600c86cc409abc040fb9ace0dcedf1e
Change-Id: Iced9df83f600c86cc409abc040fb9ace0dcedf1e
2024-01-25 20:22:45 +00:00
Yanting Yang
6e3428c75f Merge "Support dynamic search index for App pinning" into main 2024-01-25 15:01:38 +00:00
Yanting Yang
12b8d82376 Support dynamic search index for App pinning
Bug: 243899654
Test: manual & m RunSettingsRoboTests
Change-Id: I5ae5b604894c53e0e816f7a244104321e22c12de
2024-01-25 04:01:07 +00:00
Fan Wu
647c381848 Fix ProfileSelectLocationFragmentTest
The test environment is not properly setup

Bug: 313569889

Test: atest
Change-Id: I5424e998cc22bf7bbddff6f69bfc7c4e56ea870c
2024-01-25 10:49:07 +08:00
Treehugger Robot
3fc7f37c21 Merge "Adjust Settings tests to account for MODES_API" into main 2024-01-24 18:48:45 +00:00
Kyle Zhang
65f7a75f28 Merge "Add test ForceL3FallbackPreferenceControllerTest" into main 2024-01-24 18:21:23 +00:00
Matías Hernández
c16384c2aa Adjust Settings tests to account for MODES_API
Fixes: 322166166
Test: atest ZenModeBackendTest ZenModeSliceBuilderTest ZenOnboardingActivityTest
Change-Id: I5bfb2ce842c1b1784c6802638512da23fd21b0c8
2024-01-24 17:53:46 +00:00
SongFerng Wang
391f37f41d Renew the testcase for using new api setDataEnabledForReason
Bug: 318310357
Change-Id: Ia800ab2727747e5f2d979051a3ffd7fe4ce92ed9
Test: test the MobileDataSliceTest
2024-01-24 13:45:58 +00:00
Fan Wu
37d2c195c0 Merge "Fix PanelSlicesAdapterTest" into main 2024-01-24 12:09:47 +00:00
Ze Li
7ef6a7dd4d Merge "[Connected devices page] Reorder devices by most recently used." into main 2024-01-24 09:02:37 +00:00
Fan Wu
f38d9c8c64 Fix PanelSlicesAdapterTest
Slice is final so cannot be mocked or spied on

Bug: 313576125

Test: atest
Change-Id: I14d2268b710d7525676ee4a273826f4cb141b19d
2024-01-24 16:38:30 +08:00
Fan Wu
1bc36c88e9 Merge "Fix PlatformCompatDashboardTest" into main 2024-01-24 08:17:21 +00:00
Fan Wu
105afa4027 Merge "Ignore failing zen mode related tests to bring back green postsubmit" into main 2024-01-24 07:09:59 +00:00
Fan Wu
ea67ae2c51 Fix PlatformCompatDashboardTest
Bug: 313591873

Test: atest
Change-Id: Ib972f13ad194b78a32145e3879275125c43e8a3c
2024-01-24 15:00:35 +08:00
Fan Wu
b4318729ca Ignore failing zen mode related tests to bring back green postsubmit
Test: atest
Change-Id: Ibc7116400617b7ff8d34d4f0e767dd7bfc1609b4
2024-01-24 14:43:35 +08:00
SongFerngWang
533e045598 Using new API setDataEnabledForReason for setDataEnabled
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: atest MobileNetworkUtilsTest
Change-Id: I30b56247370ebaa5896bec3205ddce3e5c92c7d0
2024-01-24 04:46:53 +00:00
Fan Wu
96d8953e15 Merge "Updaing ShadowAccountManager to extending from official shadow library" into main 2024-01-24 03:52:17 +00:00
Kyle Zhang
bd942cf0d3 Add test ForceL3FallbackPreferenceControllerTest
Bug: 301669353
Test: atest -c ForceL3FallbackPreferenceControllerTest
Change-Id: I182388fa67ac408a2fcf16a6b9599d0971c895d0
2024-01-24 02:46:14 +00:00
Fan Wu
576acec126 Merge "Update ShadowSecureSettings to extend from robolectric library" into main 2024-01-24 02:44:28 +00:00
Ling Ma
704f8797ea Merge "Wrap subManager creation with createForAllProfiles" into main 2024-01-24 02:25:58 +00:00
Ling Ma
f6b93772c4 Merge "Wrap subManager creation with createForAllProfiles" into main 2024-01-24 02:25:45 +00:00
Chaohui Wang
c909b37221 Merge "Make MoreOptionsScope abstract class" into main 2024-01-23 23:31:28 +00:00
Ling Ma
b6e28eeda5 Merge "Wrap subManager creation with createForAllProfiles" into main 2024-01-23 18:03:11 +00:00
Anubhav Kakkar
1a2774e3d8 Add trunk flag check to prevent changing the special app access settings for 'Change media output' for direct intent based entry when trunk flag is not enabled.
Bug: 321905521
Test: Ensure trunk flag is disabled > Open app specific settings for 'Change media output' > Ensure that settings should not be changeable
Change-Id: Iedfd82d97eb49fc65c56d332bde815ff41e24736
2024-01-23 16:43:16 +00:00
Treehugger Robot
00f4225c2c Merge "Update ShadowStorageManager" into main 2024-01-23 16:23:31 +00:00
Pajace Chen
c10be7c186 Merge "Update string for incompatible charging" into main 2024-01-23 14:14:18 +00:00
Chaohui Wang
97d36b771a Make MoreOptionsScope abstract class
Bug: 321724969
Test: m Settings
Test: unit test
Change-Id: Iced9df83f600c86cc409abc040fb9ace0dcedf1e
2024-01-23 13:59:45 +00:00
Pajace Chen
b42074b6ae Merge "Delete DockDefenderTip and Detector" into main 2024-01-23 11:26:11 +00:00
Ze Li
41b12fe8eb [Connected devices page] Reorder devices by most recently used.
Order the saved bluetooth devices by most recently connected in connected devices settings page.

Test: atest: com.android.settings.connecteddevice.SavedDeviceGroupControllerTest, com.android.settings.connecteddevice.PreviouslyConnectedDevicePreferenceControllerTest
Bug: 306160434
Change-Id: Id5ad8555a026d775d96ada37f989b4346336af93
2024-01-23 08:14:29 +00:00
Treehugger Robot
b35f828bfa Merge "Try to fix event_id missing by changing battery anomaly tips card metrics log method." into main 2024-01-23 08:02:33 +00:00
Treehugger Robot
9df98ee6b3 Merge "Migrate battery optimization mode app list to SPA." into main 2024-01-23 07:53:52 +00:00
pajacechen
98a522c45c Delete DockDefenderTip and Detector
- remove dock defender
- remove unused string

Test: atest SettingsRoboTests
Bug: 315748218
Flag: NA
Change-Id: Ida4bb1d36a653d1787595212aac167d2f4dd3438
2024-01-23 15:26:53 +08:00
Zaiyue Xue
dbe4a08c51 Try to fix event_id missing by changing battery anomaly tips card metrics log method.
Bug: 321866714
Fix: 321866714
Test: presubmit
Change-Id: I56073913227af120033bec7f3ef983432459ba9a
2024-01-23 15:01:51 +08:00
mxyyiyi
8dccd6947f Migrate battery optimization mode app list to SPA.
Bug: 284033422
Bug: 304923046
Test: manual
Change-Id: I7549b8a95508500bce098b42da04036869431060
2024-01-23 14:54:20 +08:00
Weng Su
3d34250209 Merge "Fix Wi-Fi anonymous ID UI issue" into main 2024-01-23 04:13:12 +00:00
pajacechen
846be63c9c Update string for incompatible charging
Update string and icon for incompatibe charger settings banner tip

Dark theme: https://screenshot.googleplex.com/6fpK5z6PQ6yGnNU.png
Light theme: https://screenshot.googleplex.com/ASWf6CzF2f9Qfg8.png
Figma design: https://screenshot.googleplex.com/7yBoAW7jHxhHsEg.png

Bug: 315748218
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip.tips.IncompatibleChargerTipTest
Change-Id: I10498aaf820ab1c2123d80051f09b2f11560f33a
2024-01-23 01:40:47 +00:00
Weng Su
dd1947c078 Fix Wi-Fi anonymous ID UI issue
- Do not reset the anonymous default ID after retrieving the previous value from WifiConfiguration.

Fix: 267517525
Flag: None
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigController2Test

Change-Id: Ic10d6953f6657836e18eab6884df2af0f35a20c4
2024-01-23 06:44:46 +08:00
Ling Ma
ae8b9b5fe2 Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: I88e29b445a11f36e1a3db80368bb9e46ef06eac3
2024-01-22 22:14:08 +00:00
Ling Ma
63f74b8567 Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: I7dfb324d7e08fc4c845c44cd93e6ddf7d0368c1f
2024-01-22 22:02:00 +00:00
Treehugger Robot
b4e65e6e71 Merge "Fix ProfileSelectDialogTest" into main 2024-01-22 15:59:11 +00:00
Haijie Hong
a8ea8e0ed7 Merge "Add bluetooth profile toggle visibility checker" into main 2024-01-22 10:20:59 +00:00
Haijie Hong
82688cc1d3 Add bluetooth profile toggle visibility checker
Bug: 321178209
Test: atest BluetoothDetailsProfilesControllerTest
Change-Id: Ic6c040a5a500d51945893061623526271eba94c7
2024-01-22 17:32:09 +08:00
SongFerng Wang
4601261f81 Merge "Add the UI of dual sim onboarding" into main 2024-01-22 08:40:49 +00:00
Charlotte Lu
e5aff32142 Merge "Change apn type into ExposedDropdownMenuCheckBox" into main 2024-01-22 08:39:59 +00:00
Fan Wu
82d3e10530 Fix ProfileSelectDialogTest
Bug: 313569889

Test: atest
Change-Id: I7ac99c5c0021866aea3902f5d9377782633e6856
2024-01-22 16:21:50 +08:00
SongFerngWang
4713fd6baa Add the UI of dual sim onboarding
This is the first version.

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
atest SimOnboardingLabelSimTest
atest SimOnboardingPageProviderTest
atest SimOnboardingPrimarySimTest
atest SimOnboardingSelectSimTest

Change-Id: I195bd6b03ab0e881fdd67272c2476ef2b1fcd3ed
2024-01-22 07:47:51 +00:00