Commit Graph

21480 Commits

Author SHA1 Message Date
Fan Wu
6749a92c7e Merge "Ignore failing tests in PreviouslyConnectedDevicePreferenceControllerTest" into main 2024-01-29 03:14:22 +00:00
Fan Wu
872c7a0f31 Merge "Fix test failures under com.android.settings.dashboard" into main 2024-01-29 03:13:06 +00:00
Fan Wu
3636aa1d81 Merge "Fix LocationInjectedServicesPreferenceControllerTest" into main 2024-01-29 02:47:16 +00:00
Fan Wu
9b823d8a58 Ignore failing tests in PreviouslyConnectedDevicePreferenceControllerTest
Bug: 322712259

Test: atest
Change-Id: Ibeef417fcbdbf2eafea15acdc526de7f91919629
2024-01-29 10:27:47 +08:00
Fan Wu
4dd6e7e982 Fix test failures under com.android.settings.dashboard
Bug: 313569889

Test: atest
Change-Id: I44fc992be9a79681d97e573437761e379ecd1a0f
2024-01-29 10:18:12 +08:00
Chun-Ku Lin
1d1b9e451f Move the default shortcut types in a separate utility method.
Bug: 322701168
Test: atest
Flag: N/A (Strict mechanical refactors, no behavior change)
Change-Id: I1beb36e5aeeec0f303228b57baf034a000a72b75
2024-01-29 02:17:49 +00:00
Fan Wu
22540475e9 Fix LocationInjectedServicesPreferenceControllerTest
Bug: 313540388

Test: atest
Change-Id: I1e3839f17b52986ab482c068367b3ffac55638c5
2024-01-29 09:55:20 +08:00
Chun-Ku Lin
5a921fffb7 Merge "Save the user preferred shortcut on Edit A11yShortcut screen" into main 2024-01-28 11:17:10 +00:00
Chun-Ku Lin
f9ae13a73d Save the user preferred shortcut on Edit A11yShortcut screen
We saved the user preferred shortcut in the a11y feature's detail page.
Since now the Edit A11yShortcut screen is a standalone screen, we might
want to keep the existing behavior to update the user preferred shortcut
types when the edit screen is shown or when the shortcut settings are
updated.

Bug: 300302098
Test: atest
Test: manual
    - Go to an a11y feature page and open the Edit shortcut screen
    - Remove all selected shortcut option
    - Select volume key shortcut option, and deselect volume key
      shortcut option
    - Go to home page and close the Settings app
    - Go to the same a11y feature page and click on the shortcut toggle
    - Expect the volume key shortcut is turned on
Flag: ACONFIG
com.android.settings.accessibility.edit_shortcuts_in_full_screen
TRUNKFOOD

Change-Id: I2c92ec56d6e45317406f3a4b8ef8f076c398df7f
2024-01-28 00:21:31 +00:00
Hakjun Choi
833714434a Remove unnecessary term 'all' from the API name
getAllSatellitePlmnsForCarrier > getSatellitePlmnsForCarrier
The word 'all' is unnecessary here, it's already implied by PLMN being a plural.

Bug: 320462244
Test: atest SatelliteManagerTet, NetworkSelectSettingsTest
Change-Id: Idb6439176be55a787f27f298c211deef6900c7f9
2024-01-27 20:56:41 +00:00
jasonwshsu
917682603c Fix corss-link hearing device settings
Root Cause: There are two device details entries in Connected devices and Hearing devices page which can both go to the same page, it will have the endless loop problem.

Solution: Only show hearing device settings comes from Connected devices page.

Bug: 320709814
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDeviceDetailsFragmentTest
Change-Id: I26941d0d16ab3bb0df0cb2c481c25c6c41340261
2024-01-28 01:01:41 +08:00
Fan Wu
4fd3d8d4e6 Merge "Fix WifiDialogActivityTest legacy issue" into main 2024-01-27 02:13:44 +00:00
Alice Kuo
8eb26342de Merge changes I96776484,Ic2ea10d9 into main
* changes:
  Add BluetoothLeAudioModePreferenceControllerTest
  Change the switcher to switch LE audio mode with broadcast
2024-01-26 23:34:28 +00:00
Weng Su
5510f605ce Fix WifiDialogActivityTest legacy issue
- Add @LooperMode(LooperMode.Mode.LEGACY) to fix loop issue.

Bug: 314867581
Flag: None
Test: unit test
atest -c SettingsRoboTests

Change-Id: Ib1676a8502005870e9944fc654801916fe1bb945
2024-01-27 00:09:54 +08:00
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
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