Home
last modified time | relevance | path

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

12345

/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/apps/CtsVerifier/src/com/android/cts/verifier/
DCtsInteractiveActivity.java65 Editor editor = getSharedPreferences("CTSInteractive", Context.MODE_PRIVATE).edit(); in onStart()
101 getSharedPreferences("CTSInteractive", Context.MODE_PRIVATE).edit().clear().commit(); in onActivityResult()
109 getSharedPreferences("CTSInteractive", Context.MODE_PRIVATE); in relaunchTest()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPersonalAppsSuspensionTest.java103 mContext.getSharedPreferences(COMPLIANCE_ACK_PREF_NAME, Context.MODE_PRIVATE); in testComplianceAcknowledgementRequiredReceived()
111 mContext.getSharedPreferences(COMPLIANCE_ACK_PREF_NAME, Context.MODE_PRIVATE); in testSetOverrideOnComplianceAcknowledgementRequired()
130 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;
230 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in saveSharedPreferencesValues()
236 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in saveSharedPreferencesValues()
257 SharedPreferences prefs = mContext.getSharedPreferences(TEST_PREFS_1, MODE_PRIVATE); in readSharedPrefValues()
261 prefs = mContext.getSharedPreferences(TEST_PREFS_2, MODE_PRIVATE); in readSharedPrefValues()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeChecker.java122 Context.MODE_PRIVATE);
142 Context.MODE_PRIVATE);
165 Context.MODE_PRIVATE); in onStartJob()
205 Context.MODE_PRIVATE); in doInBackground()
/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/securitybulletin/test-apps/CVE-2024-0020/src/android/security/cts/CVE-2024-0020/
DPocActivity.java43 getSharedPreferences(getPackageName(), MODE_PRIVATE) in onCreate()
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/
DDeleteKeepDataDeviceTest.java19 import static android.content.Context.MODE_PRIVATE;
54 mContext.openFileOutput(TEST_FILE_NAME, MODE_PRIVATE))) { in testWriteData() argument
/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()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DCrashingMainActivity.java37 SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE); in incrementCountAndBroadcast()
/cts/tests/tests/uidmigration/DataTestApp/src/android/uidmigration/cts/
DDataProvider.kt32 mPrefs = requireContext().getSharedPreferences("prefs", Context.MODE_PRIVATE) in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20138/src/android/security/cts/CVE_2022_20138/
DPocReceiver.java32 context.getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in onReceive()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-321707289/helper-app/src/android/security/cts/BUG_321707289/
DPocNotificationListenerService.java41 getSharedPreferences(getString(R.string.sharedPrefsName), MODE_PRIVATE); in setSharedPreference()
/cts/hostsidetests/securitybulletin/test-apps/BUG-321707289/test-app/src/android/security/cts/BUG_321707289/
DPocNotificationListenerService.java41 getSharedPreferences(getString(R.string.sharedPrefsName), MODE_PRIVATE); in setSharedPreference()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DFirstPocActivity.java47 Context.MODE_PRIVATE); in setSharedPreferenes()
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/
DBaseRestoreSessionAppTest.java41 .getSharedPreferences(SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE); in setUp()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/second-test-app/src/android/security/cts/CVE_2022_20007_second/
DSecondPocActivity.java49 getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in setSharedPreferenes()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DAutomaticZenRuleStatusReceiver.java35 ConditionProviderVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/testrules/
DTestNameSaver.java59 .getSharedPreferences(INTERACTIVE_TEST_NAME, Context.MODE_PRIVATE); in apply()
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/
DMainActivity.java39 getApplicationContext().openFileOutput("test_file", MODE_PRIVATE))) { in onCreate() argument

12345