/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
H A D | QuickLaunchSettings.java | 50 * and allows choosing a new bookmark for a shortcut. 81 /** Preference category to hold the shortcut preferences. */ 83 /** Mapping of a shortcut to its preference. */ 86 /** The bookmark title of the shortcut that is being cleared. */ 89 /** The shortcut that is being cleared. */ 144 // Create the dialog for clearing a shortcut 182 // Clear the shortcut 189 private void clearShortcut(char shortcut) { argument 191 new String[] { String.valueOf((int) shortcut) }); 198 // Open the screen to pick a bookmark for this shortcut 238 updateShortcut(char shortcut, Intent intent) argument 245 getOrCreatePreference(char shortcut) argument 255 createPreference(char shortcut) argument [all...] |
H A D | ShortcutPreference.java | 29 * Preference type for a shortcut in {@link QuickLaunchSettings}. 49 public ShortcutPreference(Context context, char shortcut) { argument 65 mShortcut = shortcut; 74 public void setShortcut(char shortcut) { argument 75 if (shortcut != mShortcut) { 76 mShortcut = shortcut; 106 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Stats.java | 110 public void recordLaunch(Intent intent, ShortcutInfo shortcut) { argument 117 if (shortcut != null) { 118 broadcastIntent.putExtra(EXTRA_CONTAINER, shortcut.container) 119 .putExtra(EXTRA_SCREEN, shortcut.screenId) 120 .putExtra(EXTRA_CELLX, shortcut.cellX) 121 .putExtra(EXTRA_CELLY, shortcut.cellY); 135 if (shortcut == null) { 141 mLog.writeShort((short) shortcut.container); 142 mLog.writeShort((short) shortcut.screenId); 143 mLog.writeShort((short) shortcut [all...] |
H A D | DeleteDropTarget.java | 264 ShortcutInfo shortcut = (ShortcutInfo) d.dragInfo; 265 if (shortcut.intent != null && shortcut.intent.getComponent() != null) { 266 Set<String> categories = shortcut.intent.getCategories(); 291 ShortcutInfo shortcut = (ShortcutInfo) item; 292 if (shortcut.intent != null && shortcut.intent.getComponent() != null) { 293 final ComponentName componentName = shortcut.intent.getComponent();
|
H A D | LauncherModel.java | 261 // processInstallShortcut, we give it time for its shortcut to get added to the 361 // Add the shortcut to the db 466 ShortcutInfo shortcut = (ShortcutInfo) item; 467 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && 468 modelShortcut.intent.filterEquals(shortcut.intent) && 469 modelShortcut.id == shortcut.id && 470 modelShortcut.itemType == shortcut.itemType && 471 modelShortcut.container == shortcut.container && 472 modelShortcut.screenId == shortcut.screenId && 473 modelShortcut.cellX == shortcut [all...] |
H A D | Launcher.java | 160 "com.android.launcher3.intent.extra.shortcut.INGORE_LAUNCH_ANIMATION"; 208 // How long to wait before the new-shortcut animation automatically pans the workspace 699 // Before adding this resetAddInfo(), after a shortcut was added to a workspace screen, 1226 * Creates a view representing a shortcut. 1228 * @param info The data structure describing the shortcut. 1238 * Creates a view representing a shortcut inflated from the specified resource. 1240 * @param layoutResId The id of the XML layout used to create the shortcut. 1241 * @param parent The group the shortcut belongs to. 1242 * @param info The data structure describing the shortcut. 1254 * Add an application shortcut t [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | UserDictionaryCompatUtils.java | 33 final String shortcut, final Locale locale) { 35 CompatUtils.invoke(Words.class, null, METHOD_addWord, context, word, freq, shortcut, 32 addWord(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | DictionaryBackupAgent.java | 169 String shortcut = cursor.getString(COLUMN_SHORTCUT); 170 if (TextUtils.isEmpty(shortcut)) shortcut = ""; 173 + SEPARATOR + shortcut; 228 String shortcut = null; 232 if (st.hasMoreTokens()) shortcut = st.nextToken(); 233 if (TextUtils.isEmpty(shortcut)) shortcut = null; 243 cv.put(Words.SHORTCUT, shortcut); 246 + Words.SHORTCUT + "=?", new String[] {word, shortcut}); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | Constants.java | 214 case CODE_SHORTCUT: return "shortcut";
|
H A D | UserBinaryDictionary.java | 55 final static String SHORTCUT = "shortcut"; 244 final String shortcut = hasShortcutColumn ? cursor.getString(indexShortcut) : null; 252 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { 253 super.addWord(shortcut, word, adjustedFrequency, USER_DICT_SHORTCUT_FREQUENCY,
|
H A D | ExpandableDictionary.java | 160 * Add a word with an optional shortcut to the dictionary. 162 * @param shortcutTarget A shortcut target for this word, or null if none. 164 * @param shortcutFreq The frequency of the shortcut (0~15, with 15 = whitelist). Ignored 180 * @param shortcutTarget A shortcut target for this word, or null if none. 182 * @param shortcutFreq The frequency of the shortcut (0~15, with 15 = whitelist). Ignored 283 // If node.mShortcutOnly is true, then it exists as a shortcut but not as a word, 286 // a shortcut, but this does not matter), so it's a valid word. 376 final char[] shortcut = node.mShortcutTargets.get(shortcutIndex); 377 suggestions.add(new SuggestedWordInfo(new String(shortcut, 0, shortcut [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | UserDictionarySettings.java | 52 // The index of the shortcut in the above array. 158 final String shortcut = getShortcut(position); 160 showAddOrEditDialog(word, shortcut); 185 * @param editingShortcut the shortcut for this entry, or null if none. 222 public static void deleteWord(final String word, final String shortcut, argument 224 if (TextUtils.isEmpty(shortcut)) { 231 new String[] { word, shortcut }); 244 final String shortcut = c.getString(INDEX_SHORTCUT); 245 if (TextUtils.isEmpty(shortcut)) { 248 ((TextView)v).setText(shortcut); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
H A D | UserDictionarySettings.java | 62 // The index of the shortcut in the above array. 191 final String shortcut = getShortcut(position); 193 showAddOrEditDialog(word, shortcut); 204 // with the shortcut API. 227 * @param editingShortcut the shortcut for this entry, or null if none. 264 public static void deleteWord(final String word, final String shortcut, argument 269 } else if (TextUtils.isEmpty(shortcut)) { 276 new String[] { word, shortcut }); 293 final String shortcut = c.getString(INDEX_SHORTCUT); 294 if (TextUtils.isEmpty(shortcut)) { [all...] |
H A D | UserDictionaryAddWordContents.java | 48 public static final String EXTRA_SHORTCUT = "shortcut"; 85 final String shortcut; 87 shortcut = args.getString(EXTRA_SHORTCUT); 88 if (null != shortcut && null != mShortcutEditText) { 89 mShortcutEditText.setText(shortcut); 93 shortcut = null; 166 // If there is no shortcut, and the word already exists in the database, then we 167 // should not insert, because either A. the word exists with no shortcut, in which 169 // exists with at least one shortcut, in which case it has priority on our word. 172 // Disallow duplicates. If the same word with no shortcut i [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
H A D | DialerPhoneNumberListAdapter.java | 65 final int shortcut = getShortcutTypeFromPosition(position); 66 if (shortcut >= 0) { 68 return super.getViewTypeCount() + shortcut; 99 * @return The enabled shortcut type matching the given position if the item is a 100 * shortcut, -1 otherwise 114 + " but not a shortcut."); 149 throw new IllegalArgumentException("Invalid shortcut type");
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | EventLogLogger.java | 105 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; 106 sb.append(source).append(':').append(type).append(':').append(shortcut);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionary.java | 71 * This represents an "attribute", that is either a bigram or a shortcut. 96 * PtNode is a group of characters, with a frequency, shortcut targets, bigrams, and children 116 boolean mIsNotAWord; // Only a shortcut 219 * Gets the shortcut target for the given word. Returns null if the word is not in the 220 * shortcut list. 227 WeightedString shortcut = mShortcutTargets.get(i); 228 if (shortcut.mWord.equals(word)) { 229 return shortcut; 255 * Updates the PtNode with the given properties. Adds the shortcut and bigram lists to 256 * the existing ones if any. Note: unigram, bigram, and shortcut frequencie [all...] |
H A D | BinaryDictEncoderUtils.java | 91 * Compute the size of a shortcut in bytes. 93 private static int getShortcutSize(final WeightedString shortcut) { argument 95 final String word = shortcut.mWord; 106 * Compute the size of a shortcut list in bytes. 114 for (final WeightedString shortcut : shortcutList) { 115 size += getShortcutSize(shortcut); 745 * Makes the flag value for a shortcut.
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | CombinedInputOutput.java | 47 private static final String SHORTCUT_TAG = "shortcut"; 154 String shortcut = null; 160 shortcut = params[1]; 167 if (null != shortcut) { 168 shortcuts.add(new WeightedString(shortcut, shortcutFreq));
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionaryAddWordContents.java | 44 public static final String EXTRA_SHORTCUT = "shortcut"; 73 final String shortcut = args.getString(EXTRA_SHORTCUT); 74 if (null != shortcut && null != mShortcutEditText) { 75 mShortcutEditText.setText(shortcut); 145 // If there is no shortcut, and the word already exists in the database, then we 146 // should not insert, because either A. the word exists with no shortcut, in which 148 // exists with at least one shortcut, in which case it has priority on our word. 151 // Disallow duplicates. If the same word with no shortcut is defined, remove it; if 152 // the same word with the same shortcut is defined, remove it; but we don't mind if 153 // there is the same word with a different, non-empty shortcut [all...] |
/packages/apps/Music/src/com/android/music/ |
H A D | PlaylistBrowserActivity.java | 378 final Intent shortcut = new Intent(); 379 shortcut.setAction(Intent.ACTION_VIEW); 380 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/playlist"); 381 shortcut.putExtra("playlist", String.valueOf(id)); 384 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherModel.java | 276 ShortcutInfo shortcut = (ShortcutInfo) item; 277 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && 278 modelShortcut.intent.filterEquals(shortcut.intent) && 279 modelShortcut.id == shortcut.id && 280 modelShortcut.itemType == shortcut.itemType && 281 modelShortcut.container == shortcut.container && 282 modelShortcut.screen == shortcut.screen && 283 modelShortcut.cellX == shortcut.cellX && 284 modelShortcut.cellY == shortcut.cellY && 285 modelShortcut.spanX == shortcut [all...] |
H A D | Launcher.java | 159 "com.android.launcher.intent.extra.shortcut.INGORE_LAUNCH_ANIMATION"; 207 // How long to wait before the new-shortcut animation automatically pans the workspace 619 // Before adding this resetAddInfo(), after a shortcut was added to a workspace screen, 1039 * Creates a view representing a shortcut. 1041 * @param info The data structure describing the shortcut. 1051 * Creates a view representing a shortcut inflated from the specified resource. 1053 * @param layoutResId The id of the XML layout used to create the shortcut. 1054 * @param parent The group the shortcut belongs to. 1055 * @param info The data structure describing the shortcut. 1067 * Add an application shortcut t [all...] |
/packages/inputmethods/LatinIME/native/jni/ |
H A D | Android.mk | 74 shortcut/shortcut_list_reading_utils.cpp \
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | BinaryDictDecoderEncoderTests.java | 152 for (final String shortcut : shortcutMap.get(word)) { 153 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ)); 224 // check shortcut 231 assertNotNull("shortcut not found: " + entry.getKey() + ", " + word,
|