/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ANDROID_HARDWARE_TESTS_SAFEUNION_V1_0_SAFEUNION_H #define ANDROID_HARDWARE_TESTS_SAFEUNION_V1_0_SAFEUNION_H #include #include #include namespace android { namespace hardware { namespace tests { namespace safeunion { namespace V1_0 { namespace implementation { using ::android::hardware::Return; using ::android::hardware::Void; using ::android::hardware::tests::safeunion::V1_0::ISafeUnion; struct SafeUnion : public ISafeUnion { // Methods from ::android::hardware::tests::safeunion::V1_0::ISafeUnion follow. Return newLargeSafeUnion(newLargeSafeUnion_cb _hidl_cb) override; Return setA(const LargeSafeUnion& myUnion, int8_t a, setA_cb _hidl_cb) override; Return setB(const LargeSafeUnion& myUnion, uint16_t b, setB_cb _hidl_cb) override; Return setC(const LargeSafeUnion& myUnion, int32_t c, setC_cb _hidl_cb) override; Return setD(const LargeSafeUnion& myUnion, uint64_t d, setD_cb _hidl_cb) override; Return setE(const LargeSafeUnion& myUnion, const hidl_array& e, setE_cb _hidl_cb) override; Return setF(const LargeSafeUnion& myUnion, const hidl_array& f, setF_cb _hidl_cb) override; Return setG(const LargeSafeUnion& myUnion, const hidl_string& g, setG_cb _hidl_cb) override; Return setH(const LargeSafeUnion& myUnion, const hidl_vec& h, setH_cb _hidl_cb) override; Return setI(const LargeSafeUnion& myUnion, const hidl_vec& i, setI_cb _hidl_cb) override; Return setJ(const LargeSafeUnion& myUnion, const J& j, setJ_cb _hidl_cb) override; Return setK(const LargeSafeUnion& myUnion, const LargeSafeUnion::K& k, setK_cb _hidl_cb) override; Return setL(const LargeSafeUnion& myUnion, const SmallSafeUnion& l, setL_cb _hidl_cb) override; Return setM(const LargeSafeUnion& myUnion, BitField m, setL_cb _hidl_cb) override; Return setN(const LargeSafeUnion& myUnion, hidl_bitfield n, setL_cb _hidl_cb) override; Return newInterfaceTypeSafeUnion(newInterfaceTypeSafeUnion_cb _hidl_cb) override; Return setInterfaceA(const InterfaceTypeSafeUnion& myUnion, uint32_t a, setInterfaceA_cb _hidl_cb) override; Return setInterfaceB(const InterfaceTypeSafeUnion& myUnion, const hidl_array& b, setInterfaceB_cb _hidl_cb) override; Return setInterfaceC(const InterfaceTypeSafeUnion& myUnion, const sp<::android::hardware::tests::safeunion::V1_0::IOtherInterface>& c, setInterfaceC_cb _hidl_cb) override; Return setInterfaceD(const InterfaceTypeSafeUnion& myUnion, const hidl_string& d, setInterfaceD_cb _hidl_cb) override; Return setInterfaceE(const InterfaceTypeSafeUnion& myUnion, const hidl_vec& e, setInterfaceE_cb _hidl_cb) override; Return setInterfaceF(const InterfaceTypeSafeUnion& myUnion, const hidl_handle& f, setInterfaceF_cb _hidl_cb) override; Return setInterfaceG(const InterfaceTypeSafeUnion& myUnion, const hidl_vec& g, setInterfaceG_cb _hidl_cb) override; Return newHandleTypeSafeUnion(newHandleTypeSafeUnion_cb _hidl_cb) override; Return setHandleA(const HandleTypeSafeUnion& myUnion, const hidl_handle& a, setHandleA_cb _hidl_cb) override; Return setHandleB(const HandleTypeSafeUnion& myUnion, const hidl_array& b, setHandleB_cb _hidl_cb) override; Return setHandleC(const HandleTypeSafeUnion& myUnion, const hidl_vec& c, setHandleC_cb _hidl_cb) override; }; extern "C" ISafeUnion* HIDL_FETCH_ISafeUnion(const char* name); } // namespace implementation } // namespace V1_0 } // namespace safeunion } // namespace tests } // namespace hardware } // namespace android #endif // ANDROID_HARDWARE_TESTS_SAFEUNION_V1_0_SAFEUNION_H