use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method currentSignalStrength_1_2.
/**
* Indicates the current signal strength of the camped or primary serving cell.
*/
public void currentSignalStrength_1_2(int indicationType, android.hardware.radio.V1_2.SignalStrength signalStrength) {
mRil.processIndication(indicationType);
SignalStrength ss = new SignalStrength(signalStrength);
// Note this is set to "verbose" because it happens frequently
if (RIL.RILJ_LOGV)
mRil.unsljLogvRet(RIL_UNSOL_SIGNAL_STRENGTH, ss);
if (mRil.mSignalStrengthRegistrant != null) {
mRil.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult(null, ss, null));
}
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method hardwareConfigChanged.
public void hardwareConfigChanged(int indicationType, ArrayList<android.hardware.radio.V1_0.HardwareConfig> configs) {
mRil.processIndication(indicationType);
ArrayList<HardwareConfig> response = RIL.convertHalHwConfigList(configs, mRil);
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_HARDWARE_CONFIG_CHANGED, response);
mRil.mHardwareConfigChangeRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method voiceRadioTechChanged.
public void voiceRadioTechChanged(int indicationType, int rat) {
mRil.processIndication(indicationType);
int[] response = new int[1];
response[0] = rat;
if (RIL.RILJ_LOGD)
mRil.unsljLogRet(RIL_UNSOL_VOICE_RADIO_TECH_CHANGED, response);
mRil.mVoiceRadioTechChangedRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method cdmaNewSms.
public void cdmaNewSms(int indicationType, CdmaSmsMessage msg) {
mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD)
mRil.unsljLog(RIL_UNSOL_RESPONSE_CDMA_NEW_SMS);
// todo: conversion from CdmaSmsMessage to SmsMessage should be contained in this class so
// that usage of auto-generated HAL classes is limited to this file
SmsMessage sms = SmsMessageConverter.newSmsMessageFromCdmaSmsMessage(msg);
if (mRil.mCdmaSmsRegistrant != null) {
mRil.mCdmaSmsRegistrant.notifyRegistrant(new AsyncResult(null, sms, null));
}
}
use of android.os.AsyncResult in project android_frameworks_opt_telephony by LineageOS.
the class RadioIndication method currentSignalStrength.
public void currentSignalStrength(int indicationType, android.hardware.radio.V1_0.SignalStrength signalStrength) {
mRil.processIndication(indicationType);
SignalStrength ssInitial = new SignalStrength(signalStrength);
SignalStrength ss = mRil.fixupSignalStrength10(ssInitial);
// Note this is set to "verbose" because it happens frequently
if (RIL.RILJ_LOGV)
mRil.unsljLogvRet(RIL_UNSOL_SIGNAL_STRENGTH, ss);
if (mRil.mSignalStrengthRegistrant != null) {
mRil.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult(null, ss, null));
}
}
Aggregations