Home
last modified time | relevance | path

Searched refs:AVAILABLE_FOR_VIEWING (Results 1 – 25 of 114) sorted by relevance

12345

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetEntryPreferenceControllerTest.java22 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
118 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_nonAdminUser_disabledForUser()
129 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_nonAdminUser_disabledForUser_zoneWrite() local
140 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_nonAdminUser_disabledForUser_zoneRead() local
181 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_unrestricted_available_zoneRead() local
201 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_baseRestricted_notDpmRestricted_disabledForUser()
213 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_notDpmRestricted_disabledForUser_zoneWrite() local
225 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_notDpmRestricted_disabledForUser_zoneRead() local
247 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_baseRestricted_dpmRestricted_disabledForUser()
260 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_baseRestricted_disabledForUser_zoneWrite() local
[all …]
DBluetoothMacAddressPreferenceControllerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
130 AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing()
139 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing_zoneWrite() local
148 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_enableDefaultAdapter_availableForViewing_zoneRead() local
DResetNetworkEntryPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
179 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_restrictedByDpm_disabledForUser()
192 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_restrictedByDpm_disabledForUser_zoneWrite() local
205 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_restrictedByDpm_disabledForUser_zoneRead() local
254 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_adminUser_notRestricted_available_zoneRead() local
DDeveloperOptionsEntryPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
129 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_devOptionsEnabled_isAvailable_zoneRead() local
216 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_devOptionsEnabled_availableForViewing()
226 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_devOptionsEnabled_availableForViewing_zoneWrite() local
236 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_devOptionsEnabled_availableForViewing_zoneRead() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DAddWifiPreferenceControllerTest.java23 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
142 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByUm()
151 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByUm_zoneWrite() local
160 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByUm_zoneRead() local
176 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByDpm()
185 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByDpm_zoneWrite() local
194 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictionByDpm_zoneRead() local
231 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_differentRestriction_zoneRead() local
266 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_noRestrictions_zoneRead() local
DWifiEntryGroupPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
118 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneRead() local
142 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing()
156 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneWrite() local
170 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneRead() local
196 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing()
210 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneWrite() local
224 mController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneRead() local
DWifiTetherPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
97 AVAILABLE_FOR_VIEWING); in onStart_isAvailableForViewing()
107 AVAILABLE_FOR_VIEWING); in onStart_isAvailableForViewing_zoneWrite() local
117 AVAILABLE_FOR_VIEWING); in onStart_isAvailableForViewing_zoneRead() local
227 AVAILABLE_FOR_VIEWING); in onTetheringSupported_true_isAvailable_zoneRead() local
DWifiStateSwitchPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
170 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneRead() local
192 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing()
205 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneWrite() local
218 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneRead() local
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceController.java112 AVAILABLE_FOR_VIEWING})
140 public static final int AVAILABLE_FOR_VIEWING = 4; field in PreferenceController
325 mPreference.setEnabled(getAvailabilityStatus() != AVAILABLE_FOR_VIEWING); in refreshUi()
335 return availabilityStatus == AVAILABLE || availabilityStatus == AVAILABLE_FOR_VIEWING; in isAvailable()
459 case AVAILABLE_FOR_VIEWING: in getAvailabilityStatus()
466 return AVAILABLE_FOR_VIEWING; in getAvailabilityStatus()
472 return AVAILABLE_FOR_VIEWING; in getAvailabilityStatus()
593 && getAvailabilityStatus() != AVAILABLE_FOR_VIEWING; in shouldApplyUxRestrictions()
697 && (getDefaultAvailabilityStatus() == AVAILABLE_FOR_VIEWING in isPreferenceDisabledForZone()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DBrightnessLevelPreferenceControllerMockTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
114 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByUm_disabledForUser()
126 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByUm_disabledForUser_zoneWrite() local
138 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByUm_disabledForUser_zoneRead() local
160 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser()
172 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneWrite() local
184 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneRead() local
230 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_notRestricted_available_zoneRead() local
DAdaptiveBrightnessTogglePreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
178 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_supportedd_notRestricted_available_zoneRead() local
232 .isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_supported_restricted_availableForViewing()
242 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_supported_restricted_availableForViewing_zoneWrite() local
252 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_supported_restricted_availableForViewing_zoneRead() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
110 mPreferenceController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in onUxRestrictionsChanged_restricted_viewOnly_preferenceUnrestricted()
216 mPreferenceController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in refreshUi_created_availableForViewing_preferenceShownAndDisabled()
316 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_available_zoneRead() local
333 mPreferenceController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_availableForViewing_zoneWrite()
338 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_availableForViewing_zoneWrite() local
344 mPreferenceController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_availableForViewing_zoneRead()
349 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_availableForViewing_zoneRead() local
356 mPreferenceController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_availableForViewing_zoneHidden()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAddAccountPreferenceControllerTest.java23 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
115 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in cannotModifyUsers_restrictedByDpm_addAccountButtonShouldBeAvailableForViewing()
127 AVAILABLE_FOR_VIEWING); in cannotModifyUsers_addAccountButtonShouldBeAvailableForViewing_zoneWrite() local
139 AVAILABLE_FOR_VIEWING); in cannotModifyUsers_addAccountButtonShouldBeAvailableForViewing_zoneRead() local
160 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in newUserDisclaimerUnackowledged_addAccountButtonShouldBeAvailableForViewing()
171 AVAILABLE_FOR_VIEWING); in newUserDisclaimerUnackowledged_addAccountButtonBeAvailableForViewing_zoneWrite() local
182 AVAILABLE_FOR_VIEWING); in newUserDisclaimerUnackowledged_addAccountButtonBeAvailableForViewing_zoneRead() local
362 AVAILABLE_FOR_VIEWING); in canModifyUsers_addAccountButtonShouldBeAvailable_zoneRead() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
226 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailable_zoneRead()
300 mController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailableForViewing_zoneWrite()
302 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailableForViewing_zoneWrite()
307 mController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailableForViewing_zoneRead()
309 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailableForViewing_zoneRead()
314 mController.setAvailabilityStatus(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_defaultsToAvailableForViewing_zoneHidden()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/
DCredentialsResetPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
138 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictedByDpm_viewing()
150 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictedByDpm_viewing_zoneWrite() local
162 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_restrictedByDpm_viewing_zoneRead() local
262 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_unrestricted_available_zoneRead() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreferenceControllerTest.java23 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
107 AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser()
117 AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneWrite()
127 AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneRead()
DPairNewDevicePreferenceControllerTest.java24 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
196 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
207 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_zoneWrite()
218 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_zoneRead()
258 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in getAvailabilityStatus_available_zoneRead()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceControllerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
125 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_one_zoneRead() local
172 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_cached_zoneRead() local
176 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_cached_zoneRead() local
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
140 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_one_zoneRead() local
187 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_cached_zoneRead() local
191 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_cached_zoneRead() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/
DAutoTimeZoneTogglePreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
162 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restricted_availableForViewing()
174 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restricted_availableForViewing_zoneWrite() local
186 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restricted_availableForViewing_zoneRead() local
231 AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_notRestricted_available_zoneRead() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfilePreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
138 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in onCreate_userCanAddNewProfile_showsAddProfileButton_zoneRead() local
166 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in onCreate_userRestrictedByDpmFromAddingNewProfileAndNotInDemo_availableForViewing()
180 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in onCreate_addingNewProfileAndNotInDemo_availableForViewing_zoneWrite() local
194 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in onCreate_addingNewProfileAndNotInDemo_availableForViewing_zoneRead() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceControllerMockTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
188 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser()
203 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneWrite() local
218 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneRead() local
276 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in testGetAvailabilityStatus_notRestricted_available_zoneRead() local
DPairNewDevicePreferenceControllerUnitTest.java19 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
110 assertThat(mPreferenceController.getAvailabilityStatus()).isEqualTo(AVAILABLE_FOR_VIEWING); in restrictedByDpm_availabilityIsAvailableForViewing()
123 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in restrictedByDpm_availabilityIsAvailableForViewing_zoneWrite() local
137 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in restrictedByDpm_availabilityIsAvailableForViewing_zoneRead() local
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DDatetimeUtils.java21 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
48 return AVAILABLE_FOR_VIEWING; in getAvailabilityStatus()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsGroupPreferenceControllerTest.java20 import static com.android.car.settings.common.PreferenceController.AVAILABLE_FOR_VIEWING;
100 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in onCreate_isAvailableByDefault_zoneRead() local
187 mPreferenceController.getAvailabilityStatus(), AVAILABLE_FOR_VIEWING); in onRecentAppsCallback_notEmpty_isUnavailable_zoneRead() local

12345