Home | History | Annotate | Download | only in include
      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/hardware/neuralnetworks/1.1/IDevice.h>
     26 #include <android/hardware/neuralnetworks/1.1/types.h>
     27 #include <android/hidl/allocator/1.0/IAllocator.h>
     28 #include <android/hidl/memory/1.0/IMemory.h>
     29 #include <hidlmemory/mapping.h>
     30 
     31 using ::android::hardware::Return;
     32 using ::android::hardware::Void;
     33 using ::android::hardware::hidl_memory;
     34 using ::android::hardware::hidl_string;
     35 using ::android::hardware::hidl_vec;
     36 using ::android::hardware::neuralnetworks::V1_0::DataLocation;
     37 using ::android::hardware::neuralnetworks::V1_0::DeviceStatus;
     38 using ::android::hardware::neuralnetworks::V1_0::ErrorStatus;
     39 using ::android::hardware::neuralnetworks::V1_0::FusedActivationFunc;
     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::Operand;
     44 using ::android::hardware::neuralnetworks::V1_0::OperandLifeTime;
     45 using ::android::hardware::neuralnetworks::V1_0::OperandType;
     46 using ::android::hardware::neuralnetworks::V1_0::PerformanceInfo;
     47 using ::android::hardware::neuralnetworks::V1_0::Request;
     48 using ::android::hardware::neuralnetworks::V1_0::RequestArgument;
     49 using ::android::hardware::neuralnetworks::V1_1::Capabilities;
     50 using ::android::hardware::neuralnetworks::V1_1::ExecutionPreference;
     51 using ::android::hardware::neuralnetworks::V1_1::IDevice;
     52 using ::android::hardware::neuralnetworks::V1_1::Model;
     53 using ::android::hardware::neuralnetworks::V1_1::Operation;
     54 using ::android::hardware::neuralnetworks::V1_1::OperationType;
     55 using ::android::hidl::allocator::V1_0::IAllocator;
     56 using ::android::hidl::memory::V1_0::IMemory;
     57 
     58 namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
     59 namespace V1_1 = ::android::hardware::neuralnetworks::V1_1;
     60 
     61 namespace android {
     62 namespace nn {
     63 
     64 } // namespace nn
     65 } // namespace android
     66 
     67 #endif // ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
     68