/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 | 116 verify(mScreen, never()).addPreference(any(Preference.class)); in onResume_managedProfile_shouldNotAddAccountCategory() 128 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_linkedUser_shouldAddOneAccountCategory() 141 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneProfile_shouldAddOneAccountCategory() 155 verify(mScreen, times(2)).addPreference(any(PreferenceGroup.class)); in onResume_twoProfiles_shouldAddTwoAccountCategory() 171 verify(mScreen, never()).addPreference(any(PreferenceGroup.class)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() 189 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneNewProfile_shouldAddOneAccountCategory() 366 verify(preferenceGroup, times(3)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 411 verify(preferenceGroup, times(5)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() 445 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct11"))); in onResume_noAccountChange_shouldNotAddAccountPreference() 446 verify(preferenceGroup).addPreference(argThat(titleMatches("Acct12"))); in onResume_noAccountChange_shouldNotAddAccountPreference() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/ |
D | HdrFormatSelectionFragment.java | 236 getPreferenceScreen().addPreference(mSupportedFormatsPreferenceCategory); in createFormatPreferences() 240 getPreferenceScreen().addPreference(mUnsupportedFormatsPreferenceCategory); in createFormatPreferences() 250 mSupportedFormatsPreferenceCategory.addPreference( in createFormatPreferences() 253 mUnsupportedFormatsPreferenceCategory.addPreference( in createFormatPreferences() 264 getPreferenceScreen().addPreference(mFormatsInfoPreferenceCategory); in createFormatInfoPreferences() 268 mFormatsInfoPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() 272 mFormatsInfoPreferenceCategory.addPreference(mEnabledFormatsPreferenceCategory); in createFormatInfoPreferences() 276 mFormatsInfoPreferenceCategory.addPreference(mDisabledFormatsPreferenceCategory); in createFormatInfoPreferences() 287 mEnabledFormatsPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() 289 mDisabledFormatsPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() [all …]
|
D | AdvancedVolumeFragment.java | 222 getPreferenceScreen().addPreference(mSupportedFormatsPreferenceCategory); in createFormatPreferences() 225 getPreferenceScreen().addPreference(mUnsupportedFormatsPreferenceCategory); in createFormatPreferences() 259 mSupportedFormatsPreferenceCategory.addPreference(pref); in createFormatPreferences() 261 mUnsupportedFormatsPreferenceCategory.addPreference(pref); in createFormatPreferences() 271 getPreferenceScreen().addPreference(mFormatsInfoPreferenceCategory); in createFormatInfoPreferences() 275 mFormatsInfoPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() 279 mFormatsInfoPreferenceCategory.addPreference(mEnabledFormatsPreferenceCategory); in createFormatInfoPreferences() 283 mFormatsInfoPreferenceCategory.addPreference(mDisabledFormatsPreferenceCategory); in createFormatInfoPreferences() 295 mEnabledFormatsPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() 297 mDisabledFormatsPreferenceCategory.addPreference(pref); in createFormatInfoPreferences() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | LogicalRootPreferenceGroupTest.java | 47 mPreferenceScreen.addPreference(mPreferenceGroup); in setUp() 54 mPreferenceGroup.addPreference(preference); in addPreference_toParent_notToGroup() 68 mPreferenceScreen.addPreference(preference0); in injectPreferencesToParent_whenOrderingAsAdded() 73 mPreferenceGroup.addPreference(insertedPreference1); in injectPreferencesToParent_whenOrderingAsAdded() 77 mPreferenceGroup.addPreference(insertedPreference2); in injectPreferencesToParent_whenOrderingAsAdded() 104 mPreferenceScreen.addPreference(preference0); in injectPreferencesToParent_NotOrderingAsAdded_fail() 109 mPreferenceGroup.addPreference(appendedPreference); in injectPreferencesToParent_NotOrderingAsAdded_fail()
|
/packages/apps/Settings/src/com/android/settings/applications/appcompat/ |
D | UserAspectRatioDetails.java | 202 getPreferenceScreen().addPreference(pref); in onActivityCreated() 217 addPreference(KEY_PREF_DEFAULT, USER_MIN_ASPECT_RATIO_UNSET); in initPreferences() 218 addPreference(KEY_PREF_FULLSCREEN, USER_MIN_ASPECT_RATIO_FULLSCREEN); in initPreferences() 219 addPreference(KEY_PREF_DISPLAY_SIZE, USER_MIN_ASPECT_RATIO_DISPLAY_SIZE); in initPreferences() 220 addPreference(KEY_PREF_HALF_SCREEN, USER_MIN_ASPECT_RATIO_SPLIT_SCREEN); in initPreferences() 221 addPreference(KEY_PREF_16_9, USER_MIN_ASPECT_RATIO_16_9); in initPreferences() 222 addPreference(KEY_PREF_4_3, USER_MIN_ASPECT_RATIO_4_3); in initPreferences() 223 addPreference(KEY_PREF_3_2, USER_MIN_ASPECT_RATIO_3_2); in initPreferences() 226 private void addPreference(@NonNull String key, in addPreference() method in UserAspectRatioDetails
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | PreviouslyConnectedDevicePreferenceController.java | 145 addPreference(index, preference); in onDeviceAdded() 149 private void addPreference(int index, Preference preference) { in addPreference() method in PreviouslyConnectedDevicePreferenceController 159 addPreference(); in addPreference() 162 private void addPreference() { in addPreference() method in PreviouslyConnectedDevicePreferenceController 164 mPreferenceGroup.addPreference(mSeeAllPreference); in addPreference() 171 mPreferenceGroup.addPreference(mDevicesList.get(i)); in addPreference() 180 mPreferenceGroup.addPreference(mDockDevicesList.get(i)); in addPreference() 203 addPreference(); in onDeviceRemoved()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | SensorFragment.java | 143 screen.addPreference(mPhysicalPrivacyEnabledInfo); in addPhysicalPrivacyEnabledInfo() 152 screen.addPreference(mSensorToggle); in addSensorToggleWithInfo() 165 screen.addPreference(toggleInfo); in addSensorToggleWithInfo() 219 screen.addPreference(recentRequests); in addRecentAppsGroup() 240 recentRequests.addPreference(mAllRecentAppPrefs.get(i)); in addRecentAppsGroup() 249 recentRequests.addPreference(mAllRecentAppPrefs.get(i)); in addRecentAppsGroup() 253 recentRequests.addPreference(showAllRecent); in addRecentAppsGroup() 260 recentRequests.addPreference(banner); in addRecentAppsGroup() 274 screen.addPreference(openPermissionController); in addPermissionControllerPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 103 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 116 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 152 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference() 165 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference() 204 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference() 217 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference() 230 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference() 243 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_addsPreference() 256 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_addsPreference()
|
D | SavedBluetoothDeviceUpdaterTest.java | 101 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 116 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in update_filterMatch_addPreference() 147 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 160 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in onProfileConnectionStateChanged_leDeviceDisconnected_inDeviceList_invokesAddPreference() 206 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 240 verify(mBluetoothDeviceUpdater, never()).addPreference(mCachedBluetoothDevice, in forceUpdate_notFindCachedBluetoothDevice_doNothing() 280 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in forceUpdate_deviceNotContain_removePreference() 298 verify(mBluetoothDeviceUpdater, never()).addPreference(mCachedBluetoothDevice, in forceUpdate_deviceIsSubDevice_doesNothing()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/searchapps/ |
D | SearchAppsFragment.kt | 119 preferenceScreen.addPreference(NoSearchResultPreference(requireContext())) in <lambda>() 152 preferenceScreen.addPreference(inactiveAppsPreference) in <lambda>() 153 appsList.forEach { app -> inactiveAppsPreference?.addPreference(getAppPreference(app)) } in <lambda>() 162 preferenceScreen.addPreference(allowedAppsCategory) in <lambda>() 164 allowedAppsCategory?.addPreference( in <lambda>() 175 preferenceScreen.addPreference(notAllowedAppsCategory) in <lambda>() 177 notAllowedAppsCategory?.addPreference( in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoReviewPermissionDecisionsFragment.kt | 109 preferenceScreen.addPreference(AutoDividerPreference(context)) in <lambda>() 113 preferenceScreen.addPreference(recentPermissionsGroup) in <lambda>() 152 preferenceScreen.addPreference(preference) in <lambda>() 169 preferenceScreen.addPreference(preference) in <lambda>() 191 preferenceGroup.addPreference(decisionPreference) in <lambda>() 211 preferenceGroup.addPreference(preference) in <lambda>() 218 preferenceGroup.addPreference(preference) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/ |
D | ConnectedAppsFragment.kt | 197 mSettingsAndHelpCategory?.addPreference( in <lambda>() 208 mSettingsAndHelpCategory?.addPreference(getHelpAndFeedbackPreference()) in <lambda>() 237 mInactiveAppsCategory?.addPreference(inactiveAppPreference) in <lambda>() 244 mAllowedAppsCategory?.addPreference(getNoAppsPreference(R.string.no_apps_allowed)) in <lambda>() 247 mAllowedAppsCategory?.addPreference( in <lambda>() 255 mNotAllowedAppsCategory?.addPreference(getNoAppsPreference(R.string.no_apps_denied)) in <lambda>() 258 mNotAllowedAppsCategory?.addPreference( in <lambda>() 383 mThingsToTryCategory?.addPreference(getCheckForUpdatesPreference()) in <lambda>() 384 mThingsToTryCategory?.addPreference(getSeeAllCompatibleAppsPreference()) in <lambda>() 387 mThingsToTryCategory?.addPreference(getSendFeedbackPreference()) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | ReviewPermissionsWearFragment.java | 178 screen.addPreference(preference); in loadPreferences() 184 screen.addPreference(mNewPermissionsCategory); in loadPreferences() 186 mNewPermissionsCategory.addPreference(preference); in loadPreferences() 193 screen.addPreference(mCurrentPermissionsCategory); in loadPreferences() 195 mCurrentPermissionsCategory.addPreference(preference); in loadPreferences() 285 screen.addPreference(titlePref); in addTitlePreferenceToScreen() 333 screen.addPreference(cancelPref); in addActionPreferencesToScreen() 347 screen.addPreference(continuePref); in addActionPreferencesToScreen()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/dashboard/ |
D | AutoPermissionUsageDetailsFragment.kt | 152 preferenceScreen.addPreference(AutoDividerPreference(context)) in setupHeaderPreferences() 154 preferenceScreen.addPreference(AutoDividerPreference(context)) in setupHeaderPreferences() 217 preferenceScreen.addPreference(category.get()) in updateUI() 245 preferenceScreen.addPreference(preference) in addTimelineDescriptionPreference() 266 preferenceScreen.addPreference(preference) in addManagePermissionPreference() 288 preferenceScreen.addPreference(category.get()) in renderHistoryPreferences() 299 category.get().addPreference(createPermissionHistoryPreference(it)) in renderHistoryPreferences()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | RecentConversationsPreferenceControllerTest.java | 86 preferenceScreen.addPreference(mPreferenceGroup); in setUp() 101 verify(mPreferenceGroup, never()).addPreference(any()); in testPopulateList_hideIfNoConversations() 115 verify(mPreferenceGroup, times(2)).addPreference(any()); in testPopulateList_validConversations() 140 verify(mPreferenceGroup, times(1)).addPreference(any()); in populateConversations_blocked() 268 mPreferenceGroup.addPreference(pref); in testRemoveConversations() 275 mPreferenceGroup.addPreference(pref2); in testRemoveConversations() 278 mPreferenceGroup.addPreference(clearAll); in testRemoveConversations() 313 verify(mPreferenceGroup, times(1)).addPreference(any()); in testPopulateList_onlyNonremoveableConversations()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/flags/ |
D | DeveloperOptionsFragment.java | 201 mPreferenceScreen.addPreference(category); in newCategory() 291 mPluginsCategory.addPreference(pref); in loadPluginPrefs() 318 sandboxCategory.addPreference(launchTutorialStepMenuPreference); in maybeAddSandboxCategory() 333 sandboxCategory.addPreference(launchOnboardingTutorialPreference); in maybeAddSandboxCategory() 344 sandboxCategory.addPreference(launchBackTutorialPreference); in maybeAddSandboxCategory() 355 sandboxCategory.addPreference(launchHomeTutorialPreference); in maybeAddSandboxCategory() 366 sandboxCategory.addPreference(launchOverviewTutorialPreference); in maybeAddSandboxCategory() 375 sandboxCategory.addPreference(launchSecondaryDisplayPreference); in maybeAddSandboxCategory() 397 onboardingCategory.addPreference(onboardingPref); in addOnboardingPrefsCatergory() 425 category.addPreference(thresholdPref); in addAllAppsFromOverviewCatergory()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | RecentLocationRequestPreferenceControllerTest.java | 91 verify(mCategory, times(3)).addPreference(any()); in updateState_whenAppListMoreThanThree_shouldDisplayTopThreeApps() 106 verify(mCategory, times(2)).addPreference(any()); in updateState_whenAppListMoreThanThree_showSystem() 114 verify(mCategory, times(5)).addPreference(any()); in updateState_whenAppListMoreThanThree_showSystem() 130 verify(mCategory, times(2)).addPreference(any()); in updateState_workProfile_shouldShowOnlyWorkProfileApps() 147 verify(mCategory, times(2)).addPreference(any()); in updateState_Personal_shouldShowOnlyPersonalApps()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeAutomaticRulesPreferenceControllerTest.java | 88 mPreferenceScreen.addPreference(mPreferenceCategory); in setup() 114 verify(mPreferenceCategory, times(1)).addPreference(any()); in testDisplayThenUpdateState_onlyAddsOnceRulesUnchanged() 137 verify(mPreferenceCategory, times(2)).addPreference(any()); in testDisplayThenUpdateState_addsIfRulesChange() 175 mPreferenceCategory.addPreference(new ZenRulePreference(mContext, in testUpdateState_addsAndRemoves() 178 mPreferenceCategory.addPreference(new ZenRulePreference(mContext, in testUpdateState_addsAndRemoves() 211 mPreferenceCategory.addPreference(new ZenRulePreference(mContext, in testUpdateState_updateEnableState()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | LocationFragment.java | 106 screen.addPreference(mLocationMode); in onCreatePreferences() 134 screen.addPreference(mRestrictedLocationMode); in onCreatePreferences() 145 screen.addPreference(mAlwaysScan); in onCreatePreferences() 149 screen.addPreference(recentRequests); in onCreatePreferences() 187 recentRequests.addPreference(banner); in onCreatePreferences() 242 container.addPreference(entry); in addPreferencesSorted()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PublicVolumeSettings.java | 175 addPreference(mSummary); in update() 190 addPreference(mMount); in update() 195 addPreference(mFormatPublic); in update() 198 private void addPreference(Preference pref) { in addPreference() method in PublicVolumeSettings 200 getPreferenceScreen().addPreference(pref); in addPreference()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceController.java | 135 groupPrefsList.addPreference(groupCategory); in updateFullList() 140 groupCategory.addPreference(empty); in updateFullList() 174 groupPrefsList.addPreference(groupCategory); in findOrCreateGroupCategoryForKey() 201 groupPrefsList.addPreference(group); in updateGroupList() 231 groupPrefGroup.addPreference(channelPref); in findOrCreateChannelPrefForKey() 292 groupPrefGroup.addPreference(finalOrderedPrefs.get(i)); in updateGroupPreferences() 324 parent.addPreference(preference); in addOrUpdateGroupToggle()
|
/packages/apps/Settings/src/com/android/settings/wfd/ |
D | WifiDisplaySettings.java | 277 preferenceScreen.addPreference(createRoutePreference(route)); in update() 288 preferenceScreen.addPreference(new UnpairedWifiDisplayPreference( in update() 333 preferenceScreen.addPreference(mCertCategory); in buildCertificationMenu() 340 mCertCategory.addPreference(p); in buildCertificationMenu() 344 mCertCategory.addPreference(new Preference(getPrefContext()) { in buildCertificationMenu() 383 mCertCategory.addPreference(pref); in buildCertificationMenu() 400 mCertCategory.addPreference(pref); in buildCertificationMenu() 431 mCertCategory.addPreference(lp); in buildCertificationMenu() 455 mCertCategory.addPreference(lp); in buildCertificationMenu() 479 mCertCategory.addPreference(lp); in buildCertificationMenu()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/ |
D | UnitsFragment.kt | 134 preferenceScreen.addPreference(height) in <lambda>() 135 preferenceScreen.addPreference(weight) in <lambda>() 136 preferenceScreen.addPreference(distance) in <lambda>() 137 preferenceScreen.addPreference(energy) in <lambda>() 138 preferenceScreen.addPreference(temperature) in <lambda>()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | SuggestionQuickSettingPrefsContainer.java | 100 mainFragment.getPreferenceScreen().addPreference(mSuggestionsList); in onSuggestionReady() 134 mSuggestionsList.addPreference(newSuggPref); in updateSuggestionList() 212 mainFragment.getPreferenceScreen().addPreference(mQuickSettingsList); in showQuickSettings() 222 mQuickSettingsList.addPreference(mHotwordSwitch); in showQuickSettings() 233 mQuickSettingsList.addPreference(mTakeBugReportPreference); in showQuickSettings()
|