Migrate from aidl to manual implementation

Since aidl does not support uint32_t as there is no unsigned int in
Java, after discussion we decided to stop using aidl as there are many
low-level flags implemented as unsigned int in current system, and it
will be more effort to fit them into aidl than write the boiler plate
by ourselves.

Test: "atest buffer_hub_binder_service-test" passed.
Bug: 117559794
Change-Id: I81c799e9507d686e92e34544c9b48b91c7a37157
diff --git a/services/vr/bufferhubd/IBufferHub.cpp b/services/vr/bufferhubd/IBufferHub.cpp
new file mode 100644
index 0000000..9d5b91a
--- /dev/null
+++ b/services/vr/bufferhubd/IBufferHub.cpp
@@ -0,0 +1,20 @@
+#include <log/log.h>
+#include <private/dvr/IBufferHub.h>
+
+namespace android {
+namespace dvr {
+
+IMPLEMENT_META_INTERFACE(BufferHub, "android.dvr.IBufferHub");
+
+status_t BnBufferHub::onTransact(uint32_t code, const Parcel& data,
+                                 Parcel* reply, uint32_t flags) {
+  switch (code) {
+    default:
+      // Should not reach
+      ALOGE("onTransact(): unknown code %u received!", code);
+      return BBinder::onTransact(code, data, reply, flags);
+  }
+}
+
+}  // namespace dvr
+}  // namespace android
\ No newline at end of file