Home
last modified time | relevance | path

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

/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicy.java72 mContext.getSharedPreferences(APP_PREF, Context.MODE_PRIVATE).edit(); in saveToLocal()
89 SharedPreferences prefs = mContext.getSharedPreferences(APP_PREF, Context.MODE_PRIVATE); in readFromLocal()
163 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE); in onDisabled()
DPolicySetupActivity.java67 SharedPreferences prefs = getSharedPreferences(APP_PREF, MODE_PRIVATE); in onResume()
79 getSharedPreferences(APP_PREF, MODE_PRIVATE).edit().putInt( in setScreenContent()
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DStorageProviderFragment.java89 getActivity().MODE_PRIVATE); in writeLoginValue()
99 getActivity().MODE_PRIVATE); in readLoginValue()
DMyCloudProvider.java590 FileOutputStream fos = getContext().openFileOutput(filename, Context.MODE_PRIVATE);
616 Context.MODE_PRIVATE);
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/
DFitDistanceWatchFaceConfigActivity.java74 SharedPreferences sharedPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
247 SharedPreferences sharedPreferences = getPreferences(Context.MODE_PRIVATE); in setUserFitPreferences()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DKeyChainDemoActivity.java183 MODE_PRIVATE); in getAlias()
192 MODE_PRIVATE); in setAlias()
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessageLogger.java48 return context.getSharedPreferences(PREF_MESSAGE, Context.MODE_PRIVATE); in getPrefs()
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/
DVoiceRecognitionService.java50 Context.MODE_PRIVATE); in onStartListening()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerFragment.java248 return activity.getSharedPreferences(PREFS_DEVICE_OWNER, Context.MODE_PRIVATE) in loadPersistentPreferredLauncher()
260 Context.MODE_PRIVATE).edit(); in savePersistentPreferredLauncher()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmStorage.java56 .getSharedPreferences(ALARM_PREFERENCES_NAME, Context.MODE_PRIVATE); in AlarmStorage()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DChangedContacts.java147 SharedPreferences pref = getSharedPreferences(CLASS, Context.MODE_PRIVATE); in saveLastTimestamp()
154 SharedPreferences pref = getSharedPreferences(CLASS, Context.MODE_PRIVATE); in getLastTimestamp()
DInstallApk.java144 int fileMode = useFileProvider ? Context.MODE_PRIVATE : Context.MODE_WORLD_READABLE; in getApkUri()
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
DSimpleGeofenceStore.java46 mPrefs = context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE); in SimpleGeofenceStore()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java104 final SharedPreferences prefs = getSharedPreferences(ToyVpnClient.Prefs.NAME, MODE_PRIVATE); in connect()
DToyVpnClient.java59 final SharedPreferences prefs = getSharedPreferences(Prefs.NAME, MODE_PRIVATE); in onCreate()
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DBrokenKeyDerivationActivity.java261 try (FileOutputStream fos = openFileOutput(fileName, Context.MODE_PRIVATE)) { in writeToFile() argument
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DRobotSpeakTtsService.java67 Context.MODE_PRIVATE); in onCreate()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DSoundRecorder.java98 mContext.openFileOutput(mOutputFileName, Context.MODE_PRIVATE)); in startRecording()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DAppRestrictionEnforcerFragment.java245 SharedPreferences prefs = activity.getSharedPreferences(PREFS_KEY, Context.MODE_PRIVATE); in loadRestrictions()
495 return activity.getSharedPreferences(PREFS_KEY, Context.MODE_PRIVATE).edit(); in editPreferences()
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DAddFileActivity.java232 out = openFileOutput(file.getName(), Context.MODE_PRIVATE); in createFileWithRandomDataAndFinishActivity()
/development/apps/CustomLocale/src/com/android/customlocale2/
DCustomLocaleActivity.java85 mPrefs = getPreferences(MODE_PRIVATE); in onCreate()
/development/samples/Vault/src/com/example/android/vault/
DVaultProvider.java301 .getSharedPreferences(PREF_NEXT_ID, Context.MODE_PRIVATE); in createDocument()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java206 mPrefs = getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE); in onCreate()