summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2016-11-16 19:31:11 +0000
committer android-build-merger <android-build-merger@google.com> 2016-11-16 19:31:11 +0000
commit0378c186c71dbc95f15d237ab148607fd7061037 (patch)
tree76230c0db38dfd4f1d482a2941912063a1c5a2b2
parent6a0cb767b271f2a40b06926aa4e44ae108d40e00 (diff)
parent7ae2aa4ed9bb886736d3fdfec16af14ca8f38c83 (diff)
Merge "Fix include after spliting HidlSupport.h" am: efd7b9f57d am: 2f7a3f9595 am: afe46992b8
am: 7ae2aa4ed9 Change-Id: I400a01127f077fa0d0656eafc4ccc15aed375fcd
-rw-r--r--core/jni/android_os_HwBlob.h1
-rw-r--r--core/jni/android_os_HwParcel.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/core/jni/android_os_HwBlob.h b/core/jni/android_os_HwBlob.h
index 6bd82e98e911..09204880881b 100644
--- a/core/jni/android_os_HwBlob.h
+++ b/core/jni/android_os_HwBlob.h
@@ -20,6 +20,7 @@
#include <android-base/macros.h>
#include <jni.h>
#include <hidl/HidlSupport.h>
+#include <hwbinder/Parcel.h>
#include <utils/RefBase.h>
#include <utils/Vector.h>
diff --git a/core/jni/android_os_HwParcel.cpp b/core/jni/android_os_HwParcel.cpp
index 1a67ceebac1c..a10d80746e46 100644
--- a/core/jni/android_os_HwParcel.cpp
+++ b/core/jni/android_os_HwParcel.cpp
@@ -26,6 +26,7 @@
#include <JNIHelp.h>
#include <android_runtime/AndroidRuntime.h>
+#include <hidl/HidlTransportSupport.h>
#include <hidl/Status.h>
#include <nativehelper/ScopedLocalRef.h>
@@ -383,7 +384,7 @@ static void JHwParcel_native_writeStatus(
hardware::Parcel *parcel =
JHwParcel::GetNativeContext(env, thiz)->getParcel();
- status_t err = status.writeToParcel(parcel);
+ status_t err = ::android::hardware::writeToParcel(status, parcel);
signalExceptionForError(env, err);
}
@@ -394,7 +395,7 @@ static void JHwParcel_native_verifySuccess(JNIEnv *env, jobject thiz) {
JHwParcel::GetNativeContext(env, thiz)->getParcel();
Status status;
- status_t err = status.readFromParcel(*parcel);
+ status_t err = ::android::hardware::readFromParcel(&status, *parcel);
signalExceptionForError(env, err);
}