blob: 2c3287ab35a2e8bf1dc228ce966bc57bd05504a5 [file] [log] [blame]
Slava Shklyaev871be942018-09-12 14:52:02 +01001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#define LOG_TAG "neuralnetworks_hidl_hal_test"
18
19#include "VtsHalNeuralnetworks.h"
20
21#include "Callbacks.h"
Xusong Wang34058782019-01-18 17:28:26 -080022#include "GeneratedTestHarness.h"
Slava Shklyaev871be942018-09-12 14:52:02 +010023#include "TestHarness.h"
24#include "Utils.h"
25
26#include <android-base/logging.h>
27#include <android/hidl/memory/1.0/IMemory.h>
28#include <hidlmemory/mapping.h>
29
30namespace android {
31namespace hardware {
32namespace neuralnetworks {
Slava Shklyaev871be942018-09-12 14:52:02 +010033namespace V1_2 {
34namespace vts {
35namespace functional {
36
Xusong Wangb5cb8f72018-10-31 08:43:12 -070037using ::android::hardware::neuralnetworks::V1_2::implementation::ExecutionCallback;
38using ::android::hardware::neuralnetworks::V1_2::implementation::PreparedModelCallback;
Slava Shklyaev871be942018-09-12 14:52:02 +010039using ::android::nn::allocateSharedMemory;
Michael K. Sanders941d61a2018-10-19 14:39:09 +010040using ::test_helper::MixedTypedExample;
Slava Shklyaev871be942018-09-12 14:52:02 +010041
Michael K. Sandersb5fe58b2018-11-09 12:10:09 +000042std::vector<Request> createRequests(const std::vector<MixedTypedExample>& examples);
43
Slava Shklyaev871be942018-09-12 14:52:02 +010044// in frameworks/ml/nn/runtime/tests/generated/
Slava Shklyaev871be942018-09-12 14:52:02 +010045#include "all_generated_V1_2_vts_tests.cpp"
46
47} // namespace functional
48} // namespace vts
49} // namespace V1_2
50} // namespace neuralnetworks
51} // namespace hardware
52} // namespace android