summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestExecution.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2019-07-11 11:45:01 -0700
committerMichael Butler <butlermichael@google.com>2019-07-25 12:15:38 -0700
commitd92f97453da162d14fd08b1e8b17a2270869218f (patch)
tree0f0bb54b10de9ad276c5755f733f01436841a9da /nn/runtime/test/TestExecution.cpp
parent97a674924a0ee71d2f25c86a80e90c099642bdf2 (diff)
downloadml-d92f97453da162d14fd08b1e8b17a2270869218f.tar.gz
Cleanup HalInterfaces.h
Prior to this CL, HalInterfaces.h polluted the global namespace through the "using" declarations. This CL creates a new ::android::nn::hal namespace and places the names there instead. This CL also changes the namespace of the Callback objects from ::android::hardware::neuralnetworks::V1_2::implementation to ::android::nn to be consistent with the other parts of frameworks/ml/nn. Fixes: 72880287 Test: mma Change-Id: I399ad32f5c541a493429c6fa8e192169a903ea9f Merged-In: I399ad32f5c541a493429c6fa8e192169a903ea9f (cherry picked from commit 19af9d2d509621c0b07fb5a0f59abd0adb9de468)
Diffstat (limited to 'nn/runtime/test/TestExecution.cpp')
-rw-r--r--nn/runtime/test/TestExecution.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/nn/runtime/test/TestExecution.cpp b/nn/runtime/test/TestExecution.cpp
index 5d5efa8ad..1a753c73f 100644
--- a/nn/runtime/test/TestExecution.cpp
+++ b/nn/runtime/test/TestExecution.cpp
@@ -18,6 +18,7 @@
#include "Callbacks.h"
#include "CompilationBuilder.h"
+#include "HalInterfaces.h"
#include "Manager.h"
#include "ModelBuilder.h"
#include "NeuralNetworks.h"
@@ -33,12 +34,13 @@
namespace android {
+using namespace nn::hal;
using CompilationBuilder = nn::CompilationBuilder;
using Device = nn::Device;
using DeviceManager = nn::DeviceManager;
-using HidlModel = hardware::neuralnetworks::V1_2::Model;
-using HidlToken = hardware::hidl_array<uint8_t, ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN>;
-using PreparedModelCallback = hardware::neuralnetworks::V1_2::implementation::PreparedModelCallback;
+using HidlModel = V1_2::Model;
+using HidlToken = hidl_array<uint8_t, ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN>;
+using PreparedModelCallback = nn::PreparedModelCallback;
using Result = nn::test_wrapper::Result;
using SampleDriver = nn::sample_driver::SampleDriver;
using WrapperCompilation = nn::test_wrapper::Compilation;
@@ -49,7 +51,7 @@ using WrapperOperandType = nn::test_wrapper::OperandType;
using WrapperType = nn::test_wrapper::Type;
template <typename T>
-using MQDescriptorSync = ::android::hardware::MQDescriptorSync<T>;
+using MQDescriptorSync = hardware::MQDescriptorSync<T>;
namespace {