Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 25 of 30) sorted by relevance

12

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DSampleAppHelper.kt47 val intent = Intent(Intent.ACTION_VIEW, Uri.parse("http://")) in getOpenAppIntent() constant
48 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) in getOpenAppIntent()
49 return intent in getOpenAppIntent()
53 val intent = getBrowserIntent() in getOpenAppIntent() constant
54 val resolveInfo = pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getOpenAppIntent()
DStandardAppHelper.kt84 val intent = Intent() in getOpenAppIntent() constant
85 intent.addCategory(Intent.CATEGORY_LAUNCHER) in getOpenAppIntent()
86 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) in getOpenAppIntent()
87 intent.component = ComponentName(component.packageName, component.className) in getOpenAppIntent()
88 return intent in getOpenAppIntent()
135 val intent = openAppIntent in launchAppViaIntent() constant
136 intent.action = action in launchAppViaIntent()
138 intent.putExtra(it.key, it.value) in launchAppViaIntent()
140 context.startActivity(intent) in launchAppViaIntent()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/hermeticapp/
DPerformanceBase.java43 final Intent intent = context.getPackageManager().getLaunchIntentForPackage(PACKAGE); in open() local
45 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in open()
46 intent.setClassName(PACKAGE, actvity); in open()
47 context.startActivity(intent); in open()
/platform_testing/tests/perf/BootHelperApp/src/com/android/boothelper/
DBootHelperTest.java65 final Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD); in setupLockScreenPin() local
66 intent.addCategory(Intent.CATEGORY_DEFAULT); in setupLockScreenPin()
67 activity.startActivity(intent); in setupLockScreenPin()
91 public void onReceive(Context context, Intent intent) { in unlockScreenWithPin()
150 public Activity launchActivity(String pkg, Class activityCls, Intent intent) { in launchActivity() argument
151 intent.setClassName(pkg, activityCls.getName()); in launchActivity()
152 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
153 return getInstrumentation().startActivitySync(intent); in launchActivity()
/platform_testing/tests/jank/webview/src/com/android/webview/chromium/tests/jank/
DWebViewFlingTest.java76 Intent intent = new Intent(Intent.ACTION_DEFAULT, in setUp() local
78 intent.setClassName(CHROMIUM_SHELL_APP, CHROMIUM_SHELL_ACTIVITY); in setUp()
79 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in setUp()
80 getInstrumentation().getContext().startActivity(intent); in setUp()
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java153 Intent intent = new Intent(Intent.ACTION_MAIN); in testAppLaunchPerformance() local
155 intent = new Intent(Intent.ACTION_VIEW, Uri.parse(activityName)); in testAppLaunchPerformance()
156 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testAppLaunchPerformance()
160 intent = new Intent(Intent.ACTION_MAIN); in testAppLaunchPerformance()
161 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testAppLaunchPerformance()
162 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in testAppLaunchPerformance()
163 intent.setComponent(cn); in testAppLaunchPerformance()
166 intent.putExtra("ACTIVITY_NAME", activityName); in testAppLaunchPerformance()
167 intent.putExtra("SIMPLEPERF_DIR", mSimpleperfDir); in testAppLaunchPerformance()
168 intent.putExtra("SIMPLEPERF_EVT", mSimpleperfEvt); in testAppLaunchPerformance()
[all …]
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java79 Intent intent = new Intent(Intent.ACTION_MAIN); in launchActivity() local
80 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
81 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in launchActivity()
83 intent.putExtras(extras); in launchActivity()
85 intent.setComponent(cn); in launchActivity()
87 mContext.startActivity(intent); in launchActivity()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java97 Intent intent = new Intent(pageName); in launchSettingsPage() local
98 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchSettingsPage()
99 ctx.startActivity(intent); in launchSettingsPage()
131 Intent intent = new Intent(Intent.ACTION_VIEW); in sendNotification() local
132 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, in sendNotification()
257 Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS); in showAppNotificationSettings() local
258 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in showAppNotificationSettings()
259 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mContext.getPackageName()); in showAppNotificationSettings()
260 intent.putExtra(Settings.EXTRA_APP_UID, mContext.getApplicationInfo().uid); in showAppNotificationSettings()
261 context.startActivity(intent); in showAppNotificationSettings()
[all …]
DHeadsUpNotificationTests.java173 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); in setAlarmNow() local
174 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in setAlarmNow()
175 intent.putExtra(AlarmClock.EXTRA_HOUR, hour); in setAlarmNow()
176 intent.putExtra(AlarmClock.EXTRA_MINUTES, minute); in setAlarmNow()
177 intent.putExtra(AlarmClock.EXTRA_SKIP_UI, true); in setAlarmNow()
178 intent.putExtra(AlarmClock.EXTRA_MESSAGE, "test"); in setAlarmNow()
179 mContext.startActivity(intent); in setAlarmNow()
/platform_testing/tests/apphealth/scenarios/src/android/platform/test/scenario/facebook/
DFacebookAppHelperImpl.java155 Intent intent = new Intent(); in startLoginActivity() local
156 intent.setAction(LOGIN_ACTIVITY_NAME); in startLoginActivity()
157 intent.setComponent(new ComponentName(PACKAGE_NAME, LOGIN_ACTIVITY_NAME)); in startLoginActivity()
158 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startLoginActivity()
159 mContext.startActivity(intent); in startLoginActivity()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java107 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps() local
108 if (intent == null) { in populateManyRecentApps()
111 intent.addCategory(Intent.CATEGORY_LAUNCHER); in populateManyRecentApps()
112 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in populateManyRecentApps()
114 mInstrumentation.getTargetContext().startActivity(intent); in populateManyRecentApps()
243 Intent intent = new Intent("android.intent.action.QUICKSTEP_SERVICE") in isRecentsInLauncher() local
245 return pm.resolveService(intent, 0) != null; in isRecentsInLauncher()
DNotificationHelper.java228 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
229 return super.onStartCommand(intent, flags, startId); in onStartCommand()
233 protected void onHandleIntent(Intent intent) { in onHandleIntent() argument
237 if (intent.hasExtra("text")) { in onHandleIntent()
242 ToastService.this, intent.getStringExtra("text"), Toast.LENGTH_LONG) in onHandleIntent()
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java202 Intent intent = new Intent(intentName); in launchIntent() local
203 launchIntent(intent); in launchIntent()
224 public void launchIntent(Intent intent) throws InterruptedException { in launchIntent() argument
225 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchIntent()
226 mContext.startActivity(intent); in launchIntent()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DTouchLatencyHelper.java75 Intent intent = mInstrumentation.getContext() in launchActivityFromLauncher() local
77 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivityFromLauncher()
78 mInstrumentation.getContext().startActivity(intent); in launchActivityFromLauncher()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java85 Intent intent = new Intent(Intent.ACTION_MAIN); in launchActivity() local
86 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
87 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in launchActivity()
89 intent.putExtras(extras); in launchActivity()
91 intent.setComponent(cn); in launchActivity()
93 mInstrumentation.getContext().startActivity(intent); in launchActivity()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSettingsJankTests.java73 Intent intent = context.getPackageManager().getLaunchIntentForPackage(SETTINGS_PACKAGE); in setUp() local
74 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); // Clear out any previous instances in setUp()
75 context.startActivity(intent); in setUp()
DLauncherJankTests.java228 final Intent intent = in startAppFast() local
233 intent.addCategory(Intent.CATEGORY_LAUNCHER); in startAppFast()
234 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startAppFast()
235 instrumentation.getTargetContext().startActivity(intent); in startAppFast()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java78 Intent intent = mContext.getPackageManager() in launchUiBench() local
80 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchUiBench()
81 mContext.startActivity(intent); in launchUiBench()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java201 public void onReceive(Context context, Intent intent) { in onReceive() argument
202 String action = intent.getAction(); in onReceive()
203 String name = intent.getStringExtra(InteractionJankMonitor.BUNDLE_KEY_CUJ_NAME); in onReceive()
204 long timestamp = intent.getLongExtra(InteractionJankMonitor.BUNDLE_KEY_TIMESTAMP, -1L); in onReceive()
/platform_testing/libraries/system-helpers/settings-helper/src/android/system/helpers/
DSettingsHelper.java178 Intent intent = new Intent(pageName); in launchSettingsPage() local
179 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchSettingsPage()
180 ctx.startActivity(intent); in launchSettingsPage()
630 Intent intent = new Intent(Intent.ACTION_MAIN); in launchSettingsPageByComponentName() local
633 intent.setComponent(settingComponent); in launchSettingsPageByComponentName()
634 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchSettingsPageByComponentName()
635 ctx.startActivity(intent); in launchSettingsPageByComponentName()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java113 public void launchIntent(Intent intent) { in launchIntent() argument
114 getInstrumentation().getContext().startActivity(intent); in launchIntent()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java286 Intent intent = new Intent(Intent.ACTION_MAIN); in openAppPermissionView() local
290 intent.setComponent(settingComponent); in openAppPermissionView()
291 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in openAppPermissionView()
292 mContext.startActivity(intent); in openAppPermissionView()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper.java166 Intent intent = in getOpenAppIntent() local
171 if (intent == null) { in getOpenAppIntent()
175 return intent; in getOpenAppIntent()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityScannerHelper.java179 Intent intent = new Intent(Intent.ACTION_MAIN); in launchScannerApp() local
182 intent.setComponent(settingComponent); in launchScannerApp()
183 mActivityHelper.launchIntent(intent); in launchScannerApp()
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java85 Intent intent = getInstrumentation().getContext().getPackageManager() in launchApiDemos() local
87 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchApiDemos()
88 getInstrumentation().getContext().startActivity(intent); in launchApiDemos()

12