Home | History | Annotate | Download | only in impl

Lines Matching refs:INTENT

20 import android.content.Intent;
34 * <li> Returning a shortcut-matching intent to clients
43 Settings.Bookmarks.SHORTCUT, Settings.Bookmarks.INTENT
48 /** Map of a shortcut to its intent. */
49 private SparseArray<Intent> mShortcutIntents;
55 mShortcutIntents = new SparseArray<Intent>();
83 Intent intent = null;
85 intent = Intent.getIntent(intentURI);
87 Log.w(TAG, "Intent URI for shortcut invalid.", e);
89 if (intent == null) continue;
90 mShortcutIntents.put(shortcut, intent);
95 * Gets the shortcut intent for a given keycode+modifier. Make sure you
106 * @return The intent that matches the shortcut, or null if not found.
108 public Intent getIntent(int keyCode, int modifiers) {
112 Intent intent = shortcut != 0 ? mShortcutIntents.get(shortcut) : null;
113 if (intent != null) return intent;