Home
last modified time | relevance | path

Searched refs:prefContext (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationRecentAccessUtil.java38 Context prefContext, RecentAppOpsAccess.Access access) { in createAppPreference() argument
39 CarUiPreference pref = new CarUiPreference(prefContext); in createAppPreference()
44 prefContext, in createAppPreference()
50 prefContext in createAppPreference()
57 prefContext.getResources().getString(R.string.driver_assistance_label, summary); in createAppPreference()
67 prefContext.startActivity(intent); in createAppPreference()
DCarLocationSettingsInjector.java36 protected Preference createPreference(Context prefContext, InjectedSetting setting) { in createPreference() argument
37 return new CarUiPreference(prefContext); in createPreference()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java123 final Context prefContext = mParent.getPreferenceManager().getContext(); in updateUi() local
129 createPreferences(prefContext, screen, mApps.get(0)); in updateUi()
135 final PreferenceCategory category = new PreferenceCategory(prefContext); in updateUi()
149 createPreferences(prefContext, category, mApps.get(i)); in updateUi()
154 private void createPreferences(Context prefContext, PreferenceGroup group, in createPreferences() argument
164 final Preference preference = new Preference(prefContext); in createPreferences()
165 preference.setTitle(getTitle(prefContext, typeOfDefault, appsForCategory.size())); in createPreferences()
166 preference.setSummary(buildSummaryString(prefContext, appsForCategory)); in createPreferences()
DApplicationListPreferenceController.java69 final Context prefContext = mParent.getPreferenceManager().getContext(); in onListOfAppsResult() local
72 final Preference preference = new AppPreference(prefContext); in onListOfAppsResult()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java127 final Context prefContext = mParent.getPreferenceManager().getContext(); in updateUi() local
133 createPreferences(prefContext, screen, mApps.get(0)); in updateUi()
137 final PreferenceCategory category = new PreferenceCategory(prefContext); in updateUi()
145 createPreferences(prefContext, category, mApps.get(i)); in updateUi()
150 private void createPreferences(Context prefContext, PreferenceGroup group, in createPreferences() argument
160 final Preference preference = new Preference(prefContext); in createPreferences()
161 preference.setTitle(getTitle(prefContext, typeOfDefault, appsForCategory.size())); in createPreferences()
162 preference.setSummary(buildSummaryString(prefContext, appsForCategory)); in createPreferences()
DApplicationListPreferenceController.java74 final Context prefContext = mParent.getPreferenceManager().getContext(); in onListOfAppsResult() local
77 final Preference preference = new AppPreference(prefContext); in onListOfAppsResult()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DCameraRecentAccessUtil.java39 public static CarUiPreference createAppPreference(Context prefContext, in createAppPreference() argument
41 CarUiPreference pref = new CarUiPreference(prefContext); in createAppPreference()
44 pref.setSummary(StringUtil.formatRelativeTime(prefContext, in createAppPreference()
53 prefContext.startActivity(intent); in createAppPreference()
DMicrophoneRecentAccessUtil.java39 public static CarUiPreference createAppPreference(Context prefContext, in createAppPreference() argument
41 CarUiPreference pref = new CarUiPreference(prefContext); in createAppPreference()
44 pref.setSummary(StringUtil.formatRelativeTime(prefContext, in createAppPreference()
53 prefContext.startActivity(intent); in createAppPreference()
/packages/apps/Settings/src/com/android/settings/location/
DRecentLocationAccessPreferenceController.java114 final Context prefContext = mCategoryRecentLocationRequests.getContext(); in loadRecentAccesses() local
130 createAppPreference(prefContext, access, mFragment)); in loadRecentAccesses()
134 final Preference banner = new AppPreference(prefContext); in loadRecentAccesses()
168 public static AppPreference createAppPreference(Context prefContext, in createAppPreference() argument
170 final AppPreference pref = new AppPreference(prefContext); in createAppPreference()
173 pref.setSummary(StringUtil.formatRelativeTime(prefContext, in createAppPreference()
DRecentLocationRequestPreferenceController.java86 final Context prefContext = mCategoryRecentLocationRequests.getContext(); in displayPreference() local
109 createAppPreference(prefContext, request, mFragment)); in displayPreference()
113 final Preference banner = new AppPreference(prefContext); in displayPreference()
137 public static AppPreference createAppPreference(Context prefContext, in createAppPreference() argument
139 final AppPreference pref = new AppPreference(prefContext); in createAppPreference()
DAppSettingsInjector.java47 protected Preference createPreference(Context prefContext, InjectedSetting setting) { in createPreference() argument
49 ? new AppPreference(prefContext) in createPreference()
50 : new RestrictedAppPreference(prefContext, setting.userRestriction); in createPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java120 private void createPreferences(Context prefContext, PreferenceGroup group, in createPreferences() argument
129 CarUiPreference preference = new CarUiPreference(prefContext); in createPreferences()
130 preference.setTitle(getTitle(prefContext, typeOfDefault, appsForCategory.size())); in createPreferences()
131 preference.setSummary(buildSummaryString(prefContext, appsForCategory)); in createPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DTVInputMethodPreference.java34 public TVInputMethodPreference(final Context prefContext, final InputMethodInfo imi, in TVInputMethodPreference() argument
38 super(prefContext, imi, isAllowedByOrganization, onSaveListener, userId); in TVInputMethodPreference()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagsPreferenceController.java55 final Context prefContext = mGroup.getContext(); in displayPreference() local
57 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in displayPreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java118 void refreshUi(Context prefContext) { in refreshUi() argument
122 displayRecentApps(prefContext, recentApps); in refreshUi()
139 private void displayRecentApps(Context prefContext, List<UsageStats> recentApps) { in displayRecentApps() argument
167 pref = new Preference(prefContext); in displayRecentApps()
/packages/apps/Settings/src/com/android/settings/development/snooplogger/
DSnoopLoggerFiltersPreferenceController.java60 final Context prefContext = mGroup.getContext(); in displayPreference() local
63 new SnoopLoggerFiltersPreference(prefContext, mListValues[i], mListEntries[i])); in displayPreference()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java155 final Context prefContext = getPrefContext(); in onResume() local
163 final Preference pref = new AppPreference(prefContext); in onResume()
166 pref.setSummary(PictureInPictureDetails.getPreferenceSummary(prefContext, in onResume()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettings.java81 final Context prefContext = getPrefContext(); in onResume() local
88 final Preference pref = new AppPreference(prefContext); in onResume()
92 prefContext, packageName)); in onResume()
/packages/apps/Settings/src/com/android/settings/applications/autofill/
DPasswordsPreferenceController.java131 Context prefContext, @UserIdInt int user, PreferenceGroup group) { in addPasswordPreferences() argument
134 final AppPreference pref = new AppPreference(prefContext); in addPasswordPreferences()
150 prefContext.startActivityAsUser(intent, UserHandle.of(user)); in addPasswordPreferences()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java165 final Context prefContext = getPrefContext(); in updateInputMethodPreferenceViews() local
181 final InputMethodPreference pref = new InputMethodPreference(prefContext, imi, in updateInputMethodPreferenceViews()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.kt225 prefContext, cachedDevice.device)) { in createDevicePreference()
234 prefContext, in createDevicePreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminListPreferenceController.java181 final Context prefContext = mPreferenceGroup.getContext(); in refreshUI() local
195 pref = new SwitchPreference(prefContext); in refreshUI()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java186 final Context prefContext = mPreferenceGroup.getContext(); in refreshUI() local
199 pref = new RestrictedSwitchPreference(prefContext); in refreshUI()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java612 final Context prefContext = mFragment.getPreferenceManager().getContext(); in getAccountTypePreferences() local
640 prefContext, mMetricsFeatureProvider.getMetricsCategory(mFragment), in getAccountTypePreferences()
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DCredentialManagerPreferenceController.java715 @NonNull Context prefContext, in addProviderPreference()
723 new CombiPreference(prefContext, mEnabledPackageNames.contains(packageName)); in addProviderPreference()

12