Home
last modified time | relevance | path

Searched refs:getSharedPrefs (Results 1 – 25 of 42) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/trust/
DCarTrustedDeviceService.java148 return getSharedPrefs().getInt(String.valueOf(handle), -1); in getUserHandleByTokenHandle()
174 SharedPreferences getSharedPrefs() { in getSharedPrefs() method in CarTrustedDeviceService
220 SharedPreferences prefs = getSharedPrefs(); in getUniqueId()
249 SharedPreferences prefs = getSharedPrefs(); in getEncryptionKey()
282 if (getSharedPrefs().contains(deviceId)) { in saveEncryptionKey()
286 return getSharedPrefs() in saveEncryptionKey()
301 getSharedPrefs().edit().remove(deviceId); in clearEncryptionKey()
DCarTrustAgentEnrollmentService.java175 if (!mTrustedDeviceService.getSharedPrefs() in startEnrollmentAdvertising()
240 int uid = mTrustedDeviceService.getSharedPrefs().getInt(String.valueOf(handle), -1); in terminateEnrollmentHandshake()
295 SharedPreferences.Editor editor = mTrustedDeviceService.getSharedPrefs().edit(); in setTrustedDeviceEnrollmentEnabled()
326 Set<String> enrolledDeviceInfos = mTrustedDeviceService.getSharedPrefs().getStringSet( in getEnrolledDeviceInfosForUser()
407 SharedPreferences sharedPrefs = mTrustedDeviceService.getSharedPrefs(); in onEscrowTokenRemoved()
457 SharedPreferences sharedPrefs = mTrustedDeviceService.getSharedPrefs(); in onEscrowTokenActiveStateChanged()
DCarTrustAgentUnlockService.java178 SharedPreferences.Editor editor = mTrustedDeviceService.getSharedPrefs().edit(); in setTrustedDeviceUnlockEnabled()
198 if (!mTrustedDeviceService.getSharedPrefs().getBoolean(TRUSTED_DEVICE_UNLOCK_ENABLED_KEY, in startUnlockAdvertising()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DUiFactory.java105 if (!launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false)) { in onCreate()
119 launcher.getSharedPrefs().getInt(HOME_BOUNCE_COUNT, 0))) { in onCreate()
120 launcher.getSharedPrefs().edit().putBoolean(HOME_BOUNCE_SEEN, true).apply(); in onCreate()
127 if (!launcher.getSharedPrefs().getBoolean(SHELF_BOUNCE_SEEN, false)) { in onCreate()
138 launcher.getSharedPrefs().getInt(SHELF_BOUNCE_COUNT, 0)) { in onCreate()
139 … launcher.getSharedPrefs().edit().putBoolean(SHELF_BOUNCE_SEEN, true).apply(); in onCreate()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionFeatureProvider.java39 public SharedPreferences getSharedPrefs(Context context) { in getSharedPrefs() method in SuggestionFeatureProvider
64 getSharedPrefs(context) in markSuggestionDismissed()
76 getSharedPrefs(context) in markSuggestionNotDismissed()
90 return getSharedPrefs(context) in isSuggestionDismissed()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DDiscoveryBounce.java148 || (launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false) in showForHomeIfNeeded()
174 || (launcher.getSharedPrefs().getBoolean(SHELF_BOUNCE_SEEN, false) in showForOverviewIfNeeded()
218 return !launcher.getSharedPrefs().getBoolean( in shouldShowForWorkProfile()
224 SharedPreferences sharedPrefs = launcher.getSharedPrefs(); in incrementShelfBounceCount()
233 SharedPreferences sharedPrefs = launcher.getSharedPrefs(); in incrementHomeBounceCount()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/states/
DAllAppsState.java50 if (!launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false)) { in onStateEnabled()
51 launcher.getSharedPrefs().edit().putBoolean(HOME_BOUNCE_SEEN, true).apply(); in onStateEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DDoubleTapScreenPreferenceControllerTest.java81 new SuggestionFeatureProviderImpl(context).getSharedPrefs(context); in isSuggestionCompleted_ambientDisplay_falseWhenNotVisited()
92 new SuggestionFeatureProviderImpl(context).getSharedPrefs(context); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
DDoubleTapPowerPreferenceControllerTest.java114 new SuggestionFeatureProviderImpl(mContext).getSharedPrefs(mContext); in isSuggestionCompleted_doubleTapPower_falseWhenNotVisited()
124 new SuggestionFeatureProviderImpl(mContext).getSharedPrefs(mContext); in isSuggestionCompleted_doubleTapPower_trueWhenVisited()
DSwipeToNotificationPreferenceControllerTest.java144 .getSharedPrefs(context); in isSuggestionCompleted_notVisited_shouldReturnFalse()
160 .getSharedPrefs(context); in isSuggestionCompleted_visited_shouldReturnTrue()
/packages/apps/Dialer/java/com/android/dialer/configprovider/
DSharedPrefConfigProvider.java81 Editor editor = getSharedPrefs(getApplicationContext()).edit(); in put()
129 private static SharedPreferences getSharedPrefs(Context appContext) { in getSharedPrefs() method in SharedPrefConfigProvider
/packages/apps/Launcher3/src/com/android/launcher3/views/
DBottomUserEducationView.java101 mLauncher.getSharedPrefs().edit() in handleClose()
126 if (launcher.getSharedPrefs().getBoolean(KEY_SHOWED_BOTTOM_USER_EDUCATION, false)) { in showIfNeeded()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DAllAppsTipView.java102 mLauncher.getSharedPrefs().edit().putBoolean(ALL_APPS_TIP_SEEN, true).apply(); in handleClose()
185 return launcher.getSharedPrefs().getBoolean(ALL_APPS_TIP_SEEN, false); in hasSeenAllAppsTip()
DAppsDividerView.java272 mLauncher.getSharedPrefs().edit().putInt(ALL_APPS_VISITED_COUNT, count).apply(); in setAllAppsVisitedCount()
276 return mLauncher.getSharedPrefs().getInt(ALL_APPS_VISITED_COUNT, 0); in getAllAppsVisitedCount()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherExterns.java29 SharedPreferences getSharedPrefs(); in getSharedPrefs() method
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProvider.java44 SharedPreferences getSharedPrefs(Context context); in getSharedPrefs() method
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/suggestions/
DSuggestionFeatureProvider.java44 SharedPreferences getSharedPrefs(Context context); in getSharedPrefs() method
/packages/apps/Settings/src/com/android/settings/gestures/
DDoubleTapPowerSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DDoubleTwistGestureSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DSwipeToNotificationSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DPickupGestureSettings.java48 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DDoubleTapScreenSettings.java48 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DDoubleTwistGestureSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DDoubleTapPowerSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()
DSystemNavigationGestureSettings.java47 SharedPreferences prefs = suggestionFeatureProvider.getSharedPrefs(context); in onAttach()

12