/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
H A D | UserSwitchTransitionViewController.java | 106 void handleShow(@UserIdInt int newUserId) { in handleShow() argument 108 if (mPreviousUserId == newUserId || mShowing) return; in handleShow() 118 populateDialog(mPreviousUserId, newUserId); in handleShow() 120 mPreviousUserId = newUserId; in handleShow() 144 private void populateDialog(@UserIdInt int previousUserId, @UserIdInt int newUserId) { in populateDialog() argument 145 drawUserIcon(newUserId); in populateDialog() 146 populateLoadingText(previousUserId, newUserId); in populateDialog() 149 private void drawUserIcon(int newUserId) { in drawUserIcon() argument 150 Bitmap bitmap = mUserManager.getUserIcon(newUserId); in drawUserIcon() 158 private void populateLoadingText(@UserIdInt int previousUserId, @UserIdInt int newUserId) { in populateLoadingText() argument [all …]
|
/aosp12/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
H A D | CarUserManagerTest.java | 107 int newUserId = createUser("Test").id; in testLifecycleMultipleListeners() local 116 .forUser(newUserId) in testLifecycleMultipleListeners() 122 .forUser(newUserId) in testLifecycleMultipleListeners() 136 Log.d(TAG, "Starting user " + newUserId); in testLifecycleMultipleListeners() 137 am.startUserInBackground(newUserId); in testLifecycleMultipleListeners() 145 assertStartUserEvent(events1, newUserId); in testLifecycleMultipleListeners() 146 assertStartUserEvent(events2, newUserId); in testLifecycleMultipleListeners() 263 int newUserId = createUser().id; in testPersistentUserResumeToUser() local 266 .forUser(newUserId) in testPersistentUserResumeToUser() 271 switchUser(newUserId); in testPersistentUserResumeToUser() [all …]
|
H A D | CarUserManagerLifeCycleTest.java | 91 int newUserId = createUser().id; in testLifecycleListener() local 95 .forUser(newUserId) in testLifecycleListener() 113 switchUser(newUserId); in testLifecycleListener() 126 .that(event.getUserId()).isEqualTo(newUserId); in testLifecycleListener() 128 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener() 142 .forUser(newUserId) in testLifecycleListener() 156 forceStopUser(newUserId); in testLifecycleListener() 165 .that(event.getUserId()).isEqualTo(newUserId); in testLifecycleListener() 167 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | CurrentUserTracker.java | 59 public abstract void onUserSwitched(int newUserId); in onUserSwitched() argument 117 private void notifyUserSwitched(int newUserId) { in notifyUserSwitched() argument 118 if (mCurrentUserId != newUserId) { in notifyUserSwitched() 119 mCurrentUserId = newUserId; in notifyUserSwitched() 124 consumer.accept(newUserId); in notifyUserSwitched()
|
H A D | CurrentUserObservable.java | 48 public void onUserSwitched(int newUserId) { in CurrentUserObservable() 49 mCurrentUser.setValue(newUserId); in CurrentUserObservable()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | IUserSwitchObserver.aidl | 23 void onUserSwitching(int newUserId, IRemoteCallback reply); in onUserSwitching() argument 24 void onUserSwitchComplete(int newUserId); in onUserSwitchComplete() argument 26 void onLockedBootComplete(int newUserId); in onLockedBootComplete() argument
|
H A D | SynchronousUserSwitchObserver.java | 34 public final void onUserSwitching(int newUserId, IRemoteCallback reply) throws RemoteException { in onUserSwitching() argument 36 onUserSwitching(newUserId); in onUserSwitching() 47 public abstract void onUserSwitching(int newUserId) throws RemoteException; in onUserSwitching() argument
|
H A D | UserSwitchObserver.java | 33 public void onUserSwitching(int newUserId, IRemoteCallback reply) throws RemoteException { in onUserSwitching() argument 40 public void onUserSwitchComplete(int newUserId) throws RemoteException {} in onUserSwitchComplete() argument 46 public void onLockedBootComplete(int newUserId) throws RemoteException {} in onLockedBootComplete() argument
|
/aosp12/frameworks/base/services/core/java/com/android/server/om/ |
H A D | OverlayManagerServiceImpl.java | 153 ArraySet<PackageAndUser> updateOverlaysForUser(final int newUserId) { in updateOverlaysForUser() argument 155 Slog.d(TAG, "updateOverlaysForUser newUserId=" + newUserId); in updateOverlaysForUser() 161 newUserId); in updateOverlaysForUser() 178 + "' for user " + newUserId + "", e); in updateOverlaysForUser() 187 info, newUserId)); in updateOverlaysForUser() 190 + "' for user " + newUserId + "", e); in updateOverlaysForUser() 197 mSettings.getOverlaysForUser(newUserId); in updateOverlaysForUser() 222 + newUserId); in updateOverlaysForUser() 223 mSettings.setEnabled(overlay, newUserId, true); in updateOverlaysForUser() 224 if (updateState(oi, newUserId, 0)) { in updateOverlaysForUser() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | UserControllerTest.java | 288 int newUserId = reportMsg.arg2; in testDispatchUserSwitch() local 291 mUserController.dispatchUserSwitch(userState, oldUserId, newUserId); in testDispatchUserSwitch() 318 int newUserId = reportMsg.arg2; in testDispatchUserSwitchBadReceiver() local 336 int newUserId = reportMsg.arg2; in testContinueUserSwitch() local 355 int newUserId = reportMsg.arg2; in testContinueUserSwitchUIDisabled() local 387 int newUserId = reportMsg.arg2; in testDispatchUserSwitchComplete() local 393 mUserController.dispatchUserSwitchComplete(newUserId); in testDispatchUserSwitchComplete() 639 mUserController.startUser(newUserId, true); in addForegroundUserAndContinueUserSwitch() 645 assertEquals(newUserId, reportMsg.arg2); in addForegroundUserAndContinueUserSwitch() 646 mUserStates.put(newUserId, userState); in addForegroundUserAndContinueUserSwitch() [all …]
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | CarOccupantZoneServiceTest.java | 430 int newUserId = 200; in testAssignProfileFollowedByUserSwitch() local 431 doReturn(newUserId).when(mService).getCurrentUser(); in testAssignProfileFollowedByUserSwitch() 433 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testAssignProfileFollowedByUserSwitch() 436 assertDisplayAllowlist(newUserId, new int[]{mDisplay2.getDisplayId(), in testAssignProfileFollowedByUserSwitch() 643 final int newUserId = 200; in testActiveUserAfterUserSwitching() local 644 doReturn(newUserId).when(mService).getCurrentUser(); in testActiveUserAfterUserSwitching() 646 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testActiveUserAfterUserSwitching() 654 assertOccupantConfig(configs.get(1), newUserId, new Display[]{mDisplay2}, in testActiveUserAfterUserSwitching() 885 final int newUserId = 200; in testManagerGetUserForOccupantAfterUserSwitch() local 886 doReturn(newUserId).when(mService).getCurrentUser(); in testManagerGetUserForOccupantAfterUserSwitch() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
H A D | UserSwitchListenerService.java | 106 public void onUserSwitchComplete(int newUserId) throws RemoteException { in onCreate() 108 Log.d(TAG, "user has been foregrounded: " + newUserId); in onCreate() 110 setBootUser(UserSwitchListenerService.this, newUserId); in onCreate()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
H A D | OneHandedController.java | 418 private void registerSettingObservers(int newUserId) { in registerSettingObservers() argument 421 mContext.getContentResolver(), mActivatedObserver, newUserId); in registerSettingObservers() 423 mContext.getContentResolver(), mEnabledObserver, newUserId); in registerSettingObservers() 426 mContext.getContentResolver(), mSwipeToNotificationEnabledObserver, newUserId); in registerSettingObservers() 429 mContext.getContentResolver(), mShortcutEnabledObserver, newUserId); in registerSettingObservers() 432 mContext.getContentResolver(), mShortcutEnabledObserver, newUserId); in registerSettingObservers() 665 private void onUserSwitch(int newUserId) { 667 mUserId = newUserId; 668 registerSettingObservers(newUserId);
|
H A D | OneHandedSettingsUtil.java | 83 ContentObserver observer, int newUserId) { in registerSettingsKeyObserver() argument 87 resolver.registerContentObserver(uriKey, false, observer, newUserId); in registerSettingsKeyObserver()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
H A D | CurrentUserTrackerTest.java | 48 public void onUserSwitched(int newUserId) { in setUp() 59 public void onUserSwitched(int newUserId) { in testBroadCastDoesntCrashOnConcurrentModification()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
H A D | UserAwareBiometricSchedulerTest.java | 94 public StartUserClient<?, ?> getStartUserClient(int newUserId) { in setUp() 96 return new TestStartUserClient(mContext, Object::new, mToken, newUserId, in setUp() 218 public void onUserStarted(int newUserId, Object newObject) { in onUserStarted() argument 220 mCurrentUserId = newUserId; in onUserStarted()
|
/aosp12/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserController.java | 1867 sendContinueUserSwitchLU(uss, oldUserId, newUserId); 1874 private void timeoutUserSwitchCallbacks(int oldUserId, int newUserId) { 1933 sendContinueUserSwitchLU(uss, oldUserId, newUserId); 1944 oldUserId, newUserId, uss)); 1947 void continueUserSwitch(UserState uss, int oldUserId, int newUserId) { 1963 mInjector.startHomeActivity(newUserId, "moveUserToForeground"); 1967 EventLogTags.writeAmSwitchUser(newUserId); 1968 sendUserSwitchBroadcasts(oldUserId, newUserId); 1971 void sendUserSwitchBroadcasts(int oldUserId, int newUserId) { 1996 if (newUserId >= 0) { [all …]
|
H A D | EventLogTags.logtags | 107 30079 uc_dispatch_user_switch (oldUserId|1|5),(newUserId|1|5) 108 30080 uc_continue_user_switch (oldUserId|1|5),(newUserId|1|5) 113 30083 ssm_user_switching (oldUserId|1|5),(newUserId|1|5)
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | NightDisplayTile.java | 126 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument 135 mListener = mNightDisplayListenerBuilder.setUser(newUserId).build(); in handleUserSwitch() 140 super.handleUserSwitch(newUserId); in handleUserSwitch()
|
H A D | BatterySaverTile.java | 105 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument 106 mSetting.setUserId(newUserId); in handleUserSwitch()
|
H A D | ColorInversionTile.java | 105 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument 106 mSetting.setUserId(newUserId); in handleUserSwitch()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
H A D | BatteryMeterViewController.java | 114 public void onUserSwitched(int newUserId) { in BatteryMeterViewController() 116 registerShowBatteryPercentObserver(newUserId); in BatteryMeterViewController()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
H A D | ControlsProviderSelectorActivity.kt | 65 override fun onUserSwitched(newUserId: Int) { 66 if (newUserId != startingUser) {
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarNotificationPresenter.java | 322 public void onUserSwitched(int newUserId) { in onUserSwitched() argument 324 mHeadsUpManager.setUser(newUserId); in onUserSwitched() 326 if (MULTIUSER_DEBUG) mNotificationPanel.setHeaderDebugInfo("USER " + newUserId); in onUserSwitched() 338 mStatusBar.setLockscreenUser(newUserId); in onUserSwitched()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationPresenter.java | 45 void onUserSwitched(int newUserId); in onUserSwitched() argument
|