Home
last modified time | relevance | path

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

12

/frameworks/base/services/contextualsearch/java/com/android/server/contextualsearch/
DContextualSearchManagerService.java272 Intent launchIntent = new Intent( in getResolvedLaunchIntent() local
274 launchIntent.setPackage(csPkgName); in getResolvedLaunchIntent()
276 launchIntent, MATCH_FACTORY_ONLY); in getResolvedLaunchIntent()
284 launchIntent.setComponent(componentName); in getResolvedLaunchIntent()
285 return launchIntent; in getResolvedLaunchIntent()
290 final Intent launchIntent = getResolvedLaunchIntent(); in getContextualSearchIntent() local
291 if (launchIntent == null) { in getContextualSearchIntent()
295 if (DEBUG_USER) Log.d(TAG, "Launch component: " + launchIntent.getComponent()); in getContextualSearchIntent()
296 launchIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_NO_ANIMATION in getContextualSearchIntent()
298 launchIntent.putExtra( in getContextualSearchIntent()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java231 ResolveInfo target, Intent launchIntent, UserInfo managedProfile) { in maybeShowUserConsentMiniResolver() argument
240 launchIntent.getBooleanExtra( in maybeShowUserConsentMiniResolver()
257 launchIntent, privilegedCallerAskedToSkipUserConsent, in maybeShowUserConsentMiniResolver()
259 startActivityAsCaller(launchIntent, targetUserId); in maybeShowUserConsentMiniResolver()
267 launchIntent, callingPackage)); in maybeShowUserConsentMiniResolver()
271 buildMiniResolver(target, launchIntent, targetUserId, in maybeShowUserConsentMiniResolver()
272 getOpenInWorkMessage(launchIntent, target.loadLabel(packageManagerForTargetUser)), in maybeShowUserConsentMiniResolver()
275 ((Button) findViewById(R.id.button_open)).setText(getOpenInWorkButtonString(launchIntent)); in maybeShowUserConsentMiniResolver()
281 if ((isDialerIntent(launchIntent) || isTextMessageIntent(launchIntent)) in maybeShowUserConsentMiniResolver()
286 .setText(getWorkTelephonyInfoSectionMessage(launchIntent)); in maybeShowUserConsentMiniResolver()
[all …]
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarLaunchOnPrivateDisplayActivityInterceptor.java120 Intent launchIntent = info.getIntent(); in onInterceptActivityLaunch() local
121 if (launchIntent == null || launchIntent.getComponent() == null) { in onInterceptActivityLaunch()
124 if (launchIntent.getExtras() == null || !launchIntent.getExtras().containsKey( in onInterceptActivityLaunch()
137 if (!isAllowlistedApplication(launchIntent.getComponent().getPackageName())) { in onInterceptActivityLaunch()
145 Slogf.d(TAG, "Activity %s allowlisted", launchIntent.getComponent()); in onInterceptActivityLaunch()
155 String uniqueDisplayName = launchIntent.getExtras().getString(LAUNCH_ON_PRIVATE_DISPLAY); in onInterceptActivityLaunch()
158 Slogf.d(TAG, "Launch activity %s on %d", launchIntent.getComponent(), launchDisplayId); in onInterceptActivityLaunch()
164 launchIntent.removeExtra(LAUNCH_ON_PRIVATE_DISPLAY); in onInterceptActivityLaunch()
165 intent.putExtra(LAUNCH_ACTIVITY, launchIntent); in onInterceptActivityLaunch()
DCarDisplayCompatActivityInterceptor.java118 Intent launchIntent = info.getIntent(); in onInterceptActivityLaunch() local
119 if (launchIntent == null || launchIntent.getComponent() == null) { in onInterceptActivityLaunch()
124 .requiresDisplayCompat(launchIntent.getComponent().getPackageName(), in onInterceptActivityLaunch()
130 boolean isLaunchedFromHost = launchIntent in onInterceptActivityLaunch()
155 intent.putExtra(Intent.EXTRA_INTENT, launchIntent); in onInterceptActivityLaunch()
172 Slogf.e(TAG, "Error while intercepting activity " + launchIntent.getComponent(), e); in onInterceptActivityLaunch()
/frameworks/base/core/tests/FileSystemUtilsTest/apk_embedded_native_libs/src/android/test/embedded/
DPunchEmbeddedLibTest.java58 Intent launchIntent = in testPunchedNativeLibs_embeddedLib() local
60 launchIntent.putExtra(MainActivity.KEY_OPERAND_1, op1); in testPunchedNativeLibs_embeddedLib()
61 launchIntent.putExtra(MainActivity.KEY_OPERAND_2, op2); in testPunchedNativeLibs_embeddedLib()
62 context.startActivity(launchIntent); in testPunchedNativeLibs_embeddedLib()
/frameworks/base/core/tests/FileSystemUtilsTest/apk_extract_native_libs/src/android/test/extract/
DPunchExtractedLibTest.java57 Intent launchIntent = in testPunchedNativeLibs_extractedLib() local
59 launchIntent.putExtra(MainActivity.KEY_OPERAND_1, op1); in testPunchedNativeLibs_extractedLib()
60 launchIntent.putExtra(MainActivity.KEY_OPERAND_2, op2); in testPunchedNativeLibs_extractedLib()
61 context.startActivity(launchIntent); in testPunchedNativeLibs_extractedLib()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java148 final Intent launchIntent = new Intent(); in startActivityAsUser() local
150 launchIntent.setAction(Intent.ACTION_MAIN); in startActivityAsUser()
151 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in startActivityAsUser()
153 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in startActivityAsUser()
156 launchIntent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); in startActivityAsUser()
160 launchIntent.setPackage(component.getPackageName()); in startActivityAsUser()
177 launchIntent.setComponent(component); in startActivityAsUser()
179 verifyActivityCanHandleIntentAndExported(launchIntent, component, callingUid, userId); in startActivityAsUser()
188 launchIntent.setPackage(null); in startActivityAsUser()
189 launchIntent.setComponent(component); in startActivityAsUser()
[all …]
DLauncherAppsService.java1686 final Intent launchIntent = getMainActivityLaunchIntent(component, user, in getActivityLaunchIntent() local
1688 if (launchIntent == null) { in getActivityLaunchIntent()
1699 return PendingIntent.getActivityAsUser(mContext, 0 /* requestCode */, launchIntent, in getActivityLaunchIntent()
1902 Intent launchIntent = getMainActivityLaunchIntent(component, user, in startActivityAsUser() local
1904 if (launchIntent == null) { in startActivityAsUser()
1908 launchIntent.setSourceBounds(sourceBounds); in startActivityAsUser()
1911 callingFeatureId, launchIntent, /* resultTo= */ null, in startActivityAsUser()
1921 Intent launchIntent = new Intent(Intent.ACTION_MAIN); in getMainActivityLaunchIntent() local
1922 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in getMainActivityLaunchIntent()
1923 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getMainActivityLaunchIntent()
[all …]
/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.java606 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); in onItemClick() local
607 if (launchIntent != null) { in onItemClick()
608 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onItemClick()
610 startActivity(launchIntent, resolveInfo); in onItemClick()
625 Intent launchIntent = mAdapter.getDataModel().chooseActivity(index); in onClick() local
626 if (launchIntent != null) { in onClick()
627 launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in onClick()
628 startActivity(launchIntent, defaultActivity); in onClick()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/
DPointingAppController.java379 Intent launchIntent; in startPointingUI() local
382 launchIntent = new Intent() in startPointingUI()
386 launchIntent = mContext.getPackageManager().getLaunchIntentForPackage(packageName); in startPointingUI()
388 if (launchIntent == null) { in startPointingUI()
394 launchIntent.putExtra("needFullScreen", needFullScreenPointingUI); in startPointingUI()
395 launchIntent.putExtra("isDemoMode", isDemoMode); in startPointingUI()
396 launchIntent.putExtra("isEmergency", isEmergency); in startPointingUI()
407 mContext.startActivity(launchIntent); in startPointingUI()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatActivityInterceptorTest.java169 Intent launchIntent = (Intent) result.getInterceptResult().getIntent() in displayCompatActivity_returnsHost() local
171 assertThat(launchIntent).isNotNull(); in displayCompatActivity_returnsHost()
192 Intent launchIntent = (Intent) result.getInterceptResult().getIntent() in displayCompatActivity_launchedFromDisplayCompatApp_returnsHost() local
194 assertThat(launchIntent).isNotNull(); in displayCompatActivity_launchedFromDisplayCompatApp_returnsHost()
220 Intent launchIntent = (Intent) result.getInterceptResult().getIntent() in displayCompatActivity_noPermission_returnsHost() local
222 assertThat(launchIntent).isNotNull(); in displayCompatActivity_noPermission_returnsHost()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionIntentExecutor.kt76 launchIntent(intent, user, overrideTransition, options, transitionCoordinator) in launchIntentAsync()
80 suspend fun launchIntent( in launchIntent() method in com.android.systemui.screenshot.ActionIntentExecutor
135 it.launchIntent(intent, bundle) in getCrossProfileConnector()
DICrossProfileService.aidl26 void launchIntent(in Intent intent, in Bundle bundle); in launchIntent() method
DScreenshotCrossProfileService.kt34 override fun launchIntent(intent: Intent, bundle: Bundle) { in launchIntent() method in com.android.systemui.screenshot.ScreenshotCrossProfileService
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBstatsCpuTimesValidationTest.java643 final Intent launchIntent = new Intent() in startIsolatedService() local
645 sContext.bindService(launchIntent, connection, Context.BIND_AUTO_CREATE in startIsolatedService()
660 final Intent launchIntent = new Intent() in startForegroundService() local
672 launchIntent.putExtras(extras); in startForegroundService()
673 sContext.startForegroundService(launchIntent); in startForegroundService()
687 final Intent launchIntent = new Intent() in startService() local
698 launchIntent.putExtras(extras); in startService()
699 sContext.startService(launchIntent); in startService()
713 final Intent launchIntent = new Intent() in startActivity() local
724 launchIntent.putExtras(extras) in startActivity()
[all …]
DCpuPowerStatsCollectorValidationTest.java157 final Intent launchIntent = new Intent().setComponent( in startActivity() local
168 launchIntent.putExtras(extras).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startActivity()
169 mContext.startActivity(launchIntent); in startActivity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicy.java251 launchIntent(mSession, position); in handleDrop()
284 final PendingIntent launchIntent = in launchApp() local
287 if (!user.equals(launchIntent.getCreatorUserHandle())) { in launchApp()
291 mStarter.startIntent(launchIntent, user.getIdentifier(), null /* fillIntent */, in launchApp()
299 private void launchIntent(DragSession session, @SplitPosition int position) { in launchIntent() method in DragAndDropPolicy
DDragAndDropController.java125 default boolean onUnhandledDrag(@NonNull PendingIntent launchIntent, in onUnhandledDrag() argument
384 final PendingIntent launchIntent = DragUtils.getLaunchIntent(dragEvent); in onUnhandledDrop() local
385 if (launchIntent == null) { in onUnhandledDrop()
392 l -> l.onUnhandledDrag(launchIntent, dragEvent.getDragSurface(), onFinishCallback)); in onUnhandledDrop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java432 Intent launchIntent = new Intent(ACTION_TRANSFER_MEDIA); in tryToLaunchInAppRoutingIntent() local
433 launchIntent.setComponent(componentName); in tryToLaunchInAppRoutingIntent()
434 launchIntent.putExtra(EXTRA_ROUTE_ID, routeId); in tryToLaunchInAppRoutingIntent()
435 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in tryToLaunchInAppRoutingIntent()
437 mActivityStarter.startActivity(launchIntent, true, controller); in tryToLaunchInAppRoutingIntent()
444 Intent launchIntent = getAppLaunchIntent(); in tryToLaunchMediaApplication() local
445 if (launchIntent != null) { in tryToLaunchMediaApplication()
446 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in tryToLaunchMediaApplication()
448 mActivityStarter.startActivity(launchIntent, true, controller); in tryToLaunchMediaApplication()
921 Intent launchIntent = in launchBluetoothPairing() local
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java1058 Intent launchIntent = getContextualSearchIntent(sessionArgs); in showSessionFromSession() local
1059 if (launchIntent != null) { in showSessionFromSession()
1064 return startContextualSearch(launchIntent); in showSessionFromSession()
2718 Intent launchIntent = new Intent(CS_INTENT_FILTER); in getContextualSearchIntent() local
2719 launchIntent.setPackage(csPkgName); in getContextualSearchIntent()
2721 launchIntent, PackageManager.MATCH_FACTORY_ONLY); in getContextualSearchIntent()
2725 launchIntent.setComponent(resolveInfo.getComponentInfo().getComponentName()); in getContextualSearchIntent()
2726 launchIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_NO_ANIMATION in getContextualSearchIntent()
2728 launchIntent.putExtras(args); in getContextualSearchIntent()
2748 launchIntent.putExtra(CS_KEY_FLAG_SECURE_FOUND, shb.containsSecureLayers()); in getContextualSearchIntent()
[all …]
/frameworks/base/core/java/android/content/pm/
DCrossProfileApps.java386 Intent launchIntent = pm.getLaunchIntentForPackage(mContext.getPackageName()); in getCallingApplicationLabel() local
387 if (launchIntent == null) { in getCallingApplicationLabel()
392 launchIntent, PackageManager.ResolveInfoFlags.of(MATCH_DEFAULT_ONLY)); in getCallingApplicationLabel()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppListRepository.kt184 val launchIntent = Intent(Intent.ACTION_MAIN, null).addCategory(Intent.CATEGORY_LAUNCHER) in getSystemPackageNames() constant
196 packageManager.queryIntentActivitiesAsUser(launchIntent, flags, userId) in getSystemPackageNames()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DActionIntentExecutorTest.kt69 actionIntentExecutor.launchIntent(intent, userHandle, false, null, null) in launchIntent_callsCloseSystemWindows()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/resume/
DResumeMediaBrowser.java317 Intent launchIntent = pm.getLaunchIntentForPackage(mComponentName.getPackageName()); in getAppIntent() local
318 return PendingIntent.getActivity(mContext, 0, launchIntent, PendingIntent.FLAG_IMMUTABLE); in getAppIntent()

12