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.java349 byte[] septets = new byte[(7 * 128 + 7) / 8]; in decodeSingle()
365 septets[byteOffset] |= v << shift; in decodeSingle()
368 septets[byteOffset + 1] = (byte) (v >> (8 - shift)); in decodeSingle()
374 String decoded = GsmAlphabet.gsm7BitPackedToString(septets, 0, 128, 0, language, 0); in decodeSingle()
380 assertEquals(septets.length + 1, reEncoded.length); in decodeSingle()
382 for (int i = 0; i < septets.length; i++) { in decodeSingle()
383 assertEquals(septets[i], reEncoded[i + 1]); in decodeSingle()
421 byte[] septets = new byte[(7 * numSeptets + 7) / 8]; in testDecodeExtended()
430 septets[byteOffset] |= GSM_ESCAPE_CHARACTER << shift; in testDecodeExtended()
433 septets[byteOffset + 1] = (byte) (GSM_ESCAPE_CHARACTER >> (8 - shift)); in testDecodeExtended()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DGsmAlphabet.java397 for (int i = 0, septets = startingSeptetOffset, bitOffset = startingSeptetOffset * 7; in stringToGsm7BitPacked()
398 i < dataLen && septets < septetCount; in stringToGsm7BitPacked()
413 septets++; in stringToGsm7BitPacked()
417 septets++; in stringToGsm7BitPacked()
656 int septets = countGsmSeptetsUsingTables(s, true, 0, 0);
659 ret = new byte[septets];
834 int septets = GsmAlphabet.countGsmSeptetsUsingTables(s, use7bitOnly, 0, 0);
835 if (septets == -1) {
839 ted.codeUnitCount = septets;
840 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) {
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DBearerData.java479 int septets = countAsciiSeptets(msg, force7BitEncoding); in calcTextEncodingDetails() local
480 if (septets != -1 && septets <= SmsConstants.MAX_USER_DATA_SEPTETS) { in calcTextEncodingDetails()
483 ted.codeUnitCount = septets; in calcTextEncodingDetails()
484 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails()
534 int septets; field in BearerData.Gsm7bitCodingResult
562 result.septets = fullData[0] & 0x00FF; in encode7bitGsm()
577 uData.numFields = gcr.septets; in encode7bitEms()
659 uData.numFields = gcr.septets; in encodeUserDataPayload()