/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ANDROID_FRAMEWORKS_ML_NN_COMMON_HAL_INTERFACES_H #define ANDROID_FRAMEWORKS_ML_NN_COMMON_HAL_INTERFACES_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace android::nn { namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; namespace V1_1 = ::android::hardware::neuralnetworks::V1_1; namespace V1_2 = ::android::hardware::neuralnetworks::V1_2; namespace V1_3 = ::android::hardware::neuralnetworks::V1_3; using HalCacheToken = hardware::hidl_array(V1_2::Constant::BYTE_SIZE_OF_CACHE_TOKEN)>; using HalDeviceFactory = std::function(bool blocking)>; inline constexpr V1_3::Priority kDefaultPriority13 = V1_3::Priority::MEDIUM; } // namespace android::nn #endif // ANDROID_FRAMEWORKS_ML_NN_COMMON_HAL_INTERFACES_H