Searched refs:isHeadlessSystemUser (Results 1 – 9 of 9) sorted by relevance
57 assertThat(UserHelperLite.isHeadlessSystemUser(UserHandle.USER_SYSTEM)).isTrue(); in testIsHeadlessSystemUser_system_headlessMode()64 assertThat(UserHelperLite.isHeadlessSystemUser(UserHandle.USER_SYSTEM)).isFalse(); in testIsHeadlessSystemUser_system_nonHeadlessMode()71 assertThat(UserHelperLite.isHeadlessSystemUser(10)).isFalse(); in testIsHeadlessSystemUser_nonSystem_headlessMode()78 assertThat(UserHelperLite.isHeadlessSystemUser(10)).isFalse(); in testIsHeadlessSystemUser_nonSystem_nonHeadlessMode()
52 public static boolean isHeadlessSystemUser(@UserIdInt int userId) { in isHeadlessSystemUser() method in UserHelperLite
285 if (UserHelperLite.isHeadlessSystemUser(driverId)) { in switchDriver()313 (user) -> !UserHelperLite.isHeadlessSystemUser(user.getIdentifier()) in getAllDrivers()330 return !UserHelperLite.isHeadlessSystemUser(user.getIdentifier()) in getPassengers()
677 if (UserHelperLite.isHeadlessSystemUser(userId)) { in startForegroundUser()724 if (UserHelperLite.isHeadlessSystemUser(userId)) { in setLastActiveUser()
167 if (UserHelperLite.isHeadlessSystemUser(getUserId()) && !isMultiUserNoDriver) { in maybeFinish()
188 if (!UserHelperLite.isHeadlessSystemUser(getUserId())) { in onCreate()
215 if (UserHelperLite.isHeadlessSystemUser(userId)) { in launchMainActivity()
1037 if (UserHelperLite.isHeadlessSystemUser(userId)) { in updateCarAccessibilityServicesSettings()
724 doReturn(mode).when(() -> UserHelperLite.isHeadlessSystemUser(userId)); in mockIsHeadlessSystemUser()