Loading services/core/java/com/android/server/display/DisplayDeviceRepository.java +3 −2 Original line number Diff line number Diff line Loading @@ -167,7 +167,8 @@ class DisplayDeviceRepository implements DisplayAdapter.Listener { return; } if (DEBUG) { Trace.beginSection("handleDisplayDeviceChanged"); Trace.traceBegin(Trace.TRACE_TAG_POWER, "handleDisplayDeviceChanged"); } int diff = device.mDebugLastLoggedDeviceInfo.diff(info); if (diff == DisplayDeviceInfo.DIFF_STATE) { Loading @@ -189,7 +190,7 @@ class DisplayDeviceRepository implements DisplayAdapter.Listener { device.applyPendingDisplayDeviceInfoChangesLocked(); sendEventLocked(device, DISPLAY_DEVICE_EVENT_CHANGED); if (DEBUG) { Trace.endSection(); Trace.traceEnd(Trace.TRACE_TAG_POWER); } } } Loading services/core/java/com/android/server/display/DisplayPowerController.java +3 −6 Original line number Diff line number Diff line Loading @@ -1172,13 +1172,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call } private void updatePowerState() { if (DEBUG) { Trace.beginSection("DisplayPowerController#updatePowerState"); } Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayPowerController#updatePowerState"); updatePowerStateInternal(); if (DEBUG) { Trace.endSection(); } Trace.traceEnd(Trace.TRACE_TAG_POWER); } private void updatePowerStateInternal() { Loading services/core/java/com/android/server/display/DisplayPowerController2.java +3 −6 Original line number Diff line number Diff line Loading @@ -1172,13 +1172,10 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal } private void updatePowerState() { if (DEBUG) { Trace.beginSection("DisplayPowerController#updatePowerState"); } Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayPowerController#updatePowerState"); updatePowerStateInternal(); if (DEBUG) { Trace.endSection(); } Trace.traceEnd(Trace.TRACE_TAG_POWER); } private void updatePowerStateInternal() { Loading Loading
services/core/java/com/android/server/display/DisplayDeviceRepository.java +3 −2 Original line number Diff line number Diff line Loading @@ -167,7 +167,8 @@ class DisplayDeviceRepository implements DisplayAdapter.Listener { return; } if (DEBUG) { Trace.beginSection("handleDisplayDeviceChanged"); Trace.traceBegin(Trace.TRACE_TAG_POWER, "handleDisplayDeviceChanged"); } int diff = device.mDebugLastLoggedDeviceInfo.diff(info); if (diff == DisplayDeviceInfo.DIFF_STATE) { Loading @@ -189,7 +190,7 @@ class DisplayDeviceRepository implements DisplayAdapter.Listener { device.applyPendingDisplayDeviceInfoChangesLocked(); sendEventLocked(device, DISPLAY_DEVICE_EVENT_CHANGED); if (DEBUG) { Trace.endSection(); Trace.traceEnd(Trace.TRACE_TAG_POWER); } } } Loading
services/core/java/com/android/server/display/DisplayPowerController.java +3 −6 Original line number Diff line number Diff line Loading @@ -1172,13 +1172,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call } private void updatePowerState() { if (DEBUG) { Trace.beginSection("DisplayPowerController#updatePowerState"); } Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayPowerController#updatePowerState"); updatePowerStateInternal(); if (DEBUG) { Trace.endSection(); } Trace.traceEnd(Trace.TRACE_TAG_POWER); } private void updatePowerStateInternal() { Loading
services/core/java/com/android/server/display/DisplayPowerController2.java +3 −6 Original line number Diff line number Diff line Loading @@ -1172,13 +1172,10 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal } private void updatePowerState() { if (DEBUG) { Trace.beginSection("DisplayPowerController#updatePowerState"); } Trace.traceBegin(Trace.TRACE_TAG_POWER, "DisplayPowerController#updatePowerState"); updatePowerStateInternal(); if (DEBUG) { Trace.endSection(); } Trace.traceEnd(Trace.TRACE_TAG_POWER); } private void updatePowerStateInternal() { Loading