/packages/apps/TvSettings/Settings/src/com/android/tv/settings/customization/ |
D | PartnerPreferencesMerger.java | 40 Context context, PreferenceScreen preferenceScreen, String settingsScreen) { in mergePreferences() argument 62 preferenceScreen.addPreference(newPartnerPreference); in mergePreferences() 70 final Preference[] combinedSettingsPreferences = clonePreferenceScreen(preferenceScreen); in mergePreferences() 71 preferenceScreen.removeAll(); in mergePreferences() 75 preferenceScreen, in mergePreferences() local 83 final Preference triggerReorderPreference = new Preference(preferenceScreen.getContext()); in mergePreferences() 84 preferenceScreen.removePreference(triggerReorderPreference); in mergePreferences() 93 private static Preference[] clonePreferenceScreen(PreferenceScreen preferenceScreen) { in clonePreferenceScreen() argument 94 return clonePreferencesInPreferenceGroup(preferenceScreen) in clonePreferenceScreen()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | DefaultAppListChildFragment.java | 123 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleListChanged() local 129 if (preferenceScreen == null) { in onRoleListChanged() 130 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleListChanged() 131 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleListChanged() 134 preferenceScreen.findPreference(PREFERENCE_KEY_WORK_CATEGORY); in onRoleListChanged() 136 oldWorkPreferenceCategory, preferenceScreen, oldWorkPreferences); in onRoleListChanged() 139 preferenceScreen.findPreference(PREFERENCE_KEY_PRIVATE_CATEGORY); in onRoleListChanged() 141 oldPrivatePreferenceCategory, preferenceScreen, oldPrivatePreferences); in onRoleListChanged() 143 clearPreferences(preferenceScreen, oldPreferences); in onRoleListChanged() 146 addPreferences(preferenceScreen, roleItems, oldPreferences, this, mViewModel.getUser(), in onRoleListChanged() [all …]
|
D | DefaultAppChildFragment.java | 128 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleChanged() local 131 if (preferenceScreen == null) { in onRoleChanged() 132 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleChanged() 133 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleChanged() 135 oldDescriptionPreference = preferenceScreen.findPreference(PREFERENCE_KEY_DESCRIPTION); in onRoleChanged() 137 preferenceScreen.removePreference(oldDescriptionPreference); in onRoleChanged() 140 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleChanged() 141 Preference preference = preferenceScreen.getPreference(i); in onRoleChanged() 143 preferenceScreen.removePreference(preference); in onRoleChanged() 154 oldPreferences, preferenceScreen, context); in onRoleChanged() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/searchapps/ |
D | SearchAppsFragment.kt | 71 preferenceScreen.findPreference(ALLOWED_APPS_CATEGORY)!! in <lambda>() 74 preferenceScreen.findPreference(NOT_ALLOWED_APPS)!! in <lambda>() 77 preferenceScreen.findPreference(INACTIVE_APPS)!! in <lambda>() 80 preferenceScreen.findPreference(EMPTY_SEARCH_RESULT)!! in <lambda>() 83 preferenceScreen.findPreference(TOP_INTRO_PREF)!! in <lambda>() 132 preferenceScreen.addPreference(NoSearchResultPreference(requireContext())) in <lambda>() 175 preferenceScreen.removePreference(inactiveAppsPreference) in <lambda>() 177 preferenceScreen.addPreference(inactiveAppsPreference) in <lambda>() 185 preferenceScreen.removePreference(allowedAppsCategory) in <lambda>() 187 preferenceScreen.addPreference(allowedAppsCategory) in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/ |
D | SpecialAppAccessChildFragment.java | 118 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleChanged() local 121 if (preferenceScreen == null) { in onRoleChanged() 122 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleChanged() 123 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleChanged() 125 oldDescriptionPreference = preferenceScreen.findPreference(PREFERENCE_KEY_DESCRIPTION); in onRoleChanged() 127 preferenceScreen.removePreference(oldDescriptionPreference); in onRoleChanged() 130 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleChanged() 131 Preference preference = preferenceScreen.getPreference(i); in onRoleChanged() 133 preferenceScreen.removePreference(preference); in onRoleChanged() 172 preferenceScreen.addPreference(preference); in onRoleChanged() [all …]
|
D | SpecialAppAccessListChildFragment.java | 85 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleListChanged() local 87 if (preferenceScreen == null) { in onRoleListChanged() 88 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleListChanged() 89 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleListChanged() 91 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleListChanged() 92 Preference preference = preferenceScreen.getPreference(i); in onRoleListChanged() 94 preferenceScreen.removePreference(preference); in onRoleListChanged() 123 preferenceScreen.addPreference(preference); in onRoleListChanged()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.kt | 75 val preferenceScreen: PreferenceScreen = getPreferenceScreen() in onCreate() constant 76 mAlert = preferenceScreen.findPreference(KEY_ALERTS) as CheckBoxPreference in onCreate() 77 mVibrate = preferenceScreen.findPreference(KEY_ALERTS_VIBRATE) as CheckBoxPreference in onCreate() 80 val mAlertGroup: PreferenceCategory = preferenceScreen in onCreate() 84 mPopup = preferenceScreen.findPreference(KEY_ALERTS_POPUP) as CheckBoxPreference in onCreate() 85 mUseHomeTZ = preferenceScreen.findPreference(KEY_HOME_TZ_ENABLED) as CheckBoxPreference in onCreate() 86 mHideDeclined = preferenceScreen.findPreference(KEY_HIDE_DECLINED) as CheckBoxPreference in onCreate() 87 mWeekStart = preferenceScreen.findPreference(KEY_WEEK_START_DAY) as ListPreference in onCreate() 88 mDefaultReminder = preferenceScreen.findPreference(KEY_DEFAULT_REMINDER) as ListPreference in onCreate() 89 mHomeTZ = preferenceScreen.findPreference(KEY_HOME_TZ) in onCreate() [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/system/locale/ |
D | CountryPickerFragmentTest.kt | 26 val preferenceScreen = fragment.preferenceScreen in testCountrySorting() constant 27 assertThat(preferenceScreen.preferenceCount).isEqualTo(3) in testCountrySorting() 28 assertThat(preferenceScreen.getPreference(0).title) in testCountrySorting() 30 assertThat(preferenceScreen.getPreference(1).title) in testCountrySorting() 32 assertThat(preferenceScreen.getPreference(2).title) in testCountrySorting()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoriesFragment.java | 72 PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateAccessories() local 73 if (preferenceScreen == null) { in updateAccessories() 79 preferenceScreen.removeAll(); in updateAccessories() 85 preferenceScreen.removeAll(); in updateAccessories() 107 Preference preference = preferenceScreen.findPreference(key); in updateAccessories() 132 preferenceScreen.addPreference(preference); in updateAccessories() 135 for (int i = 0; i < preferenceScreen.getPreferenceCount();) { in updateAccessories() 136 final Preference preference = preferenceScreen.getPreference(i); in updateAccessories() 140 preferenceScreen.removePreference(preference); in updateAccessories()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/ |
D | KeyboardFragment.java | 179 PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateKeyboardsSettings() local 191 Preference preference = preferenceScreen.findPreference(key); in updateKeyboardsSettings() 200 preferenceScreen.addPreference(preference); in updateKeyboardsSettings() 213 removeDisabledPreferencesFromScreen(preferenceScreen, enabledInputMethodKeys, in updateKeyboardsSettings() 227 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in updatePhysicalKeyboards() local 237 Preference pref = preferenceScreen.findPreference(key); in updatePhysicalKeyboards() 241 preferenceScreen.addPreference(pref); in updatePhysicalKeyboards() 255 removeDisabledPreferencesFromScreen(preferenceScreen, enabledPhysicalKeyboardKeys, in updatePhysicalKeyboards() 267 private void removeDisabledPreferencesFromScreen(PreferenceScreen preferenceScreen, in removeDisabledPreferencesFromScreen() argument 269 for (int i = 0; i < preferenceScreen.getPreferenceCount(); ) { in removeDisabledPreferencesFromScreen() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettingsTest.java | 81 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in downloadsNotDeletedInNoThresholdMode() local 82 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in downloadsNotDeletedInNoThresholdMode() 108 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() local 109 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() 127 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() local 128 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() 146 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear() local 147 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v34/ |
D | AppDataSharingUpdatesFragment.kt | 55 if (preferenceScreen == null) { in <lambda>() 99 preferenceScreen.findPreference<PreferenceCategory>( in <lambda>() 172 if (preferenceScreen == null) { in <lambda>() 176 preferenceScreen?.findPreference<AppDataSharingDetailsPreference>(DETAILS_PREFERENCE_ID) in <lambda>() 178 preferenceScreen?.findPreference<AppDataSharingUpdatesFooterPreference>( in <lambda>() 182 preferenceScreen?.findPreference<PreferenceCategory>( in <lambda>() 213 if (preferenceScreen == null) { in <lambda>() 217 preferenceScreen?.findPreference<AppDataSharingDetailsPreference>(DETAILS_PREFERENCE_ID) in <lambda>() 219 preferenceScreen?.findPreference<AppDataSharingUpdatesFooterPreference>( in <lambda>() 223 preferenceScreen?.findPreference<PreferenceCategory>( in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/dashboard/ |
D | AutoPermissionUsageDetailsFragment.kt | 154 preferenceScreen = preferenceManager.createPreferenceScreen(context!!) in onCreatePreferences() 159 preferenceScreen.addPreference(AutoDividerPreference(context)) in setupHeaderPreferences() 161 preferenceScreen.addPreference(AutoDividerPreference(context)) in setupHeaderPreferences() 216 preferenceScreen.removeAll() in updateUI() 232 preferenceScreen.addPreference(category.get()) in updateUI() 238 preferenceScreen in updateUI() 264 preferenceScreen.addPreference(preference) in addTimelineDescriptionPreference() 286 preferenceScreen.addPreference(preference) in addManagePermissionPreference() 294 preferenceScreen: PreferenceScreen, in renderHistoryPreferences() 309 preferenceScreen.addPreference(category.get()) in renderHistoryPreferences()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/ |
D | DataSourcesFragment.kt | 91 preferenceScreen.findPreference(DATA_TYPE_SPINNER_PREFERENCE_GROUP) in <lambda>() 95 preferenceScreen.findPreference(DATA_TOTALS_PREFERENCE_GROUP) in <lambda>() 99 preferenceScreen.findPreference(APP_SOURCES_PREFERENCE_GROUP) in <lambda>() 103 preferenceScreen.findPreference(NON_EMPTY_FOOTER_PREFERENCE_KEY) in <lambda>() 227 preferenceScreen?.findPreference<AppSourcesPreference>(APP_SOURCES_PREFERENCE_KEY) in <lambda>() 343 preferenceScreen.addPreference(getEmptyStateHeaderPreference()) in <lambda>() 344 preferenceScreen.addPreference(getEmptyStateFooterPreference()) in <lambda>() 348 preferenceScreen.removePreferenceRecursively(EMPTY_STATE_HEADER_PREFERENCE_KEY) in <lambda>() 349 preferenceScreen.removePreferenceRecursively(EMPTY_STATE_FOOTER_PREFERENCE_KEY) in <lambda>() 353 preferenceScreen.removePreferenceRecursively(APP_SOURCES_PREFERENCE_KEY) in <lambda>() [all …]
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/system/ |
D | SystemUpdatePreferenceControllerTest.kt | 56 private val preferenceScreen = mock<PreferenceScreen> { in <lambda>() constant in com.android.settings.system.SystemUpdatePreferenceControllerTest 90 controller.displayPreference(preferenceScreen) in displayPrefs_ifVisible_butNotAdminUser_shouldNotDisplay() 100 controller.displayPreference(preferenceScreen) in displayPrefs_ifAdminUser_butNotVisible_shouldNotDisplay() 109 controller.displayPreference(preferenceScreen) in displayPrefs_ifAvailable_shouldDisplay() 120 controller.displayPreference(preferenceScreen) in updateState_systemUpdateStatusUnknown_shouldSetToAndroidVersion() 141 controller.displayPreference(preferenceScreen) in updateState_systemUpdateStatusIdle_shouldSetToAndroidVersion() 156 controller.displayPreference(preferenceScreen) in updateState_systemUpdateInProgress_shouldSetToUpdatePending()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/premiumsms/ |
D | PremiumSmsAccessTest.java | 118 PreferenceScreen preferenceScreen = spy(preferenceManager.createPreferenceScreen(mContext)); in onRebuildComplete_ecmRestricted_shouldBeDisabled() local 120 doReturn(preferenceScreen).when(mFragment).getPreferenceScreen(); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 138 }).when(preferenceScreen).addPreference(any(RestrictedDropDownPreference.class)); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 141 verify(preferenceScreen).addPreference(any(RestrictedDropDownPreference.class)); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 153 PreferenceScreen preferenceScreen = spy(preferenceManager.createPreferenceScreen(mContext)); in onRebuildComplete_ecmNotRestricted_notDisabled() local 155 doReturn(preferenceScreen).when(mFragment).getPreferenceScreen(); in onRebuildComplete_ecmNotRestricted_notDisabled() 170 }).when(preferenceScreen).addPreference(any(RestrictedDropDownPreference.class)); in onRebuildComplete_ecmNotRestricted_notDisabled() 173 verify(preferenceScreen).addPreference(any(RestrictedDropDownPreference.class)); in onRebuildComplete_ecmNotRestricted_notDisabled()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 104 private val preferenceScreen = PreferenceManager(context).createPreferenceScreen(context) constant 108 preferenceScreen.addPreference(preference) in setUp() 147 controller.displayPreference(preferenceScreen) in <lambda>() 162 controller.displayPreference(preferenceScreen) in <lambda>() 177 controller.displayPreference(preferenceScreen) in <lambda>() 195 controller.displayPreference(preferenceScreen) in onViewCreated_policyLimitOnly() 213 controller.displayPreference(preferenceScreen) in onViewCreated_policyHasWarningAndLimit() 228 controller.displayPreference(preferenceScreen) in <lambda>() 249 controller.displayPreference(preferenceScreen) in <lambda>()
|
D | AppDataUsageCycleControllerTest.kt | 42 private val preferenceScreen = PreferenceManager(context).createPreferenceScreen(context) constant 48 preferenceScreen.addPreference(preference) in setUp() 56 controller.displayPreference(preferenceScreen) in <lambda>() 76 controller.displayPreference(preferenceScreen) in <lambda>() 90 controller.displayPreference(preferenceScreen) in setInitialCycles()
|
D | AppDataUsageListControllerTest.kt | 56 private val preferenceScreen = PreferenceManager(context).createPreferenceScreen(context) constant 60 preferenceScreen.addPreference(preference) in setUp() 66 controller.displayPreference(preferenceScreen) in <lambda>() 77 controller.displayPreference(preferenceScreen) in <lambda>()
|
D | AppDataUsageAppSettingsControllerTest.kt | 53 private val preferenceScreen = PreferenceManager(context).createPreferenceScreen(context) constant 57 preferenceScreen.addPreference(preference) in setUp() 63 controller.displayPreference(preferenceScreen) in <lambda>() 85 controller.displayPreference(preferenceScreen) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | UnusedAppsFragment.kt | 165 val preferenceScreen = in <lambda>() constant 176 preferenceScreen.addPreference(periodCat) in <lambda>() 178 preferenceFragment.preferenceScreen = preferenceScreen in <lambda>() 180 val infoMsgCategory = preferenceScreen.findPreference<PreferenceCategory>(INFO_MSG_CATEGORY) in <lambda>() 189 if (preferenceFragment.preferenceScreen == null) { in <lambda>() 192 val preferenceScreen: PreferenceScreen = preferenceFragment.preferenceScreen in <lambda>() constant 197 val category = preferenceScreen.findPreference<PreferenceCategory>(period.name)!! in <lambda>() 217 val category = preferenceScreen.findPreference<PreferenceCategory>(period.name)!! in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/managedata/ |
D | ManageDataFragment.kt | 41 preferenceScreen.findPreference(AUTO_DELETE_PREFERENCE_KEY) in <lambda>() 45 preferenceScreen.findPreference(DATA_SOURCES_AND_PRIORITY_PREFERENCE_KEY) in <lambda>() 49 preferenceScreen.findPreference(SET_UNITS_PREFERENCE_KEY) in <lambda>() 53 preferenceScreen.findPreference(BACKUP_AND_RESTORE_PREFERENCE_KEY) in <lambda>() 82 preferenceScreen.removePreferenceRecursively(DATA_SOURCES_AND_PRIORITY_PREFERENCE_KEY) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/appdata/ |
D | AppDataFragment.kt | 106 preferenceScreen?.removeAll() in <lambda>() 107 preferenceScreen.addPreference(header) in <lambda>() 115 preferenceScreen.addPreference(NoDataPreference(requireContext())) in <lambda>() 116 preferenceScreen.addPreference( in <lambda>() 127 preferenceScreen.addPreference(preferenceCategory) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/ |
D | ConnectedAppsFragment.kt | 103 preferenceScreen.findPreference(TOP_INTRO)!! in <lambda>() 107 preferenceScreen.findPreference(ALLOWED_APPS_CATEGORY)!! in <lambda>() 111 preferenceScreen.findPreference(NOT_ALLOWED_APPS)!! in <lambda>() 115 preferenceScreen.findPreference(INACTIVE_APPS)!! in <lambda>() 119 preferenceScreen.findPreference(NEED_UPDATE_APPS)!! in <lambda>() 123 preferenceScreen.findPreference(THINGS_TO_TRY)!! in <lambda>() 127 preferenceScreen.findPreference(SETTINGS_AND_HELP)!! in <lambda>() 257 preferenceScreen.removePreference(mInactiveAppsCategory) in <lambda>() 301 preferenceScreen.removePreferenceRecursively(BANNER_PREFERENCE_KEY) in <lambda>() 302 preferenceScreen.addPreference(banner) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/ |
D | HomeFragment.kt | 100 preferenceScreen.findPreference(DATA_AND_ACCESS_PREFERENCE_KEY) in <lambda>() 104 preferenceScreen.findPreference(RECENT_ACCESS_PREFERENCE_KEY) in <lambda>() 108 preferenceScreen.findPreference(CONNECTED_APPS_PREFERENCE_KEY) in <lambda>() 112 preferenceScreen.findPreference(MANAGE_DATA_PREFERENCE_KEY) in <lambda>() 144 preferenceScreen.removePreferenceRecursively(MANAGE_DATA_PREFERENCE_KEY) in <lambda>() 201 preferenceScreen.removePreferenceRecursively(MIGRATION_BANNER_PREFERENCE_KEY) in <lambda>() 202 preferenceScreen.removePreferenceRecursively(DATA_RESTORE_BANNER_PREFERENCE_KEY) in <lambda>() 216 preferenceScreen.addPreference(migrationBanner as BannerPreference) in <lambda>() 251 preferenceScreen.addPreference( in <lambda>()
|