Search in sources :

Example 1 with VoLteServiceState

use of android.telephony.VoLteServiceState in project android_frameworks_base by AOSPA.

the class TelephonyRegistry method notifyVoLteServiceStateChanged.

public void notifyVoLteServiceStateChanged(VoLteServiceState lteState) {
    if (!checkNotifyPermission("notifyVoLteServiceStateChanged()")) {
        return;
    }
    synchronized (mRecords) {
        mVoLteServiceState = lteState;
        for (Record r : mRecords) {
            if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_VOLTE_STATE)) {
                try {
                    r.callback.onVoLteServiceStateChanged(new VoLteServiceState(mVoLteServiceState));
                } catch (RemoteException ex) {
                    mRemoveList.add(r.binder);
                }
            }
        }
        handleRemoveListLocked();
    }
}
Also used : VoLteServiceState(android.telephony.VoLteServiceState) RemoteException(android.os.RemoteException)

Example 2 with VoLteServiceState

use of android.telephony.VoLteServiceState in project android_frameworks_opt_telephony by LineageOS.

the class VoLteServiceStateTest method testFillInNotifierBundle.

@SmallTest
public void testFillInNotifierBundle() {
    Bundle b = new Bundle();
    VoLteServiceState state = new VoLteServiceState(VoLteServiceState.HANDOVER_CANCELED);
    state.fillInNotifierBundle(b);
    assertEquals(VoLteServiceState.HANDOVER_CANCELED, b.getInt("mSrvccState"));
}
Also used : Bundle(android.os.Bundle) VoLteServiceState(android.telephony.VoLteServiceState) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 3 with VoLteServiceState

use of android.telephony.VoLteServiceState in project platform_frameworks_base by android.

the class TelephonyRegistry method notifyVoLteServiceStateChanged.

public void notifyVoLteServiceStateChanged(VoLteServiceState lteState) {
    if (!checkNotifyPermission("notifyVoLteServiceStateChanged()")) {
        return;
    }
    synchronized (mRecords) {
        mVoLteServiceState = lteState;
        for (Record r : mRecords) {
            if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_VOLTE_STATE)) {
                try {
                    r.callback.onVoLteServiceStateChanged(new VoLteServiceState(mVoLteServiceState));
                } catch (RemoteException ex) {
                    mRemoveList.add(r.binder);
                }
            }
        }
        handleRemoveListLocked();
    }
}
Also used : VoLteServiceState(android.telephony.VoLteServiceState) RemoteException(android.os.RemoteException)

Example 4 with VoLteServiceState

use of android.telephony.VoLteServiceState in project android_frameworks_base by DirtyUnicorns.

the class TelephonyRegistry method notifyVoLteServiceStateChanged.

public void notifyVoLteServiceStateChanged(VoLteServiceState lteState) {
    if (!checkNotifyPermission("notifyVoLteServiceStateChanged()")) {
        return;
    }
    synchronized (mRecords) {
        mVoLteServiceState = lteState;
        for (Record r : mRecords) {
            if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_VOLTE_STATE)) {
                try {
                    r.callback.onVoLteServiceStateChanged(new VoLteServiceState(mVoLteServiceState));
                } catch (RemoteException ex) {
                    mRemoveList.add(r.binder);
                }
            }
        }
        handleRemoveListLocked();
    }
}
Also used : VoLteServiceState(android.telephony.VoLteServiceState) RemoteException(android.os.RemoteException)

Example 5 with VoLteServiceState

use of android.telephony.VoLteServiceState in project android_frameworks_base by ResurrectionRemix.

the class TelephonyRegistry method notifyVoLteServiceStateChanged.

public void notifyVoLteServiceStateChanged(VoLteServiceState lteState) {
    if (!checkNotifyPermission("notifyVoLteServiceStateChanged()")) {
        return;
    }
    synchronized (mRecords) {
        mVoLteServiceState = lteState;
        for (Record r : mRecords) {
            if (r.matchPhoneStateListenerEvent(PhoneStateListener.LISTEN_VOLTE_STATE)) {
                try {
                    r.callback.onVoLteServiceStateChanged(new VoLteServiceState(mVoLteServiceState));
                } catch (RemoteException ex) {
                    mRemoveList.add(r.binder);
                }
            }
        }
        handleRemoveListLocked();
    }
}
Also used : VoLteServiceState(android.telephony.VoLteServiceState) RemoteException(android.os.RemoteException)

Aggregations

VoLteServiceState (android.telephony.VoLteServiceState)11 RemoteException (android.os.RemoteException)5 SmallTest (android.test.suitebuilder.annotation.SmallTest)5 Bundle (android.os.Bundle)1 Parcel (android.os.Parcel)1 ImsCall (com.android.ims.ImsCall)1 ImsPhoneCall (com.android.internal.telephony.imsphone.ImsPhoneCall)1 Test (org.junit.Test)1