/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest10.java | 59 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_validResult() 67 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_validResult() 74 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinned() 80 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned() 90 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned() 107 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinnedByAnother() 114 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 122 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_defaultLauncherChanges() 167 setDefaultLauncher(USER_0, LAUNCHER_1); in testStartConfigActivity_defaultLauncher() 168 runWithCaller(LAUNCHER_1, USER_0, () -> in testStartConfigActivity_defaultLauncher() [all …]
|
H A D | ShortcutManagerTest8.java | 95 setDefaultLauncher(USER_0, LAUNCHER_1); in testIsRequestPinShortcutSupported() 173 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_notSupported() 226 setDefaultLauncher(USER_0, LAUNCHER_1); in testNotForeground() 255 setDefaultLauncher(USER_0, LAUNCHER_1); in checkRequestPinShortcut() 340 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_explicitTargetActivity() 396 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_wrongTargetActivity() 414 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_noTargetActivity_noMainActivity() 479 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_dynamicExists() 537 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_manifestExists() 594 setDefaultLauncher(USER_0, LAUNCHER_1); in testRequestPinShortcut_dynamicExists_alreadyPinned() [all …]
|
H A D | ShortcutManagerTest11.java | 59 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts() 86 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 120 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 128 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 155 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts() 178 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts_unpinOthers() 187 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts_unpinOthers() 219 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_cacheShortcuts() 248 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_cacheShortcuts_alreadyCached() 281 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_uncacheShortcuts() [all …]
|
H A D | ShortcutManagerTest1.java | 854 setCaller(LAUNCHER_1); in testIcons() 1767 setCaller(LAUNCHER_1); in testGetShortcuts() 1903 setCaller(LAUNCHER_1); in testGetShortcuts() 2119 setCaller(LAUNCHER_1); in testGetShortcuts_personsFlag() 2192 setCaller(LAUNCHER_1); in testGetShortcutInfo() 2207 setCaller(LAUNCHER_1); in testGetShortcutInfo() 3570 setCaller(LAUNCHER_1, USER_0); in testLauncherCallback() 5636 setCaller(LAUNCHER_1, USER_0); in testHandlePackageUpdate_activityNoLongerMain() 5734 addPackage(LAUNCHER_1, LAUNCHER_UID_1, 4, LAUNCHER_1, "sigy"); in testBackupAndRestore_restoreToSuperSetSignatures() 6091 updatePackageInfo(LAUNCHER_1, in testBackupAndRestore_launcherNoLongerBackupTarget() [all …]
|
H A D | ShortcutManagerTest9.java | 94 setDefaultLauncher(USER_0, LAUNCHER_1); in testNotForeground() 111 setDefaultLauncher(USER_0, LAUNCHER_1); in checkRequestPinAppWidget() 123 runWithCaller(LAUNCHER_1, USER_0, () -> { in checkRequestPinAppWidget()
|
H A D | ShortcutManagerTest3.java | 302 runWithCaller(LAUNCHER_1, USER_0, () -> { in testUpdateShortcuts_noManifestShortcuts() 411 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDeleteDynamicShortcuts_noManifestShortcuts() 486 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDisableShortcuts_noManifestShortcuts()
|
H A D | ShortcutManagerTest12.java | 61 setDefaultLauncher(USER_0, LAUNCHER_1); in testGetShortcutIntents_ReturnsMutablePendingIntents() 67 runWithCaller(LAUNCHER_1, USER_0, () -> { in testGetShortcutIntents_ReturnsMutablePendingIntents()
|
H A D | ShortcutManagerTest7.java | 295 runWithCaller(LAUNCHER_1, USER_10, () -> { in testClearShortcuts() 354 runWithCaller(LAUNCHER_1, USER_10, () -> { in testGetShortcuts()
|
H A D | BaseShortcutManagerTest.java | 726 protected static final String LAUNCHER_1 = "com.android.launcher.1"; field in BaseShortcutManagerTest 780 LAUNCHER_1.equals(callingPackage) || LAUNCHER_2.equals(callingPackage) 887 addPackage(LAUNCHER_1, LAUNCHER_UID_1, 4); in setUp() 1275 addApplicationInfo(getInjectedPackageInfo(LAUNCHER_1, userId, false), ret); in getInstalledApplications() 1296 addPackageInfo(getInjectedPackageInfo(LAUNCHER_1, userId, false), ret); in getInstalledPackagesWithUninstalled() 2204 LAUNCHER_1, LAUNCHER_2, LAUNCHER_3)) { 2257 runWithCaller(LAUNCHER_1, USER_0, () -> { 2288 runWithCaller(LAUNCHER_1, USER_P0, () -> { 2296 runWithCaller(LAUNCHER_1, USER_10, () -> {
|
H A D | ShortcutManagerTest2.java | 1335 setCaller(LAUNCHER_1, USER_0); 1402 setCaller(LAUNCHER_1, USER_0); 1472 setCaller(LAUNCHER_1, USER_0);
|