Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c4d81b7 authored by Amit Mahajan's avatar Amit Mahajan Committed by Android (Google) Code Review
Browse files

Merge "Create separate interface for oem hook."

parents abc39979 f07efb62
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -725,26 +725,6 @@ interface IRadio {
     */
    oneway getDataCallList(int32_t serial);

    /*
     * This request is reserved for OEM-specific uses. It passes raw byte arrays back and forth.
     *
     * @param serial Serial number of request.
     * @param data data passed as raw bytes to oem
     *
     * Response function is IRadioResponse.sendOemRadioRequestRawResponse()
     */
    oneway sendOemRadioRequestRaw(int32_t serial, vec<uint8_t> data);

    /*
     * This request is reserved for OEM-specific uses. It passes strings back and forth.
     *
     * @param serial Serial number of request.
     * @param data data passed as strings to oem
     *
     * Response function is IRadioResponse.sendOemRadioRequestStringsResponse()
     */
    oneway sendOemRadioRequestStrings(int32_t serial, vec<string> data);

    /*
     * Indicates the current state of the screen. When the screen is off, the
     * Radio must notify the baseband to suppress certain notifications (eg,
+0 −8
Original line number Diff line number Diff line
@@ -292,14 +292,6 @@ interface IRadioIndication {
    */
   oneway cdmaInfoRec(RadioIndicationType type, CdmaInformationRecords records);

   /*
    * This is for OEM specific use.
    *
    * @param type Type of radio indication
    * @param data data passed as raw bytes
    */
   oneway oemHookRaw(RadioIndicationType type, vec<uint8_t> data);

   /*
    * Indicates that nework doesn't have in-band information, need to
    * play out-band tone.
+0 −24
Original line number Diff line number Diff line
@@ -921,30 +921,6 @@ interface IRadioResponse {
     */
    oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);

    /*
     * @param info Response info struct containing response type, serial no. and error
     * @param data data returned by oem
     *
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INVALID_ARGUMENTS
     *   RadioError:OEM_ERROR_X
     */
    oneway sendOemRilRequestRawResponse(RadioResponseInfo info, vec<uint8_t> data);

    /*
     * @param info Response info struct containing response type, serial no. and error
     * @param data data returned by oem
     *
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INVALID_ARGUMENTS
     *   RadioError:OEM_ERROR_X
     */
    oneway sendOemRilRequestStringsResponse(RadioResponseInfo info, vec<string> data);

    /*
     * @param info Response info struct containing response type, serial no. and error
     *
+1 −0
Original line number Diff line number Diff line
@@ -2,4 +2,5 @@
subdirs = [
    "1.0",
    "1.0/vts/functional",
    "deprecated/1.0",
]
+75 −0
Original line number Diff line number Diff line
// This file is autogenerated by hidl-gen. Do not edit manually.

filegroup {
    name: "android.hardware.radio.deprecated@1.0_hal",
    srcs: [
        "IOemHook.hal",
        "IOemHookIndication.hal",
        "IOemHookResponse.hal",
    ],
}

genrule {
    name: "android.hardware.radio.deprecated@1.0_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio.deprecated@1.0",
    srcs: [
        ":android.hardware.radio.deprecated@1.0_hal",
    ],
    out: [
        "android/hardware/radio/deprecated/1.0/OemHookAll.cpp",
        "android/hardware/radio/deprecated/1.0/OemHookIndicationAll.cpp",
        "android/hardware/radio/deprecated/1.0/OemHookResponseAll.cpp",
    ],
}

genrule {
    name: "android.hardware.radio.deprecated@1.0_genc++_headers",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio.deprecated@1.0",
    srcs: [
        ":android.hardware.radio.deprecated@1.0_hal",
    ],
    out: [
        "android/hardware/radio/deprecated/1.0/IOemHook.h",
        "android/hardware/radio/deprecated/1.0/IHwOemHook.h",
        "android/hardware/radio/deprecated/1.0/BnHwOemHook.h",
        "android/hardware/radio/deprecated/1.0/BpHwOemHook.h",
        "android/hardware/radio/deprecated/1.0/BsOemHook.h",
        "android/hardware/radio/deprecated/1.0/IOemHookIndication.h",
        "android/hardware/radio/deprecated/1.0/IHwOemHookIndication.h",
        "android/hardware/radio/deprecated/1.0/BnHwOemHookIndication.h",
        "android/hardware/radio/deprecated/1.0/BpHwOemHookIndication.h",
        "android/hardware/radio/deprecated/1.0/BsOemHookIndication.h",
        "android/hardware/radio/deprecated/1.0/IOemHookResponse.h",
        "android/hardware/radio/deprecated/1.0/IHwOemHookResponse.h",
        "android/hardware/radio/deprecated/1.0/BnHwOemHookResponse.h",
        "android/hardware/radio/deprecated/1.0/BpHwOemHookResponse.h",
        "android/hardware/radio/deprecated/1.0/BsOemHookResponse.h",
    ],
}

cc_library_shared {
    name: "android.hardware.radio.deprecated@1.0",
    generated_sources: ["android.hardware.radio.deprecated@1.0_genc++"],
    generated_headers: ["android.hardware.radio.deprecated@1.0_genc++_headers"],
    export_generated_headers: ["android.hardware.radio.deprecated@1.0_genc++_headers"],
    shared_libs: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "liblog",
        "libutils",
        "libcutils",
        "android.hardware.radio@1.0",
        "android.hidl.base@1.0",
    ],
    export_shared_lib_headers: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "libutils",
        "android.hardware.radio@1.0",
        "android.hidl.base@1.0",
    ],
}
Loading