Home
last modified time | relevance | path

Searched refs:assignPreference (Results 1 – 25 of 180) sorted by relevance

12345678

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiEntryGroupPreferenceControllerTest.java90 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_notRestricted_available()
100 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneWrite()
112 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneRead()
124 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_notRestricted_available_zoneHidden()
138 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing()
150 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneWrite()
164 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneRead()
178 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByUm_viewing_zoneHidden()
192 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing()
204 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_wifiAvailable_restrictedByDpm_viewing_zoneWrite()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountGroupPreferenceControllerTest.java95 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_noRestriction_available()
108 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_noRestriction_available_zoneWrite()
123 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_noRestriction_available_zoneRead()
138 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_noRestriction_available_zoneHidden()
152 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_notCurrentUser_notAvailable()
164 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneWrite()
178 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneRead()
192 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_notCurrentUser_notAvailable_zoneHidden()
207 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable()
220 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable_zoneWrite()
[all …]
DAccountDetailsBasePreferenceControllerTest.java81 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in checkInitialized_accountSetAndUserHandleSet_doesNothing()
88 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_nullAccount_throwsIllegalStateException()
96 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_nullUserHandle_throwsIllegalStateException()
104 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_shouldSetTitle()
115 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_shouldSetIcon()
DAccountListPreferenceControllerTest.java122 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in setUp()
463 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_canModifyAccounts_available()
473 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_canModifyAccounts_available_zoneWrite()
485 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_canModifyAccounts_available_zoneRead()
497 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in getAvailabilityStatus_canModifyAccounts_available_zoneHidden()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceControllerTest.java111 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_userIsViewingSelf_renameButtonShown()
123 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_userIsNotViewingSelf_renameButtonHidden()
136 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isAdminViewingNonAdmin_makeAdminButtonShown()
150 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isAdminViewingAdmin_makeAdminButtonHidden()
167 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isAdminViewingSelf_manageOtherProfilesButtonShown()
187 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isAdminViewingOther_manageOtherProfilesButtonHidden()
204 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isNonAdmin_addAProfileButtonShown()
222 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_isAdmin_isOnlyProfile_makeAddAProfileButtonShown()
236 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_profileIsRemovable_deleteButtonShown()
253 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onStart_profileIsNotRemovable_deleteButtonHidden()
[all …]
DProfileDetailsDeletePreferenceControllerTest.java95 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_userNotRestricted_deleteButtonShown()
108 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_userRestrictedByUm_deleteButtonHidden()
121 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_userRestrictedByDpm_deleteButtonVisible()
133 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_userIsViewingSelf_deleteButtonHidden()
145 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
158 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isDemoUser_deleteButtonHidden()
172 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isDemoUserAndRestrictedByDpm_deleteButtonHidden()
185 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in disabledClick_restrictedByDpm_dialog()
DProfileDetailsHeaderPreferenceControllerTest.java80 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_elementHasTitle()
89 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_profileNotSetup_setsSummary()
99 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_profileSetup_noSummary()
110 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isAdmin_notCurrentProfile()
122 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isAdmin_currentProfile()
DProfileDetailsBasePreferenceControllerTest.java78 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_missingUserInfo()
85 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in testOnStart_registerListener()
94 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in testOnStop_unregisterListener()
DChooseNewAdminPreferenceControllerTest.java99 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in setUp()
124 () -> PreferenceControllerTestUtil.assignPreference(controller, mPreference)); in testCheckInitialized_noAdminInfoSet_throwsError()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DStoragePreferenceControllerTest.java82 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noApplicationsEntry_throwException()
91 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noApplicationsState_throwException()
100 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noPackageName_throwException()
111 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_nullSize_calculatingSummary()
126 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_validApp_sizeSummary()
140 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_lateAppLoad_updateSummary()
158 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_packageSizeChange_updateSummary()
176 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_otherPackageSizeChange_doesNotUpdateSummary()
DApplicationPreferenceControllerTest.java80 () -> PreferenceControllerTestUtil.assignPreference(mController, mPreference)); in testCheckInitialized_noAppState_throwException()
87 () -> PreferenceControllerTestUtil.assignPreference(mController, mPreference)); in testCheckInitialized_noAppEntry_throwException()
95 PreferenceControllerTestUtil.assignPreference(mController, mPreference); in testRefreshUi_hasResolveInfo_setTitle()
DHibernatedAppsPreferenceControllerTest.java163 assignPreference(); in onHibernatedAppsCountCallback_setsSummary()
172 private void assignPreference() { in assignPreference() method in HibernatedAppsPreferenceControllerTest
173 PreferenceControllerTestUtil.assignPreference(mController, in assignPreference()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRestartSystemPreferenceControllerTest.java99 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in handlePreferenceClicked_showsDialog()
115 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in restartSystemConfirmationListener_continueToReboot()
128 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice()
140 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneWrite()
154 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneRead()
168 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneHidden()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceControllerTest.java166 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_noLaunchIntentSet_throwsIllegalStateException()
178 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onStart_appliesFilterType()
194 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_callingPackageEqualToLaunchPackage_setsClassName()
219 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_callingPackageNotEqualToLaunchPackage_doesNotSetClassName()
243 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_bondedDevice_goesBack()
260 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent()
281 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_unbondedDevice_needsAuth_startsPairing()
298 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceClicked_unbondedDevice_needsAuth_pairingStartFails_resumesScanning()
319 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
344 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsPreferenceControllerTest.java115 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isBrowserApp_isDisabled()
126 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isNotBrowserApp_isEnabled()
136 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_hasNoDomains_isDisabled()
147 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isBrowserApp_summarySet()
158 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_isNotBrowserApp_summarySet()
169 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in performClick_isNotBrowserApp_opensDialog()
DDomainAppPreferenceControllerTest.java98 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_noLifecycle_throwsError()
155 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in setupPreferenceController()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageUnitPreferenceControllerTest.java78 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_noDefaultSelection_throwException()
85 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onCreate_setsGbDefault_mbSet()
94 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onCreate_setsMbDefault_mbSet()
103 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in onCreate_setsGbDefault_onToggleMbSet()
DDataUsageEditTextPreferenceControllerTest.java70 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in checkInitialized_noDefaultText_throwException()
77 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onCreate_setsDefaultText_textSet()
DDataUsageCycleBasePreferenceControllerTest.java90 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in onCreate_noListenerSet_throwException()
137 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in finishSetUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/appinfo/
DHibernationSwitchPreferenceControllerTest.java219 assignPreference(); in updateState_exemptedByDefaultPackage_shouldNotCheck()
232 assignPreference(); in updateState_exemptedPackageOverrideByUser_shouldCheck()
245 assignPreference(); in updateState_unexemptedPackageOverrideByUser_shouldNotCheck()
256 private void assignPreference() { in assignPreference() method in HibernationSwitchPreferenceControllerTest
257 PreferenceControllerTestUtil.assignPreference(mController, in assignPreference()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceControllerTest.java128 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noAppEntry_throwException()
137 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noPackageNameEntry_throwException()
146 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noAppsStorageStatsManagerEntry_throwException()
155 () -> PreferenceControllerTestUtil.assignPreference(mPreferenceController, in testCheckInitialized_noLoaderManager_throwException()
420 PreferenceControllerTestUtil.assignPreference(mPreferenceController, in setupAndAssignPreference()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DAppOpsPreferenceControllerTest.java109 .assignPreference(mPreferenceController, mPreferenceGroup)); in checkInitialized_noOpCode_throwsIllegalStateException()
118 .assignPreference(mPreferenceController, mPreferenceGroup)); in checkInitialized_noPermission_throwsIllegalStateException()
127 .assignPreference(mPreferenceController, mPreferenceGroup)); in checkInitialized_noNegativeOpMode_throwsIllegalStateException()
300 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreferenceGroup); in setupPreferenceController()
DNotificationAccessPreferenceControllerTest.java105 .assignPreference(mPreferenceController, mPreferenceGroup); in setUp()
144 .assignPreference(mPreferenceController, mPreferenceGroup); in onStart_loadsFixedPackage_preferenceDisabled()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/
DLocationStateListenerBasePreferenceControllerTest.java97 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onAdasIntentReceived_refreshUi()
141 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onLocationIntentReceived_refreshUi()
184 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mPreference); in onPowerPolicyChange_refreshUi()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DPreferenceControllerTestUtil.java28 public static void assignPreference(PreferenceController controller, Preference preference) { in assignPreference() method in PreferenceControllerTestUtil

12345678