use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method indicateRingbackTone.
public void indicateRingbackTone(int indicationType, boolean start) {
mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD)
mRil.unsljLogvRet(RIL_UNSOL_RINGBACK_TONE, start);
mRil.mRingbackToneRegistrants.notifyRegistrants(new AsyncResult(null, start, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method responseNetworkScan_1_4.
private void responseNetworkScan_1_4(int indicationType, android.hardware.radio.V1_4.NetworkScanResult result) {
mRil.processIndication(indicationType);
ArrayList<CellInfo> cellInfos = RIL.convertHalCellInfoList_1_4(result.networkInfos);
NetworkScanResult nsr = new NetworkScanResult(result.status, result.error, cellInfos);
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_NETWORK_SCAN_RESULT, nsr);
mRil.mRilNetworkScanResultRegistrants.notifyRegistrants(new AsyncResult(null, nsr, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method cdmaOtaProvisionStatus.
public void cdmaOtaProvisionStatus(int indicationType, int status) {
mRil.processIndication(indicationType);
int[] response = new int[1];
response[0] = status;
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_CDMA_OTA_PROVISION_STATUS, response);
mRil.mOtaProvisionRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method currentLinkCapacityEstimate.
/**
* Indicates current link capacity estimate.
*/
public void currentLinkCapacityEstimate(int indicationType, android.hardware.radio.V1_2.LinkCapacityEstimate 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 RadioResponse method getBarringInfoResponse.
/**
* @param responseInfo Response info struct containing response type, serial no. and error.
* @param cellIdentity CellIdentity for the barringInfos.
* @param barringInfos List of BarringInfo for all the barring service types.
*/
public void getBarringInfoResponse(RadioResponseInfo responseInfo, android.hardware.radio.V1_5.CellIdentity cellIdentity, ArrayList<android.hardware.radio.V1_5.BarringInfo> barringInfos) {
RILRequest rr = mRil.processResponse(responseInfo);
if (rr != null) {
BarringInfo bi = BarringInfo.create(cellIdentity, barringInfos);
if (responseInfo.error == RadioError.NONE) {
sendMessageResponse(rr.mResult, bi);
// notify all registrants for the possible barring info change
mRil.mBarringInfoChangedRegistrants.notifyRegistrants(new AsyncResult(null, bi, null));
}
mRil.processResponseDone(rr, responseInfo, bi);
}
}
Aggregations