Home
last modified time | relevance | path

Searched refs:isValidUser (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserManagerUnitTest.java133 assertThat(mMgr.isValidUser(USER_SYSTEM)).isFalse(); in testIsValidUser_headlessSystemUser()
141 assertThat(mMgr.isValidUser(USER_SYSTEM)).isTrue(); in testIsValidUser_nonHeadlessSystemUser()
148 assertThat(mMgr.isValidUser(1)).isTrue(); in testIsValidUser_found()
149 assertThat(mMgr.isValidUser(2)).isTrue(); in testIsValidUser_found()
150 assertThat(mMgr.isValidUser(3)).isTrue(); in testIsValidUser_found()
157 assertThat(mMgr.isValidUser(4)).isFalse(); in testIsValidUser_notFound()
162 assertThat(mMgr.isValidUser(666)).isFalse(); in testIsValidUser_emptyUsers()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/user/
DCarUserManagerPermissionTest.java163 assertThrows(SecurityException.class, () -> mCarUserManager.isValidUser(42)); in testIsValidUserPermission()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java824 public boolean isValidUser(@UserIdInt int userId) { in isValidUser() method in CarUserManager