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.java386 int udhLength = 0; in fillData() local
388 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
390 udhLength += UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fillData()
392 udhLength += UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fillData()
396 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData()
397 if (udhLength == 0) { in fillData()
398 udhLength = UDH_SEPTET_COST_LENGTH; in fillData()
400 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fillData()
401 int septetsPerPart = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fillData()
403 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DGsmAlphabet.java943 int udhLength;
945 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_TWO_SHIFT_TABLES;
947 udhLength = UDH_SEPTET_COST_LENGTH + UDH_SEPTET_COST_ONE_SHIFT_TABLE;
949 udhLength = 0;
953 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) {
954 if (udhLength == 0) {
955 udhLength = UDH_SEPTET_COST_LENGTH;
957 udhLength += UDH_SEPTET_COST_CONCATENATED_MESSAGE;
958 int septetsPerMessage = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength;
963 septetsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength - septets;
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java440 int udhLength; in fragmentText() local
442 udhLength = GsmAlphabet.UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fragmentText()
444 udhLength = GsmAlphabet.UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fragmentText()
446 udhLength = 0; in fragmentText()
450 udhLength += GsmAlphabet.UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fragmentText()
453 if (udhLength != 0) { in fragmentText()
454 udhLength += GsmAlphabet.UDH_SEPTET_COST_LENGTH; in fragmentText()
457 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()