Loading core/java/com/android/internal/inputmethod/InputMethodUtils.java +1 −0 Original line number Diff line number Diff line Loading @@ -545,6 +545,7 @@ public class InputMethodUtils { public boolean isCurrentProfile(int userId) { synchronized (this) { if (userId == mCurrentUserId) return true; for (int i = 0; i < mCurrentProfileIds.length; i++) { if (userId == mCurrentProfileIds[i]) return true; } Loading services/core/java/com/android/server/am/ActivityManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1019,7 +1019,7 @@ public final class ActivityManagerService extends ActivityManagerNative final ActivityThread mSystemThread; int mCurrentUserId = 0; int[] mCurrentProfileIds = new int[0]; // Accessed by ActivityStack int[] mCurrentProfileIds = new int[] {UserHandle.USER_OWNER}; // Accessed by ActivityStack private UserManagerService mUserManager; private final class AppDeathRecipient implements IBinder.DeathRecipient { Loading services/core/java/com/android/server/am/ActivityStack.java +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ final class ActivityStack { * Checks whether the userid is a profile of the current user. */ private boolean isCurrentProfileLocked(int userId) { if (userId == mCurrentUser) return true; for (int i = 0; i < mService.mCurrentProfileIds.length; i++) { if (mService.mCurrentProfileIds[i] == userId) return true; } Loading services/core/java/com/android/server/wm/WindowManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ import android.os.StrictMode; import android.os.SystemClock; import android.os.SystemProperties; import android.os.Trace; import android.os.UserHandle; import android.os.WorkSource; import android.provider.Settings; import android.util.DisplayMetrics; Loading Loading @@ -311,7 +312,7 @@ public class WindowManagerService extends IWindowManager.Stub * Users that are profiles of the current user. These are also allowed to show windows * on the current user. */ int[] mCurrentProfileIds = new int[0]; int[] mCurrentProfileIds = new int[] {UserHandle.USER_OWNER}; final Context mContext; Loading Loading @@ -5257,6 +5258,7 @@ public class WindowManagerService extends IWindowManager.Stub /* Called by WindowState */ boolean isCurrentProfileLocked(int userId) { if (userId == mCurrentUserId) return true; for (int i = 0; i < mCurrentProfileIds.length; i++) { if (mCurrentProfileIds[i] == userId) return true; } Loading Loading
core/java/com/android/internal/inputmethod/InputMethodUtils.java +1 −0 Original line number Diff line number Diff line Loading @@ -545,6 +545,7 @@ public class InputMethodUtils { public boolean isCurrentProfile(int userId) { synchronized (this) { if (userId == mCurrentUserId) return true; for (int i = 0; i < mCurrentProfileIds.length; i++) { if (userId == mCurrentProfileIds[i]) return true; } Loading
services/core/java/com/android/server/am/ActivityManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1019,7 +1019,7 @@ public final class ActivityManagerService extends ActivityManagerNative final ActivityThread mSystemThread; int mCurrentUserId = 0; int[] mCurrentProfileIds = new int[0]; // Accessed by ActivityStack int[] mCurrentProfileIds = new int[] {UserHandle.USER_OWNER}; // Accessed by ActivityStack private UserManagerService mUserManager; private final class AppDeathRecipient implements IBinder.DeathRecipient { Loading
services/core/java/com/android/server/am/ActivityStack.java +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ final class ActivityStack { * Checks whether the userid is a profile of the current user. */ private boolean isCurrentProfileLocked(int userId) { if (userId == mCurrentUser) return true; for (int i = 0; i < mService.mCurrentProfileIds.length; i++) { if (mService.mCurrentProfileIds[i] == userId) return true; } Loading
services/core/java/com/android/server/wm/WindowManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ import android.os.StrictMode; import android.os.SystemClock; import android.os.SystemProperties; import android.os.Trace; import android.os.UserHandle; import android.os.WorkSource; import android.provider.Settings; import android.util.DisplayMetrics; Loading Loading @@ -311,7 +312,7 @@ public class WindowManagerService extends IWindowManager.Stub * Users that are profiles of the current user. These are also allowed to show windows * on the current user. */ int[] mCurrentProfileIds = new int[0]; int[] mCurrentProfileIds = new int[] {UserHandle.USER_OWNER}; final Context mContext; Loading Loading @@ -5257,6 +5258,7 @@ public class WindowManagerService extends IWindowManager.Stub /* Called by WindowState */ boolean isCurrentProfileLocked(int userId) { if (userId == mCurrentUserId) return true; for (int i = 0; i < mCurrentProfileIds.length; i++) { if (mCurrentProfileIds[i] == userId) return true; } Loading