Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 61) sorted by relevance

123

/packages/inputmethods/LatinIME/dictionaries/
Den_emoji.combined.gz
Dfr_emoji.combined.gz
Dsample.combined17 # into the dictionary is to add shortcut targets and maybe a whitelist
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/Launcher3/src/com/android/launcher3/touch/
DItemClickHandler.java191 public static void onClickAppShortcut(View v, WorkspaceItemInfo shortcut, Launcher launcher, in onClickAppShortcut() argument
193 if (shortcut.isDisabled()) { in onClickAppShortcut()
194 final int disabledFlags = shortcut.runtimeStatusFlags in onClickAppShortcut()
202 if (!TextUtils.isEmpty(shortcut.disabledMessage)) { in onClickAppShortcut()
204 Toast.makeText(launcher, shortcut.disabledMessage, Toast.LENGTH_SHORT).show(); in onClickAppShortcut()
209 if ((shortcut.runtimeStatusFlags & FLAG_DISABLED_SAFEMODE) != 0) { in onClickAppShortcut()
211 } else if ((shortcut.runtimeStatusFlags & FLAG_DISABLED_BY_PUBLISHER) != 0 || in onClickAppShortcut()
212 (shortcut.runtimeStatusFlags & FLAG_DISABLED_LOCKED_USER) != 0) { in onClickAppShortcut()
221 if ((v instanceof BubbleTextView) && shortcut.hasPromiseIconUi()) { in onClickAppShortcut()
222 String packageName = shortcut.intent.getComponent() != null ? in onClickAppShortcut()
[all …]
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DShortcutInfoFactory.java62 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()
DIconFactory.java63 public Icon create(@NonNull DialerShortcut shortcut) { in create() argument
66 return create(shortcut.getLookupUri(), shortcut.getDisplayName(), shortcut.getLookupKey()); in create()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java170 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/
DPopupPopulator.java103 ShortcutInfo shortcut = shortcuts.get(i); in sortAndFilterShortcuts() local
107 filteredShortcuts.add(shortcut); in sortAndFilterShortcuts()
108 if (shortcut.isDynamic()) { in sortAndFilterShortcuts()
115 if (shortcut.isDynamic() && numDynamic < NUM_DYNAMIC) { in sortAndFilterShortcuts()
119 filteredShortcuts.add(shortcut); in sortAndFilterShortcuts()
149 final ShortcutInfo shortcut = shortcuts.get(i); in createUpdateRunnable()
150 final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, launcher); in createUpdateRunnable()
153 si.applyFrom(li.createShortcutIcon(shortcut, false /* badged */)); in createUpdateRunnable() argument
158 uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container)); in createUpdateRunnable()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java92 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/
DUserLockStateChangedTask.java64 for (ShortcutInfo shortcut : shortcuts) { in execute()
65 pinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), shortcut); in execute() local
85 ShortcutInfo shortcut = pinnedShortcuts.get(key); in execute() local
88 if (shortcut == null) { in execute()
93 si.updateFromDeepShortcutInfo(shortcut, context); in execute()
97 si.applyFrom(li.createShortcutIcon(shortcut, true, () -> si)); in execute()
DBgDataModel.java382 for (ShortcutInfo shortcut : shortcuts) { in updateDeepShortcutCounts()
383 boolean shouldShowInContainer = shortcut.isEnabled() in updateDeepShortcutCounts()
384 && (shortcut.isDeclaredInManifest() || shortcut.isDynamic()); in updateDeepShortcutCounts()
387 = new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle()); in updateDeepShortcutCounts()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java95 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/Launcher3/src/com/android/launcher3/
DPromiseAppInfo.java42 WorkspaceItemInfo shortcut = new WorkspaceItemInfo(this); in makeWorkspaceItem() local
43 shortcut.setInstallProgress(level); in makeWorkspaceItem()
45 shortcut.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in makeWorkspaceItem()
47 shortcut.status |= WorkspaceItemInfo.FLAG_RESTORE_STARTED; in makeWorkspaceItem()
48 return shortcut; in makeWorkspaceItem()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java171 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionarySettings.java147 final String shortcut = getShortcut(position); in onListItemClick() local
149 showAddOrEditDialog(word, shortcut); in onListItemClick()
221 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
223 if (TextUtils.isEmpty(shortcut)) { in deleteWord()
230 new String[]{word, shortcut}); in deleteWord()
259 final String shortcut = c.getString(UserDictionaryCursorLoader.INDEX_SHORTCUT);
260 if (TextUtils.isEmpty(shortcut)) {
263 ((TextView) v).setText(shortcut);
DUserDictionaryCursorLoader.java89 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/Settings/src/com/android/settings/inputmethod/
DUserDictionarySettings.java147 final String shortcut = getShortcut(position); in onListItemClick() local
149 showAddOrEditDialog(word, shortcut); in onListItemClick()
221 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
223 if (TextUtils.isEmpty(shortcut)) { in deleteWord()
230 new String[]{word, shortcut}); in deleteWord()
259 final String shortcut = c.getString(UserDictionaryCursorLoader.INDEX_SHORTCUT);
260 if (TextUtils.isEmpty(shortcut)) {
263 ((TextView) v).setText(shortcut);
DUserDictionaryCursorLoader.java89 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionarySettings.java208 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);
DUserDictionaryAddWordContents.java87 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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DUserDictionaryCompatUtils.java29 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/
Dver4_patricia_trie_policy.cpp195 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/
Dver4_patricia_trie_policy.cpp282 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/
DShortcutsUpdateTask.java17 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DShortcutsUpdateTask.java17 package com.android.car.developeroptions.shortcut;
19 import static com.android.car.developeroptions.shortcut.CreateShortcutPreferenceController.SHORTCUT…
20 import static com.android.car.developeroptions.shortcut.CreateShortcutPreferenceController.SHORTCUT…

123