Search in sources :

Example 1 with Registrant

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

the class IccCard method registerForAbsent.

/**
     * Notifies handler of any transition into State.ABSENT
     */
public void registerForAbsent(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mAbsentRegistrants.add(r);
    if (getState() == State.ABSENT) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 2 with Registrant

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

the class IccCard method registerForLocked.

/**
     * Notifies handler of any transition into State.isPinLocked()
     */
public void registerForLocked(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mPinLockedRegistrants.add(r);
    if (getState().isPinLocked()) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 3 with Registrant

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

the class BaseCommands method registerForRingbackTone.

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

Example 4 with Registrant

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

the class BaseCommands method registerForInCallVoicePrivacyOn.

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

Example 5 with Registrant

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

the class BaseCommands method registerForRadioStateChanged.

public void registerForRadioStateChanged(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    synchronized (mStateMonitor) {
        mRadioStateChangedRegistrants.add(r);
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Aggregations

Registrant (android.os.Registrant)121 AsyncResult (android.os.AsyncResult)12 Message (android.os.Message)5 IllegalArgumentException (java.lang.IllegalArgumentException)2 RegistrantList (android.os.RegistrantList)1