Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A 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()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
H A DBubbleVolatileRepositoryTest.kt20 import android.content.pm.LauncherApps
65 private lateinit var launcherApps: LauncherApps
69 launcherApps = mock(LauncherApps::class.java)
83 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
86 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
90 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
93 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
113 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
121 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
133 eq(LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS))
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleDataRepository.kt20 import android.content.pm.LauncherApps
21 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_CACHED
22 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_DYNAMIC
23 import android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED_BY_ANY_LAUNCHER
43 private val launcherApps: LauncherApps,
241 LauncherApps.ShortcutQuery()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
H A DBubbleVolatileRepository.kt19 import android.content.pm.LauncherApps
31 class BubbleVolatileRepository(private val launcherApps: LauncherApps) {
164 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)
171 UserHandle.of(key.userId), LauncherApps.FLAG_CACHE_BUBBLE_SHORTCUTS)
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A 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()
H A 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 {
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DShortcutQueryWrapperTest.java48 private static final int QUERY_FLAG = LauncherApps.ShortcutQuery.FLAG_MATCH_ALL_KINDS;
54 mShortcutQuery = new ShortcutQueryWrapper(new LauncherApps.ShortcutQuery() in setUp()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DPeopleSpaceTileView.java21 import android.content.pm.LauncherApps;
71 public void setOnClickListener(LauncherApps launcherApps, PeopleSpaceTile tile) { in setOnClickListener()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
H A DConversationIconFactory.java21 import android.content.pm.LauncherApps;
71 final LauncherApps mLauncherApps;
76 public ConversationIconFactory(Context context, LauncherApps la, PackageManager pm, in ConversationIconFactory()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DLauncherApps.java110 public class LauncherApps { class
669 public LauncherApps(Context context) { in LauncherApps() method in LauncherApps
1748 synchronized (LauncherApps.this) {
1760 synchronized (LauncherApps.this) {
1772 synchronized (LauncherApps.this) {
1786 synchronized (LauncherApps.this) {
1800 synchronized (LauncherApps.this) {
1815 synchronized (LauncherApps.this) {
1829 synchronized (LauncherApps.this) {
1843 synchronized (LauncherApps.this) {
[all …]
H A DLauncherApps.aidl19 parcelable LauncherApps.AppUsageLimit;
H A DShortcutQueryWrapper.java35 public final class ShortcutQueryWrapper extends LauncherApps.ShortcutQuery implements Parcelable {
37 public ShortcutQueryWrapper(LauncherApps.ShortcutQuery query) { in ShortcutQueryWrapper()
H A DShortcutServiceInternal.java28 import android.content.pm.LauncherApps.ShortcutQuery;
92 @NonNull LauncherApps.ShortcutChangeCallback callback); in addShortcutChangeCallback()
H A DILauncherApps.aidl28 import android.content.pm.LauncherApps;
75 LauncherApps.AppUsageLimit getAppUsageLimit(String callingPackage, String packageName, in getAppUsageLimit()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DShortcutPicker.java21 import android.content.pm.LauncherApps;
61 LauncherApps apps = getContext().getSystemService(LauncherApps.class); in onCreatePreferences()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
H A DLaunchConversationActivity.java22 import android.content.pm.LauncherApps;
162 LauncherApps launcherApps = in onCreate()
163 getApplicationContext().getSystemService(LauncherApps.class); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
H A DTestableBubbleController.java20 import android.content.pm.LauncherApps;
66 LauncherApps launcherApps, in TestableBubbleController()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
H A DBubbleDataRepositoryTest.kt20 import android.content.pm.LauncherApps
127 private val launcherApps = mock<LauncherApps>()
/aosp14/frameworks/base/core/java/com/android/internal/app/chooser/
H A DSelectableTargetInfo.java26 import android.content.pm.LauncherApps;
180 LauncherApps launcherApps = (LauncherApps) mContext.getSystemService( in getChooserTargetIconDrawable()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/
H A DIconManagerTest.kt24 import android.content.pm.LauncherApps
69 @Mock private lateinit var launcherApps: LauncherApps
/aosp14/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java43 import android.content.pm.LauncherApps;
44 import android.content.pm.LauncherApps.Callback;
703 public static void assertCallbackNotReceived(LauncherApps.Callback mock) { in assertCallbackNotReceived()
708 public static void assertCallbackReceived(LauncherApps.Callback mock, in assertCallbackReceived()
1157 private final LauncherApps.Callback mCallback = mock(LauncherApps.Callback.class);
1201 LauncherApps launcherApps, Runnable body) throws InterruptedException { in assertForLauncherCallback()
1217 LauncherApps launcherApps, Runnable body) { in assertForLauncherCallbackNoThrow()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
H A DDragAndDropPolicy.java50 import android.content.pm.LauncherApps;
312 LauncherApps launcherApps = in startShortcut()
313 mContext.getSystemService(LauncherApps.class); in startShortcut()

123