Searched refs:PRIVATE_HANDLE (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/model/ |
D | AppEventProducerTest.java | 59 private static final UserHandle PRIVATE_HANDLE = new UserHandle(11); field in AppEventProducerTest 64 new UserIconInfo(PRIVATE_HANDLE, UserIconInfo.TYPE_PRIVATE); 87 .thenReturn(Arrays.asList(MAIN_HANDLE, PRIVATE_HANDLE)); in buildAppTarget_containsCorrectUser() 106 AppInfo(gmailComponentName, "Gmail", PRIVATE_HANDLE, new Intent()); in buildAppTarget_containsCorrectUser() 114 assertEquals(gmailPrivateTarget.getUser(), PRIVATE_HANDLE); in buildAppTarget_containsCorrectUser() local 119 if (appInfo.user.equals(PRIVATE_HANDLE)) { in buildItemInfoProtoForAppInfo()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/allapps/ |
D | AlphabeticalAppsListTest.java | 63 private static final UserHandle PRIVATE_HANDLE = new UserHandle(11); field in AlphabeticalAppsListTest 88 info != null && info.user.equals(PRIVATE_HANDLE)); in setUp() 117 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileEnabled_allPrivateProfileViewsArePresent() 149 .filter(item -> item.itemInfo != null && item.itemInfo.user.equals(PRIVATE_HANDLE)) in privateProfileEnabled_privateProfileAppsShownWithSeparator() 176 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileDisabled_onlyPrivateProfileHeaderViewIsPresent() 197 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileTransitioning_onlyPrivateProfileHeaderViewIsPresent() 214 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileHidden_noPrivateProfileViewIsPresent() 231 item.itemInfo != null && item.itemInfo.user.equals(PRIVATE_HANDLE)) in privateProfileNotPresent_onlyMainUserViewsArePresent() 350 "Private Messenger", PRIVATE_HANDLE, new Intent()); in createAppInfoListForPrivateUser() 354 "Private Camera", PRIVATE_HANDLE, new Intent()); in createAppInfoListForPrivateUser()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/ |
D | PrivateProfileManagerTest.java | 76 private static final UserHandle PRIVATE_HANDLE = new UserHandle(11); field in PrivateProfileManagerTest 80 new UserIconInfo(PRIVATE_HANDLE, UserIconInfo.TYPE_PRIVATE); 108 .thenReturn(Arrays.asList(MAIN_HANDLE, PRIVATE_HANDLE)); in setUp() 110 when(mUserCache.getUserInfo(PRIVATE_HANDLE)).thenReturn(PRIVATE_ICON_INFO); in setUp() 136 Mockito.verify(mUserManager).requestQuietModeEnabled(true, PRIVATE_HANDLE); in lockPrivateProfile_requestsQuietModeAsTrue() 146 Mockito.verify(mUserManager).requestQuietModeEnabled(false, PRIVATE_HANDLE); in unlockPrivateProfile_requestsQuietModeAsFalse()
|
D | PrivateSpaceHeaderViewTest.java | 81 private static final UserHandle PRIVATE_HANDLE = new UserHandle(11); field in PrivateSpaceHeaderViewTest 85 new UserIconInfo(PRIVATE_HANDLE, UserIconInfo.TYPE_PRIVATE); 121 when(mUserCache.getUserInfo(PRIVATE_HANDLE)).thenReturn(PRIVATE_ICON_INFO); in setUp() 123 .thenReturn(Arrays.asList(MAIN_HANDLE, PRIVATE_HANDLE)); in setUp() 456 "Private Camera " + i, PRIVATE_HANDLE, new Intent()); in createAppInfoList()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/ |
D | SystemShortcutTest.java | 82 private static final UserHandle PRIVATE_HANDLE = new UserHandle(11); field in SystemShortcutTest 120 when(mPrivateProfileManager.getProfileUser()).thenReturn(PRIVATE_HANDLE); in setUp() 260 when(mPrivateProfileManager.getProfileUser()).thenReturn(PRIVATE_HANDLE); in testPrivateProfileInstallNonNullPrivateProfileUser() 267 new ComponentKey(mAppInfo.getTargetComponent(), PRIVATE_HANDLE))); in testPrivateProfileInstallNonNullPrivateProfileUser() 322 mAppInfo.user = PRIVATE_HANDLE; in testUninstallGetShortcutWithSystemItemInfo() 341 mAppInfo.user = PRIVATE_HANDLE; in testUninstallGetShortcutWithPrivateItemInfo()
|