Commit Graph

21554 Commits

Author SHA1 Message Date
FanWu
1bb01ff055 Ignore failing tests under com.android.settings.wifi
Bug: 314867581

Test: not needed
Change-Id: Id721c8a91baa54c746aba007dd40a086276953e8
2023-12-05 12:01:30 +08:00
Chaohui Wang
6adf1bad31 Let SpaBridgeActivity support HIGHLIGHT_MENU_KEY
Also the SpaAppBridgeActivity.

Could be tested by,
adb shell am start -n com.android.settings/.ManageFullScreenIntent

adb shell am start \
  -a android.settings.MANAGE_APP_USE_FULL_SCREEN_INTENT \
  -d package:com.android.settings

adb shell am start -n com.android.settings/.UsageStatsActivity

Bug: 309075424
Test: manual - on tablet
Test: unit test
Change-Id: I778443e9d21d165904e415c66c03aafc7ac81372
2023-12-05 11:43:31 +08:00
Vlad Popa
e71281cfc7 Merge "Disable the Bt categorization list when audio type is known" into main 2023-12-05 03:33:36 +00:00
Hyundo Moon
1793200795 Merge "Fix failing BluetoothPermissionActivityTest" into main 2023-12-05 02:57:25 +00:00
Tyler Freeman
e0f10d3fe2 feat(force invert): add force invert Settings preference in A11y > Color and Motion
Bug: 312289375
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ColorAndMotionFragmentTest.java
  && atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ToggleForceInvertPreferenceControllerTest.java
Flag: android.view.accessibility.Flags.forceInvertColor

Change-Id: I2739a1dfecbbddcd240a3113344987ade2b7c717
2023-12-04 14:12:43 -08:00
Santiago Seifert
77c2a331fb Merge "Show the output switcher when no media is playing" into main 2023-12-04 12:17:21 +00:00
Fan Wu
6e3bf1ee10 Merge "Add "test_suites" attribute to SettingsRoboTests." into main 2023-12-04 09:56:24 +00:00
FanWu
8731857550 Add "test_suites" attribute to SettingsRoboTests.
Reference: https://source.android.com/compatibility/tests/development/test-mapping#packaging_build_script_rules

Bug: 312571846

Test: config change
Change-Id: I8a3e99a59309f1f63294e0ff88fb0536164c1cd1
2023-12-04 09:00:50 +00:00
Jasmine Cha
9e45469833 Show the output switcher when no media is playing
- Support output switcher for system routing.
- Add an new string to indicate the device that
  audio will output to.

Bug: 284227163
Test: device/host atest
 atest MediaOutputPreferenceControllerTest
 atest AudioOutputSwitchPreferenceControllerTest
 atest MediaOutputIndicatorSliceTest

Change-Id: I94bcf84e7e93b3e4f5db1d95d5380a54a3e0c460
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-04 08:19:05 +00:00
Hyundo Moon
b571a9768f Fix failing BluetoothPermissionActivityTest
Bug: 314052293
Test: atest SettingsRoboTests:com.android.settings.bluetooth.BluetoothPermissionActivityTest
Change-Id: Ic62fa4f21a49f865ff713fcf4dea635179441a99
2023-12-04 12:37:18 +09:00
Chaohui Wang
de3fe3744f Refresh the App Info Settings
When apk upgraded or downgraded.

And only close the page when the package is fully removed.

Bug: 314562958
Test: manual - on App Info Settings
Test: unit test
Change-Id: Ifdff714da99e31f9c5f237a0c3342de7a0797ec4
2023-12-04 01:43:11 +00:00
Wa Gao
7954bb5ba7 Merge "Add dialog for top switch on fully managed devices." into main 2023-12-02 02:03:55 +00:00
Wa Gao
b14867f6ac Add dialog for top switch on fully managed devices.
Bug: 311233745
Change-Id: Id4043675041d1cf9c0ed307f3a0c2dc65768641b
2023-12-02 00:42:33 +00:00
Manish Singh
9ee5f6edc9 Make the order of tabs same as profile creation
Currently the order is hardcoded to be Primary, Work, Private.
But SettingsLib in frameworks uses the order returned by UserManager's
getProfiles API. This causes inconsistency across various Settings
pages.

Changing the order to be the one returned by UserManager.

Bug: 304366476
Test: manual
Test: atest ProfileSelectFragmentTest
Change-Id: I9953f211bfbeab129aa6b7c7ec0fe294e91dda26
2023-12-01 22:37:37 +00:00
Chaohui Wang
8295743fe1 Only show DeveloperOptionsController for admin
Bug: 311604902
Test: manual - on System page
Test: unit test
Change-Id: Idbf40be4e0074f5d381724538c226a336c2c3b27
2023-12-01 15:30:27 +08:00
Vlad Popa
f782872cfd Disable the Bt categorization list when audio type is known
The audio framework can deduce the type with the help of the
BluetoothDevice metadata API. In case this is known we will grey out the
list with the manual selection of the audio device type.

Test: adb shell device_config put media_audio android.media.audio.automatic_bt_device_type true
Test: atest BluetoothDetailsAudioDeviceTypeControllerTest
Bug: 302323921
Change-Id: Ia2cab27f2dce5493aa4326333699b5908d8a09ee
2023-11-30 18:08:01 -08:00
Manish Singh
71e27963f7 Merge "Check purely for the presence of a managed profile" into main 2023-11-30 20:51:06 +00:00
Chris Antol
ae9e09eae3 Merge "MainlineModuleVersionPreferenceControllerTest to access intent directly" into main 2023-11-30 17:11:07 +00:00
Tetiana Meronyk
094dfcc5d8 Merge "Fix tests in TimeoutToDockUserPreferenceControllerTest" into main 2023-11-30 11:51:26 +00:00
Chaohui Wang
a7b3ac7384 Merge "Clean up AllInOneTetherSettings" into main 2023-11-30 06:31:14 +00:00
Derek Jedral
db72f4ea5f Merge "Update strings for Watch Unlock" into main 2023-11-30 05:23:33 +00:00
Treehugger Robot
50ffdb4a9e Merge "Fix BluetoothLeAudioDeviceDetailsPreferenceControllerTest faliure" into main 2023-11-30 04:58:18 +00:00
Chaohui Wang
0664d3cc45 Clean up AllInOneTetherSettings
This project is not on-going.

Clean up to help improve latency.

Bug: 311604902
Test: manual - on Network & internet page
Test: robo test
Change-Id: I6addb92e5587206661d1b64bdc56473a85ba9c9f
2023-11-30 12:27:33 +08:00
Joshua McCloskey
592e1f6164 Fix BiometricProvider test
Test: atest BiometricSettingsProviderTest
Fixes: 313342682
Change-Id: If9109e5b822f1b41972305913d6a0b56704d2ed7
2023-11-29 20:02:34 +00:00
Alice Kuo
18e16b1a6a Fix BluetoothLeAudioDeviceDetailsPreferenceControllerTest faliure
Two failure case need to run under classic connection by default
situation. Add the precondition for those test case. Remove the ignore
to reland those test case.

Bug: 313589946
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioDeviceDetailsPreferenceControllerTest
Change-Id: If2c9cd590151be043be52e0793d073be83cd0c21
2023-11-30 01:55:57 +08:00
Oli Thompson
6a725695b7 Fix broken ManagedProfileQuietModeEnablerTest test
Bug: 313573729
Test: atest ManagedProfileQuietModeEnablerTest
Change-Id: I33eb9763e92f3060e65a3e7e498cad965aa55600
2023-11-29 15:24:57 +00:00
Tetiana Meronyk
b1ecd3bba8 Fix tests in TimeoutToDockUserPreferenceControllerTest
Bug: 313530297
Test: atest TimeoutToDockUserPreferenceControllerTest
Change-Id: I3a67744fb7652f5815ab1ba1ba88e13f5436e127
2023-11-29 14:10:07 +00:00
Edgar Wang
07b2af4120 Merge "Refactor Date & Time Settings" into main 2023-11-29 13:19:40 +00:00
Tetiana Meronyk
b3632f2ef6 Merge "Fix tests in UserSettingsTest" into main 2023-11-29 12:46:32 +00:00
Edgar Wang
fdab44f9e7 Refactor Date & Time Settings
- Rid off AbstractPreferenceController

Test: robotest
Bug: 235445309
Change-Id: I61118a0ff580231973509c06e84e7088dba897f5
2023-11-29 18:35:43 +08:00
Tetiana Meronyk
bbbdc8423c Fix tests in UserSettingsTest
Bug: 313666476
Test: atest UserSettingsTest
Change-Id: I74c5e9f5e88abb57f758b1d9afe04e07240e2dd2
2023-11-29 10:22:02 +00:00
Xinyi Mao
545381c427 Merge "Revert "Ignore failing test cases in BatterTipsCardPreferenceTest"" into main 2023-11-29 09:48:12 +00:00
Haijie Hong
9a07931247 Merge "Fix test string in BluetoothSwitchPreferenceControllerTest" into main 2023-11-29 08:00:27 +00:00
Chaohui Wang
01ce50de90 Merge "Avoid ANR of TetherPreferenceController" into main 2023-11-29 07:04:30 +00:00
Haijie Hong
b61c785aa2 Fix test string in BluetoothSwitchPreferenceControllerTest
BUG: 313014781
Test: atest SettingsRoboTests:com.android.settings.bluetooth.BluetoothSwitchPreferenceControllerTest
Change-Id: I128e4b856aa3886625d59c643c9f0b32530266ba
2023-11-29 13:14:54 +08:00
Chaohui Wang
880068d23a Avoid ANR of TetherPreferenceController
Off load the following work from main thread,
- Calculate title
- Calculate summery

This also helps improve the latency.

Also migrate to registerTetheringEventCallback() since
TetheringManager.ACTION_TETHER_STATE_CHANGED is deprecated.

Fix: 311848767
Test: manual - on Network & internet page and turn on / off tethering
Test: unit tests
Change-Id: I6ee182b41ef51f691ea31938142be1a41faf5573
2023-11-29 12:06:37 +08:00
Xinyi Mao
a8cc8c10de Revert "Ignore failing test cases in BatterTipsCardPreferenceTest"
This reverts commit 66469618e3.

Reason for revert: test passed in local atest

Change-Id: Ib3ae6f6b31fdbec30a9f95e0b0c6b4b64ced4940
2023-11-29 03:57:46 +00:00
Haijie Hong
ffabf36177 Fix failing tests in BluetoothDeviceDetailsFragmentTest
BUG: 313014781
Test: atest SettingsRoboTests:com.android.settings.bluetooth.BluetoothDeviceDetailsFragmentTest
Change-Id: I320875121899aed917041d31e186ea6bfbc5f735
2023-11-29 11:37:10 +08:00
Yiyi Shen
6a3a3e2ac7 Merge "[Audiosharing] Show/hide audio sharing settings based on BT state." into main 2023-11-29 02:32:42 +00:00
Derek Jedral
2c4f5454f1 Update strings for Watch Unlock
Test: Built locally
Bug: 294281617
Change-Id: I01493060d5ea1b1941b1fb381d0c90cd4ce2ee78
2023-11-29 01:21:09 +00:00
Yanting Yang
83cb0a9c17 Merge "Ignore failing test of ContrastPreferenceControllerTest" into main 2023-11-29 01:19:31 +00:00
Yanting Yang
eb8200630f Merge "Ignore failing test of WebViewAppPickerTest" into main 2023-11-29 01:19:05 +00:00
Chris Antol
82a3db7b7a MainlineModuleVersionPreferenceControllerTest to access intent directly
Bug: 313567396
Test: Test updated accordingly
Change-Id: I4a21d618059c7c7f2e0b3bdb0c53c4fc3938d24c
2023-11-28 19:32:14 +00:00
Manish Singh
d503f25692 Check purely for the presence of a managed profile
including the parent user, as here we care only about the existence of
the managed profile.

This maintains the behaviour prior to private space changes.

Bug: 313128792
Test: manual
Test: atest ProfileSelectFragmentTest
Change-Id: I1d253f95ca534b48acfdb4c1c8b84368d731dded
2023-11-28 16:09:11 +00:00
Yanting Yang
4b2a052628 Merge "Ignore failing test of EntityHeaderControllerTest" into main 2023-11-28 14:14:00 +00:00
Yanting Yang
cff3e7301f Merge "Ignore failing tests of TrustAgentsPreferenceControllerTest" into main 2023-11-28 13:34:14 +00:00
Yanting Yang
a3a2c7eb36 Merge "Ignore failing test of PinPrivacyPreferenceControllerTest" into main 2023-11-28 13:21:57 +00:00
Yanting Yang
6028b68840 Ignore failing test of EntityHeaderControllerTest
Bug: 313616350
Test: atest
Change-Id: If2cbae5d95f78da92f7532516534ba22c126771b
2023-11-28 21:12:31 +08:00
Yanting Yang
e61bdff368 Merge "Ignore failing test of CodeInspectionTest" into main 2023-11-28 13:10:45 +00:00
Yanting Yang
5bca487a8c Ignore failing test of WebViewAppPickerTest
Bug: 313615637
Test: atest
Change-Id: Ic63c31b5220ab9b2cba11c11f4b40cf35ea6f3f9
2023-11-28 21:02:08 +08:00