From 30a356a4197f3c582bef8ad85184b42ce27f0fd7 Mon Sep 17 00:00:00 2001 From: Jungshik Jang Date: Mon, 21 Jul 2014 17:55:25 +0900 Subject: [PATCH] Follow up send message errors of hdmi_cec.h in service side Change-Id: Icc64e6324250230c939b04ab37c999f50afe7bf2 --- services/core/java/com/android/server/hdmi/Constants.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/core/java/com/android/server/hdmi/Constants.java b/services/core/java/com/android/server/hdmi/Constants.java index 85c774738178f..af749ca9095a3 100644 --- a/services/core/java/com/android/server/hdmi/Constants.java +++ b/services/core/java/com/android/server/hdmi/Constants.java @@ -179,10 +179,11 @@ final class Constants { static final int INVALID_PORT_ID = -1; static final int INVALID_PHYSICAL_ADDRESS = 0xFFFF; - // Send result codes. + // Send result codes. It should be consistent with hdmi_cec.h's send_message error code. static final int SEND_RESULT_SUCCESS = 0; - static final int SEND_RESULT_NAK = -1; - static final int SEND_RESULT_FAILURE = -2; + static final int SEND_RESULT_NAK = 1; + static final int SEND_RESULT_BUSY = 2; + static final int SEND_RESULT_FAILURE = 3; // Strategy for device polling. // Should use "OR(|) operation of POLL_STRATEGY_XXX and POLL_ITERATION_XXX.