diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-06-10 11:37:24 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-10 11:37:24 -0700 |
commit | d713887dcc86cb9e1c4f50e3691ae753c8a219f9 (patch) | |
tree | a074c909be51704f074239a69ce7b362dbcba962 /telephony | |
parent | 49dd37173001fbb4cbe06a35879303f9172bd9fa (diff) | |
parent | 218ebf1274d5eefc59c55cdc60d83d61faeb5c1b (diff) | |
download | frameworks_base-d713887dcc86cb9e1c4f50e3691ae753c8a219f9.zip frameworks_base-d713887dcc86cb9e1c4f50e3691ae753c8a219f9.tar.gz frameworks_base-d713887dcc86cb9e1c4f50e3691ae753c8a219f9.tar.bz2 |
am 218ebf12: Merge change 3178 into donut
Merge commit '218ebf1274d5eefc59c55cdc60d83d61faeb5c1b'
* commit '218ebf1274d5eefc59c55cdc60d83d61faeb5c1b':
Add additional parameters to SETUP_DATA_CALL and SMS response.
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/RIL.java | 9 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/SmsResponse.java | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/telephony/java/com/android/internal/telephony/RIL.java b/telephony/java/com/android/internal/telephony/RIL.java index 9227f29..9486b45 100644 --- a/telephony/java/com/android/internal/telephony/RIL.java +++ b/telephony/java/com/android/internal/telephony/RIL.java @@ -1259,13 +1259,15 @@ public final class RIL extends BaseCommands implements CommandsInterface { RILRequest rr = RILRequest.obtain(RIL_REQUEST_SETUP_DATA_CALL, result); - rr.mp.writeInt(5); + rr.mp.writeInt(6); rr.mp.writeString(radioTechnology); rr.mp.writeString(profile); rr.mp.writeString(apn); rr.mp.writeString(user); rr.mp.writeString(password); + //TODO(): Add to the APN database, AuthType is set to CHAP/PAP + rr.mp.writeString("3"); if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " " + apn); @@ -2631,13 +2633,14 @@ public final class RIL extends BaseCommands implements CommandsInterface { private Object responseSMS(Parcel p) { - int messageRef; + int messageRef, errorCode; String ackPDU; messageRef = p.readInt(); ackPDU = p.readString(); + errorCode = p.readInt(); - SmsResponse response = new SmsResponse(messageRef, ackPDU); + SmsResponse response = new SmsResponse(messageRef, ackPDU, errorCode); return response; } diff --git a/telephony/java/com/android/internal/telephony/SmsResponse.java b/telephony/java/com/android/internal/telephony/SmsResponse.java index 3c4df56..bd79e02 100644 --- a/telephony/java/com/android/internal/telephony/SmsResponse.java +++ b/telephony/java/com/android/internal/telephony/SmsResponse.java @@ -26,9 +26,15 @@ public class SmsResponse { int messageRef; /** ackPdu for the just-sent SMS. */ String ackPdu; + /** + * errorCode: See 3GPP 27.005, 3.2.5 for GSM/UMTS, + * 3GPP2 N.S0005 (IS-41C) Table 171 for CDMA, -1 if unknown or not applicable. + */ + int errorCode; - public SmsResponse(int messageRef, String ackPdu) { + public SmsResponse(int messageRef, String ackPdu, int errorCode) { this.messageRef = messageRef; this.ackPdu = ackPdu; + this.errorCode = errorCode; } } |