Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faec22c8 authored by Jeff Brown's avatar Jeff Brown
Browse files

Tweak systrace for power manager.

Add name to photonic modulator thread.
Print light color in hex.

Change-Id: I813e875b04c381b26e0f79773a209417eca21e21
parent 4e0951ef
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -348,6 +348,10 @@ final class DisplayPowerState {
        private int mActualBacklight = INITIAL_BACKLIGHT;
        private int mActualBacklight = INITIAL_BACKLIGHT;
        private boolean mChangeInProgress;
        private boolean mChangeInProgress;


        public PhotonicModulator() {
            super("PhotonicModulator");
        }

        public boolean setState(int state, int backlight) {
        public boolean setState(int state, int backlight) {
            synchronized (mLock) {
            synchronized (mLock) {
                if (state != mPendingState || backlight != mPendingBacklight) {
                if (state != mPendingState || backlight != mPendingBacklight) {
+2 −1
Original line number Original line Diff line number Diff line
@@ -106,7 +106,8 @@ public class LightsService extends SystemService {
                mMode = mode;
                mMode = mode;
                mOnMS = onMS;
                mOnMS = onMS;
                mOffMS = offMS;
                mOffMS = offMS;
                Trace.traceBegin(Trace.TRACE_TAG_POWER, "setLight(" + mId + ", " + color + ")");
                Trace.traceBegin(Trace.TRACE_TAG_POWER, "setLight(" + mId + ", 0x"
                        + Integer.toHexString(color) + ")");
                try {
                try {
                    setLight_native(mNativePointer, mId, color, mode, onMS, offMS, brightnessMode);
                    setLight_native(mNativePointer, mId, color, mode, onMS, offMS, brightnessMode);
                } finally {
                } finally {