Home
last modified time | relevance | path

Searched refs:sharedPreferences (Results 1 – 25 of 34) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/BUG-321707289/test-app/src/android/security/cts/BUG_321707289/
DDeviceTest.java44 SharedPreferences sharedPreferences = in testPocBUG_321707289() local
48 sharedPreferences.getString(context.getString(R.string.msgException), null); in testPocBUG_321707289()
56 sharedPreferences.getString( in testPocBUG_321707289()
66 sharedPreferences in testPocBUG_321707289()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0053/src/android/security/cts/CVE_2024_0053/
DTestPrintService.java96 final SharedPreferences sharedPreferences = in onRequestCustomPrinterIcon() local
98 int userId = sharedPreferences.getInt("userId", USER_NULL); in onRequestCustomPrinterIcon()
104 String imageId = sharedPreferences.getString("imageId", null /* default id */); in onRequestCustomPrinterIcon()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DDeviceTest.java96 mSharedPrefs = mContext.getSharedPreferences(getStringRes(R.string.sharedPreferences), in testRaceCondition()
103 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testRaceCondition()
106 if (sharedPreferences.getInt(key, in testRaceCondition()
113 if (sharedPreferences.getInt(key, in testRaceCondition()
DFirstPocActivity.java46 SharedPreferences sh = getSharedPreferences(getString(R.string.sharedPreferences), in setSharedPreferenes()
DPocMainActivity.java63 SharedPreferences sh = getSharedPreferences(getString(R.string.sharedPreferences), in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39808/src/android/security/cts/CVE_2021_39808/
DDeviceTest.java55 SharedPreferences sharedPreferences, String key) { in testService()
57 if (sharedPreferences.getInt(key, 0) == context in testService()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DDeviceTest.java58 SharedPreferences sharedPreferences, String key) { in testdeleteNotificationChannelGroup()
60 if (sharedPreferences.getInt(key, 0) == context in testdeleteNotificationChannelGroup()
/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()
DDeviceTest.java59 context.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testCVE_2022_20138()
62 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testCVE_2022_20138()
/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/hostsidetests/securitybulletin/test-apps/CVE-2021-39797/test-app/src/android/security/cts/CVE_2021_39797_test/
DDeviceTest.java82 context.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testTaskOverride()
87 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in testTaskOverride()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DOwnerChangedBroadcastTest.java49 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in testOwnerChangedBroadcastReceived()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20353/src/android/security/cts/CVE_2022_20353/
DPocActivity.java51 SharedPreferences sh = getSharedPreferences(getString(R.string.sharedPreferences), in sendTestResult()
DDeviceTest.java103 mContext.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testDefaultRingtonePreference()
108 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testDefaultRingtonePreference()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java353 (sharedPreferences, key) -> latch.countDown(); in testSharedPrefsChangeListenerIsCalledOnCommit()
372 (sharedPreferences, key) -> latch.countDown(); in testSharedPrefsChangeListenerIsCalledOnApply()
392 (sharedPreferences, key) -> { in testSharedPrefsChangeListenerIsCalledForClearOnCommit()
416 (sharedPreferences, key) -> { in testSharedPrefsChangeListenerIsCalledForClearOnApply()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0954/src/android/security/cts/CVE_2021_0954/
DDeviceTest.java83 getStringRes(R.string.sharedPreferences), Context.MODE_PRIVATE); in testOverlayButtonPresence()
87 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testOverlayButtonPresence()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20223/src/android/security/cts/CVE_2022_20223/
DPocBroadcastReceiver.java48 context.getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in onReceive()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0487/src/android/security/cts/CVE_2021_0487/
DDeviceTest.java99 mResources.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testOverlayButtonPresence()
103 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testOverlayButtonPresence()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39626/src/android/security/cts/CVE_2021_39626/
DDeviceTest.java111 mResources.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testBtDiscoverable()
115 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in testBtDiscoverable()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/
DPocActivity.java54 SharedPreferences sh = getSharedPreferences(getString(R.string.sharedPreferences), in credentialStorageReset()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DDeviceTest.java105 resources.getString(R.string.sharedPreferences), Context.MODE_APPEND); in testOverlayButtonPresence()
109 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in testOverlayButtonPresence()
DPocActivity.java68 getSharedPreferences(getString(R.string.sharedPreferences), Context.MODE_PRIVATE); in setResult()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20115/src/android/security/cts/CVE_2022_20115/
DDeviceTest.java131 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in testCellLocation()
133 if (sharedPreferences.getInt(key, 0) == mContext.getResources() in testCellLocation()
/cts/hostsidetests/calllog/app/src/android/provider/cts/contacts/testapp/
DBootReceiver.java44 (sharedPreferences, key) -> { in waitForBootComplete() argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20116/src/android/security/cts/CVE_2022_20116/
DPocService.java69 SharedPreferences sh = getSharedPreferences(getString(R.string.sharedPreferences), in showNotification()

12