/packages/services/Telecomm/src/com/android/server/telecom/ |
UserUtil.java | 20 import android.content.pm.UserInfo; 29 private static UserInfo getUserInfoFromUserHandle(Context context, UserHandle userHandle) { 35 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); 36 return userInfo != null && userInfo.isManagedProfile(); 40 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); 41 return userInfo != null && userInfo.profileGroupId != userInfo.id [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRRuntimeException.m | 47 + (id) newException:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo 49 return [[ANTLRRuntimeException alloc] init:aReason userInfo:aUserInfo]; 57 + (id) newException:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 59 return [[ANTLRRuntimeException alloc] initWithName:aName reason:aReason userInfo:aUserInfo]; 65 self = [super initWithName:@"ANTLRRuntimeException" reason:@"UnknownException" userInfo:nil]; 71 self = [super initWithName:(NSString *)@"ANTLRRuntimeException" reason:(NSString *)aReason userInfo:(NSDictionary *)nil]; 75 - (id) init:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo 77 self = [super initWithName:@"ANTLRRuntimeException" reason:aReason userInfo:aUserInfo]; 83 self = [super initWithName:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)nil]; 87 - (id) initWithName:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInf [all...] |
ANTLRRuntimeException.h | 39 + (ANTLRRuntimeException *) newException:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 42 + (ANTLRRuntimeException *) newException:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 46 - (id) init:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 48 - (id) initWithName:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 60 + (id) newException:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 64 - (id)init:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 73 + (id) newException:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 77 - (id)init:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 86 + (id) newException:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo; 90 - (id) init:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo [all...] |
/external/nist-sip/java/gov/nist/javax/sip/address/ |
Authority.java | 50 /** userInfo field 52 protected UserInfo userInfo; 63 if (userInfo != null) { 64 userInfo.encode(buffer); 87 if (this.userInfo != null && otherAuth.userInfo != null) { 88 if (!this.userInfo.equals(otherAuth.userInfo)) { 104 * get the userInfo memnber [all...] |
/packages/services/Car/car-lib/src/android/car/user/ |
CarUserManagerHelper.java | 25 import android.content.pm.UserInfo; 103 * Gets UserInfo for the system user. 105 * @return {@link UserInfo} for the system user. 107 public UserInfo getSystemUserInfo() { 112 * Gets UserInfo for the current foreground user. 117 * @return {@link UserInfo} for the foreground user. 119 public UserInfo getCurrentForegroundUserInfo() { 131 * Gets UserInfo for the user running the caller process. 140 * @return {@link UserInfo} for the user running the current process. 142 public UserInfo getCurrentProcessUserInfo() [all...] |
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
UserLifecycleTests.java | 26 import android.content.pm.UserInfo; 102 final UserInfo userInfo = mUm.createUser("TestUser", 0); 105 registerBroadcastReceiver(Intent.ACTION_USER_STARTED, latch, userInfo.id); 106 mIam.startUserInBackground(userInfo.id); 110 removeUser(userInfo.id); 120 final UserInfo userInfo = mUm.createUser("TestUser", 0); 123 switchUser(userInfo.id); 127 removeUser(userInfo.id) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
UserAppInfo.java | 20 import android.content.pm.UserInfo; 30 public final UserInfo userInfo; 33 public UserAppInfo(UserInfo mUserInfo, ApplicationInfo mAppInfo) { 34 this.userInfo = mUserInfo; 48 // As UserInfo and AppInfo do not support hashcode/equals contract, assume 50 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, 56 return Objects.hash(userInfo.id, appInfo.packageName);
|
/frameworks/support/media/src/main/java/androidx/media/ |
MediaSessionManagerImplBase.java | 57 @NonNull MediaSessionManager.RemoteUserInfoImpl userInfo) { 61 userInfo.getPackageName(), 0); 64 Log.d(TAG, "Package " + userInfo.getPackageName() + " doesn't exist"); 69 if (applicationInfo.uid != userInfo.getUid()) { 71 Log.d(TAG, "Package name " + userInfo.getPackageName() 72 + " doesn't match with the uid " + userInfo.getUid()); 76 return isPermissionGranted(userInfo, PERMISSION_STATUS_BAR_SERVICE) 77 || isPermissionGranted(userInfo, PERMISSION_MEDIA_CONTENT_CONTROL) 78 || userInfo.getUid() == Process.SYSTEM_UID 79 || isEnabledNotificationListener(userInfo); [all...] |
MediaSessionManagerImplApi21.java | 34 @NonNull MediaSessionManager.RemoteUserInfoImpl userInfo) { 36 return hasMediaControlPermission(userInfo) || super.isTrustedForMediaControl(userInfo); 43 @NonNull MediaSessionManager.RemoteUserInfoImpl userInfo) { 46 userInfo.getPid(), userInfo.getUid()) == PackageManager.PERMISSION_GRANTED;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
UserManagerHelper.java | 24 import android.content.pm.UserInfo; 91 * Gets UserInfo for the foreground user. 96 * @return {@link UserInfo} for the foreground user. 98 public UserInfo getForegroundUserInfo() { 110 * Gets UserInfo for the user running the caller process. 119 * @return {@link UserInfo} for the user running the current process. 121 public UserInfo getCurrentProcessUserInfo() { 135 * @return List of {@code UserInfo} for each user that is not the user running the process. 137 public List<UserInfo> getAllUsersExcludesCurrentProcessUser() { 145 * @return List of {@code UserInfo} for each user that is not the foreground user [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerTest.java | 24 import android.content.pm.UserInfo; 105 List<UserInfo> list = mUserManager.getUsers(); 106 for (UserInfo user : list) { 124 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); 125 assertTrue(userInfo != null); 127 List<UserInfo> list = mUserManager.getUsers(); 129 for (UserInfo user : list) { 130 if (user.id == userInfo.id && user.name.equals("Guest 1" [all...] |
UserManagerServiceCreateProfileTest.java | 23 import android.content.pm.UserInfo; 62 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); 76 UserInfo secondaryUser = addUser(); 77 UserInfo profile = addProfile(secondaryUser); 80 List<UserInfo> users = 102 UserInfo secondaryUser = addUser(); 122 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); 123 UserInfo system = users.get(0); 128 UserInfo profile = addProfile(system); 136 UserInfo secondaryUser = addUser() [all...] |
UserManagerServiceUserInfoTest.java | 19 import android.content.pm.UserInfo; 66 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); 90 UserInfo info = createUser(); 100 UserInfo read = UserInfo.CREATOR.createFromParcel(in); 110 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); 112 TextUtils.isEmpty(userInfo.name)); 114 userInfo = createUser(); 115 userInfo.partial = false [all...] |
/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
UsersItemProvider.java | 21 import android.content.pm.UserInfo; 69 UserInfo currUserInfo = mCarUserManagerHelper.getCurrentForegroundUserInfo(); 81 List<UserInfo> infos = mCarUserManagerHelper.getAllSwitchableUsers(); 82 for (UserInfo userInfo : infos) { 83 if (!userInfo.isGuest()) { // Do not show guest users. 84 mItems.add(createUserItem(userInfo, userInfo.name)); 95 private ListItem createUserItem(UserInfo userInfo, String title) [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/testutils/shadow/ |
ShadowUserManager.java | 20 import android.content.pm.UserInfo; 62 public List<UserInfo> getProfiles() { 63 UserInfo userInfo = new UserInfo(); 64 userInfo.id = 0; 65 List<UserInfo> userInfos = new ArrayList<>(); 66 userInfos.add(userInfo);
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
CarUserManagerHelperTest.java | 30 import android.content.pm.UserInfo; 72 private UserInfo mCurrentProcessUser; 73 private UserInfo mSystemUser; 94 UserInfo testInfo = new UserInfo(); 107 UserInfo otherUser1 = createUserInfoForId(10); 108 UserInfo otherUser2 = createUserInfoForId(11); 109 UserInfo otherUser3 = createUserInfoForId(12); 111 List<UserInfo> testUsers = new ArrayList<>(); 130 UserInfo otherUser1 = createUserInfoForId(11) [all...] |
/packages/services/Car/tests/robotests/src/com/android/car/users/ |
CarUserManagerHelperRoboTest.java | 26 import android.content.pm.UserInfo; 103 UserInfo currentProcessUser = createUserInfoForId(currentProcessUserId); 104 UserInfo systemUser = createUserInfoForId(0); 106 UserInfo otherUser1 = createUserInfoForId(13); 107 UserInfo otherUser2 = createUserInfoForId(14); 129 UserInfo foregroundUser = createUserInfoForId(11); 130 UserInfo otherUser1 = createUserInfoForId(12); 131 UserInfo otherUser2 = createUserInfoForId(13); 132 UserInfo otherUser3 = createUserInfoForId(14); 158 UserInfo user1 = createUserInfoForId(10) [all...] |
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/ |
ShadowUserManager.java | 20 import android.content.pm.UserInfo; 37 private final Map<Integer, UserInfo> mUserInfos = new HashMap<>(); 48 addUserInfo(new UserInfo(UserHandle.USER_SYSTEM, "system_user", 0)); 56 public List<UserInfo> getUsers() { 96 public UserInfo getUserInfo(int id) { 117 public UserInfo createGuest(Context context, String name) { 118 UserInfo guest = new UserInfo(12, name, UserInfo.FLAG_GUEST); 139 public void addUserInfo(UserInfo userInfo) [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
UtilsTest.java | 24 import android.content.pm.UserInfo; 50 UserInfo primaryUser = new UserInfo(TEST_PRIMARY_USER_ID, null, 51 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_PRIMARY); 53 UserInfo managedProfile = new UserInfo(TEST_MANAGED_PROFILE_ID, null, 54 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
BaseLockSettingsServiceTests.java | 34 import android.content.pm.UserInfo; 64 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER_ID, null, null, 65 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY); 66 private static final UserInfo SECONDARY_USER_INFO = new UserInfo(SECONDARY_USER_ID, null, null, 67 UserInfo.FLAG_INITIALIZED); 69 private ArrayList<UserInfo> mPrimaryUserProfiles = new ArrayList<>() [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
RestrictedLockUtilsTest.java | 34 import android.content.pm.UserInfo; 176 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); 177 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); 178 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(new UserInfo[] { 179 userInfo, profileInfo})); 205 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); 206 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); 207 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(new UserInfo[] { [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/users/ |
UserManagerHelperRoboTest.java | 27 import android.content.pm.UserInfo; 104 UserInfo currentProcessUser = createUserInfoForId(12); 106 UserInfo otherUser1 = createUserInfoForId(13); 107 UserInfo otherUser2 = createUserInfoForId(11); 108 UserInfo otherUser3 = createUserInfoForId(14); 110 List<UserInfo> testUsers = new ArrayList<>(); 127 UserInfo foregroundUser = createUserInfoForId(17); 129 UserInfo otherUser1 = createUserInfoForId(11); 130 UserInfo otherUser2 = createUserInfoForId(18); 131 UserInfo otherUser3 = createUserInfoForId(16) [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
UserManagerHelperTest.java | 30 import android.content.pm.UserInfo; 61 private UserInfo mCurrentProcessUser; 62 private UserInfo mSystemUser; 80 UserInfo testInfo = new UserInfo(); 91 UserInfo otherUser1 = createUserInfoForId(10); 92 UserInfo otherUser2 = createUserInfoForId(11); 93 UserInfo otherUser3 = createUserInfoForId(12); 95 List<UserInfo> testUsers = new ArrayList<>(); 111 UserInfo user1 = createUserInfoForId(10) [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
CreateManagedProfileTask.java | 23 import android.content.pm.UserInfo; 67 UserInfo userInfo = mUserManager.createProfileForUserEvenWhenDisallowed( 69 UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_DISABLED, 71 if (userInfo == null) { 75 mProfileUserId = userInfo.id; 76 mNonRequiredAppsLogic.maybeTakeSystemAppsSnapshot(userInfo.id);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
ShadowUserManager.java | 20 import android.content.pm.UserInfo; 42 private SparseArray<UserInfo> mUserInfos = new SparseArray<>(); 45 private final List<UserInfo> mUserProfileInfos = new ArrayList<>(); 59 public void setUserInfo(int userHandle, UserInfo userInfo) { 60 mUserInfos.put(userHandle, userInfo); 64 public UserInfo getUserInfo(int userHandle) { 68 public void addProfile(UserInfo userInfo) { 69 mUserProfileInfos.add(userInfo); [all...] |