/cts/hostsidetests/backup/SuccessNotificationApp/src/android/cts/backup/successnotificationapp/ |
D | SuccessNotificationTest.java | 41 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()
|
D | SuccessNotificationReceiver.java | 36 context.getSharedPreferences(SuccessNotificationTest.PREFS_FILE, Context.MODE_PRIVATE) in onReceive()
|
/cts/hostsidetests/backup/RestoreAnyVersion/src/ |
D | RestoreAnyVersionTest.java | 19 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/ |
D | KeyValueBackupRestoreTest.java | 19 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/ |
D | ContextTest.java | 216 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 …]
|
D | SharedPreferencesTest.java | 248 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()
|
D | ContentProviderTest.java | 190 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/ |
D | IncludeExcludeTest.java | 106 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/ |
D | BroadcastIntentReceiver.java | 33 SharedPreferences prefs = c.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in onReceive()
|
D | ClearApplicationDataTest.java | 46 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in setUp()
|
D | OwnerChangedBroadcastTest.java | 39 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE); in setUp()
|
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | CrashingMainActivity.java | 37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
|
/cts/tests/sample/src/android/sample/ |
D | SampleDeviceActivity.java | 38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
|
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/ |
D | BaseRestoreSessionAppTest.java | 41 .getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | NotificationListenerVerifierActivity.java | 311 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()
|
D | BlockChangeReceiver.java | 18 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
|
/cts/hostsidetests/backup/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/ |
D | ProfileKeyValueBackupRestoreTest.java | 48 mPreferences = context.getSharedPreferences(TEST_PREFS_NAME, Context.MODE_PRIVATE); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 111 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/ |
D | SharedPrefsRestoreTestActivity.java | 54 mPrefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/ |
D | ClientTest.java | 61 .getContext().openFileOutput("test.txt", Context.MODE_PRIVATE)) { in testInstantApplicationWriteFile() argument
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyBroadcastReceiver.java | 102 .getSharedPreferences(mName, Context.MODE_PRIVATE); in increaseCounter() 110 Context.MODE_PRIVATE); in getCounter()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | PrintWriterPrinterTest.java | 50 Context.MODE_PRIVATE); in setup()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteSecurityTest.java | 43 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, in setUp()
|
D | SQLiteFtsTest.java | 46 mDatabase = getContext().openOrCreateDatabase("CTS_FTS", Context.MODE_PRIVATE, null); in setUp()
|
/cts/hostsidetests/userspacereboot/testapps/BootCompletedTestApp/src/com/android/cts/userspacereboot/bootcompleted/ |
D | BootCompletedUserspaceRebootTest.java | 67 mCeContext.openFileOutput(FILE_NAME, Context.MODE_PRIVATE))) { in prepareFile() argument
|