OSDN Git Service

Add missing logging for SET_TTY_MODE and QUERY_TTY_MODE
authorNaveen Kalla <nkalla@codeaurora.org>
Sun, 27 Jun 2010 06:18:03 +0000 (23:18 -0700)
committerNaveen Kalla <nkalla@codeaurora.org>
Sun, 27 Jun 2010 06:18:03 +0000 (23:18 -0700)
Change-Id: Ic794ef8258138b903f83c5ed77a0ee09e75ca094

telephony/java/com/android/internal/telephony/RIL.java

index 2833d56..d79a89e 100644 (file)
@@ -3406,6 +3406,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
         RILRequest rr = RILRequest.obtain(
                 RILConstants.RIL_REQUEST_QUERY_TTY_MODE, response);
 
+        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));
+
         send(rr);
     }
 
@@ -3419,6 +3421,9 @@ public final class RIL extends BaseCommands implements CommandsInterface {
         rr.mp.writeInt(1);
         rr.mp.writeInt(ttyMode);
 
+        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)
+                + " : " + ttyMode);
+
         send(rr);
     }