/packages/inputmethods/LatinIME/dictionaries/ |
D | en_emoji.combined.gz | ... =true
62 shortcut=♧,f=14
63 shortcut=♣,f=14
64 shortcut=♡,f ... |
D | fr_emoji.combined.gz | ... =true
24 shortcut=♩,f=14
25 shortcut=♪,f=14
26 shortcut=♬,f ... |
D | sample.combined | 17 # into the dictionary is to add shortcut targets and maybe an allowlist 20 # Each word may or may not have any number of shortcut target lines 21 # starting with a `shortcut' entry and having at least a `f' frequency 34 word=shortcut,f=176 35 shortcut=target,f=10 37 shortcut=whitelisted,f=whitelist
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | ShortcutInfoFactory.java | 62 for (DialerShortcut shortcut : shortcutsById.values()) { in buildShortcutInfos() 65 intent.setData(shortcut.getLookupUri()); in buildShortcutInfos() 67 intent.putExtra(EXTRA_CONTACT_ID, shortcut.getContactId()); in buildShortcutInfos() 70 new ShortcutInfo.Builder(context, shortcut.getShortcutId()) in buildShortcutInfos() 72 .setShortLabel(shortcut.getShortLabel()) in buildShortcutInfos() 73 .setLongLabel(shortcut.getLongLabel()) in buildShortcutInfos() 74 .setIcon(iconFactory.create(shortcut)); in buildShortcutInfos() 76 if (shortcut.getRank() != DialerShortcut.NO_RANK) { in buildShortcutInfos() 77 shortcutInfo.setRank(shortcut.getRank()); in buildShortcutInfos()
|
D | IconFactory.java | 63 public Icon create(@NonNull DialerShortcut shortcut) { in create() argument 66 return create(shortcut.getLookupUri(), shortcut.getDisplayName(), shortcut.getLookupKey()); in create()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 202 public static boolean handleDisabledItemClicked(WorkspaceItemInfo shortcut, Context context) { in handleDisabledItemClicked() argument 203 final int disabledFlags = shortcut.runtimeStatusFlags in handleDisabledItemClicked() 212 if (!TextUtils.isEmpty(shortcut.disabledMessage)) { in handleDisabledItemClicked() 214 Toast.makeText(context, shortcut.disabledMessage, Toast.LENGTH_SHORT).show(); in handleDisabledItemClicked() 219 if ((shortcut.runtimeStatusFlags & FLAG_DISABLED_SAFEMODE) != 0) { in handleDisabledItemClicked() 221 } else if ((shortcut.runtimeStatusFlags & FLAG_DISABLED_BY_PUBLISHER) != 0 in handleDisabledItemClicked() 222 || (shortcut.runtimeStatusFlags & FLAG_DISABLED_LOCKED_USER) != 0) { in handleDisabledItemClicked() 235 public static void onClickAppShortcut(View v, WorkspaceItemInfo shortcut, Launcher launcher) { in onClickAppShortcut() argument 236 if (shortcut.isDisabled() && handleDisabledItemClicked(shortcut, launcher)) { in onClickAppShortcut() 241 if ((v instanceof BubbleTextView) && shortcut.hasPromiseIconUi()) { in onClickAppShortcut() [all …]
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 170 String shortcut = cursor.getString(COLUMN_SHORTCUT); in getDictionary() local 171 if (TextUtils.isEmpty(shortcut)) shortcut = ""; in getDictionary() 174 + SEPARATOR + shortcut; in getDictionary() 229 String shortcut = null; in restoreDictionary() local 233 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary() 234 if (TextUtils.isEmpty(shortcut)) shortcut = null; in restoreDictionary() 246 && Objects.equals(shortcut, previousShortcut)) in restoreDictionary() 251 previousShortcut = shortcut; in restoreDictionary() 258 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary() 260 if (null != shortcut) { in restoreDictionary() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupPopulator.java | 106 ShortcutInfo shortcut = shortcuts.get(i); in sortAndFilterShortcuts() local 110 filteredShortcuts.add(shortcut); in sortAndFilterShortcuts() 111 if (shortcut.isDynamic()) { in sortAndFilterShortcuts() 118 if (shortcut.isDynamic() && numDynamic < NUM_DYNAMIC) { in sortAndFilterShortcuts() 122 filteredShortcuts.add(shortcut); in sortAndFilterShortcuts() 161 final ShortcutInfo shortcut = shortcuts.get(i); in createUpdateRunnable() 162 final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, launcher); in createUpdateRunnable() 163 cache.getUnbadgedShortcutIcon(si, shortcut); in createUpdateRunnable() argument 168 uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container)); in createUpdateRunnable()
|
D | PopupContainerWithArrow.java | 289 for (SystemShortcut shortcut : systemShortcuts) { in populateAndShow() 290 if (shortcut instanceof SystemShortcut.Widgets) { in populateAndShow() 296 shortcut); in populateAndShow() 301 for (SystemShortcut shortcut : systemShortcuts) { in populateAndShow() 302 if (!(shortcut instanceof SystemShortcut.Widgets)) { in populateAndShow() 305 shortcut); in populateAndShow() 316 for (SystemShortcut shortcut : systemShortcuts) { in populateAndShow() 317 initializeSystemShortcut(R.layout.system_shortcut, this, shortcut); in populateAndShow() 393 private int getInsertIndexForSystemShortcut(ViewGroup container, SystemShortcut shortcut) { in getInsertIndexForSystemShortcut() argument 396 return separator != null && shortcut.isLeftGroup() ? in getInsertIndexForSystemShortcut()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | DynamicShortcutsTests.java | 92 final ShortcutInfo shortcut = sut.builderForContactShortcut(row).build(); in test_createShortcutFromRow_hasCorrectResult() local 94 assertEquals("lookup_key", shortcut.getId()); in test_createShortcutFromRow_hasCorrectResult() 95 assertEquals(Contacts.getLookupUri(1, "lookup_key"), shortcut.getIntent().getData()); in test_createShortcutFromRow_hasCorrectResult() 97 shortcut.getIntent().getAction()); in test_createShortcutFromRow_hasCorrectResult() 98 assertEquals("John Smith", shortcut.getShortLabel()); in test_createShortcutFromRow_hasCorrectResult() 99 assertEquals("John Smith", shortcut.getLongLabel()); in test_createShortcutFromRow_hasCorrectResult() 100 assertEquals(1l, shortcut.getExtras().getLong(Contacts._ID)); in test_createShortcutFromRow_hasCorrectResult() 106 final ShortcutInfo.Builder shortcut = sut.builderForContactShortcut(1l, "lookup_key", null); in test_builderForContactShortcut_returnsNullWhenNameIsNull() local 108 assertNull(shortcut); in test_builderForContactShortcut_returnsNullWhenNameIsNull() 116 final ShortcutInfo shortcut = sut.builderForContactShortcut(1l, "lookup_key", in test_builderForContactShortcut_ellipsizesLongNamesForLabels() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | UserLockStateChangedTask.java | 60 for (ShortcutInfo shortcut : shortcuts) { in execute() 61 pinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), shortcut); in execute() local 80 ShortcutInfo shortcut = pinnedShortcuts.get(key); in execute() 83 if (shortcut == null) { in execute() 88 si.updateFromDeepShortcutInfo(shortcut, context); in execute() 89 app.getIconCache().getShortcutIcon(si, shortcut); in execute()
|
D | BgDataModel.java | 363 for (ShortcutInfo shortcut : shortcuts) { in updateDeepShortcutCounts() 364 boolean shouldShowInContainer = shortcut.isEnabled() in updateDeepShortcutCounts() 365 && (shortcut.isDeclaredInManifest() || shortcut.isDynamic()) in updateDeepShortcutCounts() 366 && shortcut.getActivity() != null; in updateDeepShortcutCounts() 369 = new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle()); in updateDeepShortcutCounts()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/ |
D | PopupPopulatorTest.java | 95 for (ShortcutInfo shortcut : filteredShortcuts) { in filterShortcutsAndAssertNumStaticAndDynamic() 96 if (shortcut.isDeclaredInManifest()) { in filterShortcutsAndAssertNumStaticAndDynamic() 99 if (shortcut.isDynamic()) { in filterShortcutsAndAssertNumStaticAndDynamic() 111 for (ShortcutInfo shortcut : shortcuts) { in assertIsSorted() 112 int rank = shortcut.getRank(); in assertIsSorted() 113 if (shortcut.isDeclaredInManifest()) { in assertIsSorted() 119 if (shortcut.isDynamic()) { in assertIsSorted()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | PreferredShortcutTest.java | 40 final PreferredShortcut shortcut = PreferredShortcut.fromString(preferredShortcutString); in fromString_matchMemberObject() local 42 assertThat(shortcut.getComponentName()).isEqualTo(STUB_COMPONENT_NAME); in fromString_matchMemberObject() 43 assertThat(shortcut.getType()).isEqualTo(STUB_TYPE); in fromString_matchMemberObject() 48 final PreferredShortcut shortcut = new PreferredShortcut(STUB_COMPONENT_NAME, STUB_TYPE); in toString_matchString() local 50 final String preferredShortcutString = shortcut.toString(); in toString_matchString()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | PreferredShortcuts.java | 59 final PreferredShortcut shortcut = PreferredShortcut.fromString(str); in retrieveUserShortcutType() local 60 return shortcut.getType(); in retrieveUserShortcutType() 70 public static void saveUserShortcutType(Context context, PreferredShortcut shortcut) { in saveUserShortcutType() argument 71 final String componentName = shortcut.getComponentName(); in saveUserShortcutType() 79 info.add(shortcut.toString()); in saveUserShortcutType()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionarySettings.java | 208 final String shortcut = getShortcut(position); in onListItemClick() local 210 showAddOrEditDialog(word, shortcut); in onListItemClick() 281 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument 286 } else if (TextUtils.isEmpty(shortcut)) { in deleteWord() 293 new String[] { word, shortcut }); in deleteWord() 309 final String shortcut = c.getString(INDEX_SHORTCUT); 310 if (TextUtils.isEmpty(shortcut)) { 313 ((TextView)v).setText(shortcut);
|
D | UserDictionaryAddWordContents.java | 87 final String shortcut; in UserDictionaryAddWordContents() local 89 shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents() 90 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents() 91 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents() 95 shortcut = null; in UserDictionaryAddWordContents()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettings.java | 148 final String shortcut = getShortcut(position); in onListItemClick() local 150 showAddOrEditDialog(word, shortcut); in onListItemClick() 222 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument 224 if (TextUtils.isEmpty(shortcut)) { in deleteWord() 231 new String[]{word, shortcut}); in deleteWord() 260 final String shortcut = c.getString(UserDictionaryCursorLoader.INDEX_SHORTCUT); 261 if (TextUtils.isEmpty(shortcut)) { 264 ((TextView) v).setText(shortcut);
|
D | UserDictionaryCursorLoader.java | 89 final String shortcut = candidate.getString(2); in loadInBackground() local 90 final int hash = Objects.hash(word, shortcut); in loadInBackground() 95 result.addRow(new Object[]{id, word, shortcut}); in loadInBackground()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 171 for (ShortcutInfo shortcut : mShortcutManager.getPinnedShortcuts()) { in updatePinned() 172 final PersistableBundle extras = shortcut.getExtras(); in updatePinned() 183 Contacts.getLookupUri(contactId, shortcut.getId())); in updatePinned() 186 if (!shortcut.isEnabled()) { in updatePinned() 191 } else if (shortcut.isEnabled()) { in updatePinned() 192 removedIds.add(shortcut.getId()); in updatePinned() 238 final ShortcutInfo shortcut = createShortcutFromRow(cursor); in getStrequentShortcuts() local 239 if (shortcut == null) { in getStrequentShortcuts() 242 result.add(shortcut); in getStrequentShortcuts() 449 for (ShortcutInfo shortcut : pinned) { in removeAllShortcuts() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | UserDictionaryCompatUtils.java | 29 final int freq, final String shortcut, final Locale locale) { in addWord() argument 31 addWordWithShortcut(context, word, freq, shortcut, locale); in addWord() 45 final int freq, final String shortcut, final Locale locale) { in addWordWithShortcut() argument 46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale); in addWordWithShortcut()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 195 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local 196 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry() 198 shortcut.getTargetCodePoints()->size()); in addUnigramEntry() 230 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local 232 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry() 233 shortcut.getProbability())) { in addUnigramEntry() 235 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry() 236 shortcut.getProbability()); in addUnigramEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 282 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local 283 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry() 285 shortcut.getTargetCodePoints()->size()); in addUnigramEntry() 316 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local 318 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry() 319 shortcut.getProbability())) { in addUnigramEntry() 321 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry() 322 shortcut.getProbability()); in addUnigramEntry()
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
D | ShortcutsUpdateTask.java | 17 package com.android.settings.shortcut; 19 import static com.android.settings.shortcut.CreateShortcutPreferenceController.SHORTCUT_ID_PREFIX; 20 import static com.android.settings.shortcut.CreateShortcutPreferenceController.SHORTCUT_PROBE;
|
/packages/apps/DeskClock/src/com/android/deskclock/controller/ |
D | ShortcutController.kt | 115 val shortcut: ShortcutInfo.Builder = ShortcutInfo.Builder(context, shortcutId) in createStopwatchShortcut() constant 123 shortcut.setShortLabel(context.getString(R.string.shortcut_pause_stopwatch_short)) in createStopwatchShortcut() 128 shortcut.setShortLabel(context.getString(R.string.shortcut_start_stopwatch_short)) in createStopwatchShortcut() 133 return shortcut in createStopwatchShortcut()
|