Commit Graph

21078 Commits

Author SHA1 Message Date
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
Yanting Yang
bcce49defd Merge "Ignore failing test of GrayscaleConditionControllerTest" into main 2023-11-28 12:54:24 +00:00
Yanting Yang
5f7694d633 Merge "Ignore failing tests of com.android.settings.homepage.contextualcards.slices" into main 2023-11-28 12:53:39 +00:00
Yanting Yang
79667f5f59 Merge "Ignore failing test of AppLocalePickerActivityTest" into main 2023-11-28 12:53:17 +00:00
Yanting Yang
d6e87805fb Ignore failing test of ContrastPreferenceControllerTest
Bug: 313614100
Test: atest
Change-Id: I7ca5c14066369ffaed3866be6780612583b55541
2023-11-28 20:52:29 +08:00
Yanting Yang
a2cd9b813f Ignore failing tests of TrustAgentsPreferenceControllerTest
Bug: 313612480
Test: atest
Change-Id: I0faf497beb5ed998464c61aa5983a3bcba554826
2023-11-28 20:42:25 +08:00
Yanting Yang
40b666ac6e Merge "Ignore failing tests of MediaOutputIndicatorSliceTest" into main 2023-11-28 12:32:44 +00:00
Yanting Yang
c4293e281a Ignore failing test of PinPrivacyPreferenceControllerTest
Bug: 313612259
Test: atest
Change-Id: I123bb570a903c8c404c99feec52989304d6401c5
2023-11-28 20:29:37 +08:00
Yanting Yang
4eb112de74 Merge "Ignore failing tests of LabeledSeekBarPreferenceTest" into main 2023-11-28 12:23:40 +00:00
Yanting Yang
208f6cbacc Merge "Ignore failing test cases in BatterTipsCardPreferenceTest" into main 2023-11-28 12:23:11 +00:00
Yanting Yang
85e85e1915 Merge "Ignore failing test case in NetworkProviderSettingsTest" into main 2023-11-28 12:22:16 +00:00
Yanting Yang
5ade594944 Ignore failing test of CodeInspectionTest
Bug: 313612087
Test: atest
Change-Id: I526722cc8bd4b9cae904ddd1679f20f9d43a27c3
2023-11-28 20:18:02 +08:00
Yanting Yang
880e650ec7 Merge "Ignore failing tests of BluetoothLeAudioDeviceDetailsPreferenceControllerTest" into main 2023-11-28 11:54:43 +00:00