Home
last modified time | relevance | path

Searched refs:getPreferences (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/TV/common/src/com/android/tv/common/dev/
DDeveloperPreference.java40 static final SharedPreferences getPreferences(Context context) { in getPreferences() method in DeveloperPreference
91 getPreferences(context).edit().remove(mKey).apply(); in clear()
107 getPreferences(context).edit().putBoolean(mKey, value).apply(); in storeValue()
112 return getPreferences(context).getBoolean(mKey, mDefaultValue); in getStoredValue()
124 getPreferences(context).edit().putInt(mKey, value).apply(); in storeValue()
129 return getPreferences(context).getInt(mKey, mDefaultValue); in getStoredValue()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPreferenceHelper.java70 getPreferences().put(key, value); in insertOrReplacePreference()
77 getPreferences().remove(id); in removeKey()
92 getPreferences().putAll(keyValues); in insertOrReplacePreferencesTransaction()
102 return getPreferences().get(key); in getPreference()
121 protected Map<String, String> getPreferences() { in getPreferences() method in PreferenceHelper
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DFakePreferenceHelper.java36 getPreferences().put(key, value); in insertOrReplacePreference()
41 getPreferences().remove(id); in removeKey()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/dev/
DDeveloperPreferenceTest.java37 DeveloperPreference.getPreferences(RuntimeEnvironment.systemContext) in createBoolean_default_true()
49 DeveloperPreference.getPreferences(RuntimeEnvironment.systemContext) in create_integer_default_one()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperPicker2Injector.kt257 getPreferences(context), in getWallpaperPersister()
269 override fun getPreferences(context: Context): WallpaperPreferences { in getPreferences() method in com.android.wallpaper.module.WallpaperPicker2Injector
318 wallpaperPreferences = getPreferences(context = appContext), in getWallpaperInteractor()
335 wallpaperPreferences = getPreferences(appContext), in getWallpaperClient()
DDailyLoggingAlarmReceiver.java34 WallpaperPreferences preferences = injector.getPreferences(appContext); in onReceive()
DDailyLoggingAlarmScheduler.java43 WallpaperPreferences preferences = injector.getPreferences(appContext); in setAlarm()
DRotationWallpaperUpdateReceiver.java83 WallpaperPreferences wallpaperPreferences = injector.getPreferences(appContext); in switchToStaticWallpaper()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBaseEnterprisePreferenceControllerTestCase.java56 assertThat(preferenceGroup.getPreferences().stream() in verifyPreferenceTitles()
127 public List<Preference> getPreferences() { in getPreferences() method in BaseEnterprisePreferenceControllerTestCase.DummyPreferenceGroup
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java225 List<Preference> prefs = mPreferenceGroup.getPreferences(); in testUpdateState_allSingleApps()
258 List<Preference> prefs = mPreferenceGroup.getPreferences(); in testUpdateState_allMultipleApps()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/backup/
DMissingHashCodeGenerator.java55 WallpaperPreferences wallpaperPreferences = injector.getPreferences(context); in onReceive()
DMissingHashCodeGeneratorJobService.java83 WallpaperPreferences wallpaperPreferences = injector.getPreferences(context); in onStartJob()
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DTestWallpaperRefresher.java45 WallpaperPreferences prefs = InjectorProvider.getInjector().getPreferences(mAppContext); in refresh()
DTestWallpaperRotationInitializer.java59 InjectorProvider.getInjector().getPreferences(appContext); in startRotation()
DTestInjector.kt224 override fun getPreferences(context: Context): WallpaperPreferences { in getPreferences() method in com.android.wallpaper.testing.TestInjector
281 wallpaperPreferences = getPreferences(context = context), in getWallpaperInteractor()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperDisabledFragment.java72 … WallpaperPreferences preferences = InjectorProvider.getInjector().getPreferences(getActivity()); in onResume()
DWallpaperPickerDelegate.java86 mPreferences = injector.getPreferences(activity); in WallpaperPickerDelegate()
392 public WallpaperPreferences getPreferences() { in getPreferences() method in WallpaperPickerDelegate
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/wear/
DWearDefaultAppListHelper.kt30 fun getPreferences(defaultRole: List<RoleItem>): List<WearRolePreference> { in <lambda>() method
DWearDefaultAppListScreen.kt45 val preferences = helper.getPreferences(defaultApps) in <lambda>()
DWearDefaultAppHelper.kt56 fun getPreferences( in <lambda>() method
DWearRequestRoleHelper.kt78 fun getPreferences( in <lambda>() method
DWearDefaultAppScreen.kt75 for (pref in helper.getPreferences(qualifyingApplications)) { in WearDefaultAppContent()
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemePickerInjector.kt204 return getPreferences(context) as CustomizationPreferences in <lambda>()
222 wallpaperPreferences = getPreferences(appContext), in <lambda>()
224 wallpaperPreferences = getPreferences(context = appContext), in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/
DThemedIconSwitchProvider.java66 .getPreferences(appContext)); in getInstance()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/performance/
DPerfImpactingAppsPreferenceControllerTest.java273 getPreferences(expectedResultInfos); in initController()
284 private List<CarUiTwoActionTextPreference> getPreferences(List<ResolveInfo> resolveInfos) { in getPreferences() method in PerfImpactingAppsPreferenceControllerTest

12