/cts/hostsidetests/backup/SuccessNotificationApp/src/android/cts/backup/successnotificationapp/ |
D | SuccessNotificationTest.java | 37 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()
|
D | SuccessNotificationReceiver.java | 36 context.getSharedPreferences(SuccessNotificationTest.PREFS_FILE, Context.MODE_PRIVATE) in onReceive()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 118 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 …]
|
D | SharedPreferencesTest.java | 246 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()
|
D | ContentProviderTest.java | 188 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/ |
D | RestoreAnyVersionTest.java | 19 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/ |
D | KeyValueBackupRestoreTest.java | 19 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/ |
D | BroadcastIntentReceiver.java | 33 SharedPreferences prefs = c.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE); in onReceive()
|
D | ClearApplicationDataTest.java | 45 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in setUp()
|
D | OwnerChangedBroadcastTest.java | 39 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE); in setUp()
|
/cts/tests/sample/src/android/sample/ |
D | SampleDeviceActivity.java | 38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BlockChangeReceiver.java | 18 NotificationListenerVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
|
D | NotificationListenerVerifierActivity.java | 276 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/ |
D | SharedPrefsRestoreTestActivity.java | 54 mPrefs = getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in onCreate()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | PrintWriterPrinterTest.java | 49 Context.MODE_PRIVATE); in setup()
|
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/ |
D | ClientTest.java | 68 .getContext().openFileOutput("test.txt", Context.MODE_PRIVATE)) { in testInstantApplicationWriteFile() argument
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 103 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/ |
D | SQLiteFtsTest.java | 46 mDatabase = getContext().openOrCreateDatabase("CTS_FTS", Context.MODE_PRIVATE, null); in setUp()
|
D | SQLiteProgramTest.java | 40 mDatabase = getContext().openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null); in setUp()
|
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/ |
D | DeviceAndProfileOwnerTransferIncomingTest.java | 101 return context.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); in getPrefs()
|
/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/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockImeSession.java | 19 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/ |
D | PolicySerializationTestActivity.java | 109 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/ |
D | CreatePrivateDataTest.java | 77 Context.MODE_PRIVATE); in testCreatePrivateData()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 78 File dbDir = mContext.getDir("tests", Context.MODE_PRIVATE); in testDecodeFile()
|