Home
last modified time | relevance | path

Searched refs:septets (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java370 byte[] septets = new byte[(7 * 128 + 7) / 8]; in decodeSingle()
386 septets[byteOffset] |= v << shift; in decodeSingle()
389 septets[byteOffset + 1] = (byte) (v >> (8 - shift)); in decodeSingle()
395 String decoded = GsmAlphabet.gsm7BitPackedToString(septets, 0, 128, 0, language, 0); in decodeSingle()
401 assertEquals(septets.length + 1, reEncoded.length); in decodeSingle()
403 for (int i = 0; i < septets.length; i++) { in decodeSingle()
404 assertEquals(septets[i], reEncoded[i + 1]); in decodeSingle()
442 byte[] septets = new byte[(7 * numSeptets + 7) / 8]; in testDecodeExtended()
451 septets[byteOffset] |= GSM_ESCAPE_CHARACTER << shift; in testDecodeExtended()
454 septets[byteOffset + 1] = (byte) (GSM_ESCAPE_CHARACTER >> (8 - shift)); in testDecodeExtended()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DGsmAlphabet.java415 for (int i = 0, septets = startingSeptetOffset, bitOffset = startingSeptetOffset * 7; in stringToGsm7BitPacked()
416 i < dataLen && septets < septetCount; in stringToGsm7BitPacked()
431 septets++; in stringToGsm7BitPacked()
435 septets++; in stringToGsm7BitPacked()
680 int septets = countGsmSeptetsUsingTables(s, true, 0, 0);
683 ret = new byte[septets];
859 int septets = GsmAlphabet.countGsmSeptetsUsingTables(s, use7bitOnly, 0, 0);
860 if (septets == -1) {
864 ted.codeUnitCount = septets;
865 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) {
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java278 int septets = GsmAlphabet.countGsmSeptetsUsingTables(alphaTag, false, 0, 0); in stringToAdnStringField() local
279 if (septets != -1) { in stringToAdnStringField()
280 byte[] ret = new byte[septets]; in stringToAdnStringField()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java563 int septets = countAsciiSeptets(newMsg, force7BitEncoding); in calcTextEncodingDetails() local
564 if (septets != -1 && septets <= SmsConstants.MAX_USER_DATA_SEPTETS) { in calcTextEncodingDetails()
567 ted.codeUnitCount = septets; in calcTextEncodingDetails()
568 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails()
619 int septets; field in BearerData.Gsm7bitCodingResult
647 result.septets = fullData[0] & 0x00FF; in encode7bitGsm()
662 uData.numFields = gcr.septets; in encode7bitEms()
785 uData.numFields = gcr.septets; in encodeUserDataPayload()