/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | SharedPreferencesUtils.java | 59 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/ |
D | BuglePrefsImpl.java | 46 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/ |
D | DefaultWallpaperPreferencesTest.kt | 50 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/ |
D | ImportManagerTest.java | 102 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/ |
D | SmartForwardingUtils.java | 38 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/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 76 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/ |
D | Settings.java | 77 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/ |
D | SlicesDatabaseHelper.java | 186 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/ |
D | ModuleLicenseProviderTest.java | 284 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/ |
D | ContextualAdaptiveSleepSlice.java | 66 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/ |
D | FileCompatUtilsTest.java | 148 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/ |
D | SimSlotChangeHandler.java | 19 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/ |
D | DataMigration.java | 213 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/ |
D | NbIotSatellite.java | 161 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()
|
D | Provisioning.java | 179 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/ |
D | NotificationController.java | 161 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/ |
D | JobServiceLoggerTest.java | 107 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/ |
D | CallAudioTestActivity.java | 48 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/ |
D | LauncherPrefs.kt | 19 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/ |
D | SubscriptionActionDialogActivity.java | 19 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/ |
D | SharedPreferencesFeature.java | 56 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/ |
D | DisclaimerItem.java | 122 Context.MODE_PRIVATE); in getBooleanSharedPrefs() 134 Context.MODE_PRIVATE); in setBooleanSharedPrefs()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CellBroadcastServiceMetrics.java | 19 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/ |
D | WifiTetherSecurityPreferenceControllerTest.java | 169 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/ |
D | ManagedProvisioningSharedPreferencesTest.java | 54 Context.MODE_PRIVATE); in setUp() 57 when(mContext.getSharedPreferences(eq(SHARED_PREFERENCE), eq(Context.MODE_PRIVATE))) in setUp()
|