/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmSmsCbMessage.java | 33 import com.android.internal.telephony.SmsConstants; 166 encoding = SmsConstants.ENCODING_7BIT; in parseBody() 173 encoding = SmsConstants.ENCODING_16BIT; in parseBody() 175 encoding = SmsConstants.ENCODING_7BIT; in parseBody() 180 encoding = SmsConstants.ENCODING_7BIT; in parseBody() 185 encoding = SmsConstants.ENCODING_7BIT; in parseBody() 192 encoding = SmsConstants.ENCODING_8BIT; in parseBody() 196 encoding = SmsConstants.ENCODING_16BIT; in parseBody() 201 encoding = SmsConstants.ENCODING_7BIT; in parseBody() 218 encoding = SmsConstants.ENCODING_8BIT; in parseBody() [all …]
|
D | SmsMessage.java | 19 import static com.android.internal.telephony.SmsConstants.ENCODING_16BIT; 20 import static com.android.internal.telephony.SmsConstants.ENCODING_7BIT; 21 import static com.android.internal.telephony.SmsConstants.ENCODING_8BIT; 22 import static com.android.internal.telephony.SmsConstants.ENCODING_KSC5601; 23 import static com.android.internal.telephony.SmsConstants.ENCODING_UNKNOWN; 24 import static com.android.internal.telephony.SmsConstants.MAX_USER_DATA_BYTES; 25 import static com.android.internal.telephony.SmsConstants.MAX_USER_DATA_SEPTETS; 26 import static com.android.internal.telephony.SmsConstants.MessageClass;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | VisualVoicemailSmsFilterTest.java | 126 VisualVoicemailSmsFilter.filter(mContext, pdus, SmsConstants.FORMAT_3GPP, 0, 0)); in testUnsupportedPdu() 140 VisualVoicemailSmsFilter.filter(mContext, VZWVVM_PDU, SmsConstants.FORMAT_3GPP, 0, in testFilterNotSet_matchesVvmPattern_filtered() 147 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_unspecified_filtered() 156 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_match_filtered() 165 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_mismatch_notFiltered() 172 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 123, 0)); in testDestinationPort_anyMatch_filtered() 180 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_anyData_filtered() 188 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, -1, 0)); in testDestinationPort_anyData_textReceived_notFiltered() 196 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_mismatch_notFiltered()
|
D | SmsMessageBodyTest.java | 28 import com.android.internal.telephony.SmsConstants; 262 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthAscii() 294 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; in testCalcLengthUnicode() 295 int[] values7bit = {1, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthUnicode() 318 values7bit[2] = SmsConstants.MAX_USER_DATA_SEPTETS - len; in testCalcLengthUnicode() 402 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 407 int septetsPerPart = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fillData() 435 if (byteCount > SmsConstants.MAX_USER_DATA_BYTES) { in fillData() 436 values[0] = (byteCount + SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER - 1) / in fillData() 437 SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fillData() [all …]
|
D | SmsDispatchersControllerTest.java | 92 assertEquals(SmsConstants.FORMAT_UNKNOWN, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 95 assertEquals(SmsConstants.FORMAT_3GPP, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 100 assertEquals(SmsConstants.FORMAT_3GPP2, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 138 SmsConstants.FORMAT_3GPP2); in testSendRetrySmsCdmaTest() 152 SmsConstants.FORMAT_3GPP); in testSendRetrySmsGsmTest() 166 mSmsDispatchersController.injectSmsPdu(null, SmsConstants.FORMAT_3GPP, in testInjectNullSmsPdu()
|
D | InboundSmsTrackerTest.java | 81 assertEquals(SmsConstants.FORMAT_3GPP, mInboundSmsTracker.getFormat()); in testInitialization()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ |
D | SmsMessageTest.java | 21 import com.android.internal.telephony.SmsConstants; 31 assertEquals(null, SmsMessage.createFromPdu(null, SmsConstants.FORMAT_3GPP2)); in testCreateInvalidSmsMessage() 32 assertEquals(null, SmsMessage.createFromPdu(null, SmsConstants.FORMAT_3GPP)); in testCreateInvalidSmsMessage()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 31 import com.android.internal.telephony.SmsConstants; 189 SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in createFromPdu() 216 String otherFormat = SmsConstants.FORMAT_3GPP2.equals(format) ? SmsConstants.FORMAT_3GPP : in createFromPdu() 217 SmsConstants.FORMAT_3GPP2; in createFromPdu() 218 if (SmsConstants.FORMAT_3GPP2.equals(format)) { in createFromPdu() 220 } else if (SmsConstants.FORMAT_3GPP.equals(format)) { in createFromPdu() 425 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText() 443 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText() 446 limit = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fragmentText() 457 limit = SmsConstants.MAX_USER_DATA_BYTES; in fragmentText() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsMessageBase.java | 20 import com.android.internal.telephony.SmsConstants; 169 public abstract SmsConstants.MessageClass getMessageClass(); in getMessageClass() 427 ted.codeUnitSize = SmsConstants.ENCODING_16BIT; in calcUnicodeEncodingDetails() 429 if (octets > SmsConstants.MAX_USER_DATA_BYTES) { in calcUnicodeEncodingDetails() 435 int maxUserDataBytesWithHeader = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in calcUnicodeEncodingDetails() 458 ted.codeUnitsRemaining = (SmsConstants.MAX_USER_DATA_BYTES - octets) / 2; in calcUnicodeEncodingDetails()
|
D | GsmAlphabet.java | 858 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 860 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) { 861 ted.msgCount = (septets + (SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER - 1)) / 862 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER; 864 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER) - septets; 867 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; 930 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 948 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) { 953 int septetsPerMessage = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; 958 septetsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength - septets;
|
D | SmsConstants.java | 26 public class SmsConstants { class
|
D | SmsHeader.java | 19 import com.android.internal.telephony.SmsConstants; 225 new ByteArrayOutputStream(SmsConstants.MAX_USER_DATA_BYTES); in toByteArray()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmInboundSmsHandler.java | 27 import com.android.internal.telephony.SmsConstants; 106 .filter(mContext, new byte[][]{sms.getPdu()}, SmsConstants.FORMAT_3GPP, in dispatchMessageRadioSpecific() 137 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
|
D | GsmSMSDispatcher.java | 29 import com.android.internal.telephony.SmsConstants; 73 return SmsConstants.FORMAT_3GPP; in getFormat()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsDispatchersController.java | 107 private String mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN; 339 mImsSmsFormat = SmsConstants.FORMAT_3GPP; in setImsSmsFormat() 342 mImsSmsFormat = SmsConstants.FORMAT_3GPP2; in setImsSmsFormat() 345 mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN; in setImsSmsFormat() 353 mIms = responseArray[0] == 1 && !SmsConstants.FORMAT_UNKNOWN.equals(mImsSmsFormat); in updateImsInfo() 405 if (format.equals(SmsConstants.FORMAT_3GPP)) { in injectSmsPdu() 409 } else if (format.equals(SmsConstants.FORMAT_3GPP2)) { in injectSmsPdu()
|
D | InboundSmsTracker.java | 323 return mIs3gpp2 ? SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in getFormat()
|
D | ImsSmsDispatcher.java | 307 return SmsConstants.FORMAT_UNKNOWN; in getFormat() 356 if (SmsConstants.FORMAT_3GPP.equals(format) && tracker.mRetryCount > 0) { in sendSms()
|
D | InboundSmsHandler.java | 69 import com.android.internal.telephony.SmsConstants.MessageClass; 920 String format = (!tracker.is3gpp2() ? SmsConstants.FORMAT_3GPP : SmsConstants.FORMAT_3GPP2); in processMessagePart() 948 SmsMessage msg = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in processMessagePart()
|
D | SMSDispatcher.java | 991 int encoding = SmsConstants.ENCODING_UNKNOWN; in sendMultipartText() 1002 && (encoding == SmsConstants.ENCODING_UNKNOWN in sendMultipartText() 1003 || encoding == SmsConstants.ENCODING_7BIT)) { in sendMultipartText() 1031 if (encoding == SmsConstants.ENCODING_7BIT) { in sendMultipartText() 1084 if (encoding == SmsConstants.ENCODING_7BIT) { in getNewSubmitPduTracker()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSMSDispatcher.java | 29 import com.android.internal.telephony.SmsConstants; 50 return SmsConstants.FORMAT_3GPP2; in getFormat()
|
D | CdmaInboundSmsHandler.java | 32 import com.android.internal.telephony.SmsConstants; 165 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
|
D | SmsMessageConverter.java | 33 import com.android.internal.telephony.SmsConstants;
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 32 import com.android.internal.telephony.SmsConstants; 789 public SmsConstants.MessageClass getMessageClass() { in getMessageClass() 791 return SmsConstants.MessageClass.CLASS_0; in getMessageClass() 793 return SmsConstants.MessageClass.UNKNOWN; in getMessageClass()
|
D | BearerData.java | 28 import com.android.internal.telephony.SmsConstants; 480 if (septets != -1 && septets <= SmsConstants.MAX_USER_DATA_SEPTETS) { in calcTextEncodingDetails() 484 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails() 485 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; in calcTextEncodingDetails() 489 if (ted.msgCount == 1 && ted.codeUnitSize == SmsConstants.ENCODING_7BIT && in calcTextEncodingDetails() 739 if (bData.userData.payload.length > SmsConstants.MAX_USER_DATA_BYTES) { in encodeUserData() 742 " > " + SmsConstants.MAX_USER_DATA_BYTES + " bytes)"); in encodeUserData()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | SIMRecords.java | 34 import com.android.internal.telephony.SmsConstants; 1333 SmsMessage message = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in handleSms() 1359 SmsMessage message = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in handleSmses()
|