Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
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
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
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
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java57 public abstract void onUserSwitched(int newUserId); in onUserSwitched() argument
114 private void notifyUserSwitched(int newUserId) { in notifyUserSwitched() argument
115 if (mCurrentUserId != newUserId) { in notifyUserSwitched()
116 mCurrentUserId = newUserId; in notifyUserSwitched()
121 consumer.accept(newUserId); in notifyUserSwitched()
DCurrentUserObservable.java48 public void onUserSwitched(int newUserId) { in CurrentUserObservable()
49 mCurrentUser.setValue(newUserId); in CurrentUserObservable()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java273 int newUserId = reportMsg.arg2; in testDispatchUserSwitch() local
276 mUserController.dispatchUserSwitch(userState, oldUserId, newUserId); in testDispatchUserSwitch()
303 int newUserId = reportMsg.arg2; in testDispatchUserSwitchBadReceiver() local
306 mUserController.dispatchUserSwitch(userState, oldUserId, newUserId); in testDispatchUserSwitchBadReceiver()
321 int newUserId = reportMsg.arg2; in testContinueUserSwitch() local
324 mUserController.continueUserSwitch(userState, oldUserId, newUserId); in testContinueUserSwitch()
338 int newUserId = reportMsg.arg2; in testContinueUserSwitchUIDisabled() local
341 mUserController.continueUserSwitch(userState, oldUserId, newUserId); in testContinueUserSwitchUIDisabled()
370 int newUserId = reportMsg.arg2; in testDispatchUserSwitchComplete() local
376 mUserController.dispatchUserSwitchComplete(newUserId); in testDispatchUserSwitchComplete()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java128 ArrayList<String> updateOverlaysForUser(final int newUserId) { in updateOverlaysForUser() argument
130 Slog.d(TAG, "updateOverlaysForUser newUserId=" + newUserId); in updateOverlaysForUser()
134 final ArrayMap<String, List<OverlayInfo>> tmp = mSettings.getOverlaysForUser(newUserId); in updateOverlaysForUser()
148 List<PackageInfo> overlayPackages = mPackageManager.getOverlayPackages(newUserId); in updateOverlaysForUser()
161 mSettings.init(overlayPackage.packageName, newUserId, in updateOverlaysForUser()
191 newUserId, 0); in updateOverlaysForUser()
194 mSettings.remove(overlayPackage.packageName, newUserId); in updateOverlaysForUser()
203 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser()
211 mSettings.getOverlaysForUser(newUserId); in updateOverlaysForUser()
227 final OverlayInfo oi = mSettings.getOverlayInfo(defaultOverlay, newUserId); in updateOverlaysForUser()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DCurrentUserTrackerTest.java42 public void onUserSwitched(int newUserId) { in setUp()
53 public void onUserSwitched(int newUserId) { in testBroadCastDoesntCrashOnConcurrentModification()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java1453 private void timeoutUserSwitch(UserState uss, int oldUserId, int newUserId) {
1455 Slog.e(TAG, "User switch timeout: from " + oldUserId + " to " + newUserId);
1458 sendContinueUserSwitchLU(uss, oldUserId, newUserId);
1461 oldUserId, newUserId), USER_SWITCH_CALLBACKS_TIMEOUT_MS);
1465 private void timeoutUserSwitchCallbacks(int oldUserId, int newUserId) {
1468 Slog.wtf(TAG, "User switch timeout: from " + oldUserId + " to " + newUserId
1475 void dispatchUserSwitch(final UserState uss, final int oldUserId, final int newUserId) {
1476 Slog.d(TAG, "Dispatch onUserSwitching oldUser #" + oldUserId + " newUser #" + newUserId);
1512 sendContinueUserSwitchLU(uss, oldUserId, newUserId);
1517 mUserSwitchObservers.getBroadcastItem(i).onUserSwitching(newUserId, callback);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java99 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
106 mListener = new NightDisplayListener(mContext, newUserId, new Handler(Looper.myLooper())); in handleUserSwitch()
111 super.handleUserSwitch(newUserId); in handleUserSwitch()
DColorInversionTile.java73 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
74 mSetting.setUserId(newUserId); in handleUserSwitch()
DIntentTile.java86 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
87 super.handleUserSwitch(newUserId); in handleUserSwitch()
88 mCurrentUserId = newUserId; in handleUserSwitch()
DCastTile.java106 protected void handleUserSwitch(int newUserId) { in handleUserSwitch() argument
107 super.handleUserSwitch(newUserId); in handleUserSwitch()
108 mController.setCurrentUserId(newUserId); in handleUserSwitch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceProvisionedControllerImpl.java122 public void onUserSwitched(int newUserId) { in onUserSwitched() argument
127 mSettingsObserver, newUserId); in onUserSwitched()
DAccessPointControllerImpl.java72 public void onUserSwitched(int newUserId) { in onUserSwitched() argument
73 mCurrentUser = newUserId; in onUserSwitched()
DSecurityController.java40 void onUserSwitched(int newUserId); in onUserSwitched() argument
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java369 public void onUserSwitchComplete(int newUserId) throws RemoteException { in registerUserSwitchObserver()
370 if (switchLatch != null && userId == newUserId) { in registerUserSwitchObserver()
376 public void onLockedBootComplete(int newUserId) { in registerUserSwitchObserver()
377 if (bootCompleteLatch != null && userId == newUserId) { in registerUserSwitchObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationPresenter.java45 void onUserSwitched(int newUserId); in onUserSwitched() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java96 private void switchUser(int newUserId) { in switchUser() argument
97 mCurrentUserId = newUserId; in switchUser()
98 mConfigs.setNewUser(newUserId); in switchUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DShadeController.java92 void setLockscreenUser(int newUserId); in setLockscreenUser() argument
DStatusBarNotificationPresenter.java377 public void onUserSwitched(int newUserId) { in onUserSwitched() argument
379 mHeadsUpManager.setUser(newUserId); in onUserSwitched()
381 if (MULTIUSER_DEBUG) mNotificationPanelDebugText.setText("USER " + newUserId); in onUserSwitched()
393 mShadeController.setLockscreenUser(newUserId); in onUserSwitched()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java98 public void onSwitchUser(int newUserId) { in onSwitchUser() argument
99 mUsbService.onSwitchUser(newUserId); in onSwitchUser()
182 private void onSwitchUser(@UserIdInt int newUserId) { in onSwitchUser() argument
184 mCurrentUserId = newUserId; in onSwitchUser()
190 mSettingsManager.getSettingsForProfileGroup(UserHandle.of(newUserId)); in onSwitchUser()
195 mDeviceManager.setCurrentUser(newUserId, settings); in onSwitchUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeSecurityController.java104 public void onUserSwitched(int newUserId) { in onUserSwitched() argument
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerInternal.java87 void setCurrentUser(int newUserId); in setCurrentUser() argument
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java851 private void updateOverlayStateLocked(String exemptedPackage, int newUserId, int oldUserId) { in updateOverlayStateLocked() argument
855 if (oldUserId != newUserId) { in updateOverlayStateLocked()
865 mVrModeEnabled, mOverlayToken, exemptions, newUserId); in updateOverlayStateLocked()
868 private void updateDependentAppOpsLocked(String newVrServicePackage, int newUserId, in updateDependentAppOpsLocked() argument
877 updateOverlayStateLocked(newVrServicePackage, newUserId, oldUserId); in updateDependentAppOpsLocked()
973 final int newUserId = mCurrentVrModeUser; in updateCurrentVrServiceLocked() local
977 updateDependentAppOpsLocked(newVrServicePackage, newUserId, in updateCurrentVrServiceLocked()

123