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

Commit b480dead authored by Devin Moore's avatar Devin Moore Committed by Gerrit Code Review
Browse files

Revert^2 "Add isHidlSupported Java API"

109b1352

Change-Id: If68af33e95c33f8f8d9c7d66416c40bc5536a7c1
parent 109b1352
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -218,6 +218,13 @@ public class HidlSupport {
    @SystemApi
    public static native int getPidIfSharable();

    /**
     * Return true if HIDL is supported on this device and false if not.
     *
     * @hide
     */
    public static native boolean isHidlSupported();

    /** @hide */
    public HidlSupport() {}
}
+7 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */

#include <hidl/HidlTransportSupport.h>
#include <hidl/ServiceManagement.h>
#include <nativehelper/JNIHelp.h>

#include "core_jni_helpers.h"
@@ -24,8 +25,13 @@ static jint android_os_HidlSupport_getPidIfSharable(JNIEnv*, jclass) {
    return android::hardware::details::getPidIfSharable();
}

static jboolean android_os_HidlSupport_isHidlSupported(JNIEnv*, jclass) {
    return android::hardware::isHidlSupported();
}

static const JNINativeMethod gHidlSupportMethods[] = {
        {"getPidIfSharable", "()I", (void*)android_os_HidlSupport_getPidIfSharable},
        {"isHidlSupported", "()Z", (void*)android_os_HidlSupport_isHidlSupported},
};

const char* const kHidlSupportPathName = "android/os/HidlSupport";