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

Commit 76372496 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Develop HIDL interface for radio (RIL).

Test: Only built the hidl interface as there isn't anything else to test.

Bug: 32020264
Change-Id: Ibf62feb9c562992cffb9ba6d1ec85a7e9c22f359
parent a6b44aad
Loading
Loading
Loading
Loading
+16 −8
Original line number Diff line number Diff line
@@ -7,12 +7,14 @@ genrule {
    srcs: [
        "types.hal",
        "IRadio.hal",
        "IRadioCallback.hal",
        "IRadioIndication.hal",
        "IRadioResponse.hal",
    ],
    out: [
        "android/hardware/radio/1.0/types.cpp",
        "android/hardware/radio/1.0/RadioAll.cpp",
        "android/hardware/radio/1.0/RadioCallbackAll.cpp",
        "android/hardware/radio/1.0/RadioIndicationAll.cpp",
        "android/hardware/radio/1.0/RadioResponseAll.cpp",
    ],
}

@@ -23,7 +25,8 @@ genrule {
    srcs: [
        "types.hal",
        "IRadio.hal",
        "IRadioCallback.hal",
        "IRadioIndication.hal",
        "IRadioResponse.hal",
    ],
    out: [
        "android/hardware/radio/1.0/types.h",
@@ -32,11 +35,16 @@ genrule {
        "android/hardware/radio/1.0/BnRadio.h",
        "android/hardware/radio/1.0/BpRadio.h",
        "android/hardware/radio/1.0/BsRadio.h",
        "android/hardware/radio/1.0/IRadioCallback.h",
        "android/hardware/radio/1.0/IHwRadioCallback.h",
        "android/hardware/radio/1.0/BnRadioCallback.h",
        "android/hardware/radio/1.0/BpRadioCallback.h",
        "android/hardware/radio/1.0/BsRadioCallback.h",
        "android/hardware/radio/1.0/IRadioIndication.h",
        "android/hardware/radio/1.0/IHwRadioIndication.h",
        "android/hardware/radio/1.0/BnRadioIndication.h",
        "android/hardware/radio/1.0/BpRadioIndication.h",
        "android/hardware/radio/1.0/BsRadioIndication.h",
        "android/hardware/radio/1.0/IRadioResponse.h",
        "android/hardware/radio/1.0/IHwRadioResponse.h",
        "android/hardware/radio/1.0/BnRadioResponse.h",
        "android/hardware/radio/1.0/BpRadioResponse.h",
        "android/hardware/radio/1.0/BsRadioResponse.h",
    ],
}

+1391 −87

File changed.

Preview size limit exceeded, changes collapsed.

+886 −12

File changed.

Preview size limit exceeded, changes collapsed.

+7 −13
Original line number Diff line number Diff line
@@ -16,20 +16,14 @@

package android.hardware.radio@1.0;

interface IRadioCallback {
    /**
     * Response callback for IRadio.requestGetSimStatus()
     *
     * @param serial Serial number of request
     * @param cardStatus ICC card status
/*
 * Interface declaring unsolicited radio indications.
 */
    responseGetSimStatus(int32_t serial, RadioCardStatus cardStatus);

    // ONLY UNSOLICITED CALLBACKS BELOW
    /**
interface IRadioIndication {
    /*
     * Called when radio state changes.
     *
     * @param radioState Current radio state
     */
    oneway unsolRadioStateChanged(RadioState radioState);
    oneway radioStateChanged(RadioState radioState);
};
 No newline at end of file
+1061 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading