Home
last modified time | relevance | path

Searched refs:ShortcutManager (Results 1 – 25 of 84) sorted by relevance

1234

/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/
H A DDynamicShortcutsTests.java32 import android.content.pm.ShortcutManager;
124 final ShortcutManager mockShortcutManager = mock(ShortcutManager.class); in test_updatePinned_disablesShortcutsForRemovedContacts()
137 final ShortcutManager mockShortcutManager = mock(ShortcutManager.class); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys()
171 final ShortcutManager mockShortcutManager = mock(ShortcutManager.class); in test_refresh_setsDynamicShortcutsToStrequentContacts()
195 final ShortcutManager mockShortcutManager = mock(ShortcutManager.class); in test_refresh_skipsContactsWithNullName()
227 4l, null, null)), mock(ShortcutManager.class)).refresh(); in test_refresh_skipsContactsWithNullName()
232 final ShortcutManager mockShortcutManager = mock(ShortcutManager.class); in test_handleFlagDisabled_stopsJob()
319 return createDynamicShortcuts(emptyResolver(), mock(ShortcutManager.class));
324 ShortcutManager shortcutManager) {
329 ShortcutManager shortcutManager, JobScheduler jobScheduler) {
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DShortcutsUpdater.java21 import android.content.pm.ShortcutManager;
53 ShortcutManager mgr = mContext.getSystemService(ShortcutManager.class); in update()
111 private Map<String, ShortcutInfo> getPinnedShortcuts(ShortcutManager mgr) { in getPinnedShortcuts()
119 private int getNumDynSlots(ShortcutManager mgr, int numDevices) { in getNumDynSlots()
/aosp12/packages/apps/Dialer/java/com/android/dialer/shortcuts/
H A DDynamicShortcuts.java24 import android.content.pm.ShortcutManager;
99 ShortcutManager shortcutManager = getShortcutManager(context); in refresh()
153 ShortcutManager shortcutManager = getShortcutManager(context); in updateIcons()
210 ShortcutManager shortcutManager = getShortcutManager(context); in applyDelta()
239 private static ShortcutManager getShortcutManager(Context context) { in getShortcutManager()
241 return (ShortcutManager) context.getSystemService(Context.SHORTCUT_SERVICE); in getShortcutManager()
H A DPinnedShortcuts.java24 import android.content.pm.ShortcutManager;
97 ShortcutManager shortcutManager = context.getSystemService(ShortcutManager.class); in refresh()
151 ShortcutManager shortcutManager = context.getSystemService(ShortcutManager.class); in applyDelta()
H A DShortcutUsageReporter.java23 import android.content.pm.ShortcutManager;
96 ShortcutManager shortcutManager = in doInBackground()
97 (ShortcutManager) context.getSystemService(Context.SHORTCUT_SERVICE); in doInBackground()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest7.java30 import android.content.pm.ShortcutManager;
374 Integer.toString(ShortcutManager.FLAG_MATCH_CACHED), CALLING_PACKAGE_1), in testGetShortcuts()
378 Integer.toString(ShortcutManager.FLAG_MATCH_DYNAMIC), CALLING_PACKAGE_1), in testGetShortcuts()
382 Integer.toString(ShortcutManager.FLAG_MATCH_MANIFEST), CALLING_PACKAGE_1), in testGetShortcuts()
386 Integer.toString(ShortcutManager.FLAG_MATCH_PINNED), CALLING_PACKAGE_1), in testGetShortcuts()
390 Integer.toString(ShortcutManager.FLAG_MATCH_DYNAMIC in testGetShortcuts()
391 | ShortcutManager.FLAG_MATCH_PINNED), CALLING_PACKAGE_1), in testGetShortcuts()
395 Integer.toString(ShortcutManager.FLAG_MATCH_MANIFEST in testGetShortcuts()
396 | ShortcutManager.FLAG_MATCH_CACHED), CALLING_PACKAGE_1), in testGetShortcuts()
H A DShortcutManagerTest1.java85 import android.content.pm.ShortcutManager;
535 assertShortcutIds(mManager.getShortcuts(ShortcutManager.FLAG_MATCH_CACHED), in testPushDynamicShortcut()
1513 assertShortcutIds(mManager.getShortcuts(ShortcutManager.FLAG_MATCH_PINNED), in testShortcutManagerGetShortcuts_shortcutTypes()
1517 assertShortcutIds(mManager.getShortcuts(ShortcutManager.FLAG_MATCH_CACHED), in testShortcutManagerGetShortcuts_shortcutTypes()
1522 ShortcutManager.FLAG_MATCH_MANIFEST | ShortcutManager.FLAG_MATCH_DYNAMIC), in testShortcutManagerGetShortcuts_shortcutTypes()
1527 ShortcutManager.FLAG_MATCH_MANIFEST | ShortcutManager.FLAG_MATCH_PINNED), in testShortcutManagerGetShortcuts_shortcutTypes()
1532 ShortcutManager.FLAG_MATCH_MANIFEST | ShortcutManager.FLAG_MATCH_CACHED), in testShortcutManagerGetShortcuts_shortcutTypes()
1537 ShortcutManager.FLAG_MATCH_DYNAMIC | ShortcutManager.FLAG_MATCH_PINNED), in testShortcutManagerGetShortcuts_shortcutTypes()
1542 ShortcutManager.FLAG_MATCH_DYNAMIC | ShortcutManager.FLAG_MATCH_CACHED), in testShortcutManagerGetShortcuts_shortcutTypes()
1547 ShortcutManager.FLAG_MATCH_PINNED | ShortcutManager.FLAG_MATCH_CACHED), in testShortcutManagerGetShortcuts_shortcutTypes()
[all …]
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DCustomShortcutConfigActivity.java22 import android.content.pm.ShortcutManager;
53 ShortcutManager sm = context.getSystemService(ShortcutManager.class); in createShortcutResultIntent()
H A DRequestPinItemActivity.java24 import android.content.pm.ShortcutManager;
65 ShortcutManager sm = getSystemService(ShortcutManager.class); in pinShortcut()
/aosp12/packages/apps/Settings/src/com/android/settings/shortcut/
H A DShortcutsUpdateTask.java28 import android.content.pm.ShortcutManager;
44 ShortcutManager sm = mContext.getSystemService(ShortcutManager.class); in doInBackground()
H A DCreateShortcutPreferenceController.java28 import android.content.pm.ShortcutManager;
69 private final ShortcutManager mShortcutManager;
79 mShortcutManager = context.getSystemService(ShortcutManager.class); in CreateShortcutPreferenceController()
265 ShortcutManager sm = context.getSystemService(ShortcutManager.class); in updateRestoredShortcuts()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/events/
H A DShortcutEventTracker.kt21 import android.content.pm.ShortcutManager
31 private val mShortcutManager: ShortcutManager =
32 context.getSystemService(ShortcutManager::class.java)
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
H A DLaunchBubbleActivity.java25 import android.content.pm.ShortcutManager;
78 ShortcutManager scmanager = context.getSystemService(ShortcutManager.class); in addInboxShortcut()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DSettingsInitializeTest.java25 import android.content.pm.ShortcutManager;
42 private ShortcutManager mShortcutManager;
50 mShortcutManager = (ShortcutManager) mContext.getSystemService(Context.SHORTCUT_SERVICE); in setUp()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DSettingsInitialize.java33 import android.content.pm.ShortcutManager;
135 final ShortcutManager shortcutManager = context.getSystemService(ShortcutManager.class); in refreshExistingShortcuts()
/aosp12/packages/apps/Contacts/src/com/android/contacts/
H A DDynamicShortcuts.java32 import android.content.pm.ShortcutManager;
108 private final ShortcutManager mShortcutManager;
117 this(context, context.getContentResolver(), (ShortcutManager) in DynamicShortcuts()
124 ShortcutManager shortcutManager, JobScheduler jobScheduler) { in DynamicShortcuts()
549 final ShortcutManager shortcutManager = (ShortcutManager) context in reportShortcutUsed()
H A DShortcutIntentBuilder.java24 import android.content.pm.ShortcutManager;
284 final ShortcutManager sm = (ShortcutManager) in createContactShortcutIntent()
345 final ShortcutManager sm = (ShortcutManager) in createPhoneNumberShortcutIntent()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
H A DShortcutsUpdateTaskTest.java38 import android.content.pm.ShortcutManager;
64 private ShortcutManager mShortcutManager;
H A DCreateShortcutPreferenceControllerTest.java38 import android.content.pm.ShortcutManager;
66 private ShortcutManager mShortcutManager;
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DRemoteInputViewTest.java31 import android.content.pm.ShortcutManager;
77 @Mock private ShortcutManager mShortcutManager;
101 mContext.addMockSystemService(ShortcutManager.class, mShortcutManager); in setUp()
/aosp12/frameworks/base/core/java/android/content/pm/
H A DShortcutManager.java69 public class ShortcutManager { class
117 public ShortcutManager(Context context, IShortcutService service) { in ShortcutManager() method in ShortcutManager
126 public ShortcutManager(Context context) { in ShortcutManager() method in ShortcutManager
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
H A DFrameworkServicesModule.java40 import android.content.pm.ShortcutManager;
352 static ShortcutManager provideShortcutManager(Context context) { in provideShortcutManager()
353 return context.getSystemService(ShortcutManager.class); in provideShortcutManager()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/controller/
H A DShortcutController.kt24 import android.content.pm.ShortcutManager
49 private val mShortcutManager = context.getSystemService(ShortcutManager::class.java)
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationConversationInfo.java44 import android.content.pm.ShortcutManager;
88 private ShortcutManager mShortcutManager;
190 ShortcutManager shortcutManager, in bindNotification()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/dagger/
H A DNotificationsModule.java22 import android.content.pm.ShortcutManager;
149 ShortcutManager shortcutManager, in provideNotificationGutsManager()

1234