Home
last modified time | relevance | path

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

12345678910>>...12

/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/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/
DDefaultWallpaperPreferencesTest.kt50 Context.MODE_PRIVATE in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences()
69 Context.MODE_PRIVATE in setHomeStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences()
92 Context.MODE_PRIVATE in setHomeLiveWallpaperMetadata_metadataShouldBeSavedToPreferences()
105 Context.MODE_PRIVATE in setHomeLiveWallpaperMetadata_metadataShouldBeSavedToPreferences()
130 Context.MODE_PRIVATE in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences()
149 Context.MODE_PRIVATE in setLockStaticImageWallpaperMetadata_metadataShouldBeSavedToPreferences()
172 Context.MODE_PRIVATE in setLockLiveWallpaperMetadata_metadataShouldBeSavedToPreferences()
185 Context.MODE_PRIVATE in setLockLiveWallpaperMetadata_metadataShouldBeSavedToPreferences()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DImportManagerTest.java102 File testDir = mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE); in tearDown()
122 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.db"); in copiesAllData()
125 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.zip"); in copiesAllData()
160 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.db"); in skipsMissingTables()
174 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.zip"); in skipsMissingTables()
200 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.db"); in deletesTheDatabase()
215 mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.txt"); in runImport_importNotADatabase_setsWrongFileError()
217 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.zip"); in runImport_importNotADatabase_setsWrongFileError()
230 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.db"); in runImport_versionMismatch_setsVersionMismatchError()
238 new File(mContext.getDir(TEST_DIRECTORY_NAME, Context.MODE_PRIVATE), "export.zip"); in runImport_versionMismatch_setsVersionMismatchError()
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingUtils.java38 SMART_FORWARDING_PREF + subId, Context.MODE_PRIVATE); in getBackupCallWaitingStatus()
44 SMART_FORWARDING_PREF + subId, Context.MODE_PRIVATE); in getBackupCallForwardingStatus()
60 SMART_FORWARDING_PREF + subId, Context.MODE_PRIVATE).edit(); in saveCallWaitingStatus()
67 SMART_FORWARDING_PREF + subId, Context.MODE_PRIVATE).edit(); in saveCallForwardingStatus()
79 SMART_FORWARDING_PREF + subId, Context.MODE_PRIVATE).edit(); in clearBackupData()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java76 Context.MODE_PRIVATE); in tearDown()
155 Context.MODE_PRIVATE); in onChangePassword_savesNewPassword()
173 Context.MODE_PRIVATE); in onSecurityChangedToNone_visibilityIsFalse()
192 Context.MODE_PRIVATE); in onSecurityChangedToWPA2PSK_visibilityIsTrue()
212 Context.MODE_PRIVATE); in onSecurityChangedToNone_updatesSecurityTypeToNone()
233 Context.MODE_PRIVATE); in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK()
251 Context.MODE_PRIVATE); in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword()
/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/
DSettings.java77 PREF_CARRIER_CONFIG, Context.MODE_PRIVATE); in Settings()
81 sharedPref = cxt.getSharedPreferences(PREF_TEST_CONFIG, Context.MODE_PRIVATE); in Settings()
89 sharedPref = cxt.getSharedPreferences(PREF_SERVICE_CONFIG, Context.MODE_PRIVATE); in Settings()
137 PREF_CARRIER_CONFIG, Context.MODE_PRIVATE); in updateCarrierConfig()
190 PREF_SERVICE_CONFIG, Context.MODE_PRIVATE); in updateServiceConfig()
242 PREF_TEST_CONFIG, Context.MODE_PRIVATE); in updateTestConfig()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java186 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in reconstruct()
229 mContext.getSharedPreferences(SHARED_PREFS_TAG, Context.MODE_PRIVATE) in setLocaleIndexed()
237 Context.MODE_PRIVATE) in isBuildIndexed()
243 Context.MODE_PRIVATE) in isLocaleIndexed()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java284 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_packageNotInSharedPrefs_returnTrue()
295 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
313 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
316 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
335 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
338 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
360 context.getSharedPreferences(ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
363 ModuleLicenseProvider.PREFS_NAME, Context.MODE_PRIVATE) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DContextualAdaptiveSleepSlice.java66 final long setupTime = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE).getLong( in getSlice()
70 mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE) in getSlice()
149 return mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE).getBoolean( in isUserInteracted()
161 Context.MODE_PRIVATE).getLong(PREF_KEY_SETUP_TIME, DEFAULT_SETUP_TIME); in isRecentlySetup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DFileCompatUtilsTest.java148 FileCompatUtils.getSharedPreferencesHelper(mContext, BASE_FILENAME, Context.MODE_PRIVATE); in testGetSharedPreferencesHelper_shouldPrependAdservices_SMinus()
150 .getSharedPreferences(ADSERVICES_PREFIX + BASE_FILENAME, Context.MODE_PRIVATE); in testGetSharedPreferencesHelper_shouldPrependAdservices_SMinus()
157 FileCompatUtils.getSharedPreferencesHelper(mContext, BASE_FILENAME, Context.MODE_PRIVATE); in testGetSharedPreferencesHelper_shouldNotPrependAdservices_TPlus()
158 verify(mContext).getSharedPreferences(BASE_FILENAME, Context.MODE_PRIVATE); in testGetSharedPreferencesHelper_shouldNotPrependAdservices_TPlus()
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSimSlotChangeHandler.java19 import static android.content.Context.MODE_PRIVATE;
291 final SharedPreferences prefs = context.getSharedPreferences(EUICC_PREFS, MODE_PRIVATE); in getLastRemovableSimSlotState()
296 final SharedPreferences prefs = context.getSharedPreferences(EUICC_PREFS, MODE_PRIVATE); in setRemovableSimSlotState()
302 final SharedPreferences prefs = context.getSharedPreferences(EUICC_PREFS, MODE_PRIVATE); in getSuwRemovableSlotAction()
307 final SharedPreferences prefs = context.getSharedPreferences(EUICC_PREFS, MODE_PRIVATE); in setSuwRemovableSlotAction()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DDataMigration.java213 SharedPreferences pref = ctx.getSharedPreferences(prefKey, Context.MODE_PRIVATE); in sharedPreferencesMigration()
236 SharedPreferences pref = ctx.getSharedPreferences(BLUETOOTH_CONFIG, Context.MODE_PRIVATE); in migrationStatus()
242 SharedPreferences pref = ctx.getSharedPreferences(BLUETOOTH_CONFIG, Context.MODE_PRIVATE); in incrementeMigrationAttempt()
261 ctx.getSharedPreferences(BLUETOOTH_CONFIG, Context.MODE_PRIVATE) in markMigrationStatus()
/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DNbIotSatellite.java161 SharedPreferences sh = getSharedPreferences("MySharedPref", MODE_PRIVATE); in onResume()
174 SharedPreferences sharedPreferences = getSharedPreferences(MY_SHARED_PREF, MODE_PRIVATE); in onPause()
188 SharedPreferences sharedPreferences = getSharedPreferences(MY_SHARED_PREF, MODE_PRIVATE); in onDestroy()
DProvisioning.java179 SharedPreferences sh = getSharedPreferences("MySharedPref", MODE_PRIVATE); in onResume()
192 SharedPreferences sharedPreferences = getSharedPreferences("MySharedPref", MODE_PRIVATE); in onPause()
202 SharedPreferences sharedPreferences = getSharedPreferences("MySharedPref", MODE_PRIVATE); in onDestroy()
/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/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobServiceLoggerTest.java107 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testPersistJobExecutionData_firstExecution()
134 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testPersistJobExecutionData_openEndedLastExecution()
180 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testPersistJobExecutionData_closeEndedLastExecution()
220 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testPersistJobExecutionData_multipleJobs()
260 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testLogExecutionStats()
294 sContext.getSharedPreferences(SHARED_PREFS_BACKGROUND_JOBS, Context.MODE_PRIVATE); in testLogExecutionStats_invalidStats()
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/
DCallAudioTestActivity.java48 SharedPreferences prefs = getSharedPreferences(AUDIO_TEST_PREFS, MODE_PRIVATE); in onCreate()
58 SharedPreferences prefs = getSharedPreferences(AUDIO_TEST_PREFS, MODE_PRIVATE); in loadPreferences()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherPrefs.kt19 import android.content.Context.MODE_PRIVATE in <lambda>()
47 deviceProtectedStorageContext.getSharedPreferences(BOOT_AWARE_PREFS_KEY, MODE_PRIVATE) in <lambda>()
50 get() = encryptedContext.getSharedPreferences(sharedPrefFile, MODE_PRIVATE) in <lambda>()
365 MODE_PRIVATE in <lambda>()
375 MODE_PRIVATE in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSubscriptionActionDialogActivity.java19 import static android.content.Context.MODE_PRIVATE;
97 final SharedPreferences prefs = getSharedPreferences(SIM_ACTION_DIALOG_PREFS, MODE_PRIVATE); in setProgressState()
/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastServiceMetrics.java19 import static android.content.Context.MODE_PRIVATE;
81 SharedPreferences sp = mContext.getSharedPreferences(CBS_METRIC_PREF, MODE_PRIVATE); in FeatureMetrics()
181 SharedPreferences sp = mContext.getSharedPreferences(CBS_METRIC_PREF, MODE_PRIVATE); in updateSharedPreferences()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetherSecurityPreferenceControllerTest.java169 Context.MODE_PRIVATE); in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone()
185 Context.MODE_PRIVATE); in onPreferenceChangedToWPA2PSK_updatesSharedSecurityTypeToWPA2PSK()
208 Context.MODE_PRIVATE); in onPreferenceChangedToWPA3SAE_updatesSharedSecurityTypeToWPA3SAE()
231 Context.MODE_PRIVATE); in onPreferenceChangedToWPA3SAE_updatesSharedSecurityTypeToWPA2PSK()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DManagedProvisioningSharedPreferencesTest.java54 Context.MODE_PRIVATE); in setUp()
57 when(mContext.getSharedPreferences(eq(SHARED_PREFERENCE), eq(Context.MODE_PRIVATE))) in setUp()

12345678910>>...12