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.java385 int udhLength = 0; in fillData() local
387 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
389 udhLength += UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fillData()
391 udhLength += UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fillData()
395 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData()
396 if (udhLength == 0) { in fillData()
397 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
399 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fillData()
400 int septetsPerPart = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fillData()
402 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DGsmAlphabet.java941 int udhLength;
943 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_TWO_SHIFT_TABLES;
945 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_ONE_SHIFT_TABLE;
947 udhLength = 0;
951 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) {
952 if (udhLength == 0) {
953 udhLength = UDH_SEPTET_COST_LENGTH;
955 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE;
956 int septetsPerMessage = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength;
961 septetsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength - septets;
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java436 int udhLength; in fragmentText() local
438 udhLength = GsmAlphabet.UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fragmentText()
440 udhLength = GsmAlphabet.UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fragmentText()
442 udhLength = 0; in fragmentText()
446 udhLength += GsmAlphabet.UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fragmentText()
449 if (udhLength != 0) { in fragmentText()
450 udhLength += GsmAlphabet.UDH_SEPTET_COST_LENGTH; in fragmentText()
453 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()