use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method modemReset.
public void modemReset(int indicationType, String reason) {
mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_MODEM_RESTART, reason);
mRil.writeMetricsModemRestartEvent(reason);
mRil.mModemResetRegistrants.notifyRegistrants(new AsyncResult(null, reason, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method currentEmergencyNumberList.
/**
* Indicates current emergency number list.
*/
public void currentEmergencyNumberList(int indicationType, ArrayList<android.hardware.radio.V1_4.EmergencyNumber> emergencyNumberList) {
List<EmergencyNumber> response = new ArrayList<>(emergencyNumberList.size());
for (android.hardware.radio.V1_4.EmergencyNumber emergencyNumberHal : emergencyNumberList) {
EmergencyNumber emergencyNumber = new EmergencyNumber(emergencyNumberHal.number, MccTable.countryCodeForMcc(emergencyNumberHal.mcc), emergencyNumberHal.mnc, emergencyNumberHal.categories, emergencyNumberHal.urns, emergencyNumberHal.sources, EmergencyNumber.EMERGENCY_CALL_ROUTING_UNKNOWN);
response.add(emergencyNumber);
}
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_EMERGENCY_NUMBER_LIST, response);
// Cache emergency number list from last indication.
mRil.cacheEmergencyNumberListIndication(response);
// Notify emergency number list from radio to registrants
mRil.mEmergencyNumberListRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method barringInfoChanged.
/**
* Indicate that BarringInfo has changed for the current cell and user.
*
* @param cellIdentity a CellIdentity the CellIdentity of the Cell
* @param barringInfos the updated barring information from the current cell, filtered for the
* current PLMN and access class / access category.
*/
public void barringInfoChanged(int indicationType, android.hardware.radio.V1_5.CellIdentity cellIdentity, ArrayList<android.hardware.radio.V1_5.BarringInfo> barringInfos) {
mRil.processIndication(indicationType);
if (cellIdentity == null || barringInfos == null) {
AnomalyReporter.reportAnomaly(UUID.fromString("645b16bb-c930-4c1c-9c5d-568696542e05"), "Invalid barringInfoChanged indication");
mRil.riljLoge("Invalid barringInfoChanged indication");
return;
}
CellIdentity ci = CellIdentity.create(cellIdentity);
BarringInfo cbi = BarringInfo.create(cellIdentity, barringInfos);
mRil.mBarringInfoChangedRegistrants.notifyRegistrants(new AsyncResult(null, cbi, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method lceData.
public void lceData(int indicationType, LceDataInfo lce) {
mRil.processIndication(indicationType);
LinkCapacityEstimate response = RIL.convertHalLceData(lce, mRil);
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_LCEDATA_RECV, response);
if (mRil.mLceInfoRegistrants != null) {
mRil.mLceInfoRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method carrierInfoForImsiEncryption.
/**
* Indicates when the carrier info to encrypt IMSI is being requested
* @param indicationType RadioIndicationType
*/
public void carrierInfoForImsiEncryption(int indicationType) {
mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION, null);
mRil.mCarrierInfoForImsiEncryptionRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
}
Aggregations