Loading telephony/java/android/telephony/SmsMessage.java +0 −22 Original line number Diff line number Diff line Loading @@ -254,28 +254,6 @@ public class SmsMessage { } } /** * TS 27.005 3.4.1 lines[0] and lines[1] are the two lines read from the * +CMT unsolicited response (PDU mode, of course) * +CMT: [<alpha>],<length><CR><LF><pdu> * * Only public for debugging and for RIL * * {@hide} */ public static SmsMessage newFromCMT(byte[] pdu) { // received SMS in 3GPP format SmsMessageBase wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.newFromCMT(pdu); if (wrappedMessage != null) { return new SmsMessage(wrappedMessage); } else { Rlog.e(LOG_TAG, "newFromCMT(): wrappedMessage is null"); return null; } } /** * Creates an SmsMessage from an SMS EF record. * Loading telephony/java/com/android/internal/telephony/gsm/SmsMessage.java +0 −32 Original line number Diff line number Diff line Loading @@ -139,38 +139,6 @@ public class SmsMessage extends SmsMessageBase { return (mProtocolIdentifier == 0x40); } /** * TS 27.005 3.4.1 lines[0] and lines[1] are the two lines read from the * +CMT unsolicited response (PDU mode, of course) * +CMT: [<alpha>],<length><CR><LF><pdu> * * Only public for debugging * * {@hide} */ public static SmsMessage newFromCMT(byte[] pdu) { try { SmsMessage msg = new SmsMessage(); msg.parsePdu(pdu); return msg; } catch (RuntimeException ex) { Rlog.e(LOG_TAG, "SMS PDU parsing failed: ", ex); return null; } } /** @hide */ public static SmsMessage newFromCDS(byte[] pdu) { try { SmsMessage msg = new SmsMessage(); msg.parsePdu(pdu); return msg; } catch (RuntimeException ex) { Rlog.e(LOG_TAG, "CDS SMS PDU parsing failed: ", ex); return null; } } /** * Creates an SmsMessage from an SMS EF record. * Loading Loading
telephony/java/android/telephony/SmsMessage.java +0 −22 Original line number Diff line number Diff line Loading @@ -254,28 +254,6 @@ public class SmsMessage { } } /** * TS 27.005 3.4.1 lines[0] and lines[1] are the two lines read from the * +CMT unsolicited response (PDU mode, of course) * +CMT: [<alpha>],<length><CR><LF><pdu> * * Only public for debugging and for RIL * * {@hide} */ public static SmsMessage newFromCMT(byte[] pdu) { // received SMS in 3GPP format SmsMessageBase wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.newFromCMT(pdu); if (wrappedMessage != null) { return new SmsMessage(wrappedMessage); } else { Rlog.e(LOG_TAG, "newFromCMT(): wrappedMessage is null"); return null; } } /** * Creates an SmsMessage from an SMS EF record. * Loading
telephony/java/com/android/internal/telephony/gsm/SmsMessage.java +0 −32 Original line number Diff line number Diff line Loading @@ -139,38 +139,6 @@ public class SmsMessage extends SmsMessageBase { return (mProtocolIdentifier == 0x40); } /** * TS 27.005 3.4.1 lines[0] and lines[1] are the two lines read from the * +CMT unsolicited response (PDU mode, of course) * +CMT: [<alpha>],<length><CR><LF><pdu> * * Only public for debugging * * {@hide} */ public static SmsMessage newFromCMT(byte[] pdu) { try { SmsMessage msg = new SmsMessage(); msg.parsePdu(pdu); return msg; } catch (RuntimeException ex) { Rlog.e(LOG_TAG, "SMS PDU parsing failed: ", ex); return null; } } /** @hide */ public static SmsMessage newFromCDS(byte[] pdu) { try { SmsMessage msg = new SmsMessage(); msg.parsePdu(pdu); return msg; } catch (RuntimeException ex) { Rlog.e(LOG_TAG, "CDS SMS PDU parsing failed: ", ex); return null; } } /** * Creates an SmsMessage from an SMS EF record. * Loading