Loading services/core/java/com/android/server/wm/ActivityTaskManagerService.java +3 −12 Original line number Diff line number Diff line Loading @@ -1137,23 +1137,14 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { * Return the global configuration used by the process corresponding to the input pid. This is * usually the global configuration with some overrides specific to that process. */ Configuration getGlobalConfigurationForCallingPid() { private Configuration getGlobalConfigurationForCallingPid() { final int pid = Binder.getCallingPid(); return getGlobalConfigurationForPid(pid); } /** * Return the global configuration used by the process corresponding to the given pid. */ Configuration getGlobalConfigurationForPid(int pid) { if (pid == MY_PID || pid < 0) { return getGlobalConfiguration(); } synchronized (mGlobalLock) { final WindowProcessController app = mProcessMap.getProcess(pid); return app != null ? app.getConfiguration() : getGlobalConfiguration(); } } /** * Return the device configuration info used by the process corresponding to the input pid. Loading services/core/java/com/android/server/wm/WindowState.java +3 −4 Original line number Diff line number Diff line Loading @@ -2838,10 +2838,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP // For child windows we want to use the pid for the parent window in case the the child // window was added from another process. final WindowState parentWindow = getParentWindow(); final int pid = parentWindow != null ? parentWindow.mSession.mPid : mSession.mPid; final Configuration processConfig = mWmService.mAtmService.getGlobalConfigurationForPid(pid); return processConfig; final Session session = parentWindow != null ? parentWindow.mSession : mSession; return session.mPid == MY_PID ? mWmService.mRoot.getConfiguration() : session.mProcess.getConfiguration(); } private Configuration getLastReportedConfiguration() { Loading Loading
services/core/java/com/android/server/wm/ActivityTaskManagerService.java +3 −12 Original line number Diff line number Diff line Loading @@ -1137,23 +1137,14 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { * Return the global configuration used by the process corresponding to the input pid. This is * usually the global configuration with some overrides specific to that process. */ Configuration getGlobalConfigurationForCallingPid() { private Configuration getGlobalConfigurationForCallingPid() { final int pid = Binder.getCallingPid(); return getGlobalConfigurationForPid(pid); } /** * Return the global configuration used by the process corresponding to the given pid. */ Configuration getGlobalConfigurationForPid(int pid) { if (pid == MY_PID || pid < 0) { return getGlobalConfiguration(); } synchronized (mGlobalLock) { final WindowProcessController app = mProcessMap.getProcess(pid); return app != null ? app.getConfiguration() : getGlobalConfiguration(); } } /** * Return the device configuration info used by the process corresponding to the input pid. Loading
services/core/java/com/android/server/wm/WindowState.java +3 −4 Original line number Diff line number Diff line Loading @@ -2838,10 +2838,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP // For child windows we want to use the pid for the parent window in case the the child // window was added from another process. final WindowState parentWindow = getParentWindow(); final int pid = parentWindow != null ? parentWindow.mSession.mPid : mSession.mPid; final Configuration processConfig = mWmService.mAtmService.getGlobalConfigurationForPid(pid); return processConfig; final Session session = parentWindow != null ? parentWindow.mSession : mSession; return session.mPid == MY_PID ? mWmService.mRoot.getConfiguration() : session.mProcess.getConfiguration(); } private Configuration getLastReportedConfiguration() { Loading