diff options
author | Naveen Kalla <nkalla@quicinc.com> | 2009-12-03 18:29:41 -0800 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2009-12-22 13:48:23 -0800 |
commit | 0fa1b24593bbe7972bfbc5290519359db8c4ade6 (patch) | |
tree | c5bd71d18aeb14347e9ecee9f0fc25149a84b66f /telephony/java | |
parent | 233d316553837ef81fdf152432281d878dc8f773 (diff) | |
download | frameworks_base-0fa1b24593bbe7972bfbc5290519359db8c4ade6.zip frameworks_base-0fa1b24593bbe7972bfbc5290519359db8c4ade6.tar.gz frameworks_base-0fa1b24593bbe7972bfbc5290519359db8c4ade6.tar.bz2 |
telephony: Populate the User-to-user signaling info fields.
Since the RIL interface has been enhanced to support user-user signaling
information, we need to populate the fields for RIL_REQUEST_DIAL and
decode the fields in RIL_Call. Handle the default case when UUS Info is not
present so that the RIL interface change does not break the normal case.
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/com/android/internal/telephony/RIL.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/RIL.java b/telephony/java/com/android/internal/telephony/RIL.java index 279f57f..1ffcf9b 100644 --- a/telephony/java/com/android/internal/telephony/RIL.java +++ b/telephony/java/com/android/internal/telephony/RIL.java @@ -800,6 +800,7 @@ public final class RIL extends BaseCommands implements CommandsInterface { rr.mp.writeString(address); rr.mp.writeInt(clirMode); + rr.mp.writeInt(0); // UUS information is absent if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)); @@ -2824,6 +2825,13 @@ public final class RIL extends BaseCommands implements CommandsInterface { dc.numberPresentation = DriverCall.presentationFromCLIP(np); dc.name = p.readString(); dc.namePresentation = p.readInt(); + int uusInfoPresent = p.readInt(); + if (uusInfoPresent == 1) { + // TODO: Copy the data to dc to forward to the apps. + p.readInt(); + p.readInt(); + p.createByteArray(); + } // Make sure there's a leading + on addresses with a TOA of 145 dc.number = PhoneNumberUtils.stringFromStringAndTOA(dc.number, dc.TOA); |