Home
last modified time | relevance | path

Searched refs:SmsConstants (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsCbMessage.java33 import com.android.internal.telephony.SmsConstants;
147 encoding = SmsConstants.ENCODING_7BIT; in parseBody()
154 encoding = SmsConstants.ENCODING_16BIT; in parseBody()
156 encoding = SmsConstants.ENCODING_7BIT; in parseBody()
161 encoding = SmsConstants.ENCODING_7BIT; in parseBody()
166 encoding = SmsConstants.ENCODING_7BIT; in parseBody()
173 encoding = SmsConstants.ENCODING_8BIT; in parseBody()
177 encoding = SmsConstants.ENCODING_16BIT; in parseBody()
182 encoding = SmsConstants.ENCODING_7BIT; in parseBody()
199 encoding = SmsConstants.ENCODING_8BIT; in parseBody()
[all …]
DSmsMessage.java37 import static com.android.internal.telephony.SmsConstants.MessageClass;
38 import static com.android.internal.telephony.SmsConstants.ENCODING_UNKNOWN;
39 import static com.android.internal.telephony.SmsConstants.ENCODING_7BIT;
40 import static com.android.internal.telephony.SmsConstants.ENCODING_8BIT;
41 import static com.android.internal.telephony.SmsConstants.ENCODING_16BIT;
42 import static com.android.internal.telephony.SmsConstants.ENCODING_KSC5601;
43 import static com.android.internal.telephony.SmsConstants.MAX_USER_DATA_SEPTETS;
44 import static com.android.internal.telephony.SmsConstants.MAX_USER_DATA_BYTES;
45 import static com.android.internal.telephony.SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsFilterTest.java109 VisualVoicemailSmsFilter.filter(mContext, pdus, SmsConstants.FORMAT_3GPP, 0, 0)); in testUnsupportedPdu()
115 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_unspecified_filtered()
124 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_match_filtered()
133 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_mismatch_notFiltered()
140 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 123, 0)); in testDestinationPort_anyMatch_filtered()
148 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_anyData_filtered()
156 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, -1, 0)); in testDestinationPort_anyData_textReceived_notFiltered()
164 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_mismatch_notFiltered()
DSmsMessageBodyTest.java28 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 …]
DSmsDispatchersControllerTest.java98 assertEquals(SmsConstants.FORMAT_UNKNOWN, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate()
101 assertEquals(SmsConstants.FORMAT_3GPP, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate()
106 assertEquals(SmsConstants.FORMAT_3GPP2, mSmsDispatchersController.getImsSmsFormat()); in testSmsHandleStateUpdate()
144 SmsConstants.FORMAT_3GPP2); in testSendRetrySmsCdmaTest()
158 SmsConstants.FORMAT_3GPP); in testSendRetrySmsGsmTest()
172 mSmsDispatchersController.injectSmsPdu(null, SmsConstants.FORMAT_3GPP, in testInjectNullSmsPdu()
DInboundSmsTrackerTest.java78 assertEquals(SmsConstants.FORMAT_3GPP, mInboundSmsTracker.getFormat()); in testInitialization()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsMessageBase.java20 import com.android.internal.telephony.SmsConstants;
149 public abstract SmsConstants.MessageClass getMessageClass(); in getMessageClass()
397 ted.codeUnitSize = SmsConstants.ENCODING_16BIT; in calcUnicodeEncodingDetails()
399 if (octets > SmsConstants.MAX_USER_DATA_BYTES) { in calcUnicodeEncodingDetails()
405 int maxUserDataBytesWithHeader = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in calcUnicodeEncodingDetails()
428 ted.codeUnitsRemaining = (SmsConstants.MAX_USER_DATA_BYTES - octets) / 2; in calcUnicodeEncodingDetails()
DGsmAlphabet.java27 import com.android.internal.telephony.SmsConstants;
838 ted.codeUnitSize = SmsConstants.ENCODING_7BIT;
840 if (septets > SmsConstants.MAX_USER_DATA_SEPTETS) {
841 ted.msgCount = (septets + (SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER - 1)) /
842 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER;
844 SmsConstants.MAX_USER_DATA_SEPTETS_WITH_HEADER) - septets;
847 ted.codeUnitsRemaining = SmsConstants.MAX_USER_DATA_SEPTETS - septets;
849 ted.codeUnitSize = SmsConstants.ENCODING_7BIT;
911 ted.codeUnitSize = SmsConstants.ENCODING_7BIT;
929 if (septets + udhLength > SmsConstants.MAX_USER_DATA_SEPTETS) {
[all …]
DSmsConstants.java24 public class SmsConstants { class
DSmsHeader.java19 import com.android.internal.telephony.SmsConstants;
212 new ByteArrayOutputStream(SmsConstants.MAX_USER_DATA_BYTES); in toByteArray()
DSms7BitEncodingTranslator.java169 return (SmsConstants.FORMAT_3GPP2.equals(SmsManager.getDefault().getImsSmsFormat())); in useCdmaFormatForMoSms()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DSmsMessageTest.java21 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/
DSmsMessage.java30 import com.android.internal.telephony.SmsConstants;
184 SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in createFromPdu()
190 SmsConstants.FORMAT_3GPP : SmsConstants.FORMAT_3GPP2; in createFromPdu()
214 if (SmsConstants.FORMAT_3GPP2.equals(format)) { in createFromPdu()
216 } else if (SmsConstants.FORMAT_3GPP.equals(format)) { in createFromPdu()
382 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText()
400 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()
403 limit = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fragmentText()
414 limit = SmsConstants.MAX_USER_DATA_BYTES; in fragmentText()
431 if (ted.codeUnitSize == SmsConstants.ENCODING_7BIT) { in fragmentText()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmInboundSmsHandler.java27 import com.android.internal.telephony.SmsConstants;
108 .filter(mContext, new byte[][]{sms.getPdu()}, SmsConstants.FORMAT_3GPP, in dispatchMessageRadioSpecific()
137 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
DGsmSMSDispatcher.java29 import com.android.internal.telephony.SmsConstants;
73 return SmsConstants.FORMAT_3GPP; in getFormat()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsDispatchersController.java77 private String mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN;
161 mImsSmsFormat = SmsConstants.FORMAT_3GPP; in setImsSmsFormat()
164 mImsSmsFormat = SmsConstants.FORMAT_3GPP2; in setImsSmsFormat()
167 mImsSmsFormat = SmsConstants.FORMAT_UNKNOWN; in setImsSmsFormat()
175 mIms = responseArray[0] == 1 && !SmsConstants.FORMAT_UNKNOWN.equals(mImsSmsFormat); in updateImsInfo()
227 if (format.equals(SmsConstants.FORMAT_3GPP)) { in injectSmsPdu()
231 } else if (format.equals(SmsConstants.FORMAT_3GPP2)) { in injectSmsPdu()
DInboundSmsTracker.java320 return mIs3gpp2 ? SmsConstants.FORMAT_3GPP2 : SmsConstants.FORMAT_3GPP; in getFormat()
DImsSmsDispatcher.java245 return SmsConstants.FORMAT_UNKNOWN; in getFormat()
293 if (SmsConstants.FORMAT_3GPP.equals(getFormat()) && tracker.mRetryCount > 0) { in sendSms()
DSMSDispatcher.java966 int encoding = SmsConstants.ENCODING_UNKNOWN; in sendMultipartText()
972 && (encoding == SmsConstants.ENCODING_UNKNOWN in sendMultipartText()
973 || encoding == SmsConstants.ENCODING_7BIT)) { in sendMultipartText()
1001 if (encoding == SmsConstants.ENCODING_7BIT) { in sendMultipartText()
1060 if (encoding == SmsConstants.ENCODING_7BIT) { in getNewSubmitPduTracker()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSMSDispatcher.java28 import com.android.internal.telephony.SmsConstants;
48 return SmsConstants.FORMAT_3GPP2; in getFormat()
DCdmaInboundSmsHandler.java31 import com.android.internal.telephony.SmsConstants;
162 sms.getMessageClass() != SmsConstants.MessageClass.CLASS_0) { in dispatchMessageRadioSpecific()
DSmsMessageConverter.java33 import com.android.internal.telephony.SmsConstants;
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java33 import com.android.internal.telephony.SmsConstants;
774 public SmsConstants.MessageClass getMessageClass() { in getMessageClass()
776 return SmsConstants.MessageClass.CLASS_0; in getMessageClass()
778 return SmsConstants.MessageClass.UNKNOWN; in getMessageClass()
DBearerData.java28 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()
698 if (bData.userData.payload.length > SmsConstants.MAX_USER_DATA_BYTES) { in encodeUserData()
701 " > " + SmsConstants.MAX_USER_DATA_BYTES + " bytes)"); in encodeUserData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java34 import com.android.internal.telephony.SmsConstants;
1452 SmsMessage message = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in handleSms()
1478 SmsMessage message = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in handleSmses()

12