Home
last modified time | relevance | path

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

/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsMessageBase.java427 int currentPosition, int byteLimit, CharSequence msgBody) { in findNextUnicodePosition() argument
428 int nextPos = Math.min(currentPosition + byteLimit / 2, msgBody.length()); in findNextUnicodePosition()
432 if (nextPos < msgBody.length()) { in findNextUnicodePosition()
434 breakIterator.setText(msgBody.toString()); in findNextUnicodePosition()
439 Character.codePointAt(msgBody, breakPos)) in findNextUnicodePosition()
441 Character.codePointAt(msgBody, breakPos + 2))) { in findNextUnicodePosition()
447 } else if (Character.isHighSurrogate(msgBody.charAt(nextPos - 1))) { in findNextUnicodePosition()
464 public static TextEncodingDetails calcUnicodeEncodingDetails(CharSequence msgBody) { in calcUnicodeEncodingDetails() argument
466 int octets = msgBody.length() * 2; in calcUnicodeEncodingDetails()
468 ted.codeUnitCount = msgBody.length(); in calcUnicodeEncodingDetails()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java547 private void callGsmLengthMethods(CharSequence msgBody, boolean use7bitOnly, in callGsmLengthMethods() argument
551 int[] values = android.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
559 values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
567 com.android.internal.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
576 private void callCdmaLengthMethods(CharSequence msgBody, boolean use7bitOnly, in callCdmaLengthMethods() argument
581 int[] values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callCdmaLengthMethods()
589 … com.android.internal.telephony.cdma.SmsMessage.calculateLength(msgBody, use7bitOnly, true); in callCdmaLengthMethods()
595 …ted = com.android.internal.telephony.cdma.sms.BearerData.calcTextEncodingDetails(msgBody, use7bitO… in callCdmaLengthMethods()
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java358 public static int[] calculateLength(CharSequence msgBody, boolean use7bitOnly) { in calculateLength() argument
359 return calculateLength(msgBody, use7bitOnly, SmsManager.getDefaultSmsSubscriptionId()); in calculateLength()
379 public static int[] calculateLength(CharSequence msgBody, boolean use7bitOnly, int subId) { in calculateLength() argument
384 msgBody, use7bitOnly, true) in calculateLength()
386 msgBody, use7bitOnly); in calculateLength()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java1081 public static TextEncodingDetails calculateLength(CharSequence msgBody, in calculateLength() argument
1086 newMsgBody = Sms7BitEncodingTranslator.translate(msgBody, false /* isCdmaFormat */); in calculateLength()
1089 newMsgBody = msgBody; in calculateLength()