Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceControllerTest.java142 Intent launchIntent = createLaunchIntent(/* needsAuth= */ false, in onStart_appliesFilterType() local
144 mControllerHelper.getController().setLaunchIntent(launchIntent); in onStart_appliesFilterType()
157 Intent launchIntent = createLaunchIntent(/* needsAuth= */ true, in onDeviceClicked_bondedDevice_sendsPickedIntent() local
160 mControllerHelper.getController().setLaunchIntent(launchIntent); in onDeviceClicked_bondedDevice_sendsPickedIntent()
179 Intent launchIntent = createLaunchIntent(/* needsAuth= */ true, in onDeviceClicked_bondedDevice_goesBack() local
181 mControllerHelper.getController().setLaunchIntent(launchIntent); in onDeviceClicked_bondedDevice_goesBack()
194 Intent launchIntent = createLaunchIntent(/* needsAuth= */ false, in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent() local
196 mControllerHelper.getController().setLaunchIntent(launchIntent); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent()
211 Intent launchIntent = createLaunchIntent(/* needsAuth= */ true, in onDeviceClicked_unbondedDevice_needsAuth_startsPairing() local
213 mControllerHelper.getController().setLaunchIntent(launchIntent); in onDeviceClicked_unbondedDevice_needsAuth_startsPairing()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java142 String pkg = getIntentPackage(info.launchIntent);
146 + info.launchIntent);
206 info.launchIntent, null)) { in onReceive()
208 Log.e(TAG, "Ignoring malicious intent " + info.launchIntent.toUri(0)); in onReceive()
239 if (info.launchIntent == null || info.label == null) { in createPendingInfo()
335 final Intent launchIntent; field in InstallShortcutReceiver.PendingInstallShortcutInfo
351 launchIntent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in PendingInstallShortcutInfo()
368 launchIntent = AppInfo.makeLaunchIntent(info); in PendingInstallShortcutInfo()
384 launchIntent = ShortcutKey.makeIntent(info); in PendingInstallShortcutInfo()
401 launchIntent = new Intent().setComponent(info.provider) in PendingInstallShortcutInfo()
[all …]
DUtilities.java493 public static boolean isLauncherAppTarget(Intent launchIntent) { in isLauncherAppTarget() argument
494 if (launchIntent != null in isLauncherAppTarget()
495 && Intent.ACTION_MAIN.equals(launchIntent.getAction()) in isLauncherAppTarget()
496 && launchIntent.getComponent() != null in isLauncherAppTarget()
497 && launchIntent.getCategories() != null in isLauncherAppTarget()
498 && launchIntent.getCategories().size() == 1 in isLauncherAppTarget()
499 && launchIntent.hasCategory(Intent.CATEGORY_LAUNCHER) in isLauncherAppTarget()
500 && TextUtils.isEmpty(launchIntent.getDataString())) { in isLauncherAppTarget()
502 Bundle extras = launchIntent.getExtras(); in isLauncherAppTarget()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerTrampolineActivity.java92 Intent launchIntent; in onCreate() local
98 launchIntent = packageManager.getLaunchIntentForPackage(savedPackageName); in onCreate()
104 launchIntent = new Intent(this, LensPickerActivity.class); in onCreate()
105 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_PACKAGES, packages); in onCreate()
106 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_CATEGORIES, categories); in onCreate()
107 launchIntent.putExtra(LensPickerConstants.EXTRA_FACET_ID, facetId); in onCreate()
110 startActivity(launchIntent); in onCreate()
178 Intent launchIntent; in maybeRelaunchLastIntent() local
180 launchIntent = Intent.parseUri(intentString, Intent.URI_INTENT_SCHEME); in maybeRelaunchLastIntent()
192 launchIntent); in maybeRelaunchLastIntent()
DLensPickerActivity.java80 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, rInfo, in onResume() local
82 if (launchIntent != null) { in onResume()
83 launch(facetId, packageName, launchIntent); in onResume()
197 Intent launchIntent = item.getLaunchIntent(); in onActivitySelected() local
198 launch(item.getFacetId(), launchIntent.getPackage(), launchIntent); in onActivitySelected() local
202 private void launch(String facetId, String packageName, Intent launchIntent) { in launch() argument
206 mLastLaunchedIntent = launchIntent; in launch()
209 launchIntent); in launch()
DLensPickerUtils.java65 String packageName, Intent launchIntent) { in launch() argument
73 String uriString = launchIntent.toUri(Intent.URI_INTENT_SCHEME); in launch()
78 context.startActivity(launchIntent); in launch()
85 String packageName, Intent launchIntent) { in saveLastLaunchedAppInfo() argument
92 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.java185 Intent launchIntent = new Intent(mResolveIntent); in onActivitySelected() local
186 launchIntent.setComponent(component); in onActivitySelected()
193 startActivity(launchIntent); in onActivitySelected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceDeepLinkSpringBoard.java44 Intent launchIntent; in onCreate() local
51 launchIntent = sliceable.getIntent(); in onCreate()
53 launchIntent = ZenModeSliceBuilder.getIntent(this /* context */); in onCreate()
55 launchIntent = BluetoothSliceBuilder.getIntent(this /* context */); in onCreate()
62 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
64 startActivity(launchIntent); in onCreate()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceDeepLinkSpringBoard.java44 Intent launchIntent; in onCreate() local
51 launchIntent = sliceable.getIntent(); in onCreate()
53 launchIntent = ZenModeSliceBuilder.getIntent(this /* context */); in onCreate()
55 launchIntent = BluetoothSliceBuilder.getIntent(this /* context */); in onCreate()
62 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
64 startActivity(launchIntent); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySettingsForSetupWizardActivityTest.java65 final Intent launchIntent = Shadows.shadowOf(activity).getNextStartedActivity(); in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly() local
66 assertThat(launchIntent).isNotNull(); in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly()
67 assertThat(launchIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)).isEqualTo( in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly()
82 final Intent launchIntent = Shadows.shadowOf(activity).getNextStartedActivity(); in onCreate_noFontSizeComponent_shouldNotFinishCurrentActivity() local
83 assertThat(launchIntent).isNull(); in onCreate_noFontSizeComponent_shouldNotFinishCurrentActivity()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/warning/
DNoHfpFragment.java104 Intent launchIntent = new Intent(); in onCreateView()
105 launchIntent.setAction(Bluetooth_Setting_ACTION); in onCreateView()
106 launchIntent.addCategory(Bluetooth_Setting_CATEGORY); in onCreateView()
107 startActivity(launchIntent); in onCreateView()
/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/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/WallpaperPicker2/src/com/android/wallpaper/model/
DThirdPartyAppCategory.java103 Intent launchIntent = new Intent(Intent.ACTION_SET_WALLPAPER); in show() local
104 launchIntent.setComponent(itemComponentName); in show()
106 srcActivity, launchIntent, requestCode); in show()
/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()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DLauncherActivity.java214 void launch(Intent launchIntent) { in launch() argument
215 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launch()
217 launchIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in launch()
224 startActivity(launchIntent, options.toBundle()); in launch()
/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/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java341 final Intent launchIntent = shadowActivity.getNextStartedActivityForResult().intent; in bindPreference_withIntentActionMetadata_shouldSetLaunchAction() local
342 assertThat(launchIntent.getAction()) in bindPreference_withIntentActionMetadata_shouldSetLaunchAction()
344 … assertThat(launchIntent.getIntExtra(MetricsFeatureProvider.EXTRA_SOURCE_METRICS_CATEGORY, 0)) in bindPreference_withIntentActionMetadata_shouldSetLaunchAction()
363 final ShadowActivity.IntentForResult launchIntent = in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything() local
366 assertThat(launchIntent).isNull(); in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything()
/packages/apps/Launcher3/SecondaryDisplayLauncher/src/com/android/launcher3/
DSecondaryDisplayLauncher.java160 void launch(Intent launchIntent) { in launch() argument
161 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launch()
163 startActivity(launchIntent); in launch()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DInstalledAppCounter.java60 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null) in includeInCount() local
64 launchIntent, in includeInCount()
/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/
DInCallRouter.java139 Intent launchIntent = new Intent(mContext, InCallActivity.class); in routeToInCallPage() local
140 mContext.startActivity(launchIntent); in routeToInCallPage()

123