#ifndef HIDL_COMMON #define HIDL_COMMON #include "mali_fourcc.h" #include #include #include #include using aidl::android::hardware::graphics::common::BufferUsage; using aidl::android::hardware::graphics::common::PixelFormat; using aidl::android::hardware::graphics::common::StandardMetadataType; using aidl::android::hardware::graphics::common::ExtendableType; using aidl::android::hardware::graphics::common::PlaneLayout; using aidl::android::hardware::graphics::common::PlaneLayoutComponent; using aidl::android::hardware::graphics::common::Rect; using aidl::android::hardware::graphics::common::BlendMode; using aidl::android::hardware::graphics::common::Dataspace; namespace hidl { using PixelFormat = android::hardware::graphics::common::V1_2::PixelFormat; } // namespace hidl template using frameworks_vec = android::hardware::hidl_vec; #ifdef GRALLOC_MAPPER_4 #include namespace hidl { using android::hardware::graphics::mapper::V4_0::Error; } // namespace hidl using android::hardware::graphics::mapper::V4_0::BufferDescriptor; using android::hardware::graphics::mapper::V4_0::IMapper; using frameworks_handle = android::hardware::hidl_handle; #elif defined(GRALLOC_MAPPER_5) #include #include #include using android::hardware::graphics::mapper::StandardMetadata; #endif // GRALLOC_MAPPER_4 or GRALLOC_MAPPER_5 #endif // HIDL_COMMON