History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
43eaf7ebbdffd1791c4b9cf0dffebdd371a0210c 19-Feb-2015 Amit Mahajan <amitmahajan@google.com> Adding a new param to calculateLength for SMS to indicate if called for a
segment of multipart msg.

Encoding type is calculated separately for entire msg vs individual
segments. Change is to avoid overwriting the calculated value for
individual segment based.

Bug: 19399335
Change-Id: I8e89b7596e9c7440ace0486eceb1252094c373fa
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
f3166841bf9df142e2fbd63b7647bae7da712044 15-Jul-2014 Xia Ying <yingxia@motorola.com> Add page info in each segment if carrier does not support EMS.

If EMS is not supported, framework breaks down EMS into single segment
SMS and adds page info " x/y".

In the case of UCS2 encoding type, we need 8 bytes for this, but we
only have 6 bytes from UDH, so truncate the limit for each segment by
2 bytes (1 char).

Change-Id: Ie4f7e233155ce392c14ae75946c9d62d4897013c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
a2ccc4f16ec2f3e26b308d6f25cd4aa6a394a008 09-Feb-2013 Jake Hamby <jhamby@google.com> Add bounds checking for decoding CDMA SMS using Shift-JIS.

The test case testRandomUserData() in CdmaSmsCbTest fails since we
added support for decoding Shift-JIS messages. Change decodeShiftJis()
to call the helper method decodeCharset(), which checks the array
bounds and tries to decode as much as possible if the length extends
past the end of the PDU, instead of throwing
StringIndexOutOfBoundsException.

Bug: 8107987
Change-Id: I180e8360e391cd8276752a44a58a9c3a635dc284
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
3de1a7e5535f36e86d82da12df2b17aeeafabdc6 30-Jun-2012 Rika Brooks <rbrooks@codeaurora.org> Telephony: Support ShiftJIS encoding and Skip unsupported bearer data subparam

Support Shift-JIS CHARi encoding type per 3GPP2 C.R1001 section 9.1.

3GPP2 C.S0015-B, v2.0, table 4.5-1 shows bearer data subparam ID
above 0x17 is reserved. Fix to skip reserved bearer data subparams
instead of throwing CodingException.

Change-Id: Ib83e7e72189a267421ba5fd77695b8f684ef00e2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
713f879213955e734d7b092033797c0f756fd95c 09-Jan-2013 Jake Hamby <jhamby@google.com> Merge "Telephony: Fix decodeCallbackNumber for Cdma CMAS"
d720945f2be5ea5fe0faf67e67d9ea0e184eba67 01-Aug-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Move uicc classes into uicc package

Reduce constructor visibility to package where
possible

Dependent Changes:
I3b718b9aea1f21c7906c8243b4ca0db6af495a08
I80204a2f3dc57cac875abeab390bb9db7a636ff7
Ib9c19e8b157dc7ec74eb14baca5bd3b5caf08c47

Change-Id: Ib4f43374c041cb5eaf2e3883e5ea28b2eb2c9a69
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
ded9c0af7fa49504c047275ed34c2d3b22bf0c3a 07-Dec-2012 Wink Saville <wink@google.com> Use Rlog

Change-Id: Ie013f51215de8380b8de74161b6056b010711cfd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
dbb088ab146d2fcb435e75e4ca70f2ff7d00d2c7 15-Aug-2012 Alex Yakavenka <ayakaven@codeaurora.org> Telephony: Fix decodeCallbackNumber for Cdma CMAS

Fix exception in decodeCallbackNumber for Cdma CMAS by
verifying expected param size.

Change-Id: I687a0ad424b6c1d73c0320b3a776cadf7e8ba180
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java
c38bb60d867c5d61d90b7179a9ed2b2d1848124f 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common - DO NOT MERGE

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/BearerData.java