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
107 * @return The intent that matches the shortcut, or null if not found.
109 public Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) {
110 Intent intent = null;
115 intent = mShortcutIntents.get(shortcut);
119 if (intent == null) {
122 intent = mShortcutIntents.get(shortcut);
126 return intent;