/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothDevicePickerPreferenceControllerTest.java | 163 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 D | CustomShortcutConfigActivity.java | 40 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 D | SliceDeepLinkSpringBoard.java | 46 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 D | BluetoothPrefs.java | 34 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 D | CrossProfileAppsServiceImpl.java | 143 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 D | LauncherAppsService.java | 1108 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 D | AccessibilitySettingsForSetupWizardActivityTest.java | 67 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 D | PackageManagerHelper.java | 307 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 D | NoHfpFragment.java | 98 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 D | NfcRootActivity.java | 35 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 D | Somnambulator.java | 38 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 D | ShareActionProvider.java | 300 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 D | ActivityChooserView.java | 606 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 D | InCallRouter.java | 174 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 D | CalendarAppWidgetProvider.java | 188 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 D | ConversationListFragment.java | 103 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 D | ConfirmConnectActivity.java | 43 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 D | ThirdPartyAppCategory.java | 103 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 D | LiveWallpaperInfo.java | 110 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 D | InstalledAppCounter.java | 66 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 D | InstalledAppCounter.java | 60 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 D | BstatsCpuTimesValidationTest.java | 763 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 D | InstalledAppCountItemManager.java | 87 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 D | ModelUtils.java | 158 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 D | BluetoothMediaBrowserService.java | 147 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()
|