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();
}
}
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"));
}
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();
}
}
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();
}
}
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();
}
}
Aggregations