Home
last modified time | relevance | path

Searched refs:septets (Results 1 – 3 of 3) 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.java413 for (int i = 0, septets = startingSeptetOffset, bitOffset = startingSeptetOffset * 7; in stringToGsm7BitPacked()
414 i < dataLen && septets < septetCount; in stringToGsm7BitPacked()
429 septets++; in stringToGsm7BitPacked()
433 septets++; in stringToGsm7BitPacked()
678 int septets = countGsmSeptetsUsingTables(s, true, 0, 0);
681 ret = new byte[septets];
857 int septets = GsmAlphabet.countGsmSeptetsUsingTables(s, use7bitOnly, 0, 0);
858 if (septets == -1) {
862 ted.codeUnitCount = septets;
863 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) {
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java562 int septets = countAsciiSeptets(newMsg, force7BitEncoding); in calcTextEncodingDetails() local
563 if (septets != -1 && septets <= SmsConstants.MAX_USER_DATA_SEPTETS) { in calcTextEncodingDetails()
566 ted.codeUnitCount = septets; in calcTextEncodingDetails()
567 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails()
618 int septets; field in BearerData.Gsm7bitCodingResult
646 result.septets = fullData[0] & 0x00FF; in encode7bitGsm()
661 uData.numFields = gcr.septets; in encode7bitEms()
784 uData.numFields = gcr.septets; in encodeUserDataPayload()