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
This commit is contained in:
Yang Sun 2023-12-12 08:55:02 +00:00
parent fc3f417f34
commit 109b135211
2 changed files with 1 additions and 14 deletions

View File

@ -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() {}
}

View File

@ -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},
{"getPidIfSharable", "()I", (void*)android_os_HidlSupport_getPidIfSharable},
};
const char* const kHidlSupportPathName = "android/os/HidlSupport";