/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountTypePreferenceLoaderTest.java | 103 prefRoot.addPreference(pref1); in updatePreferenceIntents_shouldRunRecursively() 104 prefRoot.addPreference(prefGroup2); in updatePreferenceIntents_shouldRunRecursively() 105 prefRoot.addPreference(pref3); in updatePreferenceIntents_shouldRunRecursively() 106 prefRoot.addPreference(prefGroup4); in updatePreferenceIntents_shouldRunRecursively() 111 prefGroup2.addPreference(pref21); in updatePreferenceIntents_shouldRunRecursively() 112 prefGroup2.addPreference(pref22); in updatePreferenceIntents_shouldRunRecursively() 116 prefGroup4.addPreference(prefGroup41); in updatePreferenceIntents_shouldRunRecursively() 117 prefGroup4.addPreference(pref42); in updatePreferenceIntents_shouldRunRecursively() 122 prefGroup41.addPreference(pref411); in updatePreferenceIntents_shouldRunRecursively() 123 prefGroup41.addPreference(pref412); in updatePreferenceIntents_shouldRunRecursively()
|
D | AccountPreferenceControllerTest.java | 112 verify(mScreen, never()).addPreference(any(Preference.class)); in onResume_managedProfile_shouldNotAddAccountCategory() 124 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_linkedUser_shouldAddOneAccountCategory() 137 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneProfile_shouldAddOneAccountCategory() 151 verify(mScreen, times(2)).addPreference(any(PreferenceGroup.class)); in onResume_twoProfiles_shouldAddTwoAccountCategory() 167 verify(mScreen, never()).addPreference(any(PreferenceGroup.class)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() 185 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneNewProfile_shouldAddOneAccountCategory() 362 verify(preferenceGroup, times(3)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 407 verify(preferenceGroup, times(5)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() 441 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct11"))); in onResume_noAccountChange_shouldNotAddAccountPreference() 442 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct12"))); in onResume_noAccountChange_shouldNotAddAccountPreference() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/ |
D | AutoAppPermissionsFragment.java | 131 getPreferenceScreen().addPreference( in bindUi() 138 getPreferenceScreen().addPreference(allowed); in bindUi() 143 getPreferenceScreen().addPreference(denied); in bindUi() 160 mExtraScreen.addPreference(AutoPermissionsUtils.createHeaderPreference(getContext(), in updatePreferences() 187 category.addPreference(preference); in updatePreferences() 191 mExtraScreen.addPreference( in updatePreferences() 195 mExtraScreen.addPreference(preference); in updatePreferences() 222 category.addPreference(extraPerms); in updatePreferences() 229 allowed.addPreference(empty); in updatePreferences() 235 denied.addPreference(empty); in updatePreferences()
|
D | AutoPermissionAppsFragment.java | 148 getPreferenceScreen().addPreference(header); in bindUi() 154 getPreferenceScreen().addPreference(allowed); in bindUi() 160 getPreferenceScreen().addPreference(foreground); in bindUi() 166 getPreferenceScreen().addPreference(denied); in bindUi() 265 category.addPreference(existingPref); in onPermissionsLoaded() 276 category.addPreference(pref); in onPermissionsLoaded() 287 allowed.addPreference(empty); in onPermissionsLoaded() 297 denied.addPreference(empty); in onPermissionsLoaded()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/wear/ |
D | ReviewPermissionsWearFragment.java | 171 screen.addPreference(preference); in loadPreferences() 177 screen.addPreference(mNewPermissionsCategory); in loadPreferences() 179 mNewPermissionsCategory.addPreference(preference); in loadPreferences() 186 screen.addPreference(currentPermissionsCategory); in loadPreferences() 188 currentPermissionsCategory.addPreference(preference); in loadPreferences() 264 screen.addPreference(titlePref); in addTitlePreferenceToScreen() 309 screen.addPreference(cancelPref); in addActionPreferencesToScreen() 322 screen.addPreference(continuePref); in addActionPreferencesToScreen()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 95 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 109 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 148 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference() 161 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference() 200 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference() 214 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference() 227 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 95 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 109 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 148 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference() 161 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference() 200 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference() 245 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in addPreference_addPreference_shouldHideSecondTarget()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/ |
D | TmaPrefsFragment.java | 42 screen.addPreference(createEnumPref(context, "Account Type", prefs.mAccountType, in onCreatePreferences() 44 screen.addPreference(createEnumPref(context, "Root node type", prefs.mRootNodeType, in onCreatePreferences() 46 screen.addPreference(createEnumPref(context, "Root reply delay", prefs.mRootReplyDelay, in onCreatePreferences() 48 screen.addPreference(createEnumPref(context, "Asset delay: random value in [v, 2v]", in onCreatePreferences() 50 screen.addPreference(createEnumPref(context, "Login event order", prefs.mLoginEventOrder, in onCreatePreferences()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PublicVolumeSettings.java | 165 addPreference(mSummary); in update() 181 addPreference(mMount); in update() 186 addPreference(mFormatPublic); in update() 188 addPreference(mFormatPrivate); in update() 192 private void addPreference(Preference pref) { in addPreference() method in PublicVolumeSettings 194 getPreferenceScreen().addPreference(pref); in addPreference()
|
D | StorageSettings.java | 151 mInternalCategory.addPreference(mInternalSummary); in refresh() 165 mInternalCategory.addPreference( in refresh() 170 mInternalCategory.addPreference( in refresh() 175 mExternalCategory.addPreference( in refresh() 191 mInternalCategory.addPreference(pref); in refresh() 204 mExternalCategory.addPreference(pref); in refresh() 214 getPreferenceScreen().addPreference(mInternalCategory); in refresh() 217 getPreferenceScreen().addPreference(mExternalCategory); in refresh()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PublicVolumeSettings.java | 165 addPreference(mSummary); in update() 181 addPreference(mMount); in update() 186 addPreference(mFormatPublic); in update() 188 addPreference(mFormatPrivate); in update() 192 private void addPreference(Preference pref) { in addPreference() method in PublicVolumeSettings 194 getPreferenceScreen().addPreference(pref); in addPreference()
|
D | StorageSettings.java | 151 mInternalCategory.addPreference(mInternalSummary); in refresh() 165 mInternalCategory.addPreference( in refresh() 170 mInternalCategory.addPreference( in refresh() 175 mExternalCategory.addPreference( in refresh() 191 mInternalCategory.addPreference(pref); in refresh() 204 mExternalCategory.addPreference(pref); in refresh() 214 getPreferenceScreen().addPreference(mInternalCategory); in refresh() 217 getPreferenceScreen().addPreference(mExternalCategory); in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSubTest.java | 207 verify(mPreferenceScreen, times(1)).addPreference(mButtonWfcRoamingMode); in onResume_useWfcHomeModeConfigFalseAndEditable_shouldShowWfcRoaming() 221 verify(mPreferenceScreen, never()).addPreference(mButtonWfcRoamingMode); in onResume_useWfcHomeModeConfigTrueAndEditable_shouldHideWfcRoaming() 235 verify(mPreferenceScreen, never()).addPreference(mButtonWfcRoamingMode); in onResume_useWfcHomeModeConfigFalseAndNotEditable_shouldHideWfcRoaming() 249 verify(mPreferenceScreen, never()).addPreference(mButtonWfcRoamingMode); in onResume_useWfcHomeModeConfigTrueAndNotEditable_shouldHideWfcRoaming() 328 verify(mPreferenceScreen).addPreference(mButtonWfcMode); in onActivityResult_finishCarrierActivity_shouldShowWfcPreference() 329 verify(mPreferenceScreen).addPreference(mButtonWfcRoamingMode); in onActivityResult_finishCarrierActivity_shouldShowWfcPreference() 330 verify(mPreferenceScreen).addPreference(mUpdateAddress); in onActivityResult_finishCarrierActivity_shouldShowWfcPreference()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintSettings.java | 393 root.addPreference(pref); in addFingerprintItemPreferences() 396 Preference addPreference = new Preference(root.getContext()); in addFingerprintItemPreferences() local 397 addPreference.setKey(KEY_FINGERPRINT_ADD); in addFingerprintItemPreferences() 398 addPreference.setTitle(R.string.fingerprint_add_title); in addFingerprintItemPreferences() 399 addPreference.setIcon(R.drawable.ic_add_24dp); in addFingerprintItemPreferences() 400 root.addPreference(addPreference); in addFingerprintItemPreferences() 401 addPreference.setOnPreferenceChangeListener(this); in addFingerprintItemPreferences() 417 Preference addPreference = findPreference(KEY_FINGERPRINT_ADD); in updateAddPreference() local 418 addPreference.setSummary(maxSummary); in updateAddPreference() 419 addPreference.setEnabled(!tooMany && !removalInProgress); in updateAddPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintSettings.java | 390 root.addPreference(pref); in addFingerprintItemPreferences() 393 Preference addPreference = new Preference(root.getContext()); in addFingerprintItemPreferences() local 394 addPreference.setKey(KEY_FINGERPRINT_ADD); in addFingerprintItemPreferences() 395 addPreference.setTitle(R.string.fingerprint_add_title); in addFingerprintItemPreferences() 396 addPreference.setIcon(R.drawable.ic_menu_add); in addFingerprintItemPreferences() 397 root.addPreference(addPreference); in addFingerprintItemPreferences() 398 addPreference.setOnPreferenceChangeListener(this); in addFingerprintItemPreferences() 414 Preference addPreference = findPreference(KEY_FINGERPRINT_ADD); in updateAddPreference() local 415 addPreference.setSummary(maxSummary); in updateAddPreference() 416 addPreference.setEnabled(!tooMany && !removalInProgress); in updateAddPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wfd/ |
D | WifiDisplaySettings.java | 279 preferenceScreen.addPreference(createRoutePreference(route)); in update() 290 preferenceScreen.addPreference(new UnpairedWifiDisplayPreference( in update() 335 preferenceScreen.addPreference(mCertCategory); in buildCertificationMenu() 342 mCertCategory.addPreference(p); in buildCertificationMenu() 346 mCertCategory.addPreference(new Preference(getPrefContext()) { in buildCertificationMenu() 385 mCertCategory.addPreference(pref); in buildCertificationMenu() 402 mCertCategory.addPreference(pref); in buildCertificationMenu() 433 mCertCategory.addPreference(lp); in buildCertificationMenu() 457 mCertCategory.addPreference(lp); in buildCertificationMenu() 481 mCertCategory.addPreference(lp); in buildCertificationMenu()
|
/packages/apps/Settings/src/com/android/settings/wfd/ |
D | WifiDisplaySettings.java | 280 preferenceScreen.addPreference(createRoutePreference(route)); in update() 291 preferenceScreen.addPreference(new UnpairedWifiDisplayPreference( in update() 336 preferenceScreen.addPreference(mCertCategory); in buildCertificationMenu() 343 mCertCategory.addPreference(p); in buildCertificationMenu() 347 mCertCategory.addPreference(new Preference(getPrefContext()) { in buildCertificationMenu() 386 mCertCategory.addPreference(pref); in buildCertificationMenu() 403 mCertCategory.addPreference(pref); in buildCertificationMenu() 434 mCertCategory.addPreference(lp); in buildCertificationMenu() 458 mCertCategory.addPreference(lp); in buildCertificationMenu() 482 mCertCategory.addPreference(lp); in buildCertificationMenu()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | DefaultAppChildFragment.java | 148 addPreference(PREFERENCE_KEY_NONE, icon, title, noHolderApplication, null, in onRoleChanged() 161 addPreference(key, icon, title, isHolderApplication, qualifyingApplicationInfo, in onRoleChanged() 171 preferenceScreen.addPreference(descriptionPreference); in onRoleChanged() 190 private void addPreference(@NonNull String key, @NonNull Drawable icon, in addPreference() method in DefaultAppChildFragment 210 preferenceScreen.addPreference(preference); in addPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | AppNotificationSettings.java | 76 screen.addPreference(pref); in onCreate() 170 getPreferenceScreen().addPreference(groupCategory); in populateList() 176 groupCategory.addPreference(empty); in populateList() 187 getPreferenceScreen().addPreference(groupCategory); in populateGroupList() 227 parent.addPreference(preference); in populateGroupToggle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | UserProfileControllerTest.java | 80 verify(mScreen).addPreference(argumentCaptor.capture()); in controllerAddsPrimaryProfilePreference() 91 verify(mScreen).addPreference(argumentCaptor.capture()); in tappingProfilePreferenceSendsToStorageProfileFragment() 118 verify(mScreen).addPreference(argumentCaptor.capture()); in acceptingResultUpdatesPreferenceSize() 134 verify(mScreen).addPreference(argumentCaptor.capture()); in iconCallbackChangesPreferenceIcon()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ChannelListPreferenceController.java | 117 mPreference.addPreference(groupCategory); in populateList() 122 groupCategory.addPreference(empty); in populateList() 132 mPreference.addPreference(groupCategory); in populateGroupList() 172 parent.addPreference(preference); in populateGroupToggle() 223 parent.addPreference(channelPref); in populateSingleChannelPrefs()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | WifiConnectionPreferenceControllerTest.java | 99 verify(mPreferenceCategory, never()).addPreference(any()); in displayPreference_noWiFiConnection_noPreferenceAdded() 109 verify(mPreferenceCategory).addPreference(any(AccessPointPreference.class)); in displayPreference_hasWiFiConnection_preferenceAdded() 122 verify(mPreferenceCategory).addPreference(captor.capture()); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved() 153 verify(mPreferenceCategory, times(2)).addPreference(captor.capture()); in onAccessPointsChanged_wifiBecameConnectedToDifferentAP_preferenceReplaced()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | PermissionAppsFragment.java | 323 category.addPreference(existingPref); in onPermissionsLoaded() 339 mExtraScreen.addPreference(pref); in onPermissionsLoaded() 341 category.addPreference(pref); in onPermissionsLoaded() 378 category.addPreference(pref); in onPermissionsLoaded() 393 allowed.addPreference(empty); in onPermissionsLoaded() 404 denied.addPreference(empty); in onPermissionsLoaded()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 92 mScreen.addPreference(nestedCategory); in removePreference_nested_shouldRemove() 93 nestedCategory.addPreference(preference); in removePreference_nested_shouldRemove() 108 mScreen.addPreference(preference); in removePreference_flat_shouldRemove() 123 mScreen.addPreference(preference); in removePreference_doNotExist_shouldNotRemove()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreferenceGroupTest.java | 60 verify(mScreen, never()).addPreference(any()); in addsPreferenceToScreen_onNoThreshold() 64 verify(mScreen).addPreference(any()); in addsPreferenceToScreen_onNoThreshold() 73 verify(mScreen).addPreference(apps.capture()); in addsPreferenceToScreenWithHighOrder_onNoThreshold()
|