Loading services/core/java/com/android/server/am/UserController.java +0 −15 Original line number Diff line number Diff line Loading @@ -2059,9 +2059,6 @@ class UserController implements Handler.Callback { mTargetUserId = targetUserId; userSwitchUiEnabled = mUserSwitchUiEnabled; } if (android.multiuser.Flags.useAllCpusDuringUserSwitch()) { mInjector.setHasTopUi(true); } if (userSwitchUiEnabled) { UserInfo currentUserInfo = getUserInfo(currentUserId); Pair<UserInfo, UserInfo> userNames = new Pair<>(currentUserInfo, targetUserInfo); Loading Loading @@ -2130,9 +2127,6 @@ class UserController implements Handler.Callback { } private void endUserSwitch() { if (android.multiuser.Flags.useAllCpusDuringUserSwitch()) { mInjector.setHasTopUi(false); } final int nextUserId; synchronized (mLock) { nextUserId = ObjectUtils.getOrElse(mPendingTargetUserIds.poll(), UserHandle.USER_NULL); Loading Loading @@ -3816,15 +3810,6 @@ class UserController implements Handler.Callback { getSystemServiceManager().onUserStarting(TimingsTraceAndSlog.newAsyncLog(), userId); } void setHasTopUi(boolean hasTopUi) { try { Slogf.i(TAG, "Setting hasTopUi to " + hasTopUi); mService.setHasTopUi(hasTopUi); } catch (RemoteException e) { Slogf.e(TAG, "Failed to allow using all CPU cores", e); } } void onSystemUserVisibilityChanged(boolean visible) { getUserManagerInternal().onSystemUserVisibilityChanged(visible); } Loading Loading
services/core/java/com/android/server/am/UserController.java +0 −15 Original line number Diff line number Diff line Loading @@ -2059,9 +2059,6 @@ class UserController implements Handler.Callback { mTargetUserId = targetUserId; userSwitchUiEnabled = mUserSwitchUiEnabled; } if (android.multiuser.Flags.useAllCpusDuringUserSwitch()) { mInjector.setHasTopUi(true); } if (userSwitchUiEnabled) { UserInfo currentUserInfo = getUserInfo(currentUserId); Pair<UserInfo, UserInfo> userNames = new Pair<>(currentUserInfo, targetUserInfo); Loading Loading @@ -2130,9 +2127,6 @@ class UserController implements Handler.Callback { } private void endUserSwitch() { if (android.multiuser.Flags.useAllCpusDuringUserSwitch()) { mInjector.setHasTopUi(false); } final int nextUserId; synchronized (mLock) { nextUserId = ObjectUtils.getOrElse(mPendingTargetUserIds.poll(), UserHandle.USER_NULL); Loading Loading @@ -3816,15 +3810,6 @@ class UserController implements Handler.Callback { getSystemServiceManager().onUserStarting(TimingsTraceAndSlog.newAsyncLog(), userId); } void setHasTopUi(boolean hasTopUi) { try { Slogf.i(TAG, "Setting hasTopUi to " + hasTopUi); mService.setHasTopUi(hasTopUi); } catch (RemoteException e) { Slogf.e(TAG, "Failed to allow using all CPU cores", e); } } void onSystemUserVisibilityChanged(boolean visible) { getUserManagerInternal().onSystemUserVisibilityChanged(visible); } Loading