summaryrefslogtreecommitdiffstats
path: root/telephony/java/android/telephony/gsm
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 14:04:24 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 14:04:24 -0800
commit076357b8567458d4b6dfdcf839ef751634cd2bfb (patch)
treeefbb2fd6f1dc67d2d606382fc3b82983e7cb2e1f /telephony/java/android/telephony/gsm
parent3dec7d563a2f3e1eb967ce2054a00b6620e3558c (diff)
downloadframeworks_base-076357b8567458d4b6dfdcf839ef751634cd2bfb.zip
frameworks_base-076357b8567458d4b6dfdcf839ef751634cd2bfb.tar.gz
frameworks_base-076357b8567458d4b6dfdcf839ef751634cd2bfb.tar.bz2
auto import from //depot/cupcake/@132589
Diffstat (limited to 'telephony/java/android/telephony/gsm')
-rw-r--r--telephony/java/android/telephony/gsm/SmsMessage.java28
1 files changed, 2 insertions, 26 deletions
diff --git a/telephony/java/android/telephony/gsm/SmsMessage.java b/telephony/java/android/telephony/gsm/SmsMessage.java
index c2e0165..f79b0a0 100644
--- a/telephony/java/android/telephony/gsm/SmsMessage.java
+++ b/telephony/java/android/telephony/gsm/SmsMessage.java
@@ -467,7 +467,7 @@ public class SmsMessage {
* units remaining until the next message. int[3] is the encoding
* type that should be used for the message.
*/
- public static int[] calculateLength(CharSequence messageBody, boolean use7bitOnly) {
+ public static int[] calculateLength(String messageBody, boolean use7bitOnly) {
int ret[] = new int[4];
try {
@@ -502,25 +502,6 @@ public class SmsMessage {
return ret;
}
- /**
- * Calculates the number of SMS's required to encode the message body and
- * the number of characters remaining until the next message, given the
- * current encoding.
- *
- * @param messageBody the message to encode
- * @param use7bitOnly if true, characters that are not part of the GSM
- * alphabet are counted as a single space char. If false, a
- * messageBody containing non-GSM alphabet characters is calculated
- * for 16-bit encoding.
- * @return an int[4] with int[0] being the number of SMS's required, int[1]
- * the number of code units used, and int[2] is the number of code
- * units remaining until the next message. int[3] is the encoding
- * type that should be used for the message.
- */
- public static int[] calculateLength(String messageBody, boolean use7bitOnly) {
- return calculateLength((CharSequence)messageBody, use7bitOnly);
- }
-
/**
* Get an SMS-SUBMIT PDU for a destination address and a message
@@ -560,12 +541,7 @@ public class SmsMessage {
// TP-Data-Coding-Scheme
// Default encoding, uncompressed
- // To test writing messages to the SIM card, change this value 0x00 to 0x12, which
- // means "bits 1 and 0 contain message class, and the class is 2". Note that this
- // takes effect for the sender. In other words, messages sent by the phone with this
- // change will end up on the receiver's SIM card. You can then send messages to
- // yourself (on a phone with this change) and they'll end up on the SIM card.
- bo.write(0x00);
+ bo.write(0x00);
// (no TP-Validity-Period)