Search in sources :

Example 1 with IOemHook

use of android.hardware.radio.deprecated.V1_0.IOemHook in project android_frameworks_opt_telephony by LineageOS.

the class RIL method invokeOemRilRequestStrings.

@Override
public void invokeOemRilRequestStrings(String[] strings, Message result) {
    IOemHook oemHookProxy = getOemHookProxy(result);
    if (oemHookProxy != null) {
        RILRequest rr = obtainRequest(RIL_REQUEST_OEM_HOOK_STRINGS, result, mRILDefaultWorkSource);
        String logStr = "";
        for (int i = 0; i < strings.length; i++) {
            logStr = logStr + strings[i] + " ";
        }
        if (RILJ_LOGD) {
            riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " strings = " + logStr);
        }
        try {
            oemHookProxy.sendRequestStrings(rr.mSerial, new ArrayList<String>(Arrays.asList(strings)));
        } catch (RemoteException | RuntimeException e) {
            handleRadioProxyExceptionForRR(rr, "invokeOemRilRequestStrings", e);
        }
    } else {
        // Deprecated OEM Hook APIs will perform dummy before being removed.
        if (RILJ_LOGD)
            riljLog("Radio Oem Hook Service is disabled for P and later devices. ");
    }
}
Also used : IOemHook(android.hardware.radio.deprecated.V1_0.IOemHook) RemoteException(android.os.RemoteException)

Aggregations

IOemHook (android.hardware.radio.deprecated.V1_0.IOemHook)1 RemoteException (android.os.RemoteException)1