Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPrefs.java26 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE); in read()
30 return context.getSharedPreferences(Prefs.SHARED_PREFS_NAME, Context.MODE_PRIVATE).edit(); in edit()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportPrefs.java36 PREFS_BUGREPORT, Context.MODE_PRIVATE); in getWarningState()
42 PREFS_BUGREPORT, Context.MODE_PRIVATE); in setWarningState()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java97 output = new PrintStream(openFileOutput(FILE_NAME, MODE_PRIVATE));
114 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE);
123 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE);
134 writeFile("a", "a\naa", MODE_PRIVATE);
135 writeFile("empty", "", MODE_PRIVATE);
/frameworks/base/services/tests/servicestests/src/com/android/server/
DEntropyMixerTest.java31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE); in testInitialWrite()
/frameworks/base/docs/html/training/basics/data-storage/
Dshared-preferences.jd68 getString(R.string.preference_file_key), Context.MODE_PRIVATE);
78 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
99 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
115 SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
Dfiles.jd168 outputStream = openFileOutput(filename, Context.MODE_PRIVATE);
201 as you use {@link android.content.Context#MODE_PRIVATE} for your files on the internal storage,
/frameworks/base/core/java/android/net/
DSSLSessionCache.java97 File dir = context.getDir("sslcache", Context.MODE_PRIVATE); in SSLSessionCache()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java41 dbDir = getContext().getDir(this.getClass().getName(), Context.MODE_PRIVATE); in setUp()
DDatabaseStatementTest.java44 File dbDir = getContext().getDir("tests", Context.MODE_PRIVATE); in setUp()
DDatabaseCursorTest.java54 File dbDir = getContext().getDir("tests", Context.MODE_PRIVATE); in setUp()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneResultAdapter.java145 Context.MODE_PRIVATE); in onSetFilter()
198 Context.MODE_PRIVATE); in saveRecentTimezone()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java378 return Context.MODE_PRIVATE; in getDefaultSharedPreferencesMode()
479 KEY_HAS_SET_DEFAULT_VALUES, Context.MODE_PRIVATE); in setDefaultValues()
/frameworks/multidex/library/src/android/support/multidex/
DMultiDexExtractor.java247 ? Context.MODE_PRIVATE in getMultiDexPreferences()
248 : Context.MODE_PRIVATE | Context.MODE_MULTI_PROCESS); in getMultiDexPreferences()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCursorTest.java37 File dbDir = getContext().getDir(this.getClass().getName(), Context.MODE_PRIVATE); in setUp()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java103 OutputStream out = getContext().openFileOutput(DATA_FILE, Context.MODE_PRIVATE); in onCreate()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphExporter.java54 FileOutputStream fOut = myAppContext.openFileOutput(filename, Context.MODE_PRIVATE); in exportAsDot()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java50 mDir = getContext().getDir("testing", Context.MODE_PRIVATE); in setUp()
/frameworks/base/core/java/com/android/server/
DBootReceiver.java98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
/frameworks/webview/chromium/java/com/android/webview/chromium/
DWebViewChromiumFactoryProvider.java116 CHROMIUM_PREFS_NAME, Context.MODE_PRIVATE); in WebViewChromiumFactoryProvider()
/frameworks/testing/support/src/android/support/test/runner/
DMonitoringInstrumentation.java127 File dexCache = getTargetContext().getDir("dxmaker_cache", Context.MODE_PRIVATE); in specifyDexMakerCacheProperty()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java239 … mDeviceProperties = context.getSharedPreferences(devicePropertiesName, Context.MODE_PRIVATE); in initDeviceProperties()
248 db = context.openOrCreateDatabase("device-properties", Context.MODE_PRIVATE, null); in initDeviceProperties()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserModel.java1048 fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE); in doInBackground()
/frameworks/base/core/java/android/content/
DContext.java76 public static final int MODE_PRIVATE = 0x0000; field in Context
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java1067 fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE); in doInBackground()
/frameworks/base/docs/html/training/enterprise/
Ddevice-management-policy.jd107 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE);

12