Searched refs:removeProfile (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileHelper.java | 141 public int removeProfile(Context context, UserInfo userInfo) { in removeProfile() method in ProfileHelper 162 return removeProfile(userInfo.id); in removeProfile() 184 int result = removeProfile(userInfo.id); in removeThisProfileAndSwitchToGuest() 197 private int removeProfile(@UserIdInt int userId) { in removeProfile() method in ProfileHelper 272 int removeUserResult = removeProfile(userInfo.id); in replaceLastAdmin()
|
D | ChooseNewAdminPreferenceController.java | 92 int removeUserResult = profileHelper.removeProfile(context, mAdminInfo); in removeOldAdmin()
|
D | RemoveProfileHandler.java | 69 int removeProfileResult = mProfileHelper.removeProfile(mContext, mUserInfo); in setUserInfo()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 286 assertThat(mProfileHelper.removeProfile(mContext, systemUser)) in testRemoveUser_isAdminUser_cannotRemoveSystemUser() 303 assertThat(mProfileHelper.removeProfile(mContext, nonAdminUser)) in testRemoveUser_isAdmin_canRemoveOtherUsers() 322 assertThat(mProfileHelper.removeProfile(mContext, user2)) in testRemoveUser_isNonAdmin_cannotRemoveOtherUsers() 344 assertThat(mProfileHelper.removeProfile(mContext, adminUser)) in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser() 367 assertThat(mProfileHelper.removeProfile(mContext, adminUser)) in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser() 410 assertThat(mProfileHelper.removeProfile(mContext, removedUser)).isEqualTo(expectedResult); in assertUserRemoved()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ChooseNewAdminPreferenceControllerTest.java | 145 verify(mProfileHelper).removeProfile(any(), eq(TEST_ADMIN_USER)); in testAssignNewAdminAndRemoveOldAdmin_removeUserCalled() 150 when(mProfileHelper.removeProfile(any(), eq(TEST_ADMIN_USER))) in testAssignNewAdminAndRemoveOldAdmin_success_noErrorDialog() 160 when(mProfileHelper.removeProfile(any(), eq(TEST_ADMIN_USER))) in testAssignNewAdminAndRemoveOldAdmin_failure_errorDialog()
|
D | RemoveProfileHandlerTest.java | 142 verify(mMockProfileHelper).removeProfile(mContext, userInfo); in onDeleteConfirmed_removeProfile()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowUserHelper.java | 82 return sInstance.removeProfile(context, userInfo); in removeUser()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | ProfileService.java | 333 mAdapterService.removeProfile(this); in doStop()
|
D | AdapterService.java | 312 public void removeProfile(ProfileService profile) { in removeProfile() method in AdapterService
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ProfileServiceTest.java | 231 NUM_REPEATS * profileNumber + i + 1)).removeProfile( in testProfileServiceRegisterUnregister()
|