Home
last modified time | relevance | path

Searched refs:shortcutIntent (Results 1 – 10 of 10) sorted by relevance

/aosp12/packages/apps/Settings/src/com/android/settings/shortcut/
H A DCreateShortcutPreferenceController.java127 final Intent shortcutIntent = createResultIntent( in updateState()
130 mHost.setResult(Activity.RESULT_OK, shortcutIntent); in updateState()
144 Intent createResultIntent(Intent shortcutIntent, ResolveInfo resolveInfo, in createResultIntent() argument
146 ShortcutInfo info = createShortcutInfo(mContext, shortcutIntent, resolveInfo, label); in createResultIntent()
153 .putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent) in createResultIntent()
211 private static ShortcutInfo createShortcutInfo(Context context, Intent shortcutIntent, in createShortcutInfo() argument
226 shortcutIntent.getComponent().flattenToShortString(); in createShortcutInfo()
229 .setIntent(shortcutIntent) in createShortcutInfo()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSomnambulator.java41 Intent shortcutIntent = new Intent(this, Somnambulator.class); in onStart() local
42 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in onStart()
47 resultIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in onStart()
/aosp12/packages/apps/Contacts/src/com/android/contacts/
H A DShortcutIntentBuilder.java124 void onShortcutIntentCreated(Uri uri, Intent shortcutIntent); in onShortcutIntentCreated() argument
295 final Intent shortcutIntent = ImplicitIntentsUtil.getIntentForQuickContactLauncherShortcut( in createContactShortcutIntent() local
307 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in createContactShortcutIntent()
338 final Intent shortcutIntent = new Intent(shortcutAction, phoneUri); in createPhoneNumberShortcutIntent() local
339 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in createPhoneNumberShortcutIntent()
350 id, displayName, shortcutIntent, compatAdaptiveIcon.toIcon()); in createPhoneNumberShortcutIntent()
363 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in createPhoneNumberShortcutIntent()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DCustomShortcutConfigActivity.java42 Intent shortcutIntent = createShortcutResultIntent( in onCreate() local
45 setResult(RESULT_OK, shortcutIntent); in onCreate()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppSearchShortcutInfoTest.java47 final Intent shortcutIntent = new Intent(Intent.ACTION_VIEW); in testBuildShortcutAndGetValue() local
52 .setIntent(shortcutIntent) in testBuildShortcutAndGetValue()
/aosp12/frameworks/base/services/core/java/com/android/server/policy/
H A DModifierShortcutManager.java313 final Intent shortcutIntent = getIntent(kcm, keyCode, metaState); in handleIntentShortcut() local
314 if (shortcutIntent != null) { in handleIntentShortcut()
315 shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in handleIntentShortcut()
317 mContext.startActivityAsUser(shortcutIntent, UserHandle.CURRENT); in handleIntentShortcut()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DSettingsInitialize.java142 final Intent shortcutIntent = info.getIntent(); in refreshExistingShortcuts() local
143 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); in refreshExistingShortcuts()
145 .setIntent(shortcutIntent) in refreshExistingShortcuts()
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactPickerFragment.java159 public void onShortcutIntentCreated(Uri uri, Intent shortcutIntent) { in onShortcutIntentCreated() argument
161 mListener.onShortcutIntentCreated(shortcutIntent); in onShortcutIntentCreated()
H A DPhoneNumberPickerFragment.java260 public void onShortcutIntentCreated(Uri uri, Intent shortcutIntent) { in onShortcutIntentCreated() argument
261 mListener.onShortcutIntentCreated(shortcutIntent); in onShortcutIntentCreated()
/aosp12/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DQuickContactActivity.java2259 public void onShortcutIntentCreated(Uri uri, Intent shortcutIntent) { in createLauncherShortcutWithContact()
2262 shortcutIntent.setAction(ACTION_INSTALL_SHORTCUT); in createLauncherShortcutWithContact()
2263 QuickContactActivity.this.sendBroadcast(shortcutIntent); in createLauncherShortcutWithContact()
2266 final String displayName = shortcutIntent in createLauncherShortcutWithContact()