Home
last modified time | relevance | path

Searched refs:UserRecord (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java139 List<UserRecord> userRecords = createUserRecords(getUsersForUserGrid()); in buildAdapter()
152 private List<UserRecord> createUserRecords(List<UserInfo> userInfoList) { in createUserRecords()
155 List<UserRecord> userRecords = new ArrayList<>(); in createUserRecords()
170 UserRecord record = new UserRecord(userInfo, in createUserRecords()
171 isForeground ? UserRecord.FOREGROUND_USER : UserRecord.BACKGROUND_USER); in createUserRecords()
186 private UserRecord createForegroundUserRecord() { in createForegroundUserRecord()
187 return new UserRecord(mUserManager.getUserInfo(getCurrentUserId()), in createForegroundUserRecord()
188 UserRecord.FOREGROUND_USER); in createForegroundUserRecord()
194 private UserRecord createStartGuestUserRecord() { in createStartGuestUserRecord()
195 return new UserRecord(null /* userInfo */, UserRecord.START_GUEST); in createStartGuestUserRecord()
[all …]
DFullscreenUserSwitcherViewMediator.java73 private void onUserSelected(UserGridRecyclerView.UserRecord record) { in onUserSelected()
74 if (record.mType != UserGridRecyclerView.UserRecord.FOREGROUND_USER) { in onUserSelected()
78 if (record.mType != UserGridRecyclerView.UserRecord.START_GUEST) { in onUserSelected()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerRecyclerViewTest.java65 private UserRecord mDriver;
66 private UserRecord mFront;
67 private UserRecord mRear;
68 private List<UserRecord> mUserList = null;
70 class OnClickListenerCreator extends UserRecord.OnClickListenerCreatorBase {
87 mDriver = UserRecord.create(mDriverUserInfo, /* mName= */ mDriverUserInfo.name, in setUp()
94 mFront = UserRecord.create(mFrontUserInfo, /* mName= */ mFrontUserInfo.name, in setUp()
101 mRear = UserRecord.create(mRearUserInfo, /* mName= */ mRearUserInfo.name, in setUp()
110 void updateUsers_refreshView(UserPickerAdapter adapter, List<UserRecord> mUserList) { in updateUsers_refreshView()
151 UserRecord mGuest = UserRecord.create(/* mInfo= */ null, /* mName= */ mGuestLabel, in checkUserList_changeUserState_frontUserLoggedIn()
[all …]
DUserPickerControllerTest.java85 private List<UserRecord> mUserRecords = null;
152 UserRecord getUserRecord(String name) { in getUserRecord()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserRecord.java32 final class UserRecord { class
33 private static final String TAG = UserRecord.class.getSimpleName();
50 private UserRecord(UserInfo info, String name, boolean isStartGuestSession, boolean isAddUser, in UserRecord() method in UserRecord
65 static UserRecord create(UserInfo info, String name, boolean isStartGuestSession, in create()
72 static UserRecord create(UserInfo info, String name, boolean isStartGuestSession, in create()
76 UserRecord userRecord = new UserRecord(info, name, isStartGuestSession, isAddUser, in create()
84 protected UserRecord mUserRecord;
86 void setUserRecord(UserRecord userRecord) { in setUserRecord()
DUserPickerController.java51 import com.android.systemui.car.userpicker.UserRecord.OnClickListenerCreatorBase;
146 UserRecord userRecord = UserRecord.create(newUserInfo, newUserInfo.name,
256 OnClickListener getOnClickListener(UserRecord userRecord) { in getOnClickListener()
302 List<UserRecord> createUserRecords() {
307 List<UserRecord> userRecords = new ArrayList<>(userInfos.size());
312 userRecords.add(UserRecord.create(foregroundUser, /* name= */ foregroundUser.name,
331 UserRecord record = UserRecord.create(userInfo, /* name= */ userInfo.name,
364 private UserRecord createStartGuestUserRecord() {
367 return UserRecord.create(/* info= */ null, /* name= */ mDefaultGuestName,
380 private UserRecord createAddUserRecord() {
[all …]
DUserPickerAdapter.java49 private List<UserRecord> mUsers;
70 void updateUsers(List<UserRecord> users) { in updateUsers()
74 private void setUserLoggedInInfo(UserPickerAdapterViewHolder holder, UserRecord userRecord) { in setUserLoggedInInfo()
122 UserRecord userRecord = mUsers.get(position); in onBindViewHolder()
165 UserRecord userRecord = mUsers.get(i); in dump()
DUserPickerActivity.java132 public void onUpdateUsers(List<UserRecord> users) {
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecService.java382 static final class UserRecord { class in IpSecService
471 private final SparseArray<UserRecord> mUserRecords = new SparseArray<>();
474 public UserRecord getUserRecord(int uid) { in getUserRecord()
477 UserRecord r = mUserRecords.get(uid); in getUserRecord()
479 r = new UserRecord(); in getUserRecord()
530 protected UserRecord getUserRecord() { in getUserRecord()
1175 UserRecord userRecord = mUserResourceTracker.getUserRecord(callingUid); in allocateSecurityParameterIndex()
1215 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in releaseSecurityParameterIndex()
1304 UserRecord userRecord = mUserResourceTracker.getUserRecord(callingUid); in openUdpEncapsulationSocket()
1363 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in closeUdpEncapsulationSocket()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceParameterizedTest.java300 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseSecurityParameterIndex()
319 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testSecurityParameterIndexBinderDeath()
549 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testReleaseOwnedSpi()
586 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testDeleteTransform()
622 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testTransportModeTransformBinderDeath()
764 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testCreateTunnelInterface()
787 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testDeleteTunnelInterface()
826 final IpSecService.UserRecord userRecord = in testSetNetworkForTunnelInterface()
871 final IpSecService.UserRecord userRecord = in testSetNetworkForTunnelInterfaceFailsWhenSettingTunnelNetwork()
894 IpSecService.UserRecord userRecord = mIpSecService.mUserResourceTracker.getUserRecord(mUid); in testTunnelInterfaceBinderDeath()
DIpSecServiceTest.java187 IpSecService.UserRecord userRecord = in testOpenAndCloseUdpEncapsulationSocket()
203 IpSecService.UserRecord userRecord = in testUdpEncapsulationSocketBinderDeath()