Loading services/core/java/com/android/server/am/ActivityManagerService.java +26 −10 Original line number Diff line number Diff line Loading @@ -1472,7 +1472,7 @@ public class ActivityManagerService extends IActivityManager.Stub * Flag that indicates if multi-window is enabled. * * For any particular form of multi-window to be enabled, generic multi-window must be enabled * in {@link com.android.internal.R.bool.config_supportsMultiWindow} config or * in {@link com.android.internal.R.bool#config_supportsMultiWindow} config or * {@link Settings.Global#DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES} development option set. * At least one of the forms of multi-window must be enabled in order for this flag to be * initialized to 'true'. Loading Loading @@ -13400,7 +13400,7 @@ public class ActivityManagerService extends IActivityManager.Stub /** * Schedule the given thread a normal scheduling priority. * * @param newTid the tid of the thread to adjust the scheduling of. * @param tid the tid of the thread to adjust the scheduling of. * @param suppressLogs {@code true} if any error logging should be disabled. * * @return {@code true} if this succeeded. Loading @@ -13413,6 +13413,10 @@ public class ActivityManagerService extends IActivityManager.Stub if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } } catch (SecurityException e) { if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } return false; } Loading @@ -13420,7 +13424,7 @@ public class ActivityManagerService extends IActivityManager.Stub /** * Schedule the given thread an FIFO scheduling priority. * * @param newTid the tid of the thread to adjust the scheduling of. * @param tid the tid of the thread to adjust the scheduling of. * @param suppressLogs {@code true} if any error logging should be disabled. * * @return {@code true} if this succeeded. Loading @@ -13433,6 +13437,10 @@ public class ActivityManagerService extends IActivityManager.Stub if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } } catch (SecurityException e) { if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } return false; } Loading Loading @@ -21990,6 +21998,7 @@ public class ActivityManagerService extends IActivityManager.Stub app.curSchedGroup != ProcessList.SCHED_GROUP_TOP_APP) { mVrController.onTopProcChangedLocked(app); if (mUseFifoUiScheduling) { try { // Reset UI pipeline to SCHED_OTHER setThreadScheduler(app.pid, SCHED_OTHER, 0); setThreadPriority(app.pid, app.savedPriority); Loading @@ -21998,6 +22007,13 @@ public class ActivityManagerService extends IActivityManager.Stub SCHED_OTHER, 0); setThreadPriority(app.renderThreadTid, -4); } } catch (IllegalArgumentException e) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } catch (SecurityException e) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } else { // Reset priority for top app UI and render threads setThreadPriority(app.pid, 0); Loading
services/core/java/com/android/server/am/ActivityManagerService.java +26 −10 Original line number Diff line number Diff line Loading @@ -1472,7 +1472,7 @@ public class ActivityManagerService extends IActivityManager.Stub * Flag that indicates if multi-window is enabled. * * For any particular form of multi-window to be enabled, generic multi-window must be enabled * in {@link com.android.internal.R.bool.config_supportsMultiWindow} config or * in {@link com.android.internal.R.bool#config_supportsMultiWindow} config or * {@link Settings.Global#DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES} development option set. * At least one of the forms of multi-window must be enabled in order for this flag to be * initialized to 'true'. Loading Loading @@ -13400,7 +13400,7 @@ public class ActivityManagerService extends IActivityManager.Stub /** * Schedule the given thread a normal scheduling priority. * * @param newTid the tid of the thread to adjust the scheduling of. * @param tid the tid of the thread to adjust the scheduling of. * @param suppressLogs {@code true} if any error logging should be disabled. * * @return {@code true} if this succeeded. Loading @@ -13413,6 +13413,10 @@ public class ActivityManagerService extends IActivityManager.Stub if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } } catch (SecurityException e) { if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } return false; } Loading @@ -13420,7 +13424,7 @@ public class ActivityManagerService extends IActivityManager.Stub /** * Schedule the given thread an FIFO scheduling priority. * * @param newTid the tid of the thread to adjust the scheduling of. * @param tid the tid of the thread to adjust the scheduling of. * @param suppressLogs {@code true} if any error logging should be disabled. * * @return {@code true} if this succeeded. Loading @@ -13433,6 +13437,10 @@ public class ActivityManagerService extends IActivityManager.Stub if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } } catch (SecurityException e) { if (!suppressLogs) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } return false; } Loading Loading @@ -21990,6 +21998,7 @@ public class ActivityManagerService extends IActivityManager.Stub app.curSchedGroup != ProcessList.SCHED_GROUP_TOP_APP) { mVrController.onTopProcChangedLocked(app); if (mUseFifoUiScheduling) { try { // Reset UI pipeline to SCHED_OTHER setThreadScheduler(app.pid, SCHED_OTHER, 0); setThreadPriority(app.pid, app.savedPriority); Loading @@ -21998,6 +22007,13 @@ public class ActivityManagerService extends IActivityManager.Stub SCHED_OTHER, 0); setThreadPriority(app.renderThreadTid, -4); } } catch (IllegalArgumentException e) { Slog.w(TAG, "Failed to set scheduling policy, thread does not exist:\n" + e); } catch (SecurityException e) { Slog.w(TAG, "Failed to set scheduling policy, not allowed:\n" + e); } } else { // Reset priority for top app UI and render threads setThreadPriority(app.pid, 0);