Home
last modified time | relevance | path

Searched refs:userType (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherLayoutBuilder.kt85 fun putApp(packageName: String, className: String?, userType: String? = null) = in <lambda>()
88 userType, in <lambda>()
96 fun putShortcut(packageName: String, shortcutId: String, userType: String? = null) = in <lambda>()
99 userType, in <lambda>()
109 userType: String? = null in <lambda>()
113 userType, in <lambda>()
128 userType: String?, in <lambda>()
137 userType?.let { put(ATTR_USER_TYPE, it) } in <lambda>()
168 userType: String?, in <lambda>()
173 Node(tag, HashMap(props).apply { userType?.let { put(ATTR_USER_TYPE, it) } }) in <lambda>()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfo.java61 public @UserType long userType; field in ContactInfo
129 if (userType != other.userType) { in equals()
174 + userType in toString()
DContactInfoHelper.java101 Context context, String lookupKey, @UserType long userType, @Nullable Long directoryId) { in lookUpDisplayNameAlternative() argument
103 if (lookupKey == null || userType == ContactsUtils.USER_TYPE_WORK) { in lookUpDisplayNameAlternative()
369 info.userType = in createPhoneLookupContactInfo()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java187 public static void mockUmCreateUser(UserManager um, @Nullable String name, String userType, in mockUmCreateUser() argument
190 when(um.createUser(isNewUserRequest(name, userType, flags))).thenReturn(response); in mockUmCreateUser()
197 public static void mockUmCreateUser(UserManager um, @Nullable String name, String userType, in mockUmCreateUser() argument
199 when(um.createUser(isNewUserRequest(name, userType, flags))).thenReturn(response); in mockUmCreateUser()
206 public static void mockUmCreateUser(UserManager um, @Nullable String name, String userType, in mockUmCreateUser() argument
208 when(um.createUser(isNewUserRequest(name, userType, flags))).thenThrow(e); in mockUmCreateUser()
225 String userType, @UserInfoFlag int flags) { in isNewUserRequest() argument
226 return argThat(new NewUserRequestMatcher(name, userType, flags)); in isNewUserRequest()
614 NewUserRequestMatcher(String name, String userType, int flags) { in NewUserRequestMatcher() argument
616 mUserType = userType; in NewUserRequestMatcher()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseFragment.java355 final int userType = getUserTypeForWipe(); in updateErrorMessage() local
360 final String overrideMessageId = getLastTryOverrideErrorMessageId(userType); in updateErrorMessage()
361 final int defaultMessageId = getLastTryDefaultErrorMessage(userType); in updateErrorMessage()
368 final String message = getWipeMessage(userType); in updateErrorMessage()
394 protected abstract String getLastTryOverrideErrorMessageId(int userType); in getLastTryOverrideErrorMessageId() argument
395 protected abstract int getLastTryDefaultErrorMessage(int userType); in getLastTryDefaultErrorMessage() argument
397 private String getWipeMessage(int userType) { in getWipeMessage() argument
398 switch (userType) { in getWipeMessage()
410 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getWipeMessage()
DConfirmLockPattern.java678 protected String getLastTryOverrideErrorMessageId(int userType) { in getLastTryOverrideErrorMessageId() argument
679 if (userType == USER_TYPE_MANAGED_PROFILE) { in getLastTryOverrideErrorMessageId()
687 protected int getLastTryDefaultErrorMessage(int userType) { in getLastTryDefaultErrorMessage() argument
688 switch (userType) { in getLastTryDefaultErrorMessage()
696 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getLastTryDefaultErrorMessage()
DConfirmLockPassword.java333 protected String getLastTryOverrideErrorMessageId(int userType) { in getLastTryOverrideErrorMessageId() argument
334 if (userType == USER_TYPE_MANAGED_PROFILE) { in getLastTryOverrideErrorMessageId()
343 protected int getLastTryDefaultErrorMessage(int userType) { in getLastTryDefaultErrorMessage() argument
344 switch (userType) { in getLastTryDefaultErrorMessage()
355 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getLastTryDefaultErrorMessage()
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfo.java105 public @UserType long userType; field in CallerInfo
156 userType = ContactsUtils.USER_TYPE_CURRENT; in CallerInfo()
184 info.userType = ContactsUtils.USER_TYPE_CURRENT; in getCallerInfo()
304 info.userType = ContactsUtils.determineUserType(directoryId, contactId); in getCallerInfo()
308 context, info.lookupKeyOrNull, info.userType, directoryId); in getCallerInfo()
542 .append("\nuserType: " + userType) in toString()
DCallerInfoUtils.java136 info.userType = ci.userType; in buildCachedContactInfo()
DContactInfoCache.java269 cce.userType = info.userType; in populateCacheEntry()
716 public long userType = ContactsUtils.USER_TYPE_CURRENT; field in ContactInfoCache.ContactCacheEntry
760 + userType in toString()
/packages/services/Car/service/src/com/android/car/admin/
DCarDevicePolicyService.java158 String userType = UserManager.USER_TYPE_FULL_SECONDARY; in createUser() local
167 userType = UserManager.USER_TYPE_FULL_GUEST; in createUser()
172 + "combination", userType, userInfoFlags); in createUser()
179 UserHelperLite.safeName(name), userType, userInfoFlags, HAL_TIMEOUT_MS); in createUser()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt39 assertThat(personal.userType).isEqualTo(UserManager.USER_TYPE_FULL_SYSTEM) in <lambda>()
139 actual.userType == expected.userType && in actual()
/packages/apps/Settings/src/com/android/settings/
DUtils.java407 @NonNull UserManager userManager, @ProfileType int userType) { in getProfileOfType() argument
409 String umUserType = getUmUserType(userType); in getProfileOfType()
415 if (Objects.equals(umUserType, userInfo.userType)) { in getProfileOfType()
427 @NonNull UserManager userManager, @ProfileType int userType) { in doesProfileOfTypeExists() argument
429 String umUserType = getUmUserType(userType); in doesProfileOfTypeExists()
431 if (Objects.equals(umUserType, profile.userType)) { in doesProfileOfTypeExists()
438 private static String getUmUserType(@ProfileType int userType) throws IllegalArgumentException { in getUmUserType() argument
439 if (userType == ProfileType.WORK) { in getUmUserType()
441 } else if (userType == ProfileType.PRIVATE) { in getUmUserType()
443 } else if (userType == ProfileType.PERSONAL) { in getUmUserType()
[all …]
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DEventLogHelper.java191 @Nullable String userType, int flags, int timeout, int hasCallerRestrictions) { in writeCarUserServiceCreateUserReq() argument
192 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_CREATE_USER_REQ, safeName, userType, flags, in writeCarUserServiceCreateUserReq()
203 @Nullable String safeName, @Nullable String userType, int flags) { in writeCarUserServiceCreateUserUserCreated() argument
205 userType, flags); in writeCarUserServiceCreateUserUserCreated()
441 @Nullable String userType, int flags) { in writeCarUserManagerCreateUserReq() argument
442 EventLog.writeEvent(EventLogTags.CAR_USER_MGR_CREATE_USER_REQ, uid, safeName, userType, in writeCarUserManagerCreateUserReq()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserManagerCompat.java55 public UserInfoCompat createProfileForUser(String name, @NonNull String userType, in createProfileForUser() argument
57 return new UserInfoCompat(mUserManager.createProfileForUser(name, userType, flags, userId)); in createProfileForUser()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java1266 UserHandle createUserEvenWhenDisallowed(@Nullable String name, @NonNull String userType, in createUserEvenWhenDisallowed() argument
1268 return CarServiceHelperWrapper.getInstance().createUserEvenWhenDisallowed(name, userType, in createUserEvenWhenDisallowed()
1292 String userType = userCreationRequest.isGuest() ? UserManager.USER_TYPE_FULL_GUEST in createUser() local
1298 createUser(name, userType, flags, timeoutMs, callback, /* hasCallerRestrictions= */ false); in createUser()
1308 public void createUser(@Nullable String name, @NonNull String userType, int flags, in createUser() argument
1311 Objects.requireNonNull(userType, "user type cannot be null"); in createUser()
1314 EventLogHelper.writeCarUserServiceCreateUserReq(UserHelperLite.safeName(name), userType, in createUser() local
1331 enqueueCreateUser(() -> handleCreateUser(name, userType, flags, timeoutMs, callback, in createUser()
1370 private void handleCreateUser(@Nullable String name, @NonNull String userType, in handleCreateUser() argument
1373 if (userType.equals(UserManager.USER_TYPE_FULL_GUEST) && flags != 0) { in handleCreateUser()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAbstractICarServiceHelperStub.java66 public UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument
67 Log.d(TAG, "createUserEvenWhenDisallowed(name=" + name + ", userType=" + userType in createUserEvenWhenDisallowed()
/packages/services/Car/service/src/com/android/car/
DCarServiceHelperWrapper.java166 public UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument
168 return waitForCarServiceHelper().createUserEvenWhenDisallowed(name, userType, flags); in createUserEvenWhenDisallowed()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/flags/
DDevOptionsUiHelper.kt486 val userType: String? = in <lambda>() constant
494 info.targetComponent?.let { c -> putApp(c.packageName, c.className, userType) } in <lambda>()
497 putShortcut(key.packageName, key.id, userType) in <lambda>()
513 userType in <lambda>()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java580 private void onAddUserClicked(int userType) { in onAddUserClicked() argument
583 switch (userType) { in onAddUserClicked()
915 private Dialog buildAddUserDialog(int userType) {
926 addUserNow(userType);
1012 private void addUserNow(final int userType) {
1016 mAddingUserName = userType == USER_TYPE_USER
1025 createUser(userType, mAddingUserName);
1029 void createUser(final int userType, String userName) {
1036 if (userType == USER_TYPE_USER) {
/packages/services/Car/car-lib/src/com/android/car/internal/
DICarServiceHelper.aidl54 UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) = 4; in createUserEvenWhenDisallowed() argument
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowUserManager.java294 protected boolean isUserTypeEnabled(String userType) { in isUserTypeEnabled() argument
295 return mEnabledTypes.contains(userType); in isUserTypeEnabled()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarMultiUserTestBase.java408 .that(actualUser.userType).isEqualTo(expectedUser.userType); in assertUserInfo()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java337 int userType = info.getUserType(); in getIconInfoTypeFromItemInfo() local
338 return switch (userType) { in getIconInfoTypeFromItemInfo()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DBaseCarUserServiceTestCase.java447 String userType = UserManager.USER_TYPE_FULL_SECONDARY; in createUserWithRestrictionsInvalidTypes() local
452 mCarUserService.createUser("name", userType, flags, ASYNC_CALL_TIMEOUT_MS, in createUserWithRestrictionsInvalidTypes()
459 userType, flags); in createUserWithRestrictionsInvalidTypes()
476 protected void createUser(@Nullable String name, @NonNull String userType, int flags, in createUser() argument
479 mCarUserService.createUser(name, userType, flags, timeoutMs, callback, in createUser()

12