Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/notification/
DShortcutHelper.java19 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_GET_PERSONS_DATA;
20 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_CACHED;
21 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC;
22 import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED_BY_ANY_LAUNCHER;
26 import android.content.pm.LauncherApps;
68 private LauncherApps mLauncherAppsService;
79 private final LauncherApps.Callback mLauncherAppsCallback = new LauncherApps.Callback() {
148 ShortcutHelper(LauncherApps launcherApps, ShortcutListener listener, in ShortcutHelper()
157 void setLauncherApps(LauncherApps launcherApps) { in setLauncherApps()
202 LauncherApps.ShortcutQuery query = new LauncherApps.ShortcutQuery(); in getValidShortcutInfo()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
DBubbleVolatileRepositoryTest.kt20 import android.content.pm.LauncherApps
63 private lateinit var launcherApps: LauncherApps
67 launcherApps = mock<LauncherApps>() in setup()
81 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
84 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
88 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
91 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddBubbles()
111 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testRemoveBubbles()
119 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testRemoveBubbles()
131 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)) in testAddAndRemoveBubblesWhenExceedingCapacity()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DMultiInstanceHelper.kt21 import android.content.pm.LauncherApps
111 user: UserHandle, launcherApps: LauncherApps): ComponentName? { in getShortcutComponent()
112 val query = LauncherApps.ShortcutQuery() in getShortcutComponent()
115 query.setQueryFlags(LauncherApps.ShortcutQuery.FLAG_MATCH_ALL_KINDS_WITH_ALL_PINNED) in getShortcutComponent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleDataRepository.kt20 import android.content.pm.LauncherApps in <lambda>()
21 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_CACHED in <lambda>()
22 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC in <lambda>()
23 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED_BY_ANY_LAUNCHER in <lambda>()
43 private val launcherApps: LauncherApps, in <lambda>()
241 LauncherApps.ShortcutQuery() in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
DBubbleVolatileRepository.kt19 import android.content.pm.LauncherApps in <lambda>()
31 class BubbleVolatileRepository(private val launcherApps: LauncherApps) { in <lambda>()
164 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS) in <lambda>()
171 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS) in <lambda>()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java31 import android.content.pm.LauncherApps;
32 import android.content.pm.LauncherApps.ShortcutQuery;
71 LauncherApps mLauncherApps;
115 private LauncherApps.Callback addShortcutBubbleAndVerifyListener() { in addShortcutBubbleAndVerifyListener()
120 ArgumentCaptor<LauncherApps.Callback> launcherAppsCallback = in addShortcutBubbleAndVerifyListener()
121 ArgumentCaptor.forClass(LauncherApps.Callback.class); in addShortcutBubbleAndVerifyListener()
213 LauncherApps.Callback callback = addShortcutBubbleAndVerifyListener(); in testOnShortcutsChanged_listenerRemoved()
223 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;
292 return new Intent().putExtra(LauncherApps.EXTRA_PIN_ITEM_REQUEST, request); in createShortcutResultIntent()
388 final String action = requestType == LauncherApps.PinItemRequest.REQUEST_TYPE_SHORTCUT ? in startRequestConfirmActivity()
389 LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT : in startRequestConfirmActivity()
390 LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET; in startRequestConfirmActivity()
395 confirmIntent.putExtra(LauncherApps.EXTRA_PIN_ITEM_REQUEST, request); in startRequestConfirmActivity()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DSettingsAwareViewCapture.kt20 import android.content.pm.LauncherApps in <lambda>()
72 val launcherApps = context.getSystemService(LauncherApps::class.java) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest9.java32 import android.content.pm.LauncherApps;
33 import android.content.pm.LauncherApps.PinItemRequest;
78 assertEquals(LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET, actualIntent.getAction()); in assertPinItemRequestIntent()
DSuspendPackagesTest.java35 import android.content.pm.LauncherApps;
92 private LauncherApps mLauncherApps;
100 mLauncherApps = (LauncherApps) mContext.getSystemService(Context.LAUNCHER_APPS_SERVICE); in setUp()
302 private static abstract class StubbedCallback extends LauncherApps.Callback {
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBubbleIconFactory.java5 import android.content.pm.LauncherApps;
55 LauncherApps launcherApps = context.getSystemService(LauncherApps.class); in getBubbleDrawable()
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DMultiInstanceHelperTest.kt21 import android.content.pm.LauncherApps
53 val launcherApps = mock<LauncherApps>() in getShortcutComponent_nullShortcuts()
62 val launcherApps = mock<LauncherApps>() in getShortcutComponent_noShortcuts()
73 val launcherApps = mock<LauncherApps>() in getShortcutComponent_validShortcut()
/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/core/java/android/content/pm/
DLauncherApps.aidl19 parcelable LauncherApps.AppUsageLimit;
DLauncherApps.java114 public class LauncherApps { class
664 public LauncherApps(Context context, ILauncherApps service) { in LauncherApps() method in LauncherApps
673 public LauncherApps(Context context) { in LauncherApps() method in LauncherApps
1339 public LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String packageName, in getAppUsageLimit()
2048 synchronized (LauncherApps.this) {
2060 synchronized (LauncherApps.this) {
2072 synchronized (LauncherApps.this) {
2086 synchronized (LauncherApps.this) {
2100 synchronized (LauncherApps.this) {
2115 synchronized (LauncherApps.this) {
[all …]
DShortcutQueryWrapper.java35 public final class ShortcutQueryWrapper extends LauncherApps.ShortcutQuery implements Parcelable {
37 public ShortcutQueryWrapper(LauncherApps.ShortcutQuery query) { in ShortcutQueryWrapper()
DShortcutServiceInternal.java28 import android.content.pm.LauncherApps.ShortcutQuery;
92 @NonNull LauncherApps.ShortcutChangeCallback callback); in addShortcutChangeCallback()
/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/packages/SystemUI/tests/utils/src/android/content/pm/
DLauncherAppsKosmos.kt22 val Kosmos.launcherApps by Kosmos.Fixture { mock<LauncherApps>() } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DLaunchConversationActivity.java22 import android.content.pm.LauncherApps;
162 LauncherApps launcherApps = in onCreate()
163 getApplicationContext().getSystemService(LauncherApps.class); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DTestableBubbleController.java20 import android.content.pm.LauncherApps;
67 LauncherApps launcherApps, in TestableBubbleController()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleDataRepositoryTest.kt20 import android.content.pm.LauncherApps
127 private val launcherApps = mock<LauncherApps>()
/frameworks/base/core/java/com/android/internal/app/chooser/
DSelectableTargetInfo.java26 import android.content.pm.LauncherApps;
180 LauncherApps launcherApps = (LauncherApps) mContext.getSystemService( in getChooserTargetIconDrawable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleSpaceUtilsTest.java44 import android.content.pm.LauncherApps;
393 mContext.getSystemService(LauncherApps.class)).build()); in testDoNotUpdateSingleConversationAppWidgetWhenNotBirthday()
413 mContext.getSystemService(LauncherApps.class)).setBirthdayText( in testUpdateSingleConversationAppWidgetWithoutPersonContactUriToRemoveBirthday()
449 mContext.getSystemService(LauncherApps.class)).setBirthdayText( in testUpdateSingleConversationAppWidgetToRemoveBirthdayWhenNoLongerBirthday()
473 mContext.getSystemService(LauncherApps.class)).setBirthdayText( in testUpdateSingleConversationAppWidgetWhenBirthday()

1234