HalInterfaces.h 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. #ifndef ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
  17. #define ANDROID_ML_NN_COMMON_HAL_INTERFACES_H
  18. #include <android/hardware/neuralnetworks/1.0/IDevice.h>
  19. #include <android/hardware/neuralnetworks/1.0/IExecutionCallback.h>
  20. #include <android/hardware/neuralnetworks/1.0/IPreparedModel.h>
  21. #include <android/hardware/neuralnetworks/1.0/IPreparedModelCallback.h>
  22. #include <android/hardware/neuralnetworks/1.0/types.h>
  23. #include <android/hardware/neuralnetworks/1.1/IDevice.h>
  24. #include <android/hardware/neuralnetworks/1.1/types.h>
  25. #include <android/hardware/neuralnetworks/1.2/IDevice.h>
  26. #include <android/hardware/neuralnetworks/1.2/IExecutionCallback.h>
  27. #include <android/hardware/neuralnetworks/1.2/IPreparedModel.h>
  28. #include <android/hardware/neuralnetworks/1.2/IPreparedModelCallback.h>
  29. #include <android/hardware/neuralnetworks/1.2/types.h>
  30. #include <android/hidl/allocator/1.0/IAllocator.h>
  31. #include <android/hidl/memory/1.0/IMemory.h>
  32. #include <hidlmemory/mapping.h>
  33. using ::android::sp;
  34. using ::android::hardware::hidl_array;
  35. using ::android::hardware::hidl_handle;
  36. using ::android::hardware::hidl_memory;
  37. using ::android::hardware::hidl_string;
  38. using ::android::hardware::hidl_vec;
  39. using ::android::hardware::Return;
  40. using ::android::hardware::Void;
  41. using ::android::hardware::neuralnetworks::V1_0::DataLocation;
  42. using ::android::hardware::neuralnetworks::V1_0::DeviceStatus;
  43. using ::android::hardware::neuralnetworks::V1_0::ErrorStatus;
  44. using ::android::hardware::neuralnetworks::V1_0::FusedActivationFunc;
  45. using ::android::hardware::neuralnetworks::V1_0::OperandLifeTime;
  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::ExecutionPreference;
  50. using ::android::hardware::neuralnetworks::V1_2::Capabilities;
  51. using ::android::hardware::neuralnetworks::V1_2::Constant;
  52. using ::android::hardware::neuralnetworks::V1_2::DeviceType;
  53. using ::android::hardware::neuralnetworks::V1_2::Extension;
  54. using ::android::hardware::neuralnetworks::V1_2::FmqRequestDatum;
  55. using ::android::hardware::neuralnetworks::V1_2::FmqResultDatum;
  56. using ::android::hardware::neuralnetworks::V1_2::IBurstCallback;
  57. using ::android::hardware::neuralnetworks::V1_2::IBurstContext;
  58. using ::android::hardware::neuralnetworks::V1_2::IDevice;
  59. using ::android::hardware::neuralnetworks::V1_2::IExecutionCallback;
  60. using ::android::hardware::neuralnetworks::V1_2::IPreparedModel;
  61. using ::android::hardware::neuralnetworks::V1_2::IPreparedModelCallback;
  62. using ::android::hardware::neuralnetworks::V1_2::MeasureTiming;
  63. using ::android::hardware::neuralnetworks::V1_2::Model;
  64. using ::android::hardware::neuralnetworks::V1_2::Operand;
  65. using ::android::hardware::neuralnetworks::V1_2::OperandType;
  66. using ::android::hardware::neuralnetworks::V1_2::OperandTypeRange;
  67. using ::android::hardware::neuralnetworks::V1_2::Operation;
  68. using ::android::hardware::neuralnetworks::V1_2::OperationType;
  69. using ::android::hardware::neuralnetworks::V1_2::OperationTypeRange;
  70. using ::android::hardware::neuralnetworks::V1_2::OutputShape;
  71. using ::android::hardware::neuralnetworks::V1_2::SymmPerChannelQuantParams;
  72. using ::android::hardware::neuralnetworks::V1_2::Timing;
  73. using ::android::hidl::allocator::V1_0::IAllocator;
  74. using ::android::hidl::memory::V1_0::IMemory;
  75. namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
  76. namespace V1_1 = ::android::hardware::neuralnetworks::V1_1;
  77. namespace V1_2 = ::android::hardware::neuralnetworks::V1_2;
  78. namespace android {
  79. namespace nn {
  80. } // namespace nn
  81. } // namespace android
  82. #endif // ANDROID_ML_NN_COMMON_HAL_INTERFACES_H