summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-11-30 23:30:00 +1100
committerSimon Shields <keepcalm444@gmail.com>2016-03-01 17:53:23 +1100
commit76829befcaaff1647d99be7477229bad9b0cb329 (patch)
treed6e8293c4c8a644135f0ffd1231b6cae3b3df2d0
parent594d5b834867c09c975f2217659bd37aef05d9d9 (diff)
downloaddevice_samsung_i9300-76829befcaaff1647d99be7477229bad9b0cb329.zip
device_samsung_i9300-76829befcaaff1647d99be7477229bad9b0cb329.tar.gz
device_samsung_i9300-76829befcaaff1647d99be7477229bad9b0cb329.tar.bz2
i9300: SamsungExynos4RIL: Samsung STK support
Change-Id: I1915332e8d6917dea2f4e71cb4e84564e7ad9556
-rw-r--r--ril/telephony/java/com/android/internal/telephony/SamsungExynos4RIL.java18
1 files changed, 18 insertions, 0 deletions
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;
}
}