/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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | CtsInteractiveActivity.java | 65 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/ |
D | PersonalAppsSuspensionTest.java | 103 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/ |
D | KeyValueBackupRestoreTest.java | 19 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/ |
D | GarageModeChecker.java | 122 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/ |
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/securitybulletin/test-apps/CVE-2024-0020/src/android/security/cts/CVE-2024-0020/ |
D | PocActivity.java | 43 getSharedPreferences(getPackageName(), MODE_PRIVATE) in onCreate()
|
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/ |
D | DeleteKeepDataDeviceTest.java | 19 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/ |
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()
|
/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/tests/uidmigration/DataTestApp/src/android/uidmigration/cts/ |
D | DataProvider.kt | 32 mPrefs = requireContext().getSharedPreferences("prefs", Context.MODE_PRIVATE) in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20138/src/android/security/cts/CVE_2022_20138/ |
D | PocReceiver.java | 32 context.getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in onReceive()
|
/cts/tests/sample/src/android/sample/ |
D | SampleDeviceActivity.java | 38 mPreferences = getPreferences(Context.MODE_PRIVATE); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-321707289/helper-app/src/android/security/cts/BUG_321707289/ |
D | PocNotificationListenerService.java | 41 getSharedPreferences(getString(R.string.sharedPrefsName), MODE_PRIVATE); in setSharedPreference()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-321707289/test-app/src/android/security/cts/BUG_321707289/ |
D | PocNotificationListenerService.java | 41 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/ |
D | FirstPocActivity.java | 47 Context.MODE_PRIVATE); in setSharedPreferenes()
|
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/ |
D | BaseRestoreSessionAppTest.java | 41 .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/ |
D | SecondPocActivity.java | 49 getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in setSharedPreferenes()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AutomaticZenRuleStatusReceiver.java | 35 ConditionProviderVerifierActivity.PREFS, Context.MODE_PRIVATE); in onReceive()
|
/cts/common/device-side/interactive/src/main/java/com/android/interactive/testrules/ |
D | TestNameSaver.java | 59 .getSharedPreferences(INTERACTIVE_TEST_NAME, Context.MODE_PRIVATE); in apply()
|
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/ |
D | MainActivity.java | 39 getApplicationContext().openFileOutput("test_file", MODE_PRIVATE))) { in onCreate() argument
|