FileDocCategorySizeDatePackage
DcTesterDeactivateAll.javaAPI DocAndroid 5.1 API3265Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.dataconnection

DcTesterDeactivateAll

public class DcTesterDeactivateAll extends Object
To bring down all DC's send the following intent: adb shell am broadcast -a com.android.internal.telephony.dataconnection.action_deactivate_all

Fields Summary
private static final String
LOG_TAG
private static final boolean
DBG
private com.android.internal.telephony.PhoneBase
mPhone
private DcController
mDcc
public static String
sActionDcTesterDeactivateAll
protected android.content.BroadcastReceiver
sIntentReceiver
Constructors Summary
DcTesterDeactivateAll(com.android.internal.telephony.PhoneBase phone, DcController dcc, android.os.Handler handler)


          
        mPhone = phone;
        mDcc = dcc;

        if (Build.IS_DEBUGGABLE) {
            IntentFilter filter = new IntentFilter();

            filter.addAction(sActionDcTesterDeactivateAll);
            log("register for intent action=" + sActionDcTesterDeactivateAll);

            filter.addAction(mPhone.getActionDetached());
            log("register for intent action=" + mPhone.getActionDetached());

            phone.getContext().registerReceiver(sIntentReceiver, filter, null, handler);
        }
    
Methods Summary
voiddispose()

        if (Build.IS_DEBUGGABLE) {
            mPhone.getContext().unregisterReceiver(sIntentReceiver);
        }
    
private static voidlog(java.lang.String s)

        Rlog.d(LOG_TAG, s);