Home
last modified time | relevance | path

Searched refs:removeProfile (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java141 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()
DChooseNewAdminPreferenceController.java92 int removeUserResult = profileHelper.removeProfile(context, mAdminInfo); in removeOldAdmin()
DRemoveProfileHandler.java69 int removeProfileResult = mProfileHelper.removeProfile(mContext, mUserInfo); in setUserInfo()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java286 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/
DChooseNewAdminPreferenceControllerTest.java145 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()
DRemoveProfileHandlerTest.java142 verify(mMockProfileHelper).removeProfile(mContext, userInfo); in onDeleteConfirmed_removeProfile()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java82 return sInstance.removeProfile(context, userInfo); in removeUser()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java333 mAdapterService.removeProfile(this); in doStop()
DAdapterService.java312 public void removeProfile(ProfileService profile) { in removeProfile() method in AdapterService
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DProfileServiceTest.java231 NUM_REPEATS * profileNumber + i + 1)).removeProfile( in testProfileServiceRegisterUnregister()