Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java174 info.launchIntent, null)) { in onReceive()
176 Log.e(TAG, "Ignoring malicious intent " + info.launchIntent.toUri(0)); in onReceive()
207 if (info.launchIntent == null || info.label == null) { in createPendingInfo()
310 final Intent launchIntent; field in InstallShortcutReceiver.PendingInstallShortcutInfo
326 launchIntent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in PendingInstallShortcutInfo()
343 launchIntent = AppInfo.makeLaunchIntent(info); in PendingInstallShortcutInfo()
359 launchIntent = info.makeIntent(); in PendingInstallShortcutInfo()
376 launchIntent = new Intent().setComponent(info.provider) in PendingInstallShortcutInfo()
388 .key(LAUNCH_INTENT_KEY).value(launchIntent.toUri(0)) in encodeToString()
398 .key(LAUNCH_INTENT_KEY).value(launchIntent.toUri(0)) in encodeToString()
[all …]
DUtilities.java464 public static boolean isLauncherAppTarget(Intent launchIntent) { in isLauncherAppTarget() argument
465 if (launchIntent != null in isLauncherAppTarget()
466 && Intent.ACTION_MAIN.equals(launchIntent.getAction()) in isLauncherAppTarget()
467 && launchIntent.getComponent() != null in isLauncherAppTarget()
468 && launchIntent.getCategories() != null in isLauncherAppTarget()
469 && launchIntent.getCategories().size() == 1 in isLauncherAppTarget()
470 && launchIntent.hasCategory(Intent.CATEGORY_LAUNCHER) in isLauncherAppTarget()
471 && TextUtils.isEmpty(launchIntent.getDataString())) { in isLauncherAppTarget()
473 Bundle extras = launchIntent.getExtras(); in isLauncherAppTarget()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerTrampolineActivity.java86 Intent launchIntent; in onCreate() local
92 launchIntent = packageManager.getLaunchIntentForPackage(savedPackageName); in onCreate()
98 launchIntent = new Intent(this, LensPickerActivity.class); in onCreate()
99 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_PACKAGES, packages); in onCreate()
100 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_CATEGORIES, categories); in onCreate()
101 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_ID, facetId); in onCreate()
104 startActivity(launchIntent); in onCreate()
172 Intent launchIntent; in maybeRelaunchLastIntent() local
174 launchIntent = Intent.parseUri(intentString, Intent.URI_INTENT_SCHEME); in maybeRelaunchLastIntent()
186 launchIntent); in maybeRelaunchLastIntent()
DLensPickerActivity.java89 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, rInfo, in onResume() local
91 if (launchIntent != null) { in onResume()
92 launch(facetId, packageName, launchIntent); in onResume()
206 Intent launchIntent = item.getLaunchIntent(); in onActivitySelected() local
207 launch(item.getFacetId(), launchIntent.getPackage(), launchIntent); in onActivitySelected() local
211 private void launch(String facetId, String packageName, Intent launchIntent) { in launch() argument
215 mLastLaunchedIntent = launchIntent; in launch()
218 launchIntent); in launch()
DLensPickerUtils.java66 String packageName, Intent launchIntent) { in launch() argument
74 String uriString = launchIntent.toUri(Intent.URI_INTENT_SCHEME); in launch()
79 context.startActivity(launchIntent); in launch()
86 String packageName, Intent launchIntent) { in saveLastLaunchedAppInfo() argument
93 String uriString = launchIntent.toUri(Intent.URI_INTENT_SCHEME); in saveLastLaunchedAppInfo()
DLensPickerAdapter.java97 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, rInfo, in doInBackground() local
99 if (launchIntent == null) { in doInBackground()
126 launchIntent, in doInBackground()
DLensPickerItem.java31 public LensPickerItem(String label, Drawable icon, Intent launchIntent, String facetId) { in LensPickerItem() argument
34 mLaunchIntent = launchIntent; in LensPickerItem()
DLensResolverActivity.java176 Intent launchIntent = new Intent(mResolveIntent); in onActivitySelected() local
177 launchIntent.setComponent(component); in onActivitySelected()
184 startActivity(launchIntent); in onActivitySelected()
DResolverAdapter.java96 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, info, in doInBackground() local
119 getComponentIcon(packageManager, aInfo), launchIntent, in doInBackground()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java87 .key(LAUNCH_INTENT_KEY).value(info.launchIntent.toUri(0)) in addToInstallQueue()
123 Intent launchIntent = Intent.parseUri(object.getString(LAUNCH_INTENT_KEY), 0); in getAndClearInstallQueue() local
140 data.putExtra(Intent.EXTRA_SHORTCUT_INTENT, launchIntent); in getAndClearInstallQueue()
142 new PendingInstallShortcutInfo(data, name, launchIntent); in getAndClearInstallQueue()
161 Intent launchIntent; field in InstallShortcutReceiver.PendingInstallShortcutInfo
170 launchIntent = shortcutIntent; in PendingInstallShortcutInfo()
238 final Intent intent = pendingInfo.launchIntent; in processInstallShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/discovery/
DAppDiscoveryItem.java33 public final Intent launchIntent; field in AppDiscoveryItem
49 Intent launchIntent, in AppDiscoveryItem() argument
56 this.launchIntent = launchIntent; in AppDiscoveryItem()
DAppDiscoveryAppInfo.java37 public final @NonNull Intent launchIntent; field in AppDiscoveryAppInfo
41 this.intent = item.isInstantApp ? item.launchIntent : item.installIntent; in AppDiscoveryAppInfo()
54 this.launchIntent = item.launchIntent; in AppDiscoveryAppInfo()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetProvider.java188 Intent launchIntent = new Intent(); in getLaunchPendingIntentTemplate() local
189 launchIntent.setAction(Intent.ACTION_VIEW); in getLaunchPendingIntentTemplate()
190 launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | in getLaunchPendingIntentTemplate()
192 launchIntent.setClass(context, AllInOneActivity.class); in getLaunchPendingIntentTemplate()
193 return PendingIntent.getActivity(context, 0 /* no requestCode */, launchIntent, in getLaunchPendingIntentTemplate()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallSuccess.java81 Intent launchIntent = getPackageManager().getLaunchIntentForPackage( in onCreate() local
84 if (launchIntent != null) { in onCreate()
85 List<ResolveInfo> list = getPackageManager().queryIntentActivities(launchIntent, in onCreate()
96 startActivity(launchIntent); in onCreate()
/packages/apps/Nfc/src/com/android/nfc/
DNfcRootActivity.java35 final Intent launchIntent = intent.getParcelableExtra(EXTRA_LAUNCH_INTENT); in onCreate() local
36 if (launchIntent != null) { in onCreate()
38 startActivityAsUser(launchIntent, UserHandle.CURRENT); in onCreate()
/packages/apps/Nfc/src/com/android/nfc/handover/
DConfirmConnectActivity.java40 Intent launchIntent = getIntent(); in onCreate() local
41 mDevice = launchIntent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
45 launchIntent.getStringExtra(BluetoothDevice.EXTRA_NAME)); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java291 final Intent launchIntent = shadowActivity.getNextStartedActivityForResult().intent; in bindPreference_withIntentActionMetatdata_shouldSetLaunchAction() local
292 assertThat(launchIntent.getAction()) in bindPreference_withIntentActionMetatdata_shouldSetLaunchAction()
294 assertThat(launchIntent.getIntExtra(SettingsActivity.EXTRA_SOURCE_METRICS_CATEGORY, 0)) in bindPreference_withIntentActionMetatdata_shouldSetLaunchAction()
317 final ShadowActivity.IntentForResult launchIntent = in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything() local
320 assertThat(launchIntent).isNull(); in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DLiveWallpaperInfo.java110 Intent launchIntent = new Intent(WallpaperService.SERVICE_INTERFACE); in doInBackground() local
111 launchIntent.setClassName(info.getPackageName(), info.getServiceName()); in doInBackground()
112 result.add(new LiveWallpaperInfo(thumb, info, launchIntent)); in doInBackground()
DThirdPartyWallpaperInfo.java37 Intent launchIntent = new Intent(Intent.ACTION_SET_WALLPAPER) in onClick() local
42 launchIntent, WallpaperPickerActivity.PICK_WALLPAPER_THIRD_PARTY_ACTIVITY); in onClick()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchActivity.java349 launchIntent(intent); in startSearch()
362 launchIntent(intent); in onVoiceSearchClicked()
396 protected void launchIntent(Intent intent) { in launchIntent() method in SearchActivity
430 launchIntent(intent); in launchSuggestion()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java793 Intent launchIntent = new Intent(); in getLaunchPendingIntent() local
794 launchIntent.setClass(context, SettingsAppWidgetProvider.class); in getLaunchPendingIntent()
795 launchIntent.addCategory(Intent.CATEGORY_ALTERNATIVE); in getLaunchPendingIntent()
796 launchIntent.setData(Uri.parse("custom:" + buttonId)); in getLaunchPendingIntent()
798 launchIntent, 0 /* no flags */); in getLaunchPendingIntent()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppCounter.java60 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null) in includeInCount() local
64 launchIntent, in includeInCount()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DInCallServiceImpl.java101 Intent launchIntent = getPackageManager()
103 startActivity(launchIntent);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSearch.java108 launchIntent(launchUriIntent); in handleWebSearchIntent()
150 private void launchIntent(Intent intent) { in launchIntent() method in GoogleSearch
/packages/apps/Settings/src/com/android/settings/search/
DInstalledAppResultLoader.java128 final Intent launchIntent = new Intent(LAUNCHER_PROBE) in shouldIncludeAsCandidate() local
131 launchIntent, in shouldIncludeAsCandidate()

12