Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePickerPreferenceControllerTest.java163 mPreferenceController.setLaunchIntent(launchIntent); in onStart_appliesFilterType()
176 Intent launchIntent = createLaunchIntent(/* needsAuth= */ true, in onDeviceClicked_callingPackageEqualToLaunchPackage_setsClassName() local
179 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_callingPackageEqualToLaunchPackage_setsClassName()
204 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_callingPackageNotEqualToLaunchPackage_doesNotSetClassName()
228 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_bondedDevice_goesBack()
245 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent()
266 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_unbondedDevice_needsAuth_startsPairing()
283 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceClicked_unbondedDevice_needsAuth_pairingStartFails_resumesScanning()
302 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
327 mPreferenceController.setLaunchIntent(launchIntent); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
[all …]
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DCustomShortcutConfigActivity.java40 Intent launchIntent = new Intent(this, BaseTestingActivity.class) in onCreate() local
44 R.drawable.ic_widget, launchIntent); in onCreate()
50 Context context, String uniqueId, String name, int iconId, Intent launchIntent) { in createShortcutResultIntent() argument
52 createShortcutInfo(context, uniqueId, name, iconId, launchIntent); in createShortcutResultIntent()
58 Context context, String uniqueId, String name, int iconId, Intent launchIntent) { in createShortcutInfo() argument
63 .setIntent(launchIntent) in createShortcutInfo()
/aosp12/packages/apps/Settings/src/com/android/settings/slices/
H A DSliceDeepLinkSpringBoard.java46 Intent launchIntent; in onCreate() local
53 launchIntent = sliceable.getIntent(); in onCreate()
55 launchIntent = ZenModeSliceBuilder.getIntent(this /* context */); in onCreate()
57 launchIntent = BluetoothSliceBuilder.getIntent(this /* context */); in onCreate()
64 launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); in onCreate()
66 startActivity(launchIntent); in onCreate()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DBluetoothPrefs.java34 Intent launchIntent = new Intent(); in onCreate() local
35 launchIntent.setAction(BLUETOOTH_SETTING_ACTION); in onCreate()
36 launchIntent.addCategory(BLUETOOTH_SETTING_CATEGORY); in onCreate()
37 startActivity(launchIntent); in onCreate()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileAppsServiceImpl.java143 final Intent launchIntent = new Intent(); in startActivityAsUser() local
145 launchIntent.setAction(Intent.ACTION_MAIN); in startActivityAsUser()
146 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in startActivityAsUser()
170 launchIntent.setComponent(component); in startActivityAsUser()
174 launchIntent.setPackage(null); in startActivityAsUser()
175 launchIntent.setComponent(component); in startActivityAsUser()
210 Intent launchIntent = new Intent(intent); in startActivityAsUserByIntent() local
211 launchIntent.setPackage(callingPackage); in startActivityAsUserByIntent()
234 launchIntent, in startActivityAsUserByIntent()
373 launchIntent,
[all …]
H A DLauncherAppsService.java1108 if (launchIntent == null) { in getActivityLaunchIntent()
1135 if (launchIntent == null) { in startActivityAsUser()
1139 launchIntent.setSourceBounds(sourceBounds); in startActivityAsUser()
1150 Intent launchIntent = new Intent(Intent.ACTION_MAIN); in getMainActivityLaunchIntent() local
1151 launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); in getMainActivityLaunchIntent()
1152 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getMainActivityLaunchIntent()
1154 launchIntent.setPackage(component.getPackageName()); in getMainActivityLaunchIntent()
1165 launchIntent, in getMainActivityLaunchIntent()
1182 launchIntent.setPackage(null); in getMainActivityLaunchIntent()
1183 launchIntent.setComponent(component); in getMainActivityLaunchIntent()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A DAccessibilitySettingsForSetupWizardActivityTest.java67 final Intent launchIntent = Shadows.shadowOf(activity).getNextStartedActivity(); in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly() local
68 assertThat(launchIntent).isNotNull(); in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly()
69 assertThat(launchIntent.getIntExtra(VISION_FRAGMENT_NO, -1)).isEqualTo( in onCreate_hasFontSizeComponent_shouldGoToFontSizePreferenceDirectly()
84 final Intent launchIntent = Shadows.shadowOf(activity).getNextStartedActivity(); in onCreate_noFontSizeComponent_shouldNotFinishCurrentActivity() local
85 assertThat(launchIntent).isNull(); in onCreate_noFontSizeComponent_shouldNotFinishCurrentActivity()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DPackageManagerHelper.java307 public static boolean isLauncherAppTarget(Intent launchIntent) { in isLauncherAppTarget() argument
308 if (launchIntent != null in isLauncherAppTarget()
309 && Intent.ACTION_MAIN.equals(launchIntent.getAction()) in isLauncherAppTarget()
310 && launchIntent.getComponent() != null in isLauncherAppTarget()
311 && launchIntent.getCategories() != null in isLauncherAppTarget()
312 && launchIntent.getCategories().size() == 1 in isLauncherAppTarget()
313 && launchIntent.hasCategory(Intent.CATEGORY_LAUNCHER) in isLauncherAppTarget()
314 && TextUtils.isEmpty(launchIntent.getDataString())) { in isLauncherAppTarget()
316 Bundle extras = launchIntent.getExtras(); in isLauncherAppTarget()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/warning/
H A DNoHfpFragment.java98 Intent launchIntent = new Intent(); in onCreateView() local
99 launchIntent.setAction(Bluetooth_Setting_ACTION); in onCreateView()
100 launchIntent.addCategory(Bluetooth_Setting_CATEGORY); in onCreateView()
104 mCarPackageManager, getActivity().getPackageManager(), launchIntent); in onCreateView()
108 bluetoothButton.setOnClickListener(v -> startActivity(launchIntent)); in onCreateView()
/aosp12/packages/apps/Nfc/src/com/android/nfc/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A 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()
/aosp12/frameworks/base/core/java/android/widget/
H A 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()
H A 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()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
H A DInCallRouter.java174 Intent launchIntent = new Intent(mContext, InCallActivity.class); in routeToFullScreenIncomingCallPage() local
175 launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in routeToFullScreenIncomingCallPage()
176 launchIntent.putExtra(Constants.Intents.EXTRA_SHOW_DIALPAD, showDialpad); in routeToFullScreenIncomingCallPage()
177 mContext.startActivity(launchIntent); in routeToFullScreenIncomingCallPage()
/aosp12/packages/apps/Calendar/src/com/android/calendar/widget/
H A 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()
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/conversationlist/
H A DConversationListFragment.java103 Intent launchIntent = new Intent(); in handleBluetoothDisconnected() local
104 launchIntent.setAction(BLUETOOTH_SETTING_ACTION); in handleBluetoothDisconnected()
105 launchIntent.addCategory(BLUETOOTH_SETTING_CATEGORY); in handleBluetoothDisconnected()
111 v -> startActivity(launchIntent), in handleBluetoothDisconnected()
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/
H A DConfirmConnectActivity.java43 Intent launchIntent = getIntent(); in onCreate() local
44 mDevice = launchIntent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
47 String btExtraName = launchIntent.getStringExtra(BluetoothDevice.EXTRA_NAME); in onCreate()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
H A 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()
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
H A 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()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/
H A DInstalledAppCounter.java66 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null) in includeInCount() local
70 launchIntent, in includeInCount()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DInstalledAppCounter.java60 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null) in includeInCount() local
64 launchIntent, in includeInCount()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBstatsCpuTimesValidationTest.java763 final Intent launchIntent = new Intent() in startIsolatedService() local
765 sContext.bindService(launchIntent, connection, Context.BIND_AUTO_CREATE in startIsolatedService()
780 final Intent launchIntent = new Intent() in startForegroundService() local
792 launchIntent.putExtras(extras); in startForegroundService()
793 sContext.startForegroundService(launchIntent); in startForegroundService()
807 final Intent launchIntent = new Intent() in startService() local
818 launchIntent.putExtras(extras); in startService()
819 sContext.startService(launchIntent); in startService()
833 final Intent launchIntent = new Intent() in startActivity() local
844 launchIntent.putExtras(extras) in startActivity()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/
H A DInstalledAppCountItemManager.java87 Intent launchIntent = new Intent(Intent.ACTION_MAIN, null) in shouldCountApp() local
91 launchIntent, in shouldCountApp()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DModelUtils.java158 Intent launchIntent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in fromLegacyShortcutIntent() local
160 if (launchIntent == null || label == null) { in fromLegacyShortcutIntent()
187 info.intent = launchIntent; in fromLegacyShortcutIntent()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
H A DBluetoothMediaBrowserService.java147 Intent launchIntent = new Intent(); in setErrorPlaybackState() local
148 launchIntent.setAction(BluetoothPrefs.BLUETOOTH_SETTING_ACTION); in setErrorPlaybackState()
149 launchIntent.addCategory(BluetoothPrefs.BLUETOOTH_SETTING_CATEGORY); in setErrorPlaybackState()
152 launchIntent, flags); in setErrorPlaybackState()

123