Home
last modified time | relevance | path

Searched refs:udhLength (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java392 int udhLength = 0; in fillData() local
394 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
396 udhLength += UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fillData()
398 udhLength += UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fillData()
402 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData()
403 if (udhLength == 0) { in fillData()
404 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
406 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fillData()
407 int septetsPerPart = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fillData()
409 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DSmsMessage.java336 int udhLength; in fragmentText() local
338 udhLength = GsmAlphabet.UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fragmentText()
340 udhLength = GsmAlphabet.UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fragmentText()
342 udhLength = 0; in fragmentText()
346 udhLength += GsmAlphabet.UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fragmentText()
349 if (udhLength != 0) { in fragmentText()
350 udhLength += GsmAlphabet.UDH_SEPTET_COST_LENGTH; in fragmentText()
353 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()
/frameworks/base/telephony/java/com/android/internal/telephony/
DGsmAlphabet.java919 int udhLength;
921 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_TWO_SHIFT_TABLES;
923 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_ONE_SHIFT_TABLE;
925 udhLength = 0;
929 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) {
930 if (udhLength == 0) {
931 udhLength = UDH_SEPTET_COST_LENGTH;
933 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE;
934 int septetsPerMessage = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength;
939 septetsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength - septets;