Loading src/java/com/android/internal/telephony/Phone.java +4 −4 Original line number Diff line number Diff line Loading @@ -580,10 +580,6 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { .makeAppSmsManager(context); mLocalLog = new LocalLog(64); if (TelephonyUtils.IS_DEBUGGABLE) { mTelephonyTester = new TelephonyTester(this); } setUnitTestMode(unitTestMode); SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); Loading Loading @@ -626,6 +622,10 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { return; } if (TelephonyUtils.IS_DEBUGGABLE) { mTelephonyTester = new TelephonyTester(this); } // Initialize device storage and outgoing SMS usage monitors for SMSDispatchers. mTelephonyComponentFactory = telephonyComponentFactory; mSmsStorageMonitor = mTelephonyComponentFactory.inject(SmsStorageMonitor.class.getName()) Loading src/java/com/android/internal/telephony/TelephonyTester.java +11 −4 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ import java.util.List; * */ public class TelephonyTester { private static final String LOG_TAG = "TelephonyTester"; private static final boolean DBG = true; /** Loading Loading @@ -144,6 +143,7 @@ public class TelephonyTester { "com.android.internal.telephony.TestServiceState"; private static final String EXTRA_ACTION = "action"; private static final String EXTRA_PHONE_ID = "phone_id"; private static final String EXTRA_VOICE_RAT = "voice_rat"; private static final String EXTRA_DATA_RAT = "data_rat"; private static final String EXTRA_VOICE_REG_STATE = "voice_reg_state"; Loading @@ -157,6 +157,8 @@ public class TelephonyTester { private static final String ACTION_RESET = "reset"; private String mLogTag; private static List<ImsExternalCallState> mImsExternalCallStates = null; private Intent mServiceStateTestIntent; Loading Loading @@ -216,7 +218,7 @@ public class TelephonyTester { if (DBG) log("onReceive: unknown action=" + action); } } catch (BadParcelableException e) { Rlog.w(LOG_TAG, e); Rlog.w(mLogTag, e); } } }; Loading @@ -225,6 +227,7 @@ public class TelephonyTester { mPhone = phone; if (TelephonyUtils.IS_DEBUGGABLE) { mLogTag = "TelephonyTester-" + mPhone.getPhoneId(); IntentFilter filter = new IntentFilter(); filter.addAction(mPhone.getActionDetached()); Loading Loading @@ -261,8 +264,8 @@ public class TelephonyTester { } } private static void log(String s) { Rlog.d(LOG_TAG, s); private void log(String s) { Rlog.d(mLogTag, s); } private void handleSuppServiceFailedIntent(Intent intent) { Loading Loading @@ -387,6 +390,10 @@ public class TelephonyTester { void overrideServiceState(ServiceState ss) { if (mServiceStateTestIntent == null || ss == null) return; if (mPhone.getPhoneId() != mServiceStateTestIntent.getIntExtra( EXTRA_PHONE_ID, mPhone.getPhoneId())) { return; } if (mServiceStateTestIntent.hasExtra(EXTRA_ACTION) && ACTION_RESET.equals(mServiceStateTestIntent.getStringExtra(EXTRA_ACTION))) { log("Service state override reset"); Loading Loading
src/java/com/android/internal/telephony/Phone.java +4 −4 Original line number Diff line number Diff line Loading @@ -580,10 +580,6 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { .makeAppSmsManager(context); mLocalLog = new LocalLog(64); if (TelephonyUtils.IS_DEBUGGABLE) { mTelephonyTester = new TelephonyTester(this); } setUnitTestMode(unitTestMode); SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); Loading Loading @@ -626,6 +622,10 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { return; } if (TelephonyUtils.IS_DEBUGGABLE) { mTelephonyTester = new TelephonyTester(this); } // Initialize device storage and outgoing SMS usage monitors for SMSDispatchers. mTelephonyComponentFactory = telephonyComponentFactory; mSmsStorageMonitor = mTelephonyComponentFactory.inject(SmsStorageMonitor.class.getName()) Loading
src/java/com/android/internal/telephony/TelephonyTester.java +11 −4 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ import java.util.List; * */ public class TelephonyTester { private static final String LOG_TAG = "TelephonyTester"; private static final boolean DBG = true; /** Loading Loading @@ -144,6 +143,7 @@ public class TelephonyTester { "com.android.internal.telephony.TestServiceState"; private static final String EXTRA_ACTION = "action"; private static final String EXTRA_PHONE_ID = "phone_id"; private static final String EXTRA_VOICE_RAT = "voice_rat"; private static final String EXTRA_DATA_RAT = "data_rat"; private static final String EXTRA_VOICE_REG_STATE = "voice_reg_state"; Loading @@ -157,6 +157,8 @@ public class TelephonyTester { private static final String ACTION_RESET = "reset"; private String mLogTag; private static List<ImsExternalCallState> mImsExternalCallStates = null; private Intent mServiceStateTestIntent; Loading Loading @@ -216,7 +218,7 @@ public class TelephonyTester { if (DBG) log("onReceive: unknown action=" + action); } } catch (BadParcelableException e) { Rlog.w(LOG_TAG, e); Rlog.w(mLogTag, e); } } }; Loading @@ -225,6 +227,7 @@ public class TelephonyTester { mPhone = phone; if (TelephonyUtils.IS_DEBUGGABLE) { mLogTag = "TelephonyTester-" + mPhone.getPhoneId(); IntentFilter filter = new IntentFilter(); filter.addAction(mPhone.getActionDetached()); Loading Loading @@ -261,8 +264,8 @@ public class TelephonyTester { } } private static void log(String s) { Rlog.d(LOG_TAG, s); private void log(String s) { Rlog.d(mLogTag, s); } private void handleSuppServiceFailedIntent(Intent intent) { Loading Loading @@ -387,6 +390,10 @@ public class TelephonyTester { void overrideServiceState(ServiceState ss) { if (mServiceStateTestIntent == null || ss == null) return; if (mPhone.getPhoneId() != mServiceStateTestIntent.getIntExtra( EXTRA_PHONE_ID, mPhone.getPhoneId())) { return; } if (mServiceStateTestIntent.hasExtra(EXTRA_ACTION) && ACTION_RESET.equals(mServiceStateTestIntent.getStringExtra(EXTRA_ACTION))) { log("Service state override reset"); Loading