Home
last modified time | relevance | path

Searched refs:MODE_PRIVATE (Results 1 – 25 of 155) sorted by relevance

1234567

/packages/apps/TV/common/src/com/android/tv/common/util/
DSharedPreferencesUtils.java59 context.getSharedPreferences(SHARED_PREF_FEATURES, Context.MODE_PRIVATE); in initialize()
60 context.getSharedPreferences(SHARED_PREF_BROWSABLE, Context.MODE_PRIVATE); in initialize()
61 context.getSharedPreferences(SHARED_PREF_WATCHED_HISTORY, Context.MODE_PRIVATE); in initialize()
63 SHARED_PREF_DVR_WATCHED_POSITION, Context.MODE_PRIVATE); in initialize()
65 SHARED_PREF_AUDIO_CAPABILITIES, Context.MODE_PRIVATE); in initialize()
67 SHARED_PREF_RECURRING_RUNNER, Context.MODE_PRIVATE); in initialize()
68 context.getSharedPreferences(SHARED_PREF_EPG, Context.MODE_PRIVATE); in initialize()
70 SHARED_PREF_SERIES_RECORDINGS, Context.MODE_PRIVATE); in initialize()
71 context.getSharedPreferences(SHARED_PREF_UI_SETTINGS, Context.MODE_PRIVATE); in initialize()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java46 getSharedPreferencesName(), Context.MODE_PRIVATE); in getInt()
54 getSharedPreferencesName(), Context.MODE_PRIVATE); in getLong()
62 getSharedPreferencesName(), Context.MODE_PRIVATE); in getBoolean()
70 getSharedPreferencesName(), Context.MODE_PRIVATE); in getString()
84 getSharedPreferencesName(), Context.MODE_PRIVATE); in putInt()
94 getSharedPreferencesName(), Context.MODE_PRIVATE); in putLong()
104 getSharedPreferencesName(), Context.MODE_PRIVATE); in putBoolean()
114 getSharedPreferencesName(), Context.MODE_PRIVATE); in putString()
130 getSharedPreferencesName(), Context.MODE_PRIVATE); in remove()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java71 Context.MODE_PRIVATE); in tearDown()
150 Context.MODE_PRIVATE); in onChangePassword_savesNewPassword()
168 Context.MODE_PRIVATE); in onSecurityChangedToNone_visibilityIsFalse()
187 Context.MODE_PRIVATE); in onSecurityChangedToWPA2PSK_visibilityIsTrue()
207 Context.MODE_PRIVATE); in onSecurityChangedToNone_updatesSecurityTypeToNone()
228 Context.MODE_PRIVATE); in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK()
246 Context.MODE_PRIVATE); in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword()
DWifiTetherSecurityPreferenceControllerTest.java68 Context.MODE_PRIVATE); in tearDown()
112 Context.MODE_PRIVATE); in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone()
131 Context.MODE_PRIVATE); in onPreferenceChangedToWPA2PSK_updatesSharedSecurityTypeToWPA2PSK()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java288 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_packageNotInSharedPrefs_returnTrue()
299 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
317 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
320 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
339 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
342 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
364 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
367 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseHelper.java164 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
207 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
215 Context.MODE_PRIVATE) in isBuildIndexed()
221 Context.MODE_PRIVATE) in isLocaleIndexed()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java175 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
218 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
226 Context.MODE_PRIVATE) in isBuildIndexed()
232 Context.MODE_PRIVATE) in isLocaleIndexed()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DContextualAdaptiveSleepSlice.java65 final long setupTime = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE).getLong( in getSlice()
69 mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE) in getSlice()
141 return mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE).getBoolean( in isUserInteracted()
153 Context.MODE_PRIVATE).getLong(PREF_KEY_SETUP_TIME, DEFAULT_SETUP_TIME); in isRecentlySetup()
DBatteryFixSlice.java19 import static android.content.Context.MODE_PRIVATE;
192 final SharedPreferences prefs = context.getSharedPreferences(PREFS, MODE_PRIVATE); in isBatteryTipAvailableFromCache()
214 context.getSharedPreferences(PREFS, MODE_PRIVATE) in refreshBatteryTips()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java161 Context.MODE_PRIVATE); in shouldShowNotification()
262 Context.MODE_PRIVATE); in incrementNotificationShownCount()
271 Context.MODE_PRIVATE); in incrementNotificationDismissedCount()
280 Context.MODE_PRIVATE); in delayNextNotification()
/packages/apps/Launcher3/src/com/android/launcher3/config/
DFlagTogglerPrefUi.java56 FLAGS_PREF_NAME, Context.MODE_PRIVATE).edit();
71 return mContext.getSharedPreferences(FLAGS_PREF_NAME, Context.MODE_PRIVATE)
83 FLAGS_PREF_NAME, Context.MODE_PRIVATE); in FlagTogglerPrefUi()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleAutoclickPreferenceController.java19 import static android.content.Context.MODE_PRIVATE;
75 mSharedPreferences = context.getSharedPreferences(context.getPackageName(), MODE_PRIVATE); in ToggleAutoclickPreferenceController()
86 mSharedPreferences = context.getSharedPreferences(context.getPackageName(), MODE_PRIVATE); in ToggleAutoclickPreferenceController()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java160 Context.MODE_PRIVATE); in initEffectsPreferences()
360 Context.MODE_PRIVATE); in setParameterBoolean()
530 Context.MODE_PRIVATE); in getParameterBoolean()
561 Context.MODE_PRIVATE); in setParameterInt()
796 Context.MODE_PRIVATE); in getParameterInt()
869 Context.MODE_PRIVATE); in getParameterIntArray()
923 Context.MODE_PRIVATE); in getParameterString()
981 Context.MODE_PRIVATE); in openSession()
DCompatibility.java66 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in onCreate()
160 SharedPreferences pref = context.getSharedPreferences("musicfx", Context.MODE_PRIVATE); in searchControlPanel()
225 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in setDefault()
/packages/apps/Settings/src/com/android/settings/development/
DOverlaySettingsPreferenceController.java69 Context.MODE_PRIVATE); in isOverlaySettingsEnabled()
79 Context.MODE_PRIVATE); in setOverlaySettingsEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBatteryFixSlice.java19 import static android.content.Context.MODE_PRIVATE;
178 final SharedPreferences prefs = context.getSharedPreferences(PREFS, MODE_PRIVATE); in isBatteryTipAvailableFromCache()
199 context.getSharedPreferences(PREFS, MODE_PRIVATE) in refreshBatteryTips()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DDisclaimerItem.java122 Context.MODE_PRIVATE); in getBooleanSharedPrefs()
134 Context.MODE_PRIVATE); in setBooleanSharedPrefs()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DSharedPreferencesFeature.java56 SharedPreferencesUtils.SHARED_PREF_FEATURES, Context.MODE_PRIVATE); in isEnabled()
73 SharedPreferencesUtils.SHARED_PREF_FEATURES, Context.MODE_PRIVATE); in setEnabled()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DDisclaimerItem.java122 Context.MODE_PRIVATE); in getBooleanSharedPrefs()
134 Context.MODE_PRIVATE); in setBooleanSharedPrefs()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java234 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
294 context.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setIndexed()
316 .getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE); in isFullIndex()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DManagedProvisioningSharedPreferencesTest.java56 Context.MODE_PRIVATE); in setUp()
59 when(mContext.getSharedPreferences(eq(SHARED_PREFERENCE), eq(Context.MODE_PRIVATE))) in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOverlaySettingsPreferenceControllerTest.java88 Context.MODE_PRIVATE); in isOverlaySettingsEnabled_sharePreferenceSetTrue_shouldReturnTrue()
98 Context.MODE_PRIVATE); in isOverlaySettingsEnabled_sharePreferenceSetFalse_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DHideNonSystemOverlayMixinTest.java78 Context.MODE_PRIVATE); in isEnabled_isAllowedOverlaySettings_returnFalse()
90 Context.MODE_PRIVATE); in isEnabled_isNotAllowedOverlaySettings_returnTrue()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinDialogFragment.java83 return context.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE) in getDisablePinUntil()
92 context.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE) in setDisablePinUntil()
DUserSwitchListenerService.java80 Context.MODE_PRIVATE).edit(); in setBootUser()
87 Context.MODE_PRIVATE); in getBootUser()

1234567