/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerUserVisibilityEventTest.java | 73 int newUserId = createUser().id; in testUserVisibilityEvents() local 77 .forUser(newUserId) in testUserVisibilityEvents() 91 startUserInBackgroundOnSecondaryDisplay(newUserId, displayId); in testUserVisibilityEvents() 97 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, newUserId), in testUserVisibilityEvents() 98 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, newUserId), in testUserVisibilityEvents() 99 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, newUserId), in testUserVisibilityEvents() 100 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, newUserId)); in testUserVisibilityEvents() 107 .forUser(newUserId) in testUserVisibilityEvents() 118 forceStopUser(newUserId); in testUserVisibilityEvents() 122 forceStopUser(newUserId); in testUserVisibilityEvents() [all …]
|
D | CarUserManagerTest.java | 127 int newUserId = createUser("Test").id; in testLifecycleMultipleListeners() local 136 .forUser(newUserId) in testLifecycleMultipleListeners() 142 .forUser(newUserId) in testLifecycleMultipleListeners() 148 .forUser(newUserId) in testLifecycleMultipleListeners() 155 .addUser(UserHandle.of(newUserId)).build(); in testLifecycleMultipleListeners() 170 Log.d(TAG, "Starting user " + newUserId); in testLifecycleMultipleListeners() 171 am.startUserInBackground(newUserId); in testLifecycleMultipleListeners() 179 assertStartUserEvent(events1, newUserId); in testLifecycleMultipleListeners() 180 assertStartUserEvent(events3, newUserId); in testLifecycleMultipleListeners() 331 int newUserId = createUser().id; in testPersistentUserResumeToUser() local [all …]
|
D | CarUserManagerLifeCycleTest.java | 71 int newUserId = createUser().id; in testLifecycleListener() local 75 .forUser(newUserId) in testLifecycleListener() 93 switchUser(newUserId); in testLifecycleListener() 106 .that(event.getUserId()).isEqualTo(newUserId); in testLifecycleListener() 108 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener() 122 .forUser(newUserId) in testLifecycleListener() 136 forceStopUser(newUserId); in testLifecycleListener() 145 .that(event.getUserId()).isEqualTo(newUserId); in testLifecycleListener() 147 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener()
|
D | CarUserManagerLifecycleEventFilterTest.java | 154 int newUserId = createUser().id; in testUserLifecycleEventFilter() local 157 switchUser(newUserId); in testUserLifecycleEventFilter() 187 UserLifecycleEvent[] events = buildExpectedEvents(initialUserId, newUserId); in testUserLifecycleEventFilter() 203 private UserLifecycleEvent[] buildExpectedEvents(int initialUserId, int newUserId) { in buildExpectedEvents() argument 205 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_CREATED, newUserId), in buildExpectedEvents() 206 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, newUserId), in buildExpectedEvents() 208 /* from= */initialUserId, /* to= */newUserId), in buildExpectedEvents() 210 /* from= */newUserId, /* to= */initialUserId)}; in buildExpectedEvents()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserSwitchTransitionViewController.java | 135 void handleShow(@UserIdInt int newUserId) { in handleShow() argument 137 if (mPreviousUserId == newUserId || mTransitionViewShowing) return; in handleShow() 148 mNewUserId = newUserId; in handleShow() 155 if (refactorGetCurrentUser() && mKeyguardManager.isDeviceSecure(newUserId)) { in handleShow() 164 void handleSwitching(int newUserId) { in handleSwitching() argument 168 if (!mKeyguardManager.isDeviceSecure(newUserId)) { in handleSwitching() 210 private void populateDialog(@UserIdInt int previousUserId, @UserIdInt int newUserId) { in populateDialog() argument 211 drawUserIcon(newUserId); in populateDialog() 212 populateLoadingText(previousUserId, newUserId); in populateDialog() 215 private void drawUserIcon(int newUserId) { in drawUserIcon() argument [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/ |
D | CarUserTrackerImpl.java | 53 public void handleBeforeUserSwitching(int newUserId) { in handleBeforeUserSwitching() argument 59 super.handleBeforeUserSwitching(newUserId); in handleBeforeUserSwitching() 63 public void handleUserSwitching(int newUserId) { in handleUserSwitching() argument 69 super.handleUserSwitching(newUserId); in handleUserSwitching() 73 public void handleUserSwitchComplete(int newUserId) { in handleUserSwitchComplete() argument 79 super.handleUserSwitchComplete(newUserId); in handleUserSwitchComplete()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | AvailableVirtualKeyboardFragment.java | 76 final int newUserId; in onAttach() local 82 newUserId = userManager.isManagedProfile() in onAttach() 84 newUserAwareContext = context.createContextAsUser(UserHandle.of(newUserId), 0); in onAttach() 90 newUserId = userManager.isPrivateProfile() in onAttach() 94 newUserAwareContext = context.createContextAsUser(UserHandle.of(newUserId), 0); in onAttach() 102 newUserId = userProfileParent.getIdentifier(); in onAttach() 105 newUserId = currentUserId; in onAttach() 111 newUserId = currentUserId; in onAttach() 114 mUserId = newUserId; in onAttach()
|
D | NewKeyboardLayoutEnabledLocalesFragment.java | 70 final int newUserId; in onAttach() local 77 newUserId = userManager.isManagedProfile() in onAttach() 84 newUserId = userManager.isPrivateProfile() in onAttach() 92 newUserId = primaryUser.getIdentifier(); in onAttach() 96 newUserId = currentUserId; in onAttach() 99 mUserId = newUserId; in onAttach()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarOccupantZoneServiceTest.java | 502 int newUserId = 200; in testAssignProfileFollowedByUserSwitch() local 503 resetVisibleUser(newUserId); in testAssignProfileFollowedByUserSwitch() 504 when(mService.getCurrentUser()).thenReturn(newUserId); in testAssignProfileFollowedByUserSwitch() 506 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testAssignProfileFollowedByUserSwitch() 573 int newUserId = 200; in testKeepVisibleUserAfterUserSwitch() local 574 resetVisibleUser(newUserId); in testKeepVisibleUserAfterUserSwitch() 576 when(mService.getCurrentUser()).thenReturn(newUserId); in testKeepVisibleUserAfterUserSwitch() 578 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testKeepVisibleUserAfterUserSwitch() 583 assertUserForThreeZones(newUserId, VISIBLE_USER, CarOccupantZoneManager.INVALID_USER_ID); in testKeepVisibleUserAfterUserSwitch() 894 final int newUserId = 200; in testActiveUserAfterUserSwitching() local [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | UserSwitchListenerService.java | 47 public void onUserSwitchComplete(int newUserId) { 49 Log.d(TAG, "user has been foregrounded: " + newUserId); 51 setBootUser(UserSwitchListenerService.this, newUserId);
|
/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceService.java | 462 int newUserId = in handleUserChange() local 465 occupantZone, oldUserId, newUserId); in handleUserChange() 467 boolean hasNewUser = isNonSystemUser(newUserId); in handleUserChange() 474 if (oldUserId == newUserId) { in handleUserChange() 477 handleSameUserUpdateLocked(newUserId, occupantZone); in handleUserChange() 487 handleUserAssignedLocked(newUserId, occupantZone); in handleUserChange() 491 handleUserSwitchedLocked(oldUserId, newUserId, occupantZone); in handleUserChange() 664 private void handleUserSwitchedLocked(int oldUserId, int newUserId, in handleUserSwitchedLocked() argument 666 Slogf.v(TAG, "User %d was switched to %d in %s", oldUserId, newUserId, occupantZone); in handleUserSwitchedLocked() 670 initAssignedUserLocked(newUserId, occupantZone); in handleUserSwitchedLocked() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 147 private void switchUser(int newUserId) { in switchUser() argument 148 mCurrentUserId = newUserId; in switchUser() 149 mConfigs.setNewUser(newUserId); in switchUser()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | ProfileSwitcherTest.java | 404 int newUserId = 1002; in onUserPressed_secondaryUser_stopsAndStartsNewUser() local 411 UserInfo user3 = generateUser(newUserId, "User3"); in onUserPressed_secondaryUser_stopsAndStartsNewUser() 439 .isEqualTo(newUserId); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | DatabaseHelper.java | 438 final int newUserId = Integer.parseInt(split[18]); in onConfigure() 465 .setUserId(newUserId) in onConfigure()
|