aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/android/internal/telephony/gsm/GsmMmiCode.java')
-rw-r--r--src/java/com/android/internal/telephony/gsm/GsmMmiCode.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java b/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
index 10efdc410..08a8b85ec 100644
--- a/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
+++ b/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
@@ -24,7 +24,7 @@ import android.os.*;
import android.telephony.PhoneNumberUtils;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
-import android.util.Log;
+import android.telephony.Rlog;
import static com.android.internal.telephony.CommandsInterface.*;
@@ -476,7 +476,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
static private boolean
isTwoDigitShortCode(Context context, String dialString) {
- Log.d(LOG_TAG, "isTwoDigitShortCode");
+ Rlog.d(LOG_TAG, "isTwoDigitShortCode");
if (dialString == null || dialString.length() != 2) return false;
@@ -486,13 +486,13 @@ public final class GsmMmiCode extends Handler implements MmiCode {
}
for (String dialnumber : sTwoDigitNumberPattern) {
- Log.d(LOG_TAG, "Two Digit Number Pattern " + dialnumber);
+ Rlog.d(LOG_TAG, "Two Digit Number Pattern " + dialnumber);
if (dialString.equals(dialnumber)) {
- Log.d(LOG_TAG, "Two Digit Number Pattern -true");
+ Rlog.d(LOG_TAG, "Two Digit Number Pattern -true");
return true;
}
}
- Log.d(LOG_TAG, "Two Digit Number Pattern -false");
+ Rlog.d(LOG_TAG, "Two Digit Number Pattern -false");
return false;
}
@@ -637,14 +637,14 @@ public final class GsmMmiCode extends Handler implements MmiCode {
processCode () {
try {
if (isShortCode()) {
- Log.d(LOG_TAG, "isShortCode");
+ Rlog.d(LOG_TAG, "isShortCode");
// These just get treated as USSD.
sendUssd(dialingNumber);
} else if (dialingNumber != null) {
// We should have no dialing numbers here
throw new RuntimeException ("Invalid or Unsupported MMI Code");
} else if (sc != null && sc.equals(SC_CLIP)) {
- Log.d(LOG_TAG, "is CLIP");
+ Rlog.d(LOG_TAG, "is CLIP");
if (isInterrogate()) {
phone.mCM.queryCLIP(
obtainMessage(EVENT_QUERY_COMPLETE, this));
@@ -652,7 +652,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
throw new RuntimeException ("Invalid or Unsupported MMI Code");
}
} else if (sc != null && sc.equals(SC_CLIR)) {
- Log.d(LOG_TAG, "is CLIR");
+ Rlog.d(LOG_TAG, "is CLIR");
if (isActivate()) {
phone.mCM.setCLIR(CommandsInterface.CLIR_INVOCATION,
obtainMessage(EVENT_SET_COMPLETE, this));
@@ -666,7 +666,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
throw new RuntimeException ("Invalid or Unsupported MMI Code");
}
} else if (isServiceCodeCallForwarding(sc)) {
- Log.d(LOG_TAG, "is CF");
+ Rlog.d(LOG_TAG, "is CF");
String dialingNumber = sia;
int serviceClass = siToServiceClass(sib);
@@ -702,7 +702,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
((cfAction == CommandsInterface.CF_ACTION_ENABLE) ||
(cfAction == CommandsInterface.CF_ACTION_REGISTRATION)) ? 1 : 0;
- Log.d(LOG_TAG, "is CF setCallForward");
+ Rlog.d(LOG_TAG, "is CF setCallForward");
phone.mCM.setCallForward(cfAction, reason, serviceClass,
dialingNumber, time, obtainMessage(
EVENT_SET_CFF_COMPLETE,
@@ -957,7 +957,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
if (ar.exception instanceof CommandException) {
CommandException.Error err = ((CommandException)(ar.exception)).getCommandError();
if (err == CommandException.Error.FDN_CHECK_FAILURE) {
- Log.i(LOG_TAG, "FDN_CHECK_FAILURE");
+ Rlog.i(LOG_TAG, "FDN_CHECK_FAILURE");
return context.getText(com.android.internal.R.string.mmiFdnError);
}
}
@@ -1018,7 +1018,7 @@ public final class GsmMmiCode extends Handler implements MmiCode {
sb.append(context.getText(
com.android.internal.R.string.needPuk2));
} else if (err == CommandException.Error.FDN_CHECK_FAILURE) {
- Log.i(LOG_TAG, "FDN_CHECK_FAILURE");
+ Rlog.i(LOG_TAG, "FDN_CHECK_FAILURE");
sb.append(context.getText(com.android.internal.R.string.mmiFdnError));
} else {
sb.append(context.getText(