/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/hermeticapp/ |
D | PerformanceBase.java | 43 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/ |
D | BootHelperTest.java | 66 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/ |
D | AppLaunchTests.java | 153 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/ |
D | WebViewFlingTest.java | 78 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/ |
D | UiBenchJankTestsHelper.java | 79 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/ |
D | NotificationHelper.java | 97 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 …]
|
D | HeadsUpNotificationTests.java | 152 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/ |
D | OverviewHelper.java | 106 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()
|
D | NotificationHelper.java | 227 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/ |
D | ActivityHelper.java | 201 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/ |
D | TouchLatencyHelper.java | 75 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/ |
D | UiBenchJankHelper.java | 85 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/ |
D | SettingsJankTests.java | 73 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/ |
D | UiBenchJankTestsHelper.java | 78 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/ |
D | SettingsHelper.java | 168 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/ |
D | AuptTestCase.java | 113 public void launchIntent(Intent intent) { in launchIntent() argument 114 getInstrumentation().getContext().startActivity(intent); in launchIntent()
|
D | AuptTestRunner.java | 635 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/ |
D | PermissionHelper.java | 286 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/ |
D | AccessibilityScannerHelper.java | 179 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/ |
D | AbstractStandardAppHelper.java | 166 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/ |
D | ApiDemoJankTests.java | 85 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/ |
D | Collector.java | 169 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { in activityStarting() argument
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
D | WifiStrengthScannerInstrumentation.java | 189 public void onReceive(Context context, Intent intent) { in onReceive() argument
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/ |
D | ScheduledScenarioRunner.java | 240 public void onReceive(Context context, Intent intent) { in suspensionAwareSleep()
|
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
D | AppTransitionTests.java | 474 public AppLaunchRunnable(Intent intent, String launchMode) { in AppLaunchRunnable() argument 475 mLaunchIntent = intent; in AppLaunchRunnable()
|