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.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.java461 int udhLength; in fragmentText() local
463 udhLength = GsmAlphabet.UDH_SEPTET_COST_TWO_SHIFT_TABLES; in fragmentText()
465 udhLength = GsmAlphabet.UDH_SEPTET_COST_ONE_SHIFT_TABLE; in fragmentText()
467 udhLength = 0; in fragmentText()
471 udhLength += GsmAlphabet.UDH_SEPTET_COST_CONCATENATED_MESSAGE; in fragmentText()
474 if (udhLength != 0) { in fragmentText()
475 udhLength += GsmAlphabet.UDH_SEPTET_COST_LENGTH; in fragmentText()
478 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()