1 #ifndef HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_
2 #define HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_
4 #include <android/hardware/tests/foo/1.0/IFooCallback.h>
5 #include <hidl/Status.h>
6 #include <hidl/MQDescriptor.h>
8 #include <utils/Condition.h>
9 #include <utils/Timers.h>
15 namespace implementation {
17 using ::android::hardware::tests::foo::V1_0::IFooCallback;
18 using ::android::hardware::Return;
19 using ::android::hardware::Void;
20 using ::android::hardware::hidl_vec;
21 using ::android::hardware::hidl_string;
24 struct FooCallback : public IFooCallback {
26 // Methods from ::android::hardware::tests::foo::V1_0::IFooCallback follow.
27 Return<void> heyItsYou(const sp<IFooCallback>& cb) override;
28 Return<bool> heyItsYouIsntIt(const sp<IFooCallback>& cb) override;
29 Return<void> heyItsTheMeaningOfLife(uint8_t tmol) override;
30 Return<void> reportResults(int64_t ns, reportResults_cb _hidl_cb) override;
31 Return<void> youBlockedMeFor(const hidl_array<int64_t, 3 /* 3 */>& callerBlockedInfo) override;
33 static constexpr nsecs_t DELAY_S = 1;
34 static constexpr nsecs_t DELAY_NS = seconds_to_nanoseconds(DELAY_S);
35 static constexpr nsecs_t TOLERANCE_NS = milliseconds_to_nanoseconds(10);
36 static constexpr nsecs_t ONEWAY_TOLERANCE_NS = milliseconds_to_nanoseconds(1);
38 hidl_array<InvokeInfo, 3> invokeInfo;
43 extern "C" IFooCallback* HIDL_FETCH_IFooCallback(const char* name);
45 } // namespace implementation
49 } // namespace hardware
50 } // namespace android
52 #endif // HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_