Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java118 final Context prefContext = mParent.getPreferenceManager().getContext(); in updateUi() local
124 createPreferences(prefContext, screen, mApps.get(0)); in updateUi()
128 final PreferenceCategory category = new PreferenceCategory(prefContext); in updateUi()
136 createPreferences(prefContext, category, mApps.get(i)); in updateUi()
141 private void createPreferences(Context prefContext, PreferenceGroup group, in createPreferences() argument
151 final Preference preference = new Preference(prefContext); in createPreferences()
152 preference.setTitle(getTitle(prefContext, typeOfDefault, appsForCategory.size())); in createPreferences()
153 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.java123 final Context prefContext = mParent.getPreferenceManager().getContext(); in updateUi() local
129 createPreferences(prefContext, screen, mApps.get(0)); in updateUi()
133 final PreferenceCategory category = new PreferenceCategory(prefContext); in updateUi()
141 createPreferences(prefContext, category, mApps.get(i)); in updateUi()
146 private void createPreferences(Context prefContext, PreferenceGroup group, in createPreferences() argument
156 final Preference preference = new Preference(prefContext); in createPreferences()
157 preference.setTitle(getTitle(prefContext, typeOfDefault, appsForCategory.size())); in createPreferences()
158 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/Settings/src/com/android/settings/location/
DRecentLocationAccessPreferenceController.java88 final Context prefContext = mCategoryRecentLocationRequests.getContext(); in displayPreference() local
105 createAppPreference(prefContext, access, mFragment)); in displayPreference()
109 final Preference banner = new AppPreference(prefContext); in displayPreference()
134 public static AppPreference createAppPreference(Context prefContext, in createAppPreference() argument
136 final AppPreference pref = new AppPreference(prefContext); in createAppPreference()
139 pref.setSummary(StringUtil.formatRelativeTime(prefContext, in createAppPreference()
DRecentLocationRequestPreferenceController.java83 final Context prefContext = mCategoryRecentLocationRequests.getContext(); in displayPreference() local
100 createAppPreference(prefContext, request, mFragment)); in displayPreference()
104 final Preference banner = new AppPreference(prefContext); in displayPreference()
128 public static AppPreference createAppPreference(Context prefContext, in createAppPreference() argument
130 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/Settings/src/com/android/settings/datausage/
DAppPrefLoader.java33 public AppPrefLoader(Context prefContext, ArraySet<String> pkgs, PackageManager pm) { in AppPrefLoader() argument
34 super(prefContext); in AppPrefLoader()
37 mPrefContext = prefContext; in AppPrefLoader()
/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/Launcher3/src/com/android/launcher3/settings/
DDeveloperOptionsFragment.java225 Context prefContext = getContext(); in loadPluginPrefs() local
265 prefContext, si.get(0).second, enabler, componentNames); in loadPluginPrefs()
378 PluginPreference(Context prefContext, ResolveInfo pluginInfo, in PluginPreference() argument
380 super(prefContext); in PluginPreference()
381 PackageManager pm = prefContext.getPackageManager(); in PluginPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
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/development/featureflags/
DFeatureFlagsPreferenceController.java55 final Context prefContext = mGroup.getContext(); in displayPreference() local
57 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in displayPreference()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettings.java78 final Context prefContext = getPrefContext(); in onResume() local
85 final Preference pref = new AppPreference(prefContext); in onResume()
89 prefContext, packageName)); in onResume()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java154 final Context prefContext = getPrefContext(); in onResume() local
162 final Preference pref = new AppPreference(prefContext); in onResume()
165 pref.setSummary(PictureInPictureDetails.getPreferenceSummary(prefContext, in onResume()
/packages/apps/Settings/src/com/android/settings/applications/autofill/
DPasswordsPreferenceController.java119 Context prefContext, @UserIdInt int user, PreferenceGroup group) { in addPasswordPreferences() argument
122 final AppPreference pref = new AppPreference(prefContext); in addPasswordPreferences()
137 prefContext.startActivityAsUser(intent, UserHandle.of(user)); in addPasswordPreferences()
/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.java172 final Context prefContext = mPreferenceGroup.getContext(); in refreshUI() local
186 pref = new AppSwitchPreference(prefContext); in refreshUI()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java945 final Context prefContext = getPrefContext();
946 pref = new UserPreference(prefContext, null, user.id);
947 pref.setTitle(getUserName(prefContext, user));
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java518 final Context prefContext = mFragment.getPreferenceManager().getContext(); in getAccountTypePreferences() local
546 prefContext, mMetricsFeatureProvider.getMetricsCategory(mFragment), in getAccountTypePreferences()