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.
This commit is contained in:
committed by
Wink Saville
parent
233d316553
commit
0fa1b24593
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user