Lines Matching defs:format
82 * Indicates a 3GPP format SMS message.
88 * Indicates a 3GPP2 format SMS message.
130 * intent <b>must</b> now pass the new {@code format} String extra from the intent
132 * extra format parameter. This is required in order to correctly decode the PDU on
138 String format = (PHONE_TYPE_CDMA == activePhone) ?
140 return createFromPdu(pdu, format);
144 * Create an SmsMessage from a raw PDU with the specified message format. The
145 * message format is passed in the {@code SMS_RECEIVED_ACTION} as the {@code format}
146 * String extra, and will be either "3gpp" for GSM/UMTS/LTE messages in 3GPP format
147 * or "3gpp2" for CDMA/LTE messages in 3GPP2 format.
150 * @param format the format extra from the SMS_RECEIVED_ACTION intent
153 public static SmsMessage createFromPdu(byte[] pdu, String format) {
156 if (SmsConstants.FORMAT_3GPP2.equals(format)) {
158 } else if (SmsConstants.FORMAT_3GPP.equals(format)) {
161 Log.e(LOG_TAG, "createFromPdu(): unsupported message format " + format);
178 // received SMS in 3GPP format
187 // received SMS in 3GPP2 format
508 * Returns the service centre timestamp in currentTimeMillis() format