Home
last modified time | relevance | path

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

/frameworks/support/compat/src/main/java/androidx/core/app/
DAppLaunchChecker.java72 final Intent launchIntent = activity.getIntent(); in onActivityCreate() local
73 if (launchIntent == null) { in onActivityCreate()
77 if (Intent.ACTION_MAIN.equals(launchIntent.getAction()) in onActivityCreate()
78 && (launchIntent.hasCategory(Intent.CATEGORY_LAUNCHER) in onActivityCreate()
79 || launchIntent.hasCategory(IntentCompat.CATEGORY_LEANBACK_LAUNCHER))) { in onActivityCreate()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java104 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in startActivityAsUser() local
105 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in startActivityAsUser()
106 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in startActivityAsUser()
110 launchIntent.setPackage(component.getPackageName()); in startActivityAsUser()
111 verifyActivityCanHandleIntentAndExported(launchIntent, component, callingUid, user); in startActivityAsUser()
113 launchIntent.setPackage(null); in startActivityAsUser()
114 launchIntent.setComponent(component); in startActivityAsUser()
116 caller, callingPackage, launchIntent, in startActivityAsUser()
165 Intent launchIntent, ComponentName component, int callingUid, UserHandle user) { in verifyActivityCanHandleIntentAndExported() argument
170 launchIntent, in verifyActivityCanHandleIntentAndExported()
DLauncherAppsService.java571 Intent launchIntent = new Intent(Intent.ACTION_MAIN); in startActivityAsUser() local
572 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in startActivityAsUser()
573 launchIntent.setSourceBounds(sourceBounds); in startActivityAsUser()
574 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in startActivityAsUser()
576 launchIntent.setPackage(component.getPackageName()); in startActivityAsUser()
597 List<ResolveInfo> apps = pmInt.queryIntentActivities(launchIntent, in startActivityAsUser()
608 launchIntent.setPackage(null); in startActivityAsUser()
609 launchIntent.setComponent(component); in startActivityAsUser()
622 launchIntent, opts, user.getIdentifier()); in startActivityAsUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSomnambulator.java38 final Intent launchIntent = getIntent(); in onStart() local
39 final String action = launchIntent.getAction(); in onStart()
51 boolean docked = launchIntent.hasCategory(Intent.CATEGORY_DESK_DOCK); in onStart()
/frameworks/base/core/java/android/widget/
DShareActionProvider.java300 Intent launchIntent = dataModel.chooseActivity(itemId); in onMenuItemClick() local
301 if (launchIntent != null) { in onMenuItemClick()
302 final String action = launchIntent.getAction(); in onMenuItemClick()
305 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT | in onMenuItemClick()
308 mContext.startActivity(launchIntent); in onMenuItemClick()
DActivityChooserView.java602 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); in onItemClick() local
603 if (launchIntent != null) { in onItemClick()
604 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onItemClick()
606 startActivity(launchIntent, resolveInfo); in onItemClick()
621 Intent launchIntent = mAdapter.getDataModel().chooseActivity(index); in onClick() local
622 if (launchIntent != null) { in onClick()
623 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onClick()
624 startActivity(launchIntent, defaultActivity); in onClick()
DSearchView.java1543 launchIntent(intent); in launchSuggestion()
1553 private void launchIntent(Intent intent) { in launchIntent() method in SearchView
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
DSwipeDismissFrameLayoutTest.java301 Intent launchIntent = new Intent(); in setUpSwipeDismissWithHorizontalRecyclerView() local
302 launchIntent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_RESOURCE_ID, in setUpSwipeDismissWithHorizontalRecyclerView()
304 launchIntent.putExtra(SwipeDismissFrameLayoutTestActivity.EXTRA_LAYOUT_HORIZONTAL, true); in setUpSwipeDismissWithHorizontalRecyclerView()
305 activityRule.launchActivity(launchIntent); in setUpSwipeDismissWithHorizontalRecyclerView()
315 Intent launchIntent = new Intent(); in setUpSwipeDismissWithVerticalRecyclerView() local
316 launchIntent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_RESOURCE_ID, in setUpSwipeDismissWithVerticalRecyclerView()
318 launchIntent.putExtra(SwipeDismissFrameLayoutTestActivity.EXTRA_LAYOUT_HORIZONTAL, false); in setUpSwipeDismissWithVerticalRecyclerView()
319 activityRule.launchActivity(launchIntent); in setUpSwipeDismissWithVerticalRecyclerView()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DShareActionProvider.java365 Intent launchIntent = dataModel.chooseActivity(itemId); in onMenuItemClick() local
366 if (launchIntent != null) { in onMenuItemClick()
367 final String action = launchIntent.getAction(); in onMenuItemClick()
370 updateIntent(launchIntent); in onMenuItemClick()
372 mContext.startActivity(launchIntent); in onMenuItemClick()
DActivityChooserView.java598 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); in onItemClick() local
599 if (launchIntent != null) { in onItemClick()
600 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onItemClick()
601 getContext().startActivity(launchIntent); in onItemClick()
617 Intent launchIntent = mAdapter.getDataModel().chooseActivity(index); in onClick() local
618 if (launchIntent != null) { in onClick()
619 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onClick()
620 getContext().startActivity(launchIntent); in onClick()
DSearchView.java1482 launchIntent(intent); in launchSuggestion()
1492 private void launchIntent(Intent intent) { in launchIntent() method in SearchView
/frameworks/support/browser/src/main/java/androidx/browser/browseractions/
DBrowserActionsIntent.java280 launchIntent(context, intent.getIntent()); in openBrowserAction()
300 launchIntent(context, intent.getIntent()); in openBrowserAction()
312 public static void launchIntent(Context context, Intent intent) { in launchIntent() method in BrowserActionsIntent
314 launchIntent(context, intent, handlers); in launchIntent()
320 static void launchIntent(Context context, Intent intent, List<ResolveInfo> handlers) { in launchIntent() method in BrowserActionsIntent
/frameworks/support/navigation/runtime/src/main/java/androidx/navigation/
DNavDeepLinkBuilder.java74 Intent launchIntent = mContext.getPackageManager().getLaunchIntentForPackage( in NavDeepLinkBuilder() local
76 mIntent = launchIntent != null ? launchIntent : new Intent(); in NavDeepLinkBuilder()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java736 final Intent launchIntent = new Intent() in startIsolatedService() local
738 sContext.bindService(launchIntent, connection, Context.BIND_AUTO_CREATE in startIsolatedService()
753 final Intent launchIntent = new Intent() in startForegroundService() local
765 launchIntent.putExtras(extras); in startForegroundService()
766 sContext.startForegroundService(launchIntent); in startForegroundService()
780 final Intent launchIntent = new Intent() in startService() local
791 launchIntent.putExtras(extras); in startService()
792 sContext.startService(launchIntent); in startService()
806 final Intent launchIntent = new Intent() in startActivity() local
817 launchIntent.putExtras(extras) in startActivity()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java387 final Intent launchIntent = new Intent().setComponent( in startActivityAndCheckNetworkAccess() local
398 launchIntent.putExtras(extras) in startActivityAndCheckNetworkAccess()
400 mContext.startActivity(launchIntent); in startActivityAndCheckNetworkAccess()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java357 Intent launchIntent = new Intent(Intent.ACTION_VIEW); in onPostExecute() local
358 launchIntent.setDataAndType(mParams.imageUri, "image/png"); in onPostExecute()
359 launchIntent.setFlags( in onPostExecute()
368 … .setContentIntent(PendingIntent.getActivity(mParams.context, 0, launchIntent, 0)) in onPostExecute()
376 .setContentIntent(PendingIntent.getActivity(mParams.context, 0, launchIntent, 0)) in onPostExecute()
/frameworks/support/browser/src/androidTest/java/androidx/browser/browseractions/
DBrowserActionsFallbackMenuUiTest.java95 BrowserActionsIntent.launchIntent(mContext, intent, null); in testBrowserActionsFallbackDialogOpened()
/frameworks/base/core/java/android/app/
DSearchDialog.java536 launchIntent(intent); in launchQuerySearch()
542 private void launchIntent(Intent intent) { in launchIntent() method in SearchDialog
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsActivity.java169 public LaunchHomeRunnable(Intent launchIntent, ActivityOptions opts) { in LaunchHomeRunnable() argument
170 mLaunchIntent = launchIntent; in LaunchHomeRunnable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java990 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null); in handleMessage() local
991 launchIntent.addCategory(msg.what == MSG_LOAD_LAUNCHER in handleMessage()
1002 launchIntent, in handleMessage()
/frameworks/support/browser/api/
Dcurrent.txt14 method public static void launchIntent(android.content.Context, android.content.Intent);
/frameworks/support/browser/api_legacy/
D27.1.0.txt171 method public static void launchIntent(android.content.Context, android.content.Intent);
D28.0.0-alpha1.txt171 method public static void launchIntent(android.content.Context, android.content.Intent);
Dcurrent.txt171 method public static void launchIntent(android.content.Context, android.content.Intent);
/frameworks/base/config/
Dhiddenapi-private-dex.txt10037 Landroid/app/SearchDialog;->launchIntent(Landroid/content/Intent;)V
104641 Landroid/widget/SearchView;->launchIntent(Landroid/content/Intent;)V