Home
last modified time | relevance | path

Searched refs:newUserId (Results 1 – 25 of 83) sorted by relevance

1234

/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
H A DUserSwitchTransitionViewController.java106 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 DCarUserManagerTest.java107 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 DCarUserManagerLifeCycleTest.java91 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 DCurrentUserTracker.java59 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 DCurrentUserObservable.java48 public void onUserSwitched(int newUserId) { in CurrentUserObservable()
49 mCurrentUser.setValue(newUserId); in CurrentUserObservable()
/aosp12/frameworks/base/core/java/android/app/
H A DIUserSwitchObserver.aidl23 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 DSynchronousUserSwitchObserver.java34 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 DUserSwitchObserver.java33 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 DOverlayManagerServiceImpl.java153 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 DUserControllerTest.java288 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 DCarOccupantZoneServiceTest.java430 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 DUserSwitchListenerService.java106 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 DOneHandedController.java418 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 DOneHandedSettingsUtil.java83 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 DCurrentUserTrackerTest.java48 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 DUserAwareBiometricSchedulerTest.java94 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 DUserController.java1867 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 DEventLogTags.logtags107 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 DNightDisplayTile.java126 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
135 mListener = mNightDisplayListenerBuilder.setUser(newUserId).build(); in handleUserSwitch()
140 super.handleUserSwitch(newUserId); in handleUserSwitch()
H A DBatterySaverTile.java105 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
106 mSetting.setUserId(newUserId); in handleUserSwitch()
H A DColorInversionTile.java105 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 DBatteryMeterViewController.java114 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 DControlsProviderSelectorActivity.kt65 override fun onUserSwitched(newUserId: Int) {
66 if (newUserId != startingUser) {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarNotificationPresenter.java322 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 DNotificationPresenter.java45 void onUserSwitched(int newUserId); in onUserSwitched() argument

1234