Home
last modified time | relevance | path

Searched refs:LauncherApps (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/storage/
DBubbleVolatileRepositoryTest.kt19 import android.content.pm.LauncherApps
48 private lateinit var launcherApps: LauncherApps
52 launcherApps = mock(LauncherApps::class.java) in setup()
62 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
65 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
81 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testRemoveBubbles()
93 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddAndRemoveBubblesWhenExceedingCapacity()
96 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddAndRemoveBubblesWhenExceedingCapacity()
103 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddAndRemoveBubblesWhenExceedingCapacity()
/frameworks/base/services/core/java/com/android/server/notification/
DShortcutHelper.java19 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_CACHED;
20 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC;
21 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED_BY_ANY_LAUNCHER;
25 import android.content.pm.LauncherApps;
66 private LauncherApps mLauncherAppsService;
76 private final LauncherApps.Callback mLauncherAppsCallback = new LauncherApps.Callback() {
145 ShortcutHelper(LauncherApps launcherApps, ShortcutListener listener, in ShortcutHelper()
153 void setLauncherApps(LauncherApps launcherApps) { in setLauncherApps()
192 LauncherApps.ShortcutQuery query = new LauncherApps.ShortcutQuery(); in getValidShortcutInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleDataRepository.kt20 import android.content.pm.LauncherApps in <lambda>()
21 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC in <lambda>()
22 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED_BY_ANY_LAUNCHER in <lambda>()
23 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_CACHED in <lambda>()
43 private val launcherApps: LauncherApps in <lambda>()
156 LauncherApps.ShortcutQuery() in <lambda>()
DBubbleExperimentConfig.java20 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC;
21 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_MANIFEST;
22 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED;
32 import android.content.pm.LauncherApps;
259 LauncherApps launcherAppService = in getShortcutInfo()
260 (LauncherApps) context.getSystemService(Context.LAUNCHER_APPS_SERVICE); in getShortcutInfo()
261 LauncherApps.ShortcutQuery query = new LauncherApps.ShortcutQuery(); in getShortcutInfo()
DBubbleIconFactory.java22 import android.content.pm.LauncherApps;
59 LauncherApps launcherApps = in getBubbleDrawable()
60 (LauncherApps) context.getSystemService(Context.LAUNCHER_APPS_SERVICE); in getBubbleDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/storage/
DBubbleVolatileRepository.kt18 import android.content.pm.LauncherApps in <lambda>()
33 private val launcherApps: LauncherApps in <lambda>()
83 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS) in <lambda>()
90 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS) in <lambda>()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java30 import android.content.pm.LauncherApps;
65 LauncherApps mLauncherApps;
104 private LauncherApps.Callback addShortcutBubbleAndVerifyListener() { in addShortcutBubbleAndVerifyListener()
109 ArgumentCaptor<LauncherApps.Callback> launcherAppsCallback = in addShortcutBubbleAndVerifyListener()
110 ArgumentCaptor.forClass(LauncherApps.Callback.class); in addShortcutBubbleAndVerifyListener()
202 LauncherApps.Callback callback = addShortcutBubbleAndVerifyListener(); in testOnShortcutsChanged_listenerRemoved()
212 LauncherApps.Callback callback = addShortcutBubbleAndVerifyListener(); in testListenerNotifiedOnShortcutRemoved()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java25 import android.content.pm.LauncherApps;
26 import android.content.pm.LauncherApps.PinItemRequest;
291 return new Intent().putExtra(LauncherApps.EXTRA_PIN_ITEM_REQUEST, request); in createShortcutResultIntent()
389 final String action = requestType == LauncherApps.PinItemRequest.REQUEST_TYPE_SHORTCUT ? in startRequestConfirmActivity()
390 LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT : in startRequestConfirmActivity()
391 LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET; in startRequestConfirmActivity()
396 confirmIntent.putExtra(LauncherApps.EXTRA_PIN_ITEM_REQUEST, request); in startRequestConfirmActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest9.java32 import android.content.pm.LauncherApps;
33 import android.content.pm.LauncherApps.PinItemRequest;
75 assertEquals(LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET, actualIntent.getAction()); in assertPinItemRequestIntent()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DShortcutQueryWrapperTest.java48 private static final int QUERY_FLAG = LauncherApps.ShortcutQuery.FLAG_MATCH_ALL_KINDS;
54 mShortcutQuery = new ShortcutQueryWrapper(new LauncherApps.ShortcutQuery() in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java21 import android.content.pm.LauncherApps;
70 final LauncherApps mLauncherApps;
75 public ConversationIconFactory(Context context, LauncherApps la, PackageManager pm, in ConversationIconFactory()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/
DTestableBubbleController.java21 import android.content.pm.LauncherApps;
66 LauncherApps launcherApps) { in TestableBubbleController()
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java105 public class LauncherApps { class
613 public LauncherApps(Context context, ILauncherApps service) { in LauncherApps() method in LauncherApps
622 public LauncherApps(Context context) { in LauncherApps() method in LauncherApps
972 public LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String packageName, in getAppUsageLimit()
1573 synchronized (LauncherApps.this) {
1585 synchronized (LauncherApps.this) {
1597 synchronized (LauncherApps.this) {
1610 synchronized (LauncherApps.this) {
1623 synchronized (LauncherApps.this) {
1637 synchronized (LauncherApps.this) {
[all …]
DLauncherApps.aidl19 parcelable LauncherApps.AppUsageLimit;
DShortcutServiceInternal.java28 import android.content.pm.LauncherApps.ShortcutQuery;
69 @NonNull LauncherApps.ShortcutChangeCallback callback); in addShortcutChangeCallback()
DShortcutQueryWrapper.java35 public final class ShortcutQueryWrapper extends LauncherApps.ShortcutQuery implements Parcelable {
37 public ShortcutQueryWrapper(LauncherApps.ShortcutQuery query) { in ShortcutQueryWrapper()
DILauncherApps.aidl27 import android.content.pm.LauncherApps;
68 LauncherApps.AppUsageLimit getAppUsageLimit(String callingPackage, String packageName, in getAppUsageLimit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/dagger/
DBubbleModule.java21 import android.content.pm.LauncherApps;
77 LauncherApps launcherApps) { in newBubbleController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutPicker.java21 import android.content.pm.LauncherApps;
61 LauncherApps apps = getContext().getSystemService(LauncherApps.class); in onCreatePreferences()
/frameworks/base/core/java/android/window/
DTaskEmbedder.java31 import android.content.pm.LauncherApps;
426 LauncherApps service = in startShortcutActivity()
427 (LauncherApps) mContext.getSystemService(Context.LAUNCHER_APPS_SERVICE); in startShortcutActivity()
/frameworks/base/core/java/com/android/internal/app/chooser/
DSelectableTargetInfo.java26 import android.content.pm.LauncherApps;
151 LauncherApps launcherApps = (LauncherApps) mContext.getSystemService( in getChooserTargetIconDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemServicesModule.java36 import android.content.pm.LauncherApps;
202 static LauncherApps provideLauncherApps(Context context) { in provideLauncherApps()
203 return context.getSystemService(LauncherApps.class); in provideLauncherApps()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java40 import android.content.pm.LauncherApps;
41 import android.content.pm.LauncherApps.Callback;
640 public static void assertCallbackNotReceived(LauncherApps.Callback mock) { in assertCallbackNotReceived()
645 public static void assertCallbackReceived(LauncherApps.Callback mock, in assertCallbackReceived()
1094 private final LauncherApps.Callback mCallback = mock(LauncherApps.Callback.class);
1138 LauncherApps launcherApps, Runnable body) throws InterruptedException { in assertForLauncherCallback()
1154 LauncherApps launcherApps, Runnable body) { in assertForLauncherCallbackNoThrow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/
DIconManagerTest.kt24 import android.content.pm.LauncherApps
69 @Mock private lateinit var launcherApps: LauncherApps
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DConversationNotifications.kt21 import android.content.pm.LauncherApps in <lambda>()
39 private val launcherApps: LauncherApps, in <lambda>()

123