Search in sources :

Example 46 with Registrant

use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.

the class IccRecords method registerForNewSms.

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

Example 47 with Registrant

use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.

the class IccRecords method registerForSpnUpdate.

public void registerForSpnUpdate(Handler h, int what, Object obj) {
    if (mDestroyed.get()) {
        return;
    }
    Registrant r = new Registrant(h, what, obj);
    mSpnUpdatedRegistrants.add(r);
    if (!TextUtils.isEmpty(mSpn)) {
        r.notifyRegistrant(new AsyncResult(null, null, null));
    }
}
Also used : Registrant(android.os.Registrant) AsyncResult(android.os.AsyncResult)

Example 48 with Registrant

use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.

the class IccRecords method registerForRecordsOverride.

public void registerForRecordsOverride(Handler h, int what, Object obj) {
    if (mDestroyed.get()) {
        return;
    }
    Registrant r = new Registrant(h, what, obj);
    mRecordsOverrideRegistrants.add(r);
    if (getRecordsLoaded()) {
        r.notifyRegistrant(new AsyncResult(null, null, null));
    }
}
Also used : Registrant(android.os.Registrant) AsyncResult(android.os.AsyncResult)

Example 49 with Registrant

use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.

the class UiccCardApplication method registerForDetected.

public void registerForDetected(Handler h, int what, Object obj) {
    synchronized (mLock) {
        Registrant r = new Registrant(h, what, obj);
        mDetectedRegistrants.add(r);
        notifyDetectedRegistrantsIfNeeded(r);
    }
}
Also used : Registrant(android.os.Registrant)

Example 50 with Registrant

use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.

the class UiccCardApplication method registerForNetworkLocked.

/**
 * Notifies handler of any transition into State.NETWORK_LOCKED
 */
protected void registerForNetworkLocked(Handler h, int what, Object obj) {
    synchronized (mLock) {
        Registrant r = new Registrant(h, what, obj);
        mNetworkLockedRegistrants.add(r);
        notifyNetworkLockedRegistrantsIfNeeded(r);
    }
}
Also used : Registrant(android.os.Registrant)

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