From 188675fd7e7239f56212d72f8ac10598de87e76a Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Fri, 12 Feb 2021 17:16:42 +0000 Subject: IVGCVSW-5665 Basic NN Driver support for next OS Version Signed-off-by: Kevin May Signed-off-by: Sadik Armagan Change-Id: I1e1db52322092c6b1b7ac6183c3adc90aabcec24 --- test/DriverTestHelpers.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/DriverTestHelpers.hpp') diff --git a/test/DriverTestHelpers.hpp b/test/DriverTestHelpers.hpp index 05b78925..d37fbf26 100644 --- a/test/DriverTestHelpers.hpp +++ b/test/DriverTestHelpers.hpp @@ -14,8 +14,11 @@ #include +using RequestArgument = V1_0::RequestArgument; using ::android::hidl::allocator::V1_0::IAllocator; +using ::android::hidl::memory::V1_0::IMemory; + namespace android { namespace hardware @@ -202,7 +205,7 @@ void AddBoolOperand(HalModel& model, bool value, uint32_t numberOfConsumers = 1) using HalOperandType = typename HalPolicy::OperandType; using HalOperandLifeTime = typename HalPolicy::OperandLifeTime; - DataLocation location = {}; + V1_0::DataLocation location = {}; location.offset = model.operandValues.size(); location.length = sizeof(uint8_t); @@ -420,7 +423,7 @@ void AddTensorOperand(HalModel& model, totalElements *= dim; } - DataLocation location = {}; + V1_0::DataLocation location = {}; location.length = totalElements * sizeof(T); if(operandLifeTime == HalOperandLifeTime::CONSTANT_COPY) @@ -477,7 +480,7 @@ void AddIntOperand(HalModel& model, int32_t value, uint32_t numberOfConsumers = using HalOperandType = typename HalPolicy::OperandType; using HalOperandLifeTime = typename HalPolicy::OperandLifeTime; - DataLocation location = {}; + V1_0::DataLocation location = {}; location.offset = model.operandValues.size(); location.length = sizeof(int32_t); @@ -503,7 +506,7 @@ void AddFloatOperand(HalModel& model, using HalOperandType = typename HalPolicy::OperandType; using HalOperandLifeTime = typename HalPolicy::OperandLifeTime; - DataLocation location = {}; + V1_0::DataLocation location = {}; location.offset = model.operandValues.size(); location.length = sizeof(float); -- cgit v1.2.1