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)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:41 +0000 (16:05 +0800)
Change-Id: Ic794ef8258138b903f83c5ed77a0ee09e75ca094

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

index 0c5e87e..3e1d586 100644 (file)
@@ -3469,6 +3469,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);
     }
 
@@ -3482,6 +3484,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);
     }