Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
Michael Butler | f76acd0 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 19 | #include "VtsHalNeuralnetworks.h" |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 20 | |
| 21 | #include "Callbacks.h" |
Xusong Wang | 3405878 | 2019-01-18 17:28:26 -0800 | [diff] [blame^] | 22 | #include "GeneratedTestHarness.h" |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 23 | #include "TestHarness.h" |
Michael Butler | f76acd0 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 24 | #include "Utils.h" |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 25 | |
| 26 | #include <android-base/logging.h> |
| 27 | #include <android/hidl/memory/1.0/IMemory.h> |
| 28 | #include <hidlmemory/mapping.h> |
| 29 | |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 30 | namespace android { |
| 31 | namespace hardware { |
| 32 | namespace neuralnetworks { |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 33 | namespace V1_0 { |
| 34 | namespace vts { |
| 35 | namespace functional { |
Michael Butler | f76acd0 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 36 | |
Xusong Wang | b5cb8f7 | 2018-10-31 08:43:12 -0700 | [diff] [blame] | 37 | using ::android::hardware::neuralnetworks::V1_2::implementation::ExecutionCallback; |
| 38 | using ::android::hardware::neuralnetworks::V1_2::implementation::PreparedModelCallback; |
Michael Butler | f76acd0 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 39 | using ::android::nn::allocateSharedMemory; |
Michael K. Sanders | 941d61a | 2018-10-19 14:39:09 +0100 | [diff] [blame] | 40 | using ::test_helper::MixedTypedExample; |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 41 | |
Michael K. Sanders | b5fe58b | 2018-11-09 12:10:09 +0000 | [diff] [blame] | 42 | std::vector<Request> createRequests(const std::vector<MixedTypedExample>& examples); |
| 43 | |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 44 | // in frameworks/ml/nn/runtime/tests/generated/ |
| 45 | #include "all_generated_V1_0_vts_tests.cpp" |
| 46 | |
| 47 | } // namespace functional |
| 48 | } // namespace vts |
| 49 | } // namespace V1_0 |
| 50 | } // namespace neuralnetworks |
| 51 | } // namespace hardware |
| 52 | } // namespace android |