/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
D | QuickLaunchSettings.java | 189 private void clearShortcut(char shortcut) { in clearShortcut() argument 191 new String[] { String.valueOf((int) shortcut) }); in clearShortcut() 230 char shortcut = data.getCharExtra(BookmarkPicker.EXTRA_SHORTCUT, (char) 0); in onActivityResult() local 231 updateShortcut(shortcut, data); in onActivityResult() 238 private void updateShortcut(char shortcut, Intent intent) { in updateShortcut() argument 242 Bookmarks.add(getContentResolver(), intent, "", DEFAULT_BOOKMARK_FOLDER, shortcut, 0); in updateShortcut() local 245 private ShortcutPreference getOrCreatePreference(char shortcut) { in getOrCreatePreference() argument 246 ShortcutPreference pref = mShortcutToPreference.get(shortcut); in getOrCreatePreference() 250 Log.w(TAG, "Unknown shortcut '" + shortcut + "', creating preference anyway"); in getOrCreatePreference() 251 return createPreference(shortcut); in getOrCreatePreference() [all …]
|
D | ShortcutPreference.java | 49 public ShortcutPreference(Context context, char shortcut) { in ShortcutPreference() argument 65 mShortcut = shortcut; in ShortcutPreference() 74 public void setShortcut(char shortcut) { in setShortcut() argument 75 if (shortcut != mShortcut) { in setShortcut() 76 mShortcut = shortcut; in setShortcut() 106 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut); in onBindView()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | ShortcutsProvider.java | 100 private void addShortcut(final ContentValues shortcut) { in addShortcut() argument 101 String sourceName = shortcut.getAsString(EXTRA_SHORTCUT_SOURCE); in addShortcut() 107 String sourceAction = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_INTENT_ACTION); in addShortcut() 124 storeShortcut(sourceComponent, shortcut); in addShortcut() 130 private void storeShortcut(ComponentName sourceComponent, ContentValues shortcut) { in storeShortcut() argument 131 if (DBG) Log.d(TAG, "Adding (PID: " + Binder.getCallingPid() + "): " + shortcut); in storeShortcut() 139 String userQuery = shortcut.getAsString(SearchManager.USER_QUERY); in storeShortcut() 143 cursor.add(makeSuggestion(source, shortcut)); in storeShortcut() 158 private SuggestionData makeSuggestion(Source source, ContentValues shortcut) { in makeSuggestion() argument 159 String format = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_FORMAT); in makeSuggestion() [all …]
|
D | SourceShortcutRefresher.java | 49 public void refresh(Suggestion shortcut, Listener listener) { in refresh() argument 50 Source source = shortcut.getSuggestionSource(); in refresh() 54 String shortcutId = shortcut.getShortcutId(); in refresh() 58 shortcut.getSuggestionText1() + "'"); in refresh() 61 String extraData = shortcut.getSuggestionIntentExtraData(); in refresh()
|
D | ShortcutRepositoryImplLog.java | 349 final ContentValues shortcut; in refreshShortcut() local 351 shortcut = null; in refreshShortcut() 354 shortcut = makeShortcutRow(refreshed); in refreshShortcut() 360 if (shortcut == null) { in refreshShortcut() 364 if (DBG) Log.d(TAG, "Updating shortcut: " + shortcut); in refreshShortcut() 365 db.updateWithOnConflict(Shortcuts.TABLE_NAME, shortcut, in refreshShortcut() 664 final ContentValues shortcut = makeShortcutRow(suggestion); in reportClickAtTime() local 665 String intentKey = shortcut.getAsString(Shortcuts.intent_key.name()); in reportClickAtTime() 677 if (DBG) Log.d(TAG, "Adding shortcut: " + shortcut); in reportClickAtTime() 678 db.replaceOrThrow(Shortcuts.TABLE_NAME, null, shortcut); in reportClickAtTime()
|
D | ShortcutCursor.java | 95 public void refresh(Suggestion shortcut) { in refresh() argument 96 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() { in refresh()
|
D | EventLogLogger.java | 121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; in getSuggestions() local 122 sb.append(source).append(':').append(type).append(':').append(shortcut); in getSuggestions()
|
D | ShortcutRefresher.java | 44 void refresh(Suggestion shortcut, Listener listener); in refresh() argument
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 166 String shortcut = cursor.getString(COLUMN_SHORTCUT); in getDictionary() local 167 if (TextUtils.isEmpty(shortcut)) shortcut = ""; in getDictionary() 170 + SEPARATOR + shortcut; in getDictionary() 224 String shortcut = null; in restoreDictionary() local 228 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary() 229 if (TextUtils.isEmpty(shortcut)) shortcut = null; in restoreDictionary() 239 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary() 242 + Words.SHORTCUT + "=?", new String[] {word, shortcut}); in restoreDictionary()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserDictionarySettings.java | 163 final String shortcut = getShortcut(position); in onListItemClick() local 165 showAddOrEditDialog(word, shortcut); in onListItemClick() 227 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument 229 if (TextUtils.isEmpty(shortcut)) { in deleteWord() 236 new String[] { word, shortcut }); in deleteWord() 248 final String shortcut = c.getString(INDEX_SHORTCUT); 249 if (TextUtils.isEmpty(shortcut)) { 252 ((TextView)v).setText(shortcut);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | UserBinaryDictionary.java | 193 String shortcut = cursor.getString(indexShortcut); in addWords() local 199 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { in addWords() 200 super.addWord(shortcut, word, frequency); in addWords()
|
D | UserDictionary.java | 211 String shortcut = cursor.getString(indexShortcut); in addWords() local 218 if (null != shortcut && shortcut.length() < maxWordLength) { in addWords() 219 super.addWord(shortcut, word, frequency); in addWords()
|
D | ExpandableDictionary.java | 384 final char[] shortcut = node.mShortcutTargets.get(shortcutIndex); 385 if (!callback.addWord(shortcut, 0, shortcut.length, finalFreq, mDicTypeId,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | FusionDictionary.java | 168 WeightedString shortcut = mShortcutTargets.get(i); in getShortcut() local 169 if (shortcut.mWord.equals(word)) { in getShortcut() 170 return shortcut; in getShortcut() 211 final WeightedString shortcut = shortcutTargets.get(i); in update() local 212 final WeightedString existingShortcut = getShortcut(shortcut.mWord); in update() 214 mShortcutTargets.add(shortcut); in update() 215 } else if (existingShortcut.mFrequency < shortcut.mFrequency) { in update() 216 existingShortcut.mFrequency = shortcut.mFrequency; in update()
|
D | BinaryDictInputOutput.java | 385 private static int getShortcutSize(final WeightedString shortcut) { in getShortcutSize() argument 387 final String word = shortcut.mWord; in getShortcutSize() 406 for (final WeightedString shortcut : shortcutList) { in getShortcutListSize() 407 size += getShortcutSize(shortcut); in getShortcutListSize()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryAddWordContents.java | 67 final String shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents() local 68 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents() 69 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | RankAwarePromoterTest.java | 74 Suggestion shortcut = new SuggestionPosition(corpora2); in testWhenPromotingAlreadyPromotedResults() local 75 promoted.add(shortcut); in testWhenPromotingAlreadyPromotedResults()
|
D | MockShortcutRefresher.java | 31 public void refresh(Suggestion shortcut, Listener listener) { in refresh() argument
|
/packages/apps/Music/src/com/android/music/ |
D | PlaylistBrowserActivity.java | 378 final Intent shortcut = new Intent(); in onListItemClick() local 379 shortcut.setAction(Intent.ACTION_VIEW); in onListItemClick() 380 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/playlist"); in onListItemClick() 381 shortcut.putExtra("playlist", String.valueOf(id)); in onListItemClick() 384 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut); in onListItemClick()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 3197 View shortcut = createShortcut(info); in bindItems() local 3198 workspace.addInScreen(shortcut, item.container, item.screen, item.cellX, in bindItems() 3208 shortcut.setAlpha(0f); in bindItems() 3209 shortcut.setScaleX(0f); in bindItems() 3210 shortcut.setScaleY(0f); in bindItems() 3212 if (!mNewShortcutAnimateViews.contains(shortcut)) { in bindItems() 3213 mNewShortcutAnimateViews.add(shortcut); in bindItems()
|
D | Workspace.java | 3724 BubbleTextView shortcut = (BubbleTextView) view; 3727 shortcut.applyFromShortcutInfo(info, mIconCache);
|