/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 | 255 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthAscii() 287 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; in testCalcLengthUnicode() 288 int[] values7bit = {1, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthUnicode() 311 values7bit[2] = SmsConstants.MAX_USER_DATA_SEPTETS - len; in testCalcLengthUnicode() 395 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 400 int septetsPerPart = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fillData() 428 if (byteCount > SmsConstants.MAX_USER_DATA_BYTES) { in fillData() 429 values[0] = (byteCount + SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER - 1) / in fillData() 430 SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fillData() 431 values[2] = ((values[0] * SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER) - in fillData() [all …]
|
D | SmsDispatchersControllerTest.java | 74 assertEquals(SmsConstants.FORMAT_UNKNOWN, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 77 assertEquals(SmsConstants.FORMAT_3GPP, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 82 assertEquals(SmsConstants.FORMAT_3GPP2, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate() 120 SmsConstants.FORMAT_3GPP2); in testSendRetrySmsCdmaTest() 134 SmsConstants.FORMAT_3GPP); in testSendRetrySmsGsmTest() 148 mSmsDispatchersController.injectSmsPdu(null, SmsConstants.FORMAT_3GPP, in testInjectNullSmsPdu()
|
D | MissedIncomingCallSmsFilterTest.java | 81 assertTrue(mFilterUT.filter(pdus, SmsConstants.FORMAT_3GPP)); in testMissedIncomingCallwithCallerId()
|
D | InboundSmsTrackerTest.java | 85 assertEquals(SmsConstants.FORMAT_3GPP, mInboundSmsTracker.getFormat()); in testInitialization()
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsCbHeader.java | 23 import com.android.internal.telephony.SmsConstants; 524 encoding = SmsConstants.ENCODING_7BIT; in DataCodingScheme() 531 encoding = SmsConstants.ENCODING_16BIT; in DataCodingScheme() 533 encoding = SmsConstants.ENCODING_7BIT; in DataCodingScheme() 538 encoding = SmsConstants.ENCODING_7BIT; in DataCodingScheme() 543 encoding = SmsConstants.ENCODING_7BIT; in DataCodingScheme() 550 encoding = SmsConstants.ENCODING_8BIT; in DataCodingScheme() 554 encoding = SmsConstants.ENCODING_16BIT; in DataCodingScheme() 559 encoding = SmsConstants.ENCODING_7BIT; in DataCodingScheme() 576 encoding = SmsConstants.ENCODING_8BIT; in DataCodingScheme() [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/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 | 37 import com.android.internal.telephony.SmsConstants; 207 SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in createFromPdu() 234 String otherFormat = SmsConstants.FORMAT_3GPP2.equals(format) ? SmsConstants.FORMAT_3GPP : in createFromPdu() 235 SmsConstants.FORMAT_3GPP2; in createFromPdu() 236 if (SmsConstants.FORMAT_3GPP2.equals(format)) { in createFromPdu() 238 } else if (SmsConstants.FORMAT_3GPP.equals(format)) { in createFromPdu() 460 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText() 478 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText() 481 limit = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fragmentText() 492 limit = SmsConstants.MAX_USER_DATA_BYTES; in fragmentText() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsMessageBase.java | 178 public abstract SmsConstants.MessageClass getMessageClass(); in getMessageClass() 466 ted.codeUnitSize = SmsConstants.ENCODING_16BIT; in calcUnicodeEncodingDetails() 468 if (octets > SmsConstants.MAX_USER_DATA_BYTES) { in calcUnicodeEncodingDetails() 474 int maxUserDataBytesWithHeader = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in calcUnicodeEncodingDetails() 497 ted.codeUnitsRemaining = (SmsConstants.MAX_USER_DATA_BYTES - octets) / 2; in calcUnicodeEncodingDetails()
|
D | SmsHeader.java | 314 new ByteArrayOutputStream(SmsConstants.MAX_USER_DATA_BYTES); in toByteArray()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | GsmAlphabet.java | 863 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 865 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) { 866 ted.msgCount = (septets + (SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER - 1)) / 867 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER; 869 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER) - septets; 872 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; 935 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; 953 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) { 958 int septetsPerMessage = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; 963 septetsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength - septets;
|
D | SmsConstants.java | 26 public class SmsConstants { class
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmInboundSmsHandler.java | 33 import com.android.internal.telephony.SmsConstants; 172 .filter(mContext, new byte[][]{sms.getPdu()}, SmsConstants.FORMAT_3GPP, in dispatchMessageRadioSpecific() 203 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
|
D | GsmSMSDispatcher.java | 32 import com.android.internal.telephony.SmsConstants; 78 return SmsConstants.FORMAT_3GPP; in getFormat()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsDispatchersController.java | 111 private String mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN; 343 mImsSmsFormat = SmsConstants.FORMAT_3GPP; in setImsSmsFormat() 346 mImsSmsFormat = SmsConstants.FORMAT_3GPP2; in setImsSmsFormat() 349 mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN; in setImsSmsFormat() 357 mIms = responseArray[0] == 1 && !SmsConstants.FORMAT_UNKNOWN.equals(mImsSmsFormat); in updateImsInfo() 409 if (format.equals(SmsConstants.FORMAT_3GPP)) { in injectSmsPdu() 413 } else if (format.equals(SmsConstants.FORMAT_3GPP2)) { in injectSmsPdu()
|
D | InboundSmsTracker.java | 352 return mIs3gpp2 ? SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in getFormat()
|
D | ImsSmsDispatcher.java | 338 return SmsConstants.FORMAT_UNKNOWN; in getFormat() 387 if (SmsConstants.FORMAT_3GPP.equals(format) && tracker.mRetryCount > 0) { in sendSms()
|
D | InboundSmsHandler.java | 70 import com.android.internal.telephony.SmsConstants.MessageClass; 997 if (format == SmsConstants.FORMAT_3GPP) { in processMessagePart() 998 SmsMessage msg = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in processMessagePart() 1005 SmsConstants.FORMAT_3GPP, timestamps, false, in processMessagePart()
|
D | SMSDispatcher.java | 1078 int encoding = SmsConstants.ENCODING_UNKNOWN; in sendMultipartText() 1089 && (encoding == SmsConstants.ENCODING_UNKNOWN in sendMultipartText() 1090 || encoding == SmsConstants.ENCODING_7BIT)) { in sendMultipartText() 1118 if (encoding == SmsConstants.ENCODING_7BIT) { in sendMultipartText() 1179 if (encoding == SmsConstants.ENCODING_7BIT) { in getNewSubmitPduTracker()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSMSDispatcher.java | 32 import com.android.internal.telephony.SmsConstants; 51 return SmsConstants.FORMAT_3GPP2; in getFormat()
|
D | CdmaInboundSmsHandler.java | 35 import com.android.internal.telephony.SmsConstants; 251 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 32 import com.android.internal.telephony.SmsConstants; 902 public SmsConstants.MessageClass getMessageClass() { 904 return SmsConstants.MessageClass.CLASS_0; 906 return SmsConstants.MessageClass.UNKNOWN;
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 27 import com.android.internal.telephony.SmsConstants; 545 if (septets != -1 && septets <= SmsConstants.MAX_USER_DATA_SEPTETS) { in calcTextEncodingDetails() 549 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets; in calcTextEncodingDetails() 550 ted.codeUnitSize = SmsConstants.ENCODING_7BIT; in calcTextEncodingDetails() 554 if (ted.msgCount == 1 && ted.codeUnitSize == SmsConstants.ENCODING_7BIT && in calcTextEncodingDetails() 805 if (bData.userData.payload.length > SmsConstants.MAX_USER_DATA_BYTES) { in encodeUserData() 808 " > " + SmsConstants.MAX_USER_DATA_BYTES + " bytes)"); in encodeUserData()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmInboundSmsHandlerTest.java | 63 import com.android.internal.telephony.SmsConstants; 159 doReturn(SmsConstants.FORMAT_3GPP).when(mMockInboundSmsTracker).getFormat(); in createMockInboundSmsTracker() 185 doReturn(SmsConstants.FORMAT_3GPP).when(mMockInboundSmsTrackerSub1).getFormat(); in createMockInboundSmsTracker()
|