/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/ |
D | Policy.java | 72 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()
|
D | PolicySetupActivity.java | 67 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/ |
D | StorageProviderFragment.java | 89 getActivity().MODE_PRIVATE); in writeLoginValue() 99 getActivity().MODE_PRIVATE); in readLoginValue()
|
D | MyCloudProvider.java | 590 FileOutputStream fos = getContext().openFileOutput(filename, Context.MODE_PRIVATE); 616 Context.MODE_PRIVATE);
|
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/ |
D | MessageLogger.java | 48 return context.getSharedPreferences(PREF_MESSAGE, Context.MODE_PRIVATE); in getPrefs()
|
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/ |
D | VoiceRecognitionService.java | 50 Context.MODE_PRIVATE); in onStartListening()
|
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/ |
D | FitDistanceWatchFaceConfigActivity.java | 74 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/ |
D | KeyChainDemoActivity.java | 183 MODE_PRIVATE); in getAlias() 192 MODE_PRIVATE); in setAlias()
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
D | AlarmStorage.java | 56 .getSharedPreferences(ALARM_PREFERENCES_NAME, Context.MODE_PRIVATE); in AlarmStorage()
|
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/ |
D | DeviceOwnerFragment.java | 248 return activity.getSharedPreferences(PREFS_DEVICE_OWNER, Context.MODE_PRIVATE) in loadPersistentPreferredLauncher() 260 Context.MODE_PRIVATE).edit(); in savePersistentPreferredLauncher()
|
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
D | SimpleGeofenceStore.java | 46 mPrefs = context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE); in SimpleGeofenceStore()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ChangedContacts.java | 147 SharedPreferences pref = getSharedPreferences(CLASS, Context.MODE_PRIVATE); in saveLastTimestamp() 154 SharedPreferences pref = getSharedPreferences(CLASS, Context.MODE_PRIVATE); in getLastTimestamp()
|
D | InstallApk.java | 144 int fileMode = useFileProvider ? Context.MODE_PRIVATE : Context.MODE_WORLD_READABLE; in getApkUri()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnService.java | 104 final SharedPreferences prefs = getSharedPreferences(ToyVpnClient.Prefs.NAME, MODE_PRIVATE); in connect()
|
D | ToyVpnClient.java | 59 final SharedPreferences prefs = getSharedPreferences(Prefs.NAME, MODE_PRIVATE); in onCreate()
|
/development/samples/TtsEngine/src/com/example/android/ttsengine/ |
D | RobotSpeakTtsService.java | 67 Context.MODE_PRIVATE); in onCreate()
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | BrokenKeyDerivationActivity.java | 261 try (FileOutputStream fos = openFileOutput(fileName, Context.MODE_PRIVATE)) { in writeToFile() argument
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | SoundRecorder.java | 98 mContext.openFileOutput(mOutputFileName, Context.MODE_PRIVATE)); in startRecording()
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
D | AppRestrictionEnforcerFragment.java | 245 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/ |
D | AddFileActivity.java | 232 out = openFileOutput(file.getName(), Context.MODE_PRIVATE); in createFileWithRandomDataAndFinishActivity()
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
D | CustomLocaleActivity.java | 85 mPrefs = getPreferences(MODE_PRIVATE); in onCreate()
|
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/ |
D | DumpActivity.java | 206 mPrefs = getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE); in onCreate()
|
/development/samples/Vault/src/com/example/android/vault/ |
D | VaultProvider.java | 301 .getSharedPreferences(PREF_NEXT_ID, Context.MODE_PRIVATE); in createDocument()
|