Package: android.hardware.radio.deprecated@1.0

IOemHook

interface IOemHook

This interface has APIs for OEM-specific use-cases.USE OF THIS INTERFACE IS DISCOURATED.IT IS PRESENT ONLY FOR BACKWARD COMPATIBILITY AND WILL BE REMOVED IN O(ATTEMPTING TO REMOVE IT IN O, BUT IF NOT IN O WILL BE REMOVED IN P). ALSO NOTE THAT FRAMEWORK EXPECTS THE SERVICE IMPLEMENTING THIS INTERFACE TO RESIDE IN THE SAME PROCESS AS IRADIO SERVICE.

Methods

setResponseFunctions

setResponseFunctions (IOemHookResponse oemHookResponse, IOemHookIndication oemHookIndication)

Set response functions for oem hook requests & oem hook indications.

Details
Parameters
oemHookResponse
Object containing response functions
oemHookIndication
Object containing oem hook indications

sendRequestRaw

oneway sendRequestRaw (int32_t serial, vec<uint8_t> data)

This request passes raw byte arrays between framework and vendor code.

Response function is IOemHookResponse.sendRequestRawResponse()

Details
RPC mode
oneway
Parameters
serial
Serial number of request.
data
data passed as raw bytes

sendRequestStrings

oneway sendRequestStrings (int32_t serial, vec<string> data)

This request passes strings between framework and vendor code.

Response function is IOemHookResponse.sendRequestStringsResponse()

Details
RPC mode
oneway
Parameters
serial
Serial number of request.
data
data passed as strings