Home
last modified time | relevance | path

Searched refs:targetIntent (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20475/test-app/src/android/security/cts/CVE_2022_20475/
DPocActivity.java30 Intent targetIntent = new Intent(Intent.ACTION_MAIN); in onCreate() local
31 targetIntent.setClassName(getString(R.string.pkgTarget), in onCreate()
33 startActivity(targetIntent); in onCreate()
DDeviceTest.java76 Intent targetIntent = new Intent(Intent.ACTION_MAIN); in testCVE_2022_20475() local
78 targetIntent.setClassName(pkgTarget, context.getString(R.string.activityTarget)); in testCVE_2022_20475()
79 targetIntent.setFlags( in testCVE_2022_20475()
81 context.startActivity(targetIntent); in testCVE_2022_20475()
/cts/tests/app/app/src/android/app/stubs/
DLauncherActivityStub.java43 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); in getTargetIntent() local
44 targetIntent.addCategory(Intent.CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST); in getTargetIntent()
45 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getTargetIntent()
46 return targetIntent; in getTargetIntent()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39797/test-app/src/android/security/cts/CVE_2021_39797_test/
DDeviceTest.java59 Intent targetIntent = new Intent(); in testTaskOverride() local
60 targetIntent.setComponent(new ComponentName(targetPkg, targetActivityName)); in testTaskOverride()
61 targetIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testTaskOverride()
63 context.startActivity(targetIntent); in testTaskOverride()
65 assumeNoException(context.getString(R.string.activityNotFoundMsg, targetIntent), e); in testTaskOverride()
109 context.startActivity(targetIntent); in testTaskOverride()
111 assumeNoException(context.getString(R.string.activityNotFoundMsg, targetIntent), e); in testTaskOverride()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetAdditionalContentProvider.java131 Intent targetIntent = chooserIntent.getParcelableExtra(Intent.EXTRA_INTENT, Intent.class); in updateChooseAction() local
132 if (targetIntent == null) { in updateChooseAction()
137 if (Intent.ACTION_SEND.equals(targetIntent.getAction())) { in updateChooseAction()
138 Uri uri = targetIntent.getParcelableExtra(Intent.EXTRA_STREAM, Uri.class); in updateChooseAction()
142 } else if (Intent.ACTION_SEND_MULTIPLE.equals(targetIntent.getAction())) { in updateChooseAction()
144 targetIntent.getParcelableArrayListExtra(Intent.EXTRA_STREAM, Uri.class); in updateChooseAction()
154 Log.w(TAG, "unexpected target intent action: " + targetIntent.getAction()); in updateChooseAction()
186 Intent targetIntent = chooserIntent.getParcelableExtra(Intent.EXTRA_INTENT, Intent.class); in updateChooserResultIntentSender() local
187 if (targetIntent == null) { in updateChooserResultIntentSender()
191 if (!targetIntent.hasExtra(Keys.LaunchId)) { in updateChooserResultIntentSender()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20944/test-app/src/android/security/cts/CVE_2023_20944_test/
DPocActivity.java39 LabeledIntent targetIntent = in onResume() local
41 targetIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); in onResume()
42 targetIntent.setClassName(this, HijackActivity.class.getName()); in onResume()
47 targetIntent); in onResume()
DDeviceTest.java82 Intent targetIntent = new Intent(Intent.ACTION_MAIN); in testCVE_2023_20944() local
84 targetIntent.setClassName(pkgTarget, context.getString(R.string.activityTarget)); in testCVE_2023_20944()
85 targetIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testCVE_2023_20944()
86 context.startActivity(targetIntent); in testCVE_2023_20944()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21124/test-app/src/android/security/cts/CVE_2023_21124_test/
DDeviceTest.java98 Intent targetIntent = in testCVE_2023_21124() local
105 context.startActivity(targetIntent); in testCVE_2023_21124()
135 context.startActivity(targetIntent); in testCVE_2023_21124()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20116/src/android/security/cts/CVE_2022_20116/
DPocService.java53 private void showNotification(PendingIntent targetIntent) { in showNotification() argument
65 .setSmallIcon(createNotificationIcon()).setContentIntent(targetIntent) in showNotification()