/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmSmsTest.java | 246 GsmAlphabet.TextEncodingDetails ted = SmsMessage.calculateLength(text, false); in testFragmentText() local 247 assertEquals(1, ted.msgCount); in testFragmentText() 248 assertEquals(160, ted.codeUnitCount); in testFragmentText() 249 assertEquals(1, ted.codeUnitSize); in testFragmentText() 250 assertEquals(0, ted.languageTable); in testFragmentText() 251 assertEquals(0, ted.languageShiftTable); in testFragmentText() 261 ted = SmsMessage.calculateLength(text, false); in testFragmentText() 262 assertEquals(2, ted.msgCount); in testFragmentText() 263 assertEquals(161, ted.codeUnitCount); in testFragmentText() 264 assertEquals(1, ted.codeUnitSize); in testFragmentText() [all …]
|
D | SmsMessageBodyTest.java | 573 GsmAlphabet.TextEncodingDetails ted = in callGsmLengthMethods() local 575 assertEquals("msgCount", expectedValues[0], ted.msgCount); in callGsmLengthMethods() 576 assertEquals("codeUnitCount", expectedValues[1], ted.codeUnitCount); in callGsmLengthMethods() 577 assertEquals("codeUnitsRemaining", expectedValues[2], ted.codeUnitsRemaining); in callGsmLengthMethods() 578 assertEquals("codeUnitSize", expectedValues[3], ted.codeUnitSize); in callGsmLengthMethods() 579 assertEquals("languageTable", expectedValues[4], ted.languageTable); in callGsmLengthMethods() 580 assertEquals("languageShiftTable", expectedValues[5], ted.languageShiftTable); in callGsmLengthMethods() 595 GsmAlphabet.TextEncodingDetails ted = in callCdmaLengthMethods() local 597 assertEquals("msgCount", expectedValues[0], ted.msgCount); in callCdmaLengthMethods() 598 assertEquals("codeUnitCount", expectedValues[1], ted.codeUnitCount); in callCdmaLengthMethods() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | GsmAlphabet.java | 833 TextEncodingDetails ted = new TextEncodingDetails(); 838 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 839 ted.codeUnitCount = septets; 841 ted.msgCount = (septets + (SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER - 1)) / 843 ted.codeUnitsRemaining = (ted.msgCount * 846 ted.msgCount = 1; 847 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; 849 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 850 return ted; 909 TextEncodingDetails ted = new TextEncodingDetails(); [all …]
|
D | SmsMessageBase.java | 395 TextEncodingDetails ted = new TextEncodingDetails(); in calcUnicodeEncodingDetails() local 397 ted.codeUnitSize = SmsConstants.ENCODING_16BIT; in calcUnicodeEncodingDetails() 398 ted.codeUnitCount = msgBody.length(); in calcUnicodeEncodingDetails() 419 ted.codeUnitsRemaining = pos + maxUserDataBytesWithHeader / 2 - in calcUnicodeEncodingDetails() 425 ted.msgCount = msgCount; in calcUnicodeEncodingDetails() 427 ted.msgCount = 1; in calcUnicodeEncodingDetails() 428 ted.codeUnitsRemaining = (SmsConstants.MAX_USER_DATA_BYTES - octets) / 2; in calcUnicodeEncodingDetails() 431 return ted; in calcUnicodeEncodingDetails()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 311 TextEncodingDetails ted = (useCdmaFormatForMoSms()) ? in calculateLength() local 316 ret[0] = ted.msgCount; in calculateLength() 317 ret[1] = ted.codeUnitCount; in calculateLength() 318 ret[2] = ted.codeUnitsRemaining; in calculateLength() 319 ret[3] = ted.codeUnitSize; in calculateLength() 335 TextEncodingDetails ted = (useCdmaFormatForMoSms()) ? in fragmentText() local 344 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText() 346 if (ted.languageTable != 0 && ted.languageShiftTable != 0) { in fragmentText() 348 } else if (ted.languageTable != 0 || ted.languageShiftTable != 0) { in fragmentText() 354 if (ted.msgCount > 1) { in fragmentText() [all …]
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
D | SmsMessage.java | 198 GsmAlphabet.TextEncodingDetails ted = in calculateLength() local 202 ret[0] = ted.msgCount; in calculateLength() 203 ret[1] = ted.codeUnitCount; in calculateLength() 204 ret[2] = ted.codeUnitsRemaining; in calculateLength() 205 ret[3] = ted.codeUnitSize; in calculateLength()
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 247 TextEncodingDetails ted = calculateLength(message, false); in getSubmitPdu() local 248 encoding = ted.codeUnitSize; in getSubmitPdu() 249 languageTable = ted.languageTable; in getSubmitPdu() 250 languageShiftTable = ted.languageShiftTable; in getSubmitPdu() 807 TextEncodingDetails ted = GsmAlphabet.countGsmSeptets(newMsgBody, use7bitOnly); in calculateLength() local 808 if (ted == null) { in calculateLength() 811 return ted; in calculateLength()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 920 TextEncodingDetails ted = SmsMessage.calculateLength(text1, false, true); in testFragmentText() local 921 assertEquals(ted.msgCount, 1); in testFragmentText() 922 assertEquals(ted.codeUnitCount, 160); in testFragmentText() 923 assertEquals(ted.codeUnitSize, 1); in testFragmentText() 956 ted = SmsMessage.calculateLength(text2, false, true); in testFragmentText() 957 assertEquals(3, ted.msgCount); in testFragmentText() 958 assertEquals(160, ted.codeUnitCount); in testFragmentText() 959 assertEquals(3, ted.codeUnitSize); in testFragmentText() 974 ted = SmsMessage.calculateLength(text3, false, true); in testFragmentText() 975 assertEquals(3, ted.msgCount); in testFragmentText() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | BearerData.java | 478 TextEncodingDetails ted; in calcTextEncodingDetails() local 481 ted = new TextEncodingDetails(); in calcTextEncodingDetails() 482 ted.msgCount = 1; in calcTextEncodingDetails() 483 ted.codeUnitCount = septets; in calcTextEncodingDetails() 484 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails() 485 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; in calcTextEncodingDetails() 487 ted = com.android.internal.telephony.gsm.SmsMessage.calculateLength( in calcTextEncodingDetails() 489 if (ted.msgCount == 1 && ted.codeUnitSize == SmsConstants.ENCODING_7BIT && in calcTextEncodingDetails() 496 return ted; in calcTextEncodingDetails()
|