Home
last modified time | relevance | path

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

123

/cts/hostsidetests/backup/SuccessNotificationApp/src/android/cts/backup/successnotificationapp/
DSuccessNotificationTest.java41 getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE).edit().clear() in clearBackupSuccessNotificationsReceived()
47 assertTrue(getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE) in verifyBackupSuccessNotificationReceivedForKeyValueApp()
53 assertTrue(getTargetContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE) in verifyBackupSuccessNotificationReceivedForFullBackupApp()
DSuccessNotificationReceiver.java36 context.getSharedPreferences(SuccessNotificationTest.PREFS_FILE, Context.MODE_PRIVATE) in onReceive()
/cts/hostsidetests/backup/RestoreAnyVersion/src/
DRestoreAnyVersionTest.java19 import static android.content.Context.MODE_PRIVATE;
102 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveAppVersionCodeToSharedPreference()
111 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;
220 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveSharedPreferencesValues()
226 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in saveSharedPreferencesValues()
247 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in readSharedPrefValues()
251 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in readSharedPrefValues()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java216 mContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit().putInt("answer", 42) in testMoveSharedPreferencesFrom()
221 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
223 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
228 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
230 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
234 deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit() in testMoveSharedPreferencesFrom()
238 assertEquals(42, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
240 assertEquals(24, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
242 assertEquals(0, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
244 assertEquals(0, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()
[all …]
DSharedPreferencesTest.java248 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); in testTorture()
252 prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); in testTorture()
289 … SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in testTorture2()
323 clonePrefsName, Context.MODE_PRIVATE); in testTorture2()
DContentProviderTest.java190 mContext.openFileOutput(TEST_FILE_NAME, Context.MODE_PRIVATE).close(); in testOpenFileHelper()
324 mDb = mContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null); in OpenFileContentProvider()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java106 mContext.getSharedPreferences("include_shared_pref1", Context.MODE_PRIVATE); in setupFiles()
108 mContext.getSharedPreferences("include_shared_pref2", Context.MODE_PRIVATE); in setupFiles()
110 mContext.getSharedPreferences("exclude_shared_pref1", Context.MODE_PRIVATE); in setupFiles()
112 mContext.getSharedPreferences("exclude_shared_pref2", Context.MODE_PRIVATE); in setupFiles()
/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.java46 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in setUp()
DOwnerChangedBroadcastTest.java39 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE); in setUp()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DCrashingMainActivity.java37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/
DBaseRestoreSessionAppTest.java41 .getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java311 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
336 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
390 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
415 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
458 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
487 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
530 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in test()
555 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in tearDown()
DBlockChangeReceiver.java18 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
/cts/hostsidetests/backup/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/
DProfileKeyValueBackupRestoreTest.java48 mPreferences = context.getSharedPreferences(TEST_PREFS_NAME, Context.MODE_PRIVATE); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java111 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in loadPolicy()
130 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in generateRandomPolicy()
163 SharedPreferences prefs = getPreferences(MODE_PRIVATE); in handleAddDeviceAdminResult()
/cts/hostsidetests/backup/SharedPreferencesRestoreApp/src/android/cts/backup/sharedprefrestoreapp/
DSharedPrefsRestoreTestActivity.java54 mPrefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/
DClientTest.java61 .getContext().openFileOutput("test.txt", Context.MODE_PRIVATE)) { in testInstantApplicationWriteFile() argument
/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/tests/util/src/android/util/cts/
DPrintWriterPrinterTest.java50 Context.MODE_PRIVATE); in setup()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteSecurityTest.java43 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, in setUp()
DSQLiteFtsTest.java46 mDatabase = getContext().openOrCreateDatabase("CTS_FTS", Context.MODE_PRIVATE, null); in setUp()
/cts/hostsidetests/userspacereboot/testapps/BootCompletedTestApp/src/com/android/cts/userspacereboot/bootcompleted/
DBootCompletedUserspaceRebootTest.java67 mCeContext.openFileOutput(FILE_NAME, Context.MODE_PRIVATE))) { in prepareFile() argument

123