Home
last modified time | relevance | path

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

/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.java66 final Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD); in setupLockScreenPin() local
67 intent.addCategory(Intent.CATEGORY_DEFAULT); in setupLockScreenPin()
68 activity.startActivity(intent); in setupLockScreenPin()
92 public void onReceive(Context context, Intent intent) { in unlockScreenWithPin()
151 public Activity launchActivity(String pkg, Class activityCls, Intent intent) { in launchActivity() argument
152 intent.setClassName(pkg, activityCls.getName()); in launchActivity()
153 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
154 return getInstrumentation().startActivitySync(intent); in launchActivity()
/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/webview/src/com/android/webview/chromium/tests/jank/
DWebViewFlingTest.java78 Intent intent = new Intent(Intent.ACTION_DEFAULT, in setUp() local
80 intent.setClassName(CHROMIUM_SHELL_APP, CHROMIUM_SHELL_ACTIVITY); in setUp()
81 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in setUp()
82 getInstrumentation().getContext().startActivity(intent); in setUp()
/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()
130 Intent intent = new Intent(Intent.ACTION_VIEW); in sendNotification() local
131 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in sendNotification()
255 Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS); in showAppNotificationSettings() local
256 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in showAppNotificationSettings()
257 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mContext.getPackageName()); in showAppNotificationSettings()
258 intent.putExtra(Settings.EXTRA_APP_UID, mContext.getApplicationInfo().uid); in showAppNotificationSettings()
259 context.startActivity(intent); in showAppNotificationSettings()
[all …]
DHeadsUpNotificationTests.java152 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); in setAlarmNow() local
153 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in setAlarmNow()
154 intent.putExtra(AlarmClock.EXTRA_HOUR, hour); in setAlarmNow()
155 intent.putExtra(AlarmClock.EXTRA_MINUTES, minute); in setAlarmNow()
156 intent.putExtra(AlarmClock.EXTRA_SKIP_UI, true); in setAlarmNow()
157 intent.putExtra(AlarmClock.EXTRA_MESSAGE, "test"); in setAlarmNow()
158 mContext.startActivity(intent); in setAlarmNow()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java106 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps() local
107 if (intent == null) { in populateManyRecentApps()
110 intent.addCategory(Intent.CATEGORY_LAUNCHER); in populateManyRecentApps()
111 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in populateManyRecentApps()
113 mInstrumentation.getTargetContext().startActivity(intent); in populateManyRecentApps()
242 Intent intent = new Intent("android.intent.action.QUICKSTEP_SERVICE") in isRecentsInLauncher() local
244 return pm.resolveService(intent, 0) != null; in isRecentsInLauncher()
DNotificationHelper.java227 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
228 return super.onStartCommand(intent, flags, startId); in onStartCommand()
232 protected void onHandleIntent(Intent intent) { in onHandleIntent() argument
236 if (intent.hasExtra("text")) { in onHandleIntent()
241 ToastService.this, intent.getStringExtra("text"), Toast.LENGTH_LONG) in onHandleIntent()
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java201 Intent intent = new Intent(intentName); in launchIntent() local
202 launchIntent(intent); in launchIntent()
223 public void launchIntent(Intent intent) throws InterruptedException { in launchIntent() argument
224 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchIntent()
225 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()
/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/system-helpers/settings-helper/src/android/system/helpers/
DSettingsHelper.java168 Intent intent = new Intent(pageName); in launchSettingsPage() local
169 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchSettingsPage()
170 ctx.startActivity(intent); in launchSettingsPage()
620 Intent intent = new Intent(Intent.ACTION_MAIN); in launchSettingsPageByComponentName() local
623 intent.setComponent(settingComponent); in launchSettingsPageByComponentName()
624 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchSettingsPageByComponentName()
625 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()
DAuptTestRunner.java635 public IBinder onBind(Intent intent) {
640 public int onStartCommand(Intent intent, int flags, int id) {
/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/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/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/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()
/platform_testing/utils/crashcollector/src/android/test/crashcollector/
DCollector.java169 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { in activityStarting() argument
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/
DWifiStrengthScannerInstrumentation.java189 public void onReceive(Context context, Intent intent) { in onReceive() argument
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DScheduledScenarioRunner.java240 public void onReceive(Context context, Intent intent) { in suspensionAwareSleep()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java474 public AppLaunchRunnable(Intent intent, String launchMode) { in AppLaunchRunnable() argument
475 mLaunchIntent = intent; in AppLaunchRunnable()