/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/user/ |
D | UserHelperTest.java | 49 super(UserHelper.TAG); in UserHelperTest() 69 UserHelper.setDefaultNonAdminRestrictions(mContext, newNonAdmin.getUserHandle(), in testDefaultNonAdminRestrictions() 82 () -> UserHelper.setDefaultNonAdminRestrictions(/* context= */ null, in testDefaultNonAdminRestrictions_nullContext_throwsException() 89 () -> UserHelper.setDefaultNonAdminRestrictions(mContext, /* user= */ in testDefaultNonAdminRestrictions_nullUser_throwsException() 100 Bitmap bitmap = UserHelper.assignDefaultIcon(mContext, newNonAdmin.getUserHandle()); in testAssignDefaultIcon() 112 () -> UserHelper.assignDefaultIcon(/* context= */ null, in testAssignDefaultIcon_nullContext_throwsException() 119 () -> UserHelper.assignDefaultIcon(mContext, /* user= */ null)); in testAssignDefaultIcon_nullUser_throwsException() 129 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantAdminPermissions_nonAdmin() 140 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantAdminPermissions_admin() 153 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantingAdminPermissionsRemovesNonAdminRestrictions() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserIconProvider.java | 32 import com.android.car.internal.user.UserHelper; 47 UserHelper.assignDefaultIcon(context, userInfo.getUserHandle()); in setRoundedUserIcon() 64 icon = UserHelper.assignDefaultIcon(context, userInfo.getUserHandle()); in getRoundedUserIcon() 117 Bitmap icon = UserHelper.getGuestDefaultIcon(context); in getRoundedGuestDefaultIcon()
|
D | UserGridRecyclerView.java | 65 import com.android.car.internal.user.UserHelper; 481 UserHelper.assignDefaultIcon(context, newGuest.getUserHandle()); in createNewOrFindExistingGuest() 565 UserHelper.setDefaultNonAdminRestrictions(mContext, user.getUserHandle(), in doInBackground() 567 UserHelper.assignDefaultIcon(mContext, user.getUserHandle()); in doInBackground()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userswitcher/ |
D | UserIconProviderTest.java | 40 import com.android.car.internal.user.UserHelper; 80 .spyStatic(UserHelper.class) in setUp() 115 ExtendedMockito.verify(() -> UserHelper.assignDefaultIcon(any(Context.class), in getRoundedUserIcon_notExistUserIcon_assignDefaultIcon() 125 ExtendedMockito.verify(() -> UserHelper.assignDefaultIcon(any(Context.class), in getRoundedUserIcon_existUserIcon_notAssignDefaultIcon()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileIconProvider.java | 28 import com.android.car.internal.user.UserHelper; 51 icon = UserHelper.assignDefaultIcon(context, userInfo.getUserHandle()); in getRoundedProfileIcon() 59 Bitmap icon = UserHelper.getGuestDefaultIcon(context); in getRoundedGuestDefaultIcon()
|
D | AddNewProfileTask.java | 31 import com.android.car.internal.user.UserHelper; 64 UserHelper.setDefaultNonAdminRestrictions(mContext, user.getUserHandle(), in doInBackground() 66 UserHelper.assignDefaultIcon(mContext, user.getUserHandle()); in doInBackground()
|
D | ChooseNewAdminPreferenceController.java | 25 import com.android.car.internal.user.UserHelper; 86 UserHelper.grantAdminPermissions(getContext(), profileToMakeAdmin.getUserHandle()); in assignNewAdminAndRemoveOldAdmin()
|
D | ProfileHelper.java | 44 import com.android.car.internal.user.UserHelper; 335 UserHelper.assignDefaultIcon(context, user.getUserHandle()); in createNewAdminProfile() 355 UserHelper.assignDefaultIcon(context, newGuest.getUserHandle()); in createNewOrFindExistingGuest()
|
D | ProfileDetailsActionButtonsPreferenceController.java | 70 com.android.car.internal.user.UserHelper.grantAdminPermissions(getContext(),
|
/packages/services/Car/libs/car-helper-lib/src/com/android/car/internal/user/ |
D | UserHelper.java | 41 public final class UserHelper { class 43 static final String TAG = UserHelper.class.getSimpleName(); 64 private UserHelper() { in UserHelper() method in UserHelper
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ChooseNewAdminPreferenceControllerTest.java | 40 import com.android.car.internal.user.UserHelper; 88 .mockStatic(UserHelper.class) in setUp() 138 ExtendedMockito.verify(() -> UserHelper.grantAdminPermissions(mContext, in testAssignNewAdminAndRemoveOldAdmin_grantAdminCalled()
|
D | ProfileDetailsActionButtonsPreferenceControllerTest.java | 44 import com.android.car.internal.user.UserHelper; 349 UserHelper.class).startMocking(); in onMakeAdminConfirmed_makeProfileAdmin() 364 () -> UserHelper.grantAdminPermissions(mContext, userInfo.getUserHandle())); in onMakeAdminConfirmed_makeProfileAdmin()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/ |
D | ProfileSwitcher.java | 58 import com.android.car.internal.user.UserHelper; 395 UserHelper.assignDefaultIcon(context, newGuest.getUserHandle()); in createNewOrFindExistingGuest() 498 UserHelper.setDefaultNonAdminRestrictions(mContext, user.getUserHandle(), in doInBackground() 500 UserHelper.assignDefaultIcon(mContext, user.getUserHandle()); in doInBackground()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | ExperimentalCarUserServiceTest.java | 56 import com.android.car.internal.user.UserHelper; 136 doReturn(null).when(() -> UserHelper.assignDefaultIcon(any(), any())); in testCreatePassenger() 138 .when(() -> UserHelper.setDefaultNonAdminRestrictions(any(), any(), anyBoolean())); in testCreatePassenger()
|
D | BaseCarUserServiceTestCase.java | 116 import com.android.car.internal.user.UserHelper; 264 .spyStatic(UserHelper.class) in onSessionBuilder()
|