Home
last modified time | relevance | path

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

123

/cts/hostsidetests/backup/SuccessNotificationApp/src/android/cts/backup/successnotificationapp/
DSuccessNotificationTest.java37 getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE).edit().clear() in clearBackupSuccessNotificationsReceived()
43 assertTrue(getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE) in verifyBackupSuccessNotificationReceivedForKeyValueApp()
49 assertTrue(getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE) in verifyBackupSuccessNotificationReceivedForFullBackupApp()
DSuccessNotificationReceiver.java36 context.getSharedPreferences(SuccessNotificationTest.PREFS_FILE, Context.MODE_PRIVATE) in onReceive()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java118 mContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit().putInt("answer", 42) in testMoveSharedPreferencesFrom()
123 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
125 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
130 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
132 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
136 deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit() in testMoveSharedPreferencesFrom()
140 assertEquals(42, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
142 assertEquals(24, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
144 assertEquals(0, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
146 assertEquals(0, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
[all …]
DSharedPreferencesTest.java246 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); in testTorture()
250 prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); in testTorture()
287 … SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in testTorture2()
321 clonePrefsName, Context.MODE_PRIVATE); in testTorture2()
DContentProviderTest.java188 mContext.openFileOutput(TEST_FILE_NAME, Context.MODE_PRIVATE).close(); in testOpenFileHelper()
309 mDb = mContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null); in OpenFileContentProvider()
/cts/hostsidetests/backup/RestoreAnyVersion/src/
DRestoreAnyVersionTest.java19 import static android.content.Context.MODE_PRIVATE;
104 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveAppVersionCodeToSharedPreference()
113 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in getAppSharedPreference()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java19 import static android.content.Context.MODE_PRIVATE;
216 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveSharedPreferencesValues()
222 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in saveSharedPreferencesValues()
243 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in readSharedPrefValues()
247 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in readSharedPrefValues()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DBroadcastIntentReceiver.java33 SharedPreferences prefs = c.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in onReceive()
DClearApplicationDataTest.java45 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in setUp()
DOwnerChangedBroadcastTest.java39 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE); in setUp()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBlockChangeReceiver.java18 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
DNotificationListenerVerifierActivity.java276 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
301 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
355 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
380 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
423 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
452 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
495 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
520 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
/cts/hostsidetests/backup/SharedPreferencesRestoreApp/src/android/cts/backup/sharedprefrestoreapp/
DSharedPrefsRestoreTestActivity.java54 mPrefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in onCreate()
/cts/tests/tests/util/src/android/util/cts/
DPrintWriterPrinterTest.java49 Context.MODE_PRIVATE); in setup()
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/
DClientTest.java68 .getContext().openFileOutput("test.txt", Context.MODE_PRIVATE)) { in testInstantApplicationWriteFile() argument
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java103 mContext.getSharedPreferences("include_shared_pref", Context.MODE_PRIVATE); in setupFiles()
105 mContext.getSharedPreferences("exclude_shared_pref", Context.MODE_PRIVATE); in setupFiles()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteFtsTest.java46 mDatabase = getContext().openOrCreateDatabase("CTS_FTS", Context.MODE_PRIVATE, null); in setUp()
DSQLiteProgramTest.java40 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null); in setUp()
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java101 return context.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in getPrefs()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java102 .getSharedPreferences(mName, Context.MODE_PRIVATE); in increaseCounter()
110 Context.MODE_PRIVATE); in getCounter()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java19 import static android.content.Context.MODE_PRIVATE;
168 try (OutputStream os = context.openFileOutput(MOCK_IME_SETTINGS_FILE, MODE_PRIVATE)) { in writeMockImeSettings() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java109 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in loadPolicy()
128 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in generateRandomPolicy()
161 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in handleAddDeviceAdminResult()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java77 Context.MODE_PRIVATE); in testCreatePrivateData()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java78 File dbDir = mContext.getDir("tests", Context.MODE_PRIVATE); in testDecodeFile()

123