Fix some more typos, remove unused imports, and remove unnecessary cast.
More minor code cleanups in the telephony framework. Change-Id: I27abe11e02fc6fea12885eea4fe275240a546332
This commit is contained in:
@@ -586,7 +586,7 @@ public class PhoneNumberUtils
|
||||
}
|
||||
} else {
|
||||
// In the US, 1-650-555-1234 must be equal to 650-555-1234,
|
||||
// while 090-1234-1234 must not be equalt to 90-1234-1234 in Japan.
|
||||
// while 090-1234-1234 must not be equal to 90-1234-1234 in Japan.
|
||||
// This request exists just in US (with 1 trunk (NDD) prefix).
|
||||
// In addition, "011 11 7005554141" must not equal to "+17005554141",
|
||||
// while "011 1 7005554141" must equal to "+17005554141"
|
||||
|
||||
@@ -67,8 +67,7 @@ public class RuimSmsInterfaceManager extends IccSmsInterfaceManager {
|
||||
ar = (AsyncResult)msg.obj;
|
||||
synchronized (mLock) {
|
||||
if (ar.exception == null) {
|
||||
mSms = (List<SmsRawData>)
|
||||
buildValidRawData((ArrayList<byte[]>) ar.result);
|
||||
mSms = buildValidRawData((ArrayList<byte[]>) ar.result);
|
||||
} else {
|
||||
if(DBG) log("Cannot load Sms records");
|
||||
if (mSms != null)
|
||||
|
||||
@@ -18,11 +18,8 @@ package com.android.internal.telephony.cdma;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.SystemProperties;
|
||||
import android.text.format.Time;
|
||||
import android.util.Config;
|
||||
import android.util.Log;
|
||||
import com.android.internal.telephony.EncodeException;
|
||||
import com.android.internal.telephony.GsmAlphabet;
|
||||
import com.android.internal.telephony.IccUtils;
|
||||
import com.android.internal.telephony.SmsHeader;
|
||||
import com.android.internal.telephony.SmsMessageBase;
|
||||
@@ -33,7 +30,6 @@ import com.android.internal.telephony.cdma.sms.SmsEnvelope;
|
||||
import com.android.internal.telephony.cdma.sms.UserData;
|
||||
import com.android.internal.util.HexDump;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
||||
@@ -958,7 +958,7 @@ public final class BearerData {
|
||||
private static String decode7bitGsm(byte[] data, int offset, int numFields)
|
||||
throws CodingException
|
||||
{
|
||||
// Start reading from the next 7-bit aligned boundry after offset.
|
||||
// Start reading from the next 7-bit aligned boundary after offset.
|
||||
int offsetBits = offset * 8;
|
||||
int offsetSeptets = (offsetBits + 6) / 7;
|
||||
numFields -= offsetSeptets;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.android.internal.telephony.cdma.sms;
|
||||
|
||||
|
||||
public final class SmsEnvelope{
|
||||
public final class SmsEnvelope {
|
||||
/**
|
||||
* Message Types
|
||||
* (See 3GPP2 C.S0015-B 3.4.1)
|
||||
|
||||
Reference in New Issue
Block a user