Home
last modified time | relevance | path

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

/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DSharedPrefUtil.java45 EAB_SHARED_PREF, Context.MODE_PRIVATE); in isInitDone()
51 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in setInitDone()
58 Context.MODE_PRIVATE); in getLastContactChangedTimestamp()
65 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in saveLastContactChangedTimestamp()
72 Context.MODE_PRIVATE); in getLastProfileContactChangedTimestamp()
79 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in saveLastProfileContactChangedTimestamp()
86 Context.MODE_PRIVATE); in getLastContactDeletedTimestamp()
93 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in saveLastContactDeletedTimestamp()
101 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in validateDeviceTimestamp()
113 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in resetEABSharedPref()
[all …]
DPresencePreferences.java48 mCommonPref = mContext.getSharedPreferences(PREFERENCES, Context.MODE_PRIVATE); in setContext()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSharedPreferencesTest.java36 sharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in setUp()
57 …references anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in commit_shouldStoreValues()
73 …references anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in commit_shouldClearEditsThatNeedRemoveAndEditsThatNeedCommit()
98 …references anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in commit_shouldRemoveValuesThenSetValues()
118 …references anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in commit_shouldClearThenSetValues()
154 …references anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in apply_shouldStoreValues()
160 …eferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_PRIVATE); in shouldReturnDefaultValues()
171 …eferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_PRIVATE); in shouldRemoveRegisteredListenersOnUnresgister()
184 …eferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_PRIVATE); in shouldTriggerRegisteredListeners()
DShadowContextImplTest.java63 .getSharedPreferences(PREFS, Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
70 assertThat(dpContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()
72 assertThat(context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()
77 assertThat(dpContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()
79 assertThat(context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()
DShadowContextTest.java52 File dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldGetApplicationDataDirectory()
63 dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
178 …ry (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE)) { in openFileOutput_shouldReturnAFileOutputStream() argument
DShadowContextWrapperTest.java635 … final SharedPreferences pref1 = contextWrapper.getSharedPreferences("pref", Context.MODE_PRIVATE);
636 … final SharedPreferences pref2 = contextWrapper.getSharedPreferences("pref", Context.MODE_PRIVATE);
643 …final SharedPreferences pref1 = contextWrapper.getSharedPreferences("pref1", Context.MODE_PRIVATE);
644 …final SharedPreferences pref2 = contextWrapper.getSharedPreferences("pref2", Context.MODE_PRIVATE);
DShadowActivityTest.java549 SharedPreferences preferences = activity.getPreferences(Context.MODE_PRIVATE); in shouldGiveSharedPreferences()
552 … assertThat(activity.getPreferences(Context.MODE_PRIVATE).getString("foo", null)).isEqualTo("bar"); in shouldGiveSharedPreferences()
/external/libbackup/src/com/google/android/libraries/backup/
DPersistentBackupAgentHelper.java65 Editor backupEditor = getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE).edit(); in writeFromPreferenceFilesToBackupFile()
99 SharedPreferences srcSharedPreferences = getSharedPreferences(srcFileName, MODE_PRIVATE); in writeToBackupFile()
153 getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE).edit().clear().apply(); in clearBackupFile()
167 getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE); in writeFromBackupFileToPreferenceFiles()
188 editor = getSharedPreferences(fileName, MODE_PRIVATE).edit(); in writeFromBackupFileToPreferenceFiles()
DPreferenceBackupUtil.java41 SharedPreferences preferences = context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in encodeRingtonePreference()
88 SharedPreferences preferences = context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in decodeRingtonePreference()
/external/replicaisland/src/com/replica/replicaisland/
DSetPreferencesActivity.java33 getPreferenceManager().setSharedPreferencesMode(MODE_PRIVATE); in onCreate()
48 config.setPrefs(getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE)); in onCreate()
62 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onDialogClosed()
DExtrasMenuActivity.java43 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE);
57 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE);
94 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
DMainMenuActivity.java139 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
190 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onResume()
346 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreateDialog()
DGameOverActivity.java140 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
DAndouKun.java102 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
289 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onResume()
/external/libbackup/src/com/google/android/libraries/backup/shadow/
DSharedPreferencesBackupHelperSimulator.java3 import static android.content.Context.MODE_PRIVATE;
87 Map<String, ?> prefs = context.getSharedPreferences(prefGroup, MODE_PRIVATE).getAll(); in backup()
119 if (context.getSharedPreferences(prefGroup, MODE_PRIVATE).getAll().isEmpty()) { in restore()
139 Editor editor = context.getSharedPreferences(prefGroup, MODE_PRIVATE).edit().clear(); in restore()
/external/libchrome/base/android/java/src/org/chromium/base/
DPathUtils.java115 sDataDirectorySuffix, Context.MODE_PRIVATE).getPath(); in setPrivateDataDirectorySuffixInternal()
119 THUMBNAIL_DIRECTORY_NAME, Context.MODE_PRIVATE).getPath(); in setPrivateDataDirectorySuffixInternal()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DSampleChooserActivity.java211 SharedPreferences preferences = getPreferences(MODE_PRIVATE); in onPlaylistGroups()
231 SharedPreferences.Editor prefEditor = getPreferences(MODE_PRIVATE).edit(); in onChildClick()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DPeerConnectionClient.java666 appContext.getDir(RTCEVENTLOG_OUTPUT_DIR_NAME, Context.MODE_PRIVATE), outputFileName); in createRtcEventLogOutputFile()