Home
last modified time | relevance | path

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

12

/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DMessagingAppHelper.kt47 val intent = Intent(Intent.ACTION_VIEW, Uri.parse("sms:")) in getMessagesIntent() constant
48 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) in getMessagesIntent()
49 return intent in getMessagesIntent()
53 val intent = getMessagesIntent() in getMessagesComponent() constant
55 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getMessagesComponent()
61 val intent = getMessagesIntent() in getMessagesName() constant
63 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getMessagesName()
DBrowserAppHelper.kt51 val intent = Intent(Intent.ACTION_VIEW, Uri.parse("http://")) in getBrowserIntent() constant
52 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) in getBrowserIntent()
53 return intent in getBrowserIntent()
57 val intent = getBrowserIntent() in getBrowserName() constant
59 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getBrowserName()
66 val intent = getBrowserIntent() in getBrowserComponent() constant
68 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getBrowserComponent()
DCalendarAppHelper.kt43 val intent = Intent(Intent.ACTION_VIEW) in getCalendarIntent() constant
44 intent.data = uri in getCalendarIntent()
45 intent.putExtra("VIEW", "DAY") in getCalendarIntent()
46 intent.flags = Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET in getCalendarIntent()
47 return intent in getCalendarIntent()
51 val intent = getCalendarIntent() in getResolveInfo() constant
52 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
DStandardAppHelper.kt87 val intent = Intent() constant in android.tools.device.apphelpers.StandardAppHelper
88 intent.addCategory(Intent.CATEGORY_LAUNCHER)
89 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
90 intent.component = ComponentName(packageName, className)
91 return intent
130 val intent = openAppIntent in launchAppViaIntent() constant
131 intent.action = action ?: Intent.ACTION_MAIN in launchAppViaIntent()
132 stringExtras.forEach { intent.putExtra(it.key, it.value) } in launchAppViaIntent()
133 context.startActivity(intent) in launchAppViaIntent()
163 intent: Intent, in launchViaIntent()
[all …]
DNetflixAppHelper.kt78 val intent = getNetflixIntent(pkgManager) in getResolveInfo() constant
79 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
DYouTubeAppHelper.kt118 val intent = getYoutubeIntent(pkgManager) in getResolveInfo() constant
119 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
DIStandardAppHelper.kt66 intent: Intent,
/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/libraries/health/rules/src/android/platform/test/rule/
DSysuiDemoModeRule.kt56 val intent = Intent("com.android.systemui.demo") in sendDemoModeBroadcast() constant
57 intent.putExtra("command", command) in sendDemoModeBroadcast()
58 context.sendBroadcast(intent) in sendDemoModeBroadcast()
/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/libraries/sts-common-util/sts-sdk/package/test-app/src/main/java/android/security/sts/sts_test_app_package/
DDeviceTest.java64 public void onReceive(Context context, Intent intent) { in testDeviceSideMethod()
66 if (!intent.getAction().equals(ACTION_BROADCAST)) { in testDeviceSideMethod()
71 intent.getAction())); in testDeviceSideMethod()
73 actual.set(intent.getStringExtra(INTENT_ARTIFACT)); in testDeviceSideMethod()
/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.java80 Intent intent = new Intent(Intent.ACTION_MAIN); in launchActivity() local
81 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
82 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in launchActivity()
84 intent.putExtras(extras); in launchActivity()
86 intent.setComponent(cn); in launchActivity()
88 mContext.startActivity(intent); in launchActivity()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DTestAppComponentFactory.kt42 intent: Intent? in instantiateActivityCompat()
45 .getOrDefault(className) { super.instantiateActivityCompat(cl, className, intent) } in instantiateActivityCompat()
/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/sts-common-util/device-side/tests/src/com/android/sts/common/util/
DDumpsysUtilsTest.java58 Intent intent = in setUp() local
60 ComponentName componentName = intent.resolveActivity(context.getPackageManager()); in setUp()
63 context.startActivity(intent); in setUp()
/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/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java95 Intent intent = new Intent(Intent.ACTION_MAIN); in launchActivity() local
96 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivity()
97 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in launchActivity()
99 intent.putExtras(extras); in launchActivity()
101 intent.setComponent(cn); in launchActivity()
103 mInstrumentation.getContext().startActivity(intent); in launchActivity()
DUiBenchEditTextTypingMicrobenchmark.java60 public void onReceive(Context context, Intent intent) {
61 if (intent.getAction().equals(ACTION_CANCEL_TYPING_CALLBACK)) {
/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.java216 final Intent intent = in startAppFast() local
221 intent.addCategory(Intent.CATEGORY_LAUNCHER); in startAppFast()
222 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startAppFast()
223 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()

12