Home
last modified time | relevance | path

Searched refs:MODE_PRIVATE (Results 1 – 25 of 70) 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/calllog/app/src/android/provider/cts/contacts/testapp/
DBootReceiver.java23 .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/
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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPersonalAppsSuspensionTest.java100 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/
DKeyValueBackupRestoreTest.java19 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/
DGarageModeChecker.java121 Context.MODE_PRIVATE);
141 Context.MODE_PRIVATE);
164 Context.MODE_PRIVATE); in onStartJob()
193 Context.MODE_PRIVATE); in doInBackground()
DGarageModeTestActivity.java85 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/
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/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DCrashingMainActivity.java37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DBroadcastIntentReceiver.java37 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.java38 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE); in setUp()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java311 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 …]
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()
/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/
DAutomaticZenRuleStatusReceiver.java35 ConditionProviderVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
DBlockChangeReceiver.java34 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/hostsidetests/silentupdate/testapp/src/com/android/tests/silentupdate/
DSilentUpdateTests.java20 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/
DAutoRestoreTest.java55 mPreferences = context.getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE); in setUp()
/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/tests/tests/util/src/android/util/cts/
DPrintWriterPrinterTest.java50 Context.MODE_PRIVATE); in setup()

123