/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest6.java | 28 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_2, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 29 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 30 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 31 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 32 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 36 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 39 prepareGetRoleHoldersAsUser(CALLING_PACKAGE_1, USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 41 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 45 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() 49 getSystemLauncher().activityInfo.getComponentName().getPackageName(), USER_0); in testHasShortcutHostPermissionInner_with3pLauncher_complicated() local [all …]
|
D | ShortcutManagerTest1.java | 283 setCaller(CALLING_PACKAGE_1, USER_0); in testSetDynamicShortcuts() 353 setCaller(CALLING_PACKAGE_1, USER_0); in testAddDynamicShortcuts() 404 setCaller(CALLING_PACKAGE_1, USER_0); in testPushDynamicShortcut() 421 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut() 434 eq(CALLING_PACKAGE_1), eq("s1"), eq(USER_0)); in testPushDynamicShortcut() 436 eq(CALLING_PACKAGE_1), eq("s2"), eq(USER_0)); in testPushDynamicShortcut() 438 eq(CALLING_PACKAGE_1), eq("s3"), eq(USER_0)); in testPushDynamicShortcut() 449 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut() 459 eq(CALLING_PACKAGE_1), eq("s4"), eq(USER_0)); in testPushDynamicShortcut() 474 eq(CALLING_PACKAGE_1), eq("s5"), eq(USER_0)); in testPushDynamicShortcut() [all …]
|
D | ShortcutManagerTest11.java | 57 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts() 62 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts() 79 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 84 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 89 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 113 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 118 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 126 runWithCaller(LAUNCHER_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 131 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 148 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testShortcutChangeCallback_pinShortcuts() [all …]
|
D | ShortcutManagerTest10.java | 55 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_validResult() 63 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_validResult() 70 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinned() 76 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned() 86 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinned() 99 runWithCaller(LAUNCHER_2, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 103 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_alreadyPinnedByAnother() 110 runWithCaller(LAUNCHER_1, USER_0, () -> { in testCreateShortcutResult_alreadyPinnedByAnother() 118 setDefaultLauncher(USER_0, LAUNCHER_1); in testCreateShortcutResult_defaultLauncherChanges() 126 setDefaultLauncher(USER_0, LAUNCHER_2); in testCreateShortcutResult_defaultLauncherChanges() [all …]
|
D | ShortcutManagerTest8.java | 85 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_0)); in testGetParentOrSelfUserId() 88 assertEquals(USER_0, mService.getParentOrSelfUserId(USER_P0)); in testGetParentOrSelfUserId() 92 setDefaultLauncher(USER_0, LAUNCHER_1); in testIsRequestPinShortcutSupported() 97 actual = mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported() 102 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported() 118 assertEquals(USER_0, (int) actual.second); in testIsRequestPinShortcutSupported() 121 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() 124 runWithCaller(CALLING_PACKAGE_2, USER_0, () -> { in testIsRequestPinShortcutSupported() 148 assertNull(mProcessor.getRequestPinConfirmationActivity(USER_0, in testIsRequestPinShortcutSupported() 154 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testIsRequestPinShortcutSupported() [all …]
|
D | ShortcutManagerTest2.java | 1254 setCaller(CALLING_PACKAGE_1, USER_0); 1286 setCaller(LAUNCHER_1, USER_0); 1292 mService.handleUnlockUser(USER_0); // Load user-0. 1295 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0); 1318 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0); 1323 setCaller(CALLING_PACKAGE_1, USER_0); 1353 setCaller(LAUNCHER_1, USER_0); 1359 mService.handleUnlockUser(USER_0); // Load user-0. 1362 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id", USER_0); 1388 si = mService.getPackageShortcutForTest(CALLING_PACKAGE_1, "id2", USER_0); [all …]
|
D | ShortcutManagerTest7.java | 131 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 141 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling() 152 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 169 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_not_running() 180 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running() 193 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetThrottling_user_running() 204 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling() 214 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testResetAllThrottling() 224 prepareGetRoleHoldersAsUser(getSystemLauncher().activityInfo.packageName, USER_0); in testLauncherCommands() local 228 USER_0); in testLauncherCommands() local [all …]
|
D | ShortcutManagerTest12.java | 32 setDefaultLauncher(USER_0, LAUNCHER_1); in testGetShortcutIntents_ReturnsMutablePendingIntents() 34 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> in testGetShortcutIntents_ReturnsMutablePendingIntents() 38 runWithCaller(LAUNCHER_1, USER_0, () -> { in testGetShortcutIntents_ReturnsMutablePendingIntents()
|
D | ShortcutManagerTest4.java | 117 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters() 126 mService.handleUnlockUser(USER_0); in testPersistingWeirdCharacters() 128 runWithCaller(CALLING_PACKAGE_1, USER_0, () -> { in testPersistingWeirdCharacters()
|
D | ShortcutManagerTest9.java | 91 setDefaultLauncher(USER_0, LAUNCHER_1); in testNotForeground() 108 setDefaultLauncher(USER_0, LAUNCHER_1); in checkRequestPinAppWidget() 120 runWithCaller(LAUNCHER_1, USER_0, () -> { in checkRequestPinAppWidget()
|
D | ShortcutManagerTest3.java | 70 setCaller(CALLING_PACKAGE, USER_0); in setUp() 77 genPackageAddIntent(CALLING_PACKAGE, USER_0)); in publishManifestShortcuts() 299 runWithCaller(LAUNCHER_1, USER_0, () -> { in testUpdateShortcuts_noManifestShortcuts() 408 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDeleteDynamicShortcuts_noManifestShortcuts() 483 runWithCaller(LAUNCHER_1, USER_0, () -> { in testDisableShortcuts_noManifestShortcuts() 518 genPackageAddIntent(CALLING_PACKAGE_1, USER_0)); in testGetSharingShortcutCount()
|
D | BaseShortcutManagerTest.java | 989 protected static final int USER_0 = UserHandle.USER_SYSTEM; field in BaseShortcutManagerTest 995 protected static final UserHandle HANDLE_USER_0 = UserHandle.of(USER_0); 1002 new UserInfo(USER_0, "user0", 1157 mUserInfos.put(USER_0, USER_INFO_0); in setUp() 1212 mRunningUsers.put(USER_0, true); in setUp() 1219 mUnlockedUsers.put(USER_0, true); in setUp() 2407 final byte[] payload = mService.getBackupPayload(USER_0); 2417 for (int userId : list(USER_0, USER_P0)) { 2431 mService.applyRestore(payload, USER_0); 2435 mService.handleUnlockUser(USER_0); [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerSettingsTests.java | 57 private static int USER_0 = 0; field in OverlayManagerSettingsTests 67 private static final OverlayInfo OVERLAY_A_USER0 = createInfo(OVERLAY_A, USER_0); 68 private static final OverlayInfo OVERLAY_B_USER0 = createInfo(OVERLAY_B, USER_0); 69 private static final OverlayInfo OVERLAY_C_USER0 = createInfo(OVERLAY_C, USER_0); 95 final OverlayInfo oi = mSettings.getOverlayInfo(OVERLAY_A, USER_0); in testBasicSetAndGet() 98 assertTrue(mSettings.remove(OVERLAY_A, USER_0)); in testBasicSetAndGet() 99 assertDoesNotContain(mSettings, OVERLAY_A, USER_0); in testBasicSetAndGet() 107 assertArrayEquals(new int[]{USER_0}, mSettings.getUsers()); in testGetUsers() 111 assertArrayEquals(new int[]{USER_0, USER_1}, mSettings.getUsers()); in testGetUsers() 121 final Map<String, List<OverlayInfo>> map = mSettings.getOverlaysForUser(USER_0); in testGetOverlaysForUser() [all …]
|