Searched refs:alreadyHasManagedProfile (Results 1 – 4 of 4) sorted by relevance
161 when(mUtils.alreadyHasManagedProfile(mContext)).thenReturn(-1); in setUp()261 when(mUtils.alreadyHasManagedProfile(mContext)).thenReturn(TEST_USER_ID); in testManagedProfile_withExistingProfile()374 when(mUtils.alreadyHasManagedProfile(mContext)).thenReturn(TEST_USER_ID); in testManagedProfile_restrictedFromRemovingExisting()730 when(mUtils.alreadyHasManagedProfile(mContext)).thenReturn( in prepareMocksForMaybeStartProvisioning()
73 when(mUtils.alreadyHasManagedProfile(any())).thenReturn(-1); in setup()
295 int existingManagedProfileUserId = mUtils.alreadyHasManagedProfile(mContext); in initiateProvisioning()897 return mUtils.alreadyHasManagedProfile(mContext) != -1 in isRemovingManagedProfileDisallowed()
396 public int alreadyHasManagedProfile(Context context) { in alreadyHasManagedProfile() method in Utils