Home
last modified time | relevance | path

Searched refs:ted (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java246 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 …]
DSmsMessageBodyTest.java573 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/opt/telephony/src/java/android/telephony/
DSmsMessage.java302 TextEncodingDetails ted = (useCdmaFormatForMoSms()) ? in calculateLength() local
307 ret[0] = ted.msgCount; in calculateLength()
308 ret[1] = ted.codeUnitCount; in calculateLength()
309 ret[2] = ted.codeUnitsRemaining; in calculateLength()
310 ret[3] = ted.codeUnitSize; in calculateLength()
326 TextEncodingDetails ted = (useCdmaFormatForMoSms()) ? in fragmentText() local
335 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText()
337 if (ted.languageTable != 0 && ted.languageShiftTable != 0) { in fragmentText()
339 } else if (ted.languageTable != 0 || ted.languageShiftTable != 0) { in fragmentText()
345 if (ted.msgCount > 1) { in fragmentText()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DGsmAlphabet.java833 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 …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsMessageBase.java395 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/opt/telephony/src/java/android/telephony/gsm/
DSmsMessage.java198 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/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSmsMessage.java247 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()
797 TextEncodingDetails ted = GsmAlphabet.countGsmSeptets(newMsgBody, use7bitOnly); in calculateLength() local
798 if (ted == null) { in calculateLength()
801 return ted; in calculateLength()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java920 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/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DBearerData.java478 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()