mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Removed overloaded functions from IFoo.hal.
Bug: 31758541 Test: hidl_test Change-Id: Ic92cf9996357a8aa9b3785540784c686887032e0
This commit is contained in:
@@ -21,10 +21,6 @@ Return<void> Bar::doThis(float param) {
|
||||
return mFoo->doThis(param);
|
||||
}
|
||||
|
||||
Return<void> Bar::doThis(uint32_t param) {
|
||||
return mFoo->doThis(param);
|
||||
}
|
||||
|
||||
Return<int32_t> Bar::doThatAndReturnSomething(
|
||||
int64_t param) {
|
||||
return mFoo->doThatAndReturnSomething(param);
|
||||
|
||||
@@ -29,7 +29,6 @@ struct Bar : public IBar {
|
||||
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::IFoo follow.
|
||||
virtual Return<void> doThis(float param) override;
|
||||
virtual Return<void> doThis(uint32_t param) override;
|
||||
virtual Return<int32_t> doThatAndReturnSomething(int64_t param) override;
|
||||
virtual Return<double> doQuiteABit(int32_t a, int64_t b, float c, double d) override;
|
||||
virtual Return<void> doSomethingElse(const hidl_array<int32_t, 15 /* 15 */>& param, doSomethingElse_cb _hidl_cb) override;
|
||||
|
||||
@@ -81,7 +81,6 @@ interface IFoo {
|
||||
};
|
||||
|
||||
doThis(float param);
|
||||
doThis(uint32_t param);
|
||||
doThatAndReturnSomething(int64_t param) generates (int32_t result);
|
||||
doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something);
|
||||
doSomethingElse(int32_t[15] param) generates (int32_t[32] something);
|
||||
|
||||
@@ -6,8 +6,6 @@ cc_library_shared {
|
||||
srcs: [
|
||||
"Foo.cpp",
|
||||
"FooCallback.cpp",
|
||||
"MyTypes.cpp",
|
||||
"TheirTypes.cpp",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
|
||||
@@ -21,11 +21,6 @@ Return<void> Foo::doThis(float param) {
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> Foo::doThis(uint32_t param) {
|
||||
ALOGI("SERVER(Foo) doThis (int) (%d)", param);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<int32_t> Foo::doThatAndReturnSomething(
|
||||
int64_t param) {
|
||||
LOG(INFO) << "SERVER(Foo) doThatAndReturnSomething(" << param << ")";
|
||||
|
||||
@@ -25,7 +25,6 @@ using ::android::sp;
|
||||
struct Foo : public IFoo {
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::IFoo follow.
|
||||
virtual Return<void> doThis(float param) override;
|
||||
virtual Return<void> doThis(uint32_t param) override;
|
||||
virtual Return<int32_t> doThatAndReturnSomething(int64_t param) override;
|
||||
virtual Return<double> doQuiteABit(int32_t a, int64_t b, float c, double d) override;
|
||||
virtual Return<void> doSomethingElse(const hidl_array<int32_t, 15 /* 15 */>& param, doSomethingElse_cb _hidl_cb) override;
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#include "MyTypes.h"
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace tests {
|
||||
namespace foo {
|
||||
namespace V1_0 {
|
||||
namespace implementation {
|
||||
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::IMyTypes follow.
|
||||
|
||||
IMyTypes* HIDL_FETCH_IMyTypes(const char* /* name */) {
|
||||
return new MyTypes();
|
||||
}
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_0
|
||||
} // namespace foo
|
||||
} // namespace tests
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
@@ -1,36 +0,0 @@
|
||||
#ifndef HIDL_GENERATED_android_hardware_tests_foo_V1_0_MyTypes_H_
|
||||
#define HIDL_GENERATED_android_hardware_tests_foo_V1_0_MyTypes_H_
|
||||
|
||||
#include <android/hardware/tests/foo/1.0/IMyTypes.h>
|
||||
#include <hidl/Status.h>
|
||||
|
||||
#include <hidl/MQDescriptor.h>
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace tests {
|
||||
namespace foo {
|
||||
namespace V1_0 {
|
||||
namespace implementation {
|
||||
|
||||
using ::android::hardware::tests::foo::V1_0::IMyTypes;
|
||||
using ::android::hardware::Return;
|
||||
using ::android::hardware::Void;
|
||||
using ::android::hardware::hidl_vec;
|
||||
using ::android::hardware::hidl_string;
|
||||
using ::android::sp;
|
||||
|
||||
struct MyTypes : public IMyTypes {
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::IMyTypes follow.
|
||||
|
||||
};
|
||||
|
||||
extern "C" IMyTypes* HIDL_FETCH_IMyTypes(const char* name);
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_0
|
||||
} // namespace foo
|
||||
} // namespace tests
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // HIDL_GENERATED_android_hardware_tests_foo_V1_0_MyTypes_H_
|
||||
@@ -1,21 +0,0 @@
|
||||
#include "TheirTypes.h"
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace tests {
|
||||
namespace foo {
|
||||
namespace V1_0 {
|
||||
namespace implementation {
|
||||
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::ITheirTypes follow.
|
||||
|
||||
ITheirTypes* HIDL_FETCH_ITheirTypes(const char* /* name */) {
|
||||
return new TheirTypes();
|
||||
}
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_0
|
||||
} // namespace foo
|
||||
} // namespace tests
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
@@ -1,36 +0,0 @@
|
||||
#ifndef HIDL_GENERATED_android_hardware_tests_foo_V1_0_TheirTypes_H_
|
||||
#define HIDL_GENERATED_android_hardware_tests_foo_V1_0_TheirTypes_H_
|
||||
|
||||
#include <android/hardware/tests/foo/1.0/ITheirTypes.h>
|
||||
#include <hidl/Status.h>
|
||||
|
||||
#include <hidl/MQDescriptor.h>
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace tests {
|
||||
namespace foo {
|
||||
namespace V1_0 {
|
||||
namespace implementation {
|
||||
|
||||
using ::android::hardware::tests::foo::V1_0::ITheirTypes;
|
||||
using ::android::hardware::Return;
|
||||
using ::android::hardware::Void;
|
||||
using ::android::hardware::hidl_vec;
|
||||
using ::android::hardware::hidl_string;
|
||||
using ::android::sp;
|
||||
|
||||
struct TheirTypes : public ITheirTypes {
|
||||
// Methods from ::android::hardware::tests::foo::V1_0::ITheirTypes follow.
|
||||
|
||||
};
|
||||
|
||||
extern "C" ITheirTypes* HIDL_FETCH_ITheirTypes(const char* name);
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_0
|
||||
} // namespace foo
|
||||
} // namespace tests
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // HIDL_GENERATED_android_hardware_tests_foo_V1_0_TheirTypes_H_
|
||||
Reference in New Issue
Block a user