115632cc56f813bd21543f8532c763d7d2968046 |
31-Aug-2012 |
Jake Hamby <jhamby@google.com> |
Fix CDMA decoding of multipart UTF-16 SMS messages. Recent changes to support CMAS over CDMA introduced a bug causing an exception to be thrown when decoding multipart UTF-16 encoded messages. This change fixes the exception by correctly subtracting the header size from the number of bytes to decode. It also adds more robust error handling to try to decode the maximum length possible instead of throwing an exception if the length is still larger than the user data length after subtracting the header. This also fixes a bug in the encoder, which was padding the UTF-16 user data to 16-bit alignment, which is incorrect (should be padded to an 8-bit boundary). The code happened to work because we always generated a UDH that was an even number of bytes (including length) so the padding was a no-op. The decoder works correctly. Bug: 6939151 Change-Id: I4000fa2f4703b39e5ed7e5bd8490828303ef8979
ms/CdmaSmsTest.java
|
b8a13d300b245e0080aa01275e232f54d5d0e09c |
25-Jul-2012 |
Jake Hamby <jhamby@google.com> |
Implement CMAS service category program results. Correctly handle CDMA Service Category Program Data requests, and send the SCPT response to the message center. Parcel SCPD operations as an ArrayList instead of an array (current version will throw ClassCastException when the array is cast). Bug: 6853691 Change-Id: I949ea68891c78306059248832e59a593ab606e11
dmaSmsCbTest.java
|
0825495a331bb44df395a0cdb79fab85e68db5d5 |
12-Jul-2012 |
Wink Saville <wink@google.com> |
Create telephony-common telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
dmaSmsCbTest.java
ms/CdmaSmsTest.java
|