From 76829befcaaff1647d99be7477229bad9b0cb329 Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Fri, 30 Nov 2012 23:30:00 +1100 Subject: i9300: SamsungExynos4RIL: Samsung STK support Change-Id: I1915332e8d6917dea2f4e71cb4e84564e7ad9556 --- .../android/internal/telephony/SamsungExynos4RIL.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ril/telephony/java/com/android/internal/telephony/SamsungExynos4RIL.java b/ril/telephony/java/com/android/internal/telephony/SamsungExynos4RIL.java index 2b6fcc3..8aaca62 100644 --- a/ril/telephony/java/com/android/internal/telephony/SamsungExynos4RIL.java +++ b/ril/telephony/java/com/android/internal/telephony/SamsungExynos4RIL.java @@ -131,6 +131,15 @@ public class SamsungExynos4RIL extends RIL implements CommandsInterface { } } + static String + responseToString(int response) { + switch (response) { + case RIL_UNSOL_STK_SEND_SMS_RESULT: return "RIL_UNSOL_STK_SEND_SMS_RESULT"; + default: return RIL.responseToString(response); + } + } + + @Override protected RILRequest processSolicited (Parcel p) { int serial, error; @@ -444,6 +453,7 @@ public class SamsungExynos4RIL extends RIL implements CommandsInterface { try{switch(response) { case RIL_UNSOL_STK_PROACTIVE_COMMAND: ret = responseString(p); break; + case RIL_UNSOL_STK_SEND_SMS_RESULT: ret = responseInts(p); break; // Samsung STK default: // Rewind the Parcel p.setDataPosition(dataPosition); @@ -471,6 +481,14 @@ public class SamsungExynos4RIL extends RIL implements CommandsInterface { mCatProCmdBuffer = ret; } break; + case RIL_UNSOL_STK_SEND_SMS_RESULT: + if (RILJ_LOGD) unsljLogRet(response, ret); + + if (mCatSendSmsResultRegistrant != null) { + mCatSendSmsResultRegistrant.notifyRegistrant( + new AsyncResult (null, ret, null)); + } + break; } } -- cgit v1.1