Home
last modified time | relevance | path

Searched refs:UserHelper (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/user/
DUserHelperTest.java49 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/
DUserIconProvider.java32 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()
DUserGridRecyclerView.java65 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/
DUserIconProviderTest.java40 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/
DProfileIconProvider.java28 import com.android.car.internal.user.UserHelper;
51 icon = UserHelper.assignDefaultIcon(context, userInfo.getUserHandle()); in getRoundedProfileIcon()
59 Bitmap icon = UserHelper.getGuestDefaultIcon(context); in getRoundedGuestDefaultIcon()
DAddNewProfileTask.java31 import com.android.car.internal.user.UserHelper;
64 UserHelper.setDefaultNonAdminRestrictions(mContext, user.getUserHandle(), in doInBackground()
66 UserHelper.assignDefaultIcon(mContext, user.getUserHandle()); in doInBackground()
DChooseNewAdminPreferenceController.java25 import com.android.car.internal.user.UserHelper;
86 UserHelper.grantAdminPermissions(getContext(), profileToMakeAdmin.getUserHandle()); in assignNewAdminAndRemoveOldAdmin()
DProfileHelper.java44 import com.android.car.internal.user.UserHelper;
335 UserHelper.assignDefaultIcon(context, user.getUserHandle()); in createNewAdminProfile()
355 UserHelper.assignDefaultIcon(context, newGuest.getUserHandle()); in createNewOrFindExistingGuest()
DProfileDetailsActionButtonsPreferenceController.java70 com.android.car.internal.user.UserHelper.grantAdminPermissions(getContext(),
/packages/services/Car/libs/car-helper-lib/src/com/android/car/internal/user/
DUserHelper.java41 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/
DChooseNewAdminPreferenceControllerTest.java40 import com.android.car.internal.user.UserHelper;
88 .mockStatic(UserHelper.class) in setUp()
138 ExtendedMockito.verify(() -> UserHelper.grantAdminPermissions(mContext, in testAssignNewAdminAndRemoveOldAdmin_grantAdminCalled()
DProfileDetailsActionButtonsPreferenceControllerTest.java44 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/
DProfileSwitcher.java58 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/
DExperimentalCarUserServiceTest.java56 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()
DBaseCarUserServiceTestCase.java116 import com.android.car.internal.user.UserHelper;
264 .spyStatic(UserHelper.class) in onSessionBuilder()