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

Commit 109b1352 authored by Yang Sun's avatar Yang Sun
Browse files

Revert "Add isHidlSupported Java API"

Revert submission 2866127-HwNoService

Reason for revert:
DroidMonitor: Potential culprit for Bug 315883998 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:2866127-HwNoService

Change-Id: I4e98dfecdc3c7f1ecd10f713f45c8245769dd03e
parent fc3f417f
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -218,13 +218,6 @@ 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() {}
}
+1 −7
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
 */

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

#include "core_jni_helpers.h"
@@ -25,13 +24,8 @@ 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";