Home
last modified time | relevance | path

Searched refs:PreferenceController (Results 1 – 25 of 267) sorted by relevance

1234567891011

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DDeviceAdminAddExplanationPreferenceControllerTest.java20 import com.android.car.settings.common.PreferenceController;
50 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin()
62 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneWrite()
74 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneRead()
86 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneHidden()
94 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_deviceOwner_noReason()
103 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_deviceOwner_noReason_zoneWrite()
112 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_deviceOwner_noReason_zoneRead()
121 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_deviceOwner_noReason_zoneHidden()
130 PreferenceController.AVAILABLE); in testGetAvailabilityStatus_deviceOwner_withReason()
[all …]
DDeviceAdminAddSupportPreferenceControllerTest.java20 import com.android.car.settings.common.PreferenceController;
49 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin()
60 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneWrite()
71 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneRead()
82 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneHidden()
90 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_nullMessage()
99 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_nullMessage_zoneWrite()
108 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_nullMessage_zoneRead()
117 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_nullMessage_zoneHidden()
125 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_emptyMessage()
[all …]
DDeviceAdminAddPoliciesPreferenceControllerTest.java27 import com.android.car.settings.common.PreferenceController;
71 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin()
82 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneWrite()
93 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneRead()
104 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneHidden()
112 PreferenceController.DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_deviceOwner()
121 PreferenceController.DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_deviceOwner_zoneWrite()
130 PreferenceController.DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_deviceOwner_zoneRead()
139 PreferenceController.DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_deviceOwner_zoneHidden()
147 PreferenceController.DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_profileOwner()
[all …]
DFailedPasswordWipeCurrentUserPreferenceControllerTest.java23 import com.android.car.settings.common.PreferenceController;
50 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_maxNotSet()
59 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_maxNotSet_zoneWrite()
68 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_maxNotSet_zoneRead()
77 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_maxNotSet_zoneHidden()
85 PreferenceController.AVAILABLE); in testGetAvailabilityStatus_maxSet()
94 PreferenceController.AVAILABLE); in testGetAvailabilityStatus_maxSet_zoneWrite()
103 PreferenceController.AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_maxSet_zoneRead()
112 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_maxSet_zoneHidden()
DDeviceAdminAddHeaderPreferenceControllerTest.java26 import com.android.car.settings.common.PreferenceController;
55 PreferenceController.AVAILABLE); in testGetAvailabilityStatus_admin()
62 PreferenceController.AVAILABLE); in testGetAvailabilityStatus_admin_zoneWrite()
69 PreferenceController.AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_admin_zoneRead()
76 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_admin_zoneHidden()
86 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin()
97 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneWrite()
108 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneRead()
119 PreferenceController.CONDITIONALLY_UNAVAILABLE); in testGetAvailabilityStatus_noAdmin_zoneHidden()
DImePreferenceControllerTest.java18 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
20 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
DGlobalHttpProxyPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
22 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
23 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
DEnterprisePrivacySettingsPreferenceControllerTest.java18 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
20 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.UNSUPPORTED_ON_DEVICE;
DManageDeviceAdminPreferenceControllerTest.java18 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
20 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.UNSUPPORTED_ON_DEVICE;
DAlwaysOnVpnCurrentUserPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
22 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
23 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
DWorkPolicyInfoPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
22 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
23 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
24 import static com.android.car.settings.common.PreferenceController.UNSUPPORTED_ON_DEVICE;
DBaseAdminGrantedPermissionsPreferenceControllerTestCase.java18 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
20 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
DEnterpriseInstalledPackagesPreferenceControllerTest.java18 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
20 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
21 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DPreferenceControllerTestUtil.java28 public static void assignPreference(PreferenceController controller, Preference preference) { in assignPreference()
47 case PreferenceController.AVAILABLE: in availabilityToString()
49 case PreferenceController.AVAILABLE_FOR_VIEWING: in availabilityToString()
51 case PreferenceController.CONDITIONALLY_UNAVAILABLE: in availabilityToString()
53 case PreferenceController.DISABLED_FOR_PROFILE: in availabilityToString()
55 case PreferenceController.UNSUPPORTED_ON_DEVICE: in availabilityToString()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java37 import com.android.car.settings.common.PreferenceController;
98 .isEqualTo(PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCreate_preferenceIsConditionallyUnavailable()
106 PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCreate_preferenceIsConditionallyUnavailable_zoneWrite()
114 PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCreate_preferenceIsConditionallyUnavailable_zoneRead()
122 PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCreate_preferenceIsConditionallyUnavailable_zoneHidden()
130 PreferenceController.AVAILABLE); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable()
140 PreferenceController.AVAILABLE); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneWrite()
150 PreferenceController.AVAILABLE_FOR_VIEWING); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneRead()
160 PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneHidden()
170 .isEqualTo(PreferenceController.CONDITIONALLY_UNAVAILABLE); in onCarServiceConnected_noAvailableUnits_preferenceIsConditionallyUnavailable()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRegulatoryInfoPreferenceControllerTest.java35 import com.android.car.settings.common.PreferenceController;
79 PreferenceController.AVAILABLE); in hasIntent_isAvailable()
91 mPreferenceController.getAvailabilityStatus(), PreferenceController.AVAILABLE); in hasIntent_isAvailable_zoneWrite()
104 PreferenceController.AVAILABLE_FOR_VIEWING); in hasIntent_isAvailable_zoneRead()
117 PreferenceController.CONDITIONALLY_UNAVAILABLE); in hasIntent_isAvailable_zoneHidden()
127 PreferenceController.UNSUPPORTED_ON_DEVICE); in hasNoIntent_isNotAvailable()
139 PreferenceController.UNSUPPORTED_ON_DEVICE); in hasNoIntent_isNotAvailable_zoneWrite()
151 PreferenceController.UNSUPPORTED_ON_DEVICE); in hasNoIntent_isNotAvailable_zoneRead()
163 PreferenceController.UNSUPPORTED_ON_DEVICE); in hasNoIntent_isNotAvailable_zoneHidden()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerListHelperTest.java50 List<PreferenceController> controllers = in getControllers_returnsList()
59 for (PreferenceController controller : controllers) { in getControllers_returnsList()
87 PreferenceController.AVAILABLE, PreferenceController.CONDITIONALLY_UNAVAILABLE); in getControllers_returns_zoneAvailabilityList()
88 List<PreferenceController> controllers = in getControllers_returns_zoneAvailabilityList()
97 for (PreferenceController controller : controllers) { in getControllers_returns_zoneAvailabilityList()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddProfileHandler.java21 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
22 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
23 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
41 import com.android.car.settings.common.PreferenceController;
64 private final PreferenceController mPreferenceController;
81 PreferenceController preferenceController) { in AddProfileHandler()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceControllerListHelper.java64 static List<PreferenceController> getPreferenceControllersFromXml(Context context, in getPreferenceControllersFromXml()
67 List<PreferenceController> controllers = new ArrayList<>(); in getPreferenceControllersFromXml()
105 private static PreferenceController createInstance(String controllerName, in createInstance()
113 PreferenceController preferenceController = in createInstance()
114 (PreferenceController) preferenceConstructor.newInstance(params); in createInstance()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothEntryPreferenceControllerTest.java22 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
23 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
24 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
25 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
26 import static com.android.car.settings.common.PreferenceController.UNSUPPORTED_ON_DEVICE;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DSecurityEntryPreferenceControllerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
21 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
22 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
DCredentialsResetPreferenceControllerTest.java21 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
22 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
23 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
24 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
21 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
47 import com.android.car.settings.common.PreferenceController;
208 PreferenceController.AVAILABLE); in getAvailabilityStatus_differentComponents_returnsAvailable()
258 .isEqualTo(PreferenceController.AVAILABLE); in onChange_changeRegisteredSetting_callsRefreshUi()
266 PreferenceController.CONDITIONALLY_UNAVAILABLE); in onChange_changeRegisteredSetting_callsRefreshUi()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/language/
DLanguageSettingsEntryPreferenceControllerTest.java21 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
22 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
23 import static com.android.car.settings.common.PreferenceController.CONDITIONALLY_UNAVAILABLE;
24 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfileHandlerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE;
20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
21 import static com.android.car.settings.common.PreferenceController.DISABLED_FOR_PROFILE;
51 import com.android.car.settings.common.PreferenceController;
211 extends PreferenceController<Preference> {

1234567891011