Home
last modified time | relevance | path

Searched refs:UserUtils (Results 1 – 25 of 31) sorted by relevance

12

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DUserUtilsTest.java48 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
54 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser()
57 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
64 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser()
67 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
70 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
76 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
79 assertEquals(-1, UserUtils.getCorpUserId(c)); in testGetCorpUser()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DHomeRoleBehavior.java38 import com.android.packageinstaller.role.utils.UserUtils;
58 return !UserUtils.isWorkProfile(user, context); in isAvailableAsUser()
112 PackageManager userPackageManager = UserUtils.getUserContext(context, user) in preparePreferenceAsUser()
148 boolean hasWorkProfile = UserUtils.getWorkProfile(context) != null; in isMissingWorkProfileSupport()
DAssistantRoleBehavior.java42 import com.android.packageinstaller.role.utils.UserUtils;
80 return !UserUtils.isWorkProfile(user, context); in isAvailableAsUser()
114 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUser()
DRequiredBroadcastReceiver.java30 import com.android.packageinstaller.role.utils.UserUtils;
48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser()
DRequiredActivity.java30 import com.android.packageinstaller.role.utils.UserUtils;
48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser()
DRequiredContentProvider.java30 import com.android.packageinstaller.role.utils.UserUtils;
48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser()
DRequiredService.java30 import com.android.packageinstaller.role.utils.UserUtils;
48 Context userContext = UserUtils.getUserContext(context, user); in queryIntentComponentsAsUser()
DSmsRoleBehavior.java29 import com.android.packageinstaller.role.utils.UserUtils;
46 if (UserUtils.isWorkProfile(user, context)) { in isAvailableAsUser()
DRole.java40 import com.android.packageinstaller.role.utils.UserUtils;
564 PackageManager userPackageManager = UserUtils.getUserContext(context, user) in isPackageMinimallyQualifiedAsUser()
696 Utils.getDeviceProtectedSharedPreferences(UserUtils.getUserContext(context, user)).edit() in onHolderAddedAsUser()
736 Utils.getDeviceProtectedSharedPreferences(UserUtils.getUserContext(context, user)).edit() in onNoneHolderSelectedAsUser()
DBrowserRoleBehavior.java31 import com.android.packageinstaller.role.utils.UserUtils;
92 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingPackagesAsUserInternal()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsFragmentTest.java87 UserUtils.getUserDisplayName(mContext, mCarUserManagerHelper, testUser)); in testCarUserManagerHelperUpdateListener_showsCorrectText()
98 UserUtils.getUserDisplayName(mContext, mCarUserManagerHelper, testUser)); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
105 UserUtils.getUserDisplayName(mContext, mCarUserManagerHelper, testUserUpdated)); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailContentProvider.java47 import com.android.providers.contacts.util.UserUtils;
201 " User=" + UserUtils.getCurrentUserHandle(getContext())); in query()
216 " User=" + UserUtils.getCurrentUserHandle(getContext())); in update()
231 " User=" + UserUtils.getCurrentUserHandle(getContext())); in delete()
257 " User=" + UserUtils.getCurrentUserHandle(getContext())); in openFile()
DCallLogProvider.java55 import com.android.providers.contacts.util.UserUtils;
316 " User=" + UserUtils.getCurrentUserHandle(getContext())); in queryInternal()
516 " User=" + UserUtils.getCurrentUserHandle(getContext())); in updateInternal()
552 " User=" + UserUtils.getCurrentUserHandle(getContext())); in deleteInternal()
659 final UserManager userManager = UserUtils.getUserManager(getContext()); in syncEntries()
DContactMetadataProvider.java44 import com.android.providers.contacts.util.UserUtils;
128 " User=" + UserUtils.getCurrentUserHandle(getContext())); in query()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserUtils.java29 public class UserUtils { class
30 private UserUtils() { in UserUtils() method in UserUtils
DUserDetailsBaseFragment.java75 mUserInfo = UserUtils.getUserInfo(getContext(), userId); in onAttach()
118 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DUsersListPreferenceController.java35 if (UserUtils.isAdminViewingNonAdmin(getCarUserManagerHelper(), userInfo)) { in userClicked()
DUserDetailsPermissionsFragment.java58 UserUtils.getUserDisplayName(getContext(), getCarUserManagerHelper(), in getTitleText()
DUserDetailsFragment.java74 return UserUtils.getUserDisplayName(getContext(), getCarUserManagerHelper(), getUserInfo()); in getTitleText()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessListViewModel.java29 import com.android.packageinstaller.role.utils.UserUtils;
46 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessListViewModel()
DDefaultAppListViewModel.java30 import com.android.packageinstaller.role.utils.UserUtils;
55 mWorkProfile = UserUtils.getWorkProfile(application); in DefaultAppListViewModel()
DSpecialAppAccessViewModel.java36 import com.android.packageinstaller.role.utils.UserUtils;
64 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessViewModel()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java27 public final class UserUtils { class
32 private UserUtils() { in UserUtils() method in UserUtils
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DUserUtils.java34 public class UserUtils { class
36 private UserUtils() {} in UserUtils() method in UserUtils
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuard.java31 import com.android.providers.contacts.util.UserUtils;
61 final UserHandle currentHandle = new UserHandle(UserUtils.getCurrentUserHandle(mContext)); in isCrossProfileAllowed()

12