Search in sources :

Example 76 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForIccStatusChanged.

public void registerForIccStatusChanged(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mIccStatusChangedRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 77 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForVoiceNetworkStateChanged.

public void registerForVoiceNetworkStateChanged(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mVoiceNetworkStateRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 78 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForRedirectedNumberInfo.

public void registerForRedirectedNumberInfo(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mRedirNumInfoRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 79 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForLineControlInfo.

public void registerForLineControlInfo(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mLineControlInfoRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 80 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForRilConnected.

/**
     * {@inheritDoc}
     */
@Override
public void registerForRilConnected(Handler h, int what, Object obj) {
    Log.d(LOG_TAG, "registerForRilConnected h=" + h + " w=" + what);
    Registrant r = new Registrant(h, what, obj);
    mRilConnectedRegistrants.add(r);
    if (mRilVersion != -1) {
        Log.d(LOG_TAG, "Notifying: ril connected mRilVersion=" + mRilVersion);
        r.notifyRegistrant(new AsyncResult(null, new Integer(mRilVersion), null));
    }
}
Also used : Registrant(android.os.Registrant) AsyncResult(android.os.AsyncResult)

Aggregations

Registrant (android.os.Registrant)139 AsyncResult (android.os.AsyncResult)19 Message (android.os.Message)5 RegistrantList (android.os.RegistrantList)4 NetworkRegistrationInfo (android.telephony.NetworkRegistrationInfo)2 IllegalArgumentException (java.lang.IllegalArgumentException)2 UnsupportedAppUsage (android.compat.annotation.UnsupportedAppUsage)1 PhysicalChannelConfig (android.telephony.PhysicalChannelConfig)1 SubscriptionInfo (android.telephony.SubscriptionInfo)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1