use of com.android.ims.ImsUtInterface in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhone method getCallBarring.
public void getCallBarring(String facility, Message onComplete) {
if (DBG)
Rlog.d(LOG_TAG, "getCallBarring facility=" + facility);
Message resp;
resp = obtainMessage(EVENT_GET_CALL_BARRING_DONE, onComplete);
try {
ImsUtInterface ut = mCT.getUtInterface();
ut.queryCallBarring(getCBTypeFromFacility(facility), resp);
} catch (ImsException e) {
sendErrorResponse(onComplete, e);
}
}
use of com.android.ims.ImsUtInterface in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhone method setCallBarring.
public void setCallBarring(String facility, boolean lockState, String password, Message onComplete) {
if (DBG)
Rlog.d(LOG_TAG, "setCallBarring facility=" + facility + ", lockState=" + lockState);
Message resp;
resp = obtainMessage(EVENT_SET_CALL_BARRING_DONE, onComplete);
int action;
if (lockState) {
action = CommandsInterface.CF_ACTION_ENABLE;
} else {
action = CommandsInterface.CF_ACTION_DISABLE;
}
try {
ImsUtInterface ut = mCT.getUtInterface();
// password is not required with Ut interface
ut.updateCallBarring(getCBTypeFromFacility(facility), action, resp, null);
} catch (ImsException e) {
sendErrorResponse(onComplete, e);
}
}
use of com.android.ims.ImsUtInterface in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhone method setOutgoingCallerIdDisplay.
@Override
public void setOutgoingCallerIdDisplay(int clirMode, Message onComplete) {
if (DBG)
Rlog.d(LOG_TAG, "setCLIR action= " + clirMode);
Message resp;
// Packing CLIR value in the message. This will be required for
// SharedPreference caching, if the message comes back as part of
// a success response.
resp = obtainMessage(EVENT_SET_CLIR_DONE, clirMode, 0, onComplete);
try {
ImsUtInterface ut = mCT.getUtInterface();
ut.updateCLIR(clirMode, resp);
} catch (ImsException e) {
sendErrorResponse(onComplete, e);
}
}
Aggregations