Loading core/java/android/provider/CallLog.java +1 −1 Original line number Diff line number Diff line Loading @@ -1742,7 +1742,7 @@ public class CallLog { Uri result = null; final UserManager userManager = context.getSystemService(UserManager.class); final int currentUserId = userManager.getUserHandle(); final int currentUserId = userManager.getProcessUserId(); if (params.mAddForAllUsers) { if (userManager.isUserUnlocked(UserHandle.SYSTEM)) { Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −1 Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb ShellExecutor mainExecutor ) { // Ensure that we are the primary user's SystemUI. final int processUser = UserManager.get(context).getUserHandle(); final int processUser = UserManager.get(context).getProcessUserId(); if (processUser != UserHandle.USER_SYSTEM) { throw new IllegalStateException("Non-primary Pip component not currently supported."); } Loading packages/SettingsLib/src/com/android/settingslib/enterprise/ActionDisabledLearnMoreButtonLauncher.java +1 −1 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public abstract class ActionDisabledLearnMoreButtonLauncher { protected boolean isSameProfileGroup(Context context, int enforcementAdminUserId) { UserManager um = context.getSystemService(UserManager.class); return um.isSameProfileGroup(enforcementAdminUserId, um.getUserHandle()); return um.isSameProfileGroup(enforcementAdminUserId, um.getProcessUserId()); } private boolean isEnforcedByDeviceOwnerOnSystemUserMode( Loading packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/ActionDisabledLearnMoreButtonLauncherTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public final class ActionDisabledLearnMoreButtonLauncherTest { @Before public void setUp() { when(mContext.getUserId()).thenReturn(CONTEXT_USER_ID); when(mUserManager.getUserHandle()).thenReturn(CONTEXT_USER_ID); when(mUserManager.getProcessUserId()).thenReturn(CONTEXT_USER_ID); when(mContext.getSystemService(DevicePolicyManager.class)).thenReturn(mDevicePolicyManager); when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager); } Loading services/tests/wmtests/src/com/android/server/wm/TaskSnapshotPersisterTestBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ class TaskSnapshotPersisterTestBase extends WindowTestsBase { @Before public void setUp() { final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); mTestUserId = um.getUserHandle(); mTestUserId = um.getProcessUserId(); final UserManagerInternal userManagerInternal = LocalServices.getService(UserManagerInternal.class); Loading Loading
core/java/android/provider/CallLog.java +1 −1 Original line number Diff line number Diff line Loading @@ -1742,7 +1742,7 @@ public class CallLog { Uri result = null; final UserManager userManager = context.getSystemService(UserManager.class); final int currentUserId = userManager.getUserHandle(); final int currentUserId = userManager.getProcessUserId(); if (params.mAddForAllUsers) { if (userManager.isUserUnlocked(UserHandle.SYSTEM)) { Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −1 Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb ShellExecutor mainExecutor ) { // Ensure that we are the primary user's SystemUI. final int processUser = UserManager.get(context).getUserHandle(); final int processUser = UserManager.get(context).getProcessUserId(); if (processUser != UserHandle.USER_SYSTEM) { throw new IllegalStateException("Non-primary Pip component not currently supported."); } Loading
packages/SettingsLib/src/com/android/settingslib/enterprise/ActionDisabledLearnMoreButtonLauncher.java +1 −1 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public abstract class ActionDisabledLearnMoreButtonLauncher { protected boolean isSameProfileGroup(Context context, int enforcementAdminUserId) { UserManager um = context.getSystemService(UserManager.class); return um.isSameProfileGroup(enforcementAdminUserId, um.getUserHandle()); return um.isSameProfileGroup(enforcementAdminUserId, um.getProcessUserId()); } private boolean isEnforcedByDeviceOwnerOnSystemUserMode( Loading
packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/ActionDisabledLearnMoreButtonLauncherTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public final class ActionDisabledLearnMoreButtonLauncherTest { @Before public void setUp() { when(mContext.getUserId()).thenReturn(CONTEXT_USER_ID); when(mUserManager.getUserHandle()).thenReturn(CONTEXT_USER_ID); when(mUserManager.getProcessUserId()).thenReturn(CONTEXT_USER_ID); when(mContext.getSystemService(DevicePolicyManager.class)).thenReturn(mDevicePolicyManager); when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager); } Loading
services/tests/wmtests/src/com/android/server/wm/TaskSnapshotPersisterTestBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ class TaskSnapshotPersisterTestBase extends WindowTestsBase { @Before public void setUp() { final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); mTestUserId = um.getUserHandle(); mTestUserId = um.getProcessUserId(); final UserManagerInternal userManagerInternal = LocalServices.getService(UserManagerInternal.class); Loading