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

Commit d57ba99a authored by Jungshik Jang's avatar Jungshik Jang Committed by Android (Google) Code Review
Browse files

Merge "More tweaks for recording" into lmp-dev

parents 40c89a08 e9e0f070
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ public abstract class HdmiRecordListener {
            // Timer Overlap Warning - 1 bit
            data.mOverlapped = ((result >> 31) & 0x1) != 0;
            // Media Info - 2 bits;
            data.mMediaInfo = (result >> 29) & 0x7;
            data.mMediaInfo = (result >> 29) & 0x3;
            // Programmed Indicator - 1 bit;
            data.mProgrammed = ((result >> 28) & 0x1) != 0;
            if (data.mProgrammed) {
@@ -88,12 +88,13 @@ public abstract class HdmiRecordListener {
                data.mDurationHour = bcdByteToInt((byte) ((result >> 16) & 0xFF));
                data.mDurationMinute = bcdByteToInt((byte) ((result >> 8) & 0xFF));
            } else {
                // Programmed Info - 4 bits
                data.mNotProgrammedError = (result >> 24) & 0xF;
                data.mDurationHour = bcdByteToInt((byte) ((result >> 16) & 0xFF));
                data.mDurationMinute = bcdByteToInt((byte) ((result >> 8) & 0xFF));
            }

            // Programmed Info - 4 bits
            // The last byte is used for extra error.
            data.mExtraError = result & 0xFF;
            return data;
        }
+1 −1
Original line number Diff line number Diff line
@@ -892,7 +892,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
    @Override
    protected boolean handleTimerClearedStatus(HdmiCecMessage message) {
        byte[] params = message.getParams();
        int timerClearedStatusData = params[0];
        int timerClearedStatusData = params[0] & 0xFF;
        announceTimerRecordingResult(timerClearedStatusData);
        return true;
    }