/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/calllog/app/src/android/provider/cts/contacts/testapp/ |
D | BootReceiver.java | 23 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 28 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 30 .getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in onReceive() 41 context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in waitForBootComplete()
|
/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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PersonalAppsSuspensionTest.java | 100 mContext.getSharedPreferences(COMPLIANCE_ACK_PREF_NAME, Context.MODE_PRIVATE); in testComplianceAcknowledgementRequiredReceived() 107 mContext.getSharedPreferences(COMPLIANCE_ACK_PREF_NAME, Context.MODE_PRIVATE); in testSetOverrideOnComplianceAcknowledgementRequired() 126 mContext.getSharedPreferences(COMPLIANCE_ACK_PREF_NAME, Context.MODE_PRIVATE); in testClearComplianceSharedPreference()
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 19 import static android.content.Context.MODE_PRIVATE; 229 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveSharedPreferencesValues() 235 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in saveSharedPreferencesValues() 256 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in readSharedPrefValues() 260 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in readSharedPrefValues()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeChecker.java | 121 Context.MODE_PRIVATE); 141 Context.MODE_PRIVATE); 164 Context.MODE_PRIVATE); in onStartJob() 193 Context.MODE_PRIVATE); in doInBackground()
|
D | GarageModeTestActivity.java | 85 GarageModeChecker.PREFS_FILE_NAME, Context.MODE_PRIVATE); in onCreate() 123 GarageModeChecker.PREFS_FILE_NAME, Context.MODE_PRIVATE); in verifyStatus()
|
/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/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | CrashingMainActivity.java | 37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | BroadcastIntentReceiver.java | 37 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 | 38 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/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 311 mContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit().putInt("answer", 42) in testMoveSharedPreferencesFrom() 316 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 318 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 323 assertEquals(0, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 325 assertEquals(42, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 329 deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE).edit() in testMoveSharedPreferencesFrom() 333 assertEquals(42, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 335 assertEquals(24, mContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 337 assertEquals(0, deviceContext.getSharedPreferences("test", Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom() 339 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()
|
/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 | AutomaticZenRuleStatusReceiver.java | 35 ConditionProviderVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
|
D | BlockChangeReceiver.java | 34 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/hostsidetests/silentupdate/testapp/src/com/android/tests/silentupdate/ |
D | SilentUpdateTests.java | 20 import static android.content.Context.MODE_PRIVATE; 140 getContext().getSharedPreferences("default", MODE_PRIVATE) in selfUpdate_RequiresNoUserAction() 153 getLastUpdateTime() > getContext().getSharedPreferences("default", MODE_PRIVATE) in selfUpdate_updateApplied()
|
/cts/hostsidetests/backup/AutoRestoreApp/src/android/cts/backup/autorestoreapp/ |
D | AutoRestoreTest.java | 55 mPreferences = context.getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE); in setUp()
|
/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/tests/tests/util/src/android/util/cts/ |
D | PrintWriterPrinterTest.java | 50 Context.MODE_PRIVATE); in setup()
|