• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 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 #ifndef ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
18 #define ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
19 
20 #include <android/hardware/neuralnetworks/1.0/IDevice.h>
21 #include <android/hardware/neuralnetworks/1.0/IExecutionCallback.h>
22 #include <android/hardware/neuralnetworks/1.0/IPreparedModel.h>
23 #include <android/hardware/neuralnetworks/1.0/IPreparedModelCallback.h>
24 #include <android/hardware/neuralnetworks/1.0/types.h>
25 #include <android/hidl/allocator/1.0/IAllocator.h>
26 #include <android/hidl/memory/1.0/IMemory.h>
27 #include <hidlmemory/mapping.h>
28 
29 using ::android::hardware::Return;
30 using ::android::hardware::Void;
31 using ::android::hardware::hidl_memory;
32 using ::android::hardware::hidl_string;
33 using ::android::hardware::hidl_vec;
34 using ::android::hardware::neuralnetworks::V1_0::Capabilities;
35 using ::android::hardware::neuralnetworks::V1_0::DataLocation;
36 using ::android::hardware::neuralnetworks::V1_0::DeviceStatus;
37 using ::android::hardware::neuralnetworks::V1_0::ErrorStatus;
38 using ::android::hardware::neuralnetworks::V1_0::FusedActivationFunc;
39 using ::android::hardware::neuralnetworks::V1_0::IDevice;
40 using ::android::hardware::neuralnetworks::V1_0::IExecutionCallback;
41 using ::android::hardware::neuralnetworks::V1_0::IPreparedModel;
42 using ::android::hardware::neuralnetworks::V1_0::IPreparedModelCallback;
43 using ::android::hardware::neuralnetworks::V1_0::Model;
44 using ::android::hardware::neuralnetworks::V1_0::Operand;
45 using ::android::hardware::neuralnetworks::V1_0::OperandLifeTime;
46 using ::android::hardware::neuralnetworks::V1_0::OperandType;
47 using ::android::hardware::neuralnetworks::V1_0::Operation;
48 using ::android::hardware::neuralnetworks::V1_0::OperationType;
49 using ::android::hardware::neuralnetworks::V1_0::PerformanceInfo;
50 using ::android::hardware::neuralnetworks::V1_0::Request;
51 using ::android::hardware::neuralnetworks::V1_0::RequestArgument;
52 using ::android::hidl::allocator::V1_0::IAllocator;
53 using ::android::hidl::memory::V1_0::IMemory;
54 
55 namespace android {
56 namespace nn {
57 
58 } // namespace nn
59 } // namespace android
60 
61 #endif // ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
62