You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
#ifndef ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H
|
|
#define ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H
|
|
|
|
#include <android/hardware/tests/foo/1.0/IFooCallback.h>
|
|
#include <hidl/Status.h>
|
|
#include <hidl/MQDescriptor.h>
|
|
|
|
#include <utils/Condition.h>
|
|
namespace android {
|
|
namespace hardware {
|
|
namespace tests {
|
|
namespace foo {
|
|
namespace V1_0 {
|
|
namespace implementation {
|
|
|
|
using ::android::hardware::tests::foo::V1_0::IFooCallback;
|
|
using ::android::hardware::Return;
|
|
using ::android::hardware::Void;
|
|
using ::android::hardware::hidl_vec;
|
|
using ::android::hardware::hidl_string;
|
|
using ::android::sp;
|
|
|
|
struct FooCallback : public IFooCallback {
|
|
FooCallback();
|
|
// Methods from ::android::hardware::tests::foo::V1_0::IFooCallback follow.
|
|
Return<void> heyItsYou(const sp<IFooCallback>& cb) override;
|
|
Return<bool> heyItsYouIsntIt(const sp<IFooCallback>& cb) override;
|
|
Return<void> heyItsTheMeaningOfLife(uint8_t tmol) override;
|
|
Return<void> reportResults(int64_t ns, reportResults_cb _hidl_cb) override;
|
|
Return<void> youBlockedMeFor(const hidl_array<int64_t, 3 /* 3 */>& callerBlockedInfo) override;
|
|
|
|
hidl_array<InvokeInfo, 3> invokeInfo;
|
|
Mutex mLock;
|
|
Condition mCond;
|
|
};
|
|
|
|
extern "C" IFooCallback* HIDL_FETCH_IFooCallback(const char* name);
|
|
|
|
} // namespace implementation
|
|
} // namespace V1_0
|
|
} // namespace foo
|
|
} // namespace tests
|
|
} // namespace hardware
|
|
} // namespace android
|
|
|
|
#endif // ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H
|