/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/ |
H A D | DynamicShortcutsTests.java | 32 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 D | ShortcutsUpdater.java | 21 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 D | DynamicShortcuts.java | 24 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 D | PinnedShortcuts.java | 24 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 D | ShortcutUsageReporter.java | 23 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 D | ShortcutManagerTest7.java | 30 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 D | ShortcutManagerTest1.java | 85 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 D | CustomShortcutConfigActivity.java | 22 import android.content.pm.ShortcutManager; 53 ShortcutManager sm = context.getSystemService(ShortcutManager.class); in createShortcutResultIntent()
|
H A D | RequestPinItemActivity.java | 24 import android.content.pm.ShortcutManager; 65 ShortcutManager sm = getSystemService(ShortcutManager.class); in pinShortcut()
|
/aosp12/packages/apps/Settings/src/com/android/settings/shortcut/ |
H A D | ShortcutsUpdateTask.java | 28 import android.content.pm.ShortcutManager; 44 ShortcutManager sm = mContext.getSystemService(ShortcutManager.class); in doInBackground()
|
H A D | CreateShortcutPreferenceController.java | 28 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 D | ShortcutEventTracker.kt | 21 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 D | LaunchBubbleActivity.java | 25 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 D | SettingsInitializeTest.java | 25 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 D | SettingsInitialize.java | 33 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 D | DynamicShortcuts.java | 32 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 D | ShortcutIntentBuilder.java | 24 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 D | ShortcutsUpdateTaskTest.java | 38 import android.content.pm.ShortcutManager; 64 private ShortcutManager mShortcutManager;
|
H A D | CreateShortcutPreferenceControllerTest.java | 38 import android.content.pm.ShortcutManager; 66 private ShortcutManager mShortcutManager;
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | RemoteInputViewTest.java | 31 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 D | ShortcutManager.java | 69 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 D | FrameworkServicesModule.java | 40 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 D | ShortcutController.kt | 24 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 D | NotificationConversationInfo.java | 44 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 D | NotificationsModule.java | 22 import android.content.pm.ShortcutManager; 149 ShortcutManager shortcutManager, in provideNotificationGutsManager()
|