Searched refs:userRecord (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/ |
D | UserPickerAdapter.java | 74 private void setUserLoggedInInfo(UserPickerAdapterViewHolder holder, UserRecord userRecord) { in setUserLoggedInInfo() argument 75 if (!userRecord.mIsStopping && !userRecord.mIsLoggedIn) { in setUserLoggedInInfo() 82 if (userRecord.mIsStopping) { in setUserLoggedInInfo() 87 } else if (userRecord.mIsLoggedIn) { in setUserLoggedInInfo() 88 if (userRecord.mLoggedInDisplay == mDisplayId) { in setUserLoggedInInfo() 96 userRecord.mSeatLocationName)); in setUserLoggedInInfo() 122 UserRecord userRecord = mUsers.get(position); in onBindViewHolder() local 123 holder.mUserAvatarImageView.setImageDrawable(userRecord.mIcon); in onBindViewHolder() 125 holder.mUserNameTextView.setText(userRecord.mName); in onBindViewHolder() 126 setUserLoggedInInfo(holder, userRecord); in onBindViewHolder() [all …]
|
D | UserPickerController.java | 146 UserRecord userRecord = UserRecord.create(newUserInfo, newUserInfo.name, 152 handleUserSelected(userRecord); 256 OnClickListener getOnClickListener(UserRecord userRecord) { in getOnClickListener() argument 263 if (userRecord != null && userRecord.mIsAddUser) { in getOnClickListener() 273 handleUserSelected(userRecord); in getOnClickListener() argument 388 void handleUserSelected(UserRecord userRecord) { 389 if (userRecord == null) { 393 int userId = userRecord.mInfo != null ? userRecord.mInfo.id : INVALID_USER_ID; 398 || (userRecord.mIsStartGuestSession && isGuestUser(prevUserId))) { 404 if (userRecord.mIsLoggedIn && userRecord.mLoggedInDisplay != mDisplayId [all …]
|
D | UserRecord.java | 76 UserRecord userRecord = new UserRecord(info, name, isStartGuestSession, isAddUser, in create() local 78 listenerMaker.setUserRecord(userRecord); in create() 79 userRecord.mOnClickListener = listenerMaker.createOnClickListenerWithUserRecord(); in create() 80 return userRecord; in create() 86 void setUserRecord(UserRecord userRecord) { in setUserRecord() argument 87 mUserRecord = userRecord; in setUserRecord()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 300 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseSecurityParameterIndex() local 301 assertEquals(0, userRecord.mSpiQuotaTracker.mCurrent); in testReleaseSecurityParameterIndex() 303 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testReleaseSecurityParameterIndex() 319 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testSecurityParameterIndexBinderDeath() local 321 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testSecurityParameterIndexBinderDeath() 336 assertEquals(0, userRecord.mSpiQuotaTracker.mCurrent); in testSecurityParameterIndexBinderDeath() 338 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testSecurityParameterIndexBinderDeath() 549 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseOwnedSpi() local 550 assertEquals(1, userRecord.mSpiQuotaTracker.mCurrent); in testReleaseOwnedSpi() 562 assertEquals(1, userRecord.mSpiQuotaTracker.mCurrent); in testReleaseOwnedSpi() [all …]
|
D | IpSecServiceTest.java | 187 IpSecService.UserRecord userRecord = in testOpenAndCloseUdpEncapsulationSocket() local 189 assertEquals(0, userRecord.mSocketQuotaTracker.mCurrent); in testOpenAndCloseUdpEncapsulationSocket() 191 userRecord.mEncapSocketRecords.getRefcountedResourceOrThrow(udpEncapResp.resourceId); in testOpenAndCloseUdpEncapsulationSocket() 203 IpSecService.UserRecord userRecord = in testUdpEncapsulationSocketBinderDeath() local 206 userRecord.mEncapSocketRecords.getRefcountedResourceOrThrow( in testUdpEncapsulationSocketBinderDeath() 212 assertEquals(0, userRecord.mSocketQuotaTracker.mCurrent); in testUdpEncapsulationSocketBinderDeath() 214 userRecord.mEncapSocketRecords.getRefcountedResourceOrThrow(udpEncapResp.resourceId); in testUdpEncapsulationSocketBinderDeath()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecService.java | 1175 UserRecord userRecord = mUserResourceTracker.getUserRecord(callingUid); in allocateSecurityParameterIndex() local 1180 if (!userRecord.mSpiQuotaTracker.isAvailable()) { in allocateSecurityParameterIndex() 1187 userRecord.mSpiRecords.put( in allocateSecurityParameterIndex() 1215 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in releaseSecurityParameterIndex() local 1216 releaseResource(userRecord.mSpiRecords, resourceId); in releaseSecurityParameterIndex() 1304 UserRecord userRecord = mUserResourceTracker.getUserRecord(callingUid); in openUdpEncapsulationSocket() local 1309 if (!userRecord.mSocketQuotaTracker.isAvailable()) { in openUdpEncapsulationSocket() 1337 userRecord.mEncapSocketRecords.put( in openUdpEncapsulationSocket() 1363 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in closeUdpEncapsulationSocket() local 1364 releaseResource(userRecord.mEncapSocketRecords, resourceId); in closeUdpEncapsulationSocket() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserGridRecyclerView.java | 299 UserRecord userRecord = mUsers.get(position); in onBindViewHolder() local 301 Drawable circleIcon = getCircularUserRecordIcon(userRecord); in onBindViewHolder() 303 if (userRecord.mInfo != null) { in onBindViewHolder() 305 holder.mUserAvatarImageView.setDrawableWithBadge(circleIcon, userRecord.mInfo.id); in onBindViewHolder() 310 holder.mUserNameTextView.setText(getUserRecordName(userRecord)); in onBindViewHolder() 313 if (userRecord == null) { in onBindViewHolder() 317 switch (userRecord.mType) { in onBindViewHolder() 319 notifyUserSelected(userRecord); in onBindViewHolder() 330 mAddUserRecord = userRecord; in onBindViewHolder() 337 notifyUserSelected(userRecord); in onBindViewHolder() [all …]
|