/packages/modules/NeuralNetworks/runtime/test/ |
D | TestTelemetry.cpp | 25 using android::nn::telemetry::DataClass; 26 using android::nn::test_wrapper::Compilation; 27 using android::nn::test_wrapper::Execution; 28 using android::nn::test_wrapper::Model; 29 using android::nn::test_wrapper::OperandType; 30 using android::nn::test_wrapper::Result; 31 using android::nn::test_wrapper::Type; 43 android::nn::telemetry::registerTelemetryCallbacks( in TEST_F() 44 [&compilations](const android::nn::telemetry::DiagnosticCompilationInfo*) { in TEST_F() 47 [&executions](const android::nn::telemetry::DiagnosticExecutionInfo*) { in TEST_F() [all …]
|
D | TestServerFlag.cpp | 23 using android::nn::GetServerConfigurableFlagFunc; 24 using android::nn::getServerFeatureLevelFlag; 25 using android::nn::getServerTelemetryEnableFlag; 26 using android::nn::kDefaultFeatureLevelNum; 27 using android::nn::kDefaultTelemetryEnableValue; 28 using android::nn::kMaxFeatureLevelNum; 29 using android::nn::kMinFeatureLevelNum; 30 using android::nn::kVersionFeatureLevel5; 31 using android::nn::kVersionFeatureLevel6; 32 using android::nn::kVersionFeatureLevel7; [all …]
|
D | TestExecution.cpp | 47 using CompilationBuilder = nn::CompilationBuilder; 48 using Device = nn::Device; 49 using SharedDevice = nn::SharedDevice; 50 using DeviceManager = nn::DeviceManager; 52 using PreparedModelCallback = nn::PreparedModelCallback; 53 using SampleDriver = nn::sample_driver::SampleDriver; 54 using WrapperCompilation = nn::test_wrapper::Compilation; 55 using WrapperEvent = nn::test_wrapper::Event; 56 using WrapperExecution = nn::test_wrapper::Execution; 57 using WrapperModel = nn::test_wrapper::Model; [all …]
|
D | TestIntrospectionControl.cpp | 51 using CompilationBuilder = nn::CompilationBuilder; 52 using Device = nn::Device; 53 using DeviceManager = nn::DeviceManager; 54 using ExecutePreference = nn::test_wrapper::ExecutePreference; 55 using ExecutionBurstServer = nn::ExecutionBurstServer; 57 using Result = nn::test_wrapper::Result; 58 using SampleDriver = nn::sample_driver::SampleDriver; 59 using SamplePreparedModel = nn::sample_driver::SamplePreparedModel; 60 using SampleFencedExecutionCallback = nn::sample_driver::SampleFencedExecutionCallback; 61 using WrapperModel = nn::test_wrapper::Model; [all …]
|
D | TestMemoryInternal.cpp | 33 using WrapperCompilation = ::android::nn::test_wrapper::Compilation; 34 using WrapperExecution = ::android::nn::test_wrapper::Execution; 35 using WrapperMemory = ::android::nn::test_wrapper::Memory; 36 using WrapperModel = ::android::nn::test_wrapper::Model; 37 using WrapperOperandType = ::android::nn::test_wrapper::OperandType; 38 using WrapperResult = ::android::nn::test_wrapper::Result; 39 using WrapperType = ::android::nn::test_wrapper::Type; 68 mIsCpuOnly = android::nn::DeviceManager::get()->getUseCpuOnly(); in SetUp() 73 android::nn::DeviceManager::get()->setUseCpuOnly(mIsCpuOnly); in TearDown() 202 android::nn::DeviceManager::get()->setUseCpuOnly(true); in TEST_F()
|
D | TestMemory.cpp | 32 using WrapperCompilation = ::android::nn::test_wrapper::Compilation; 33 using WrapperExecution = ::android::nn::test_wrapper::Execution; 34 using WrapperMemory = ::android::nn::test_wrapper::Memory; 35 using WrapperModel = ::android::nn::test_wrapper::Model; 36 using WrapperOperandType = ::android::nn::test_wrapper::OperandType; 37 using WrapperResult = ::android::nn::test_wrapper::Result; 38 using WrapperType = ::android::nn::test_wrapper::Type;
|
D | TestPartitioningRandom.cpp | 102 using CompilationBuilder = nn::CompilationBuilder; 103 using DeviceManager = nn::DeviceManager; 104 using Device = nn::Device; 105 using SharedDevice = nn::SharedDevice; 106 using ExecutionPlan = nn::ExecutionPlan; 107 using ExecutionStep = nn::ExecutionStep; 108 using HalCacheToken = nn::HalCacheToken; 109 using HalVersion = nn::HalVersion; 111 using LogicalStep = nn::LogicalStep; 112 using ModelBuilder = nn::ModelBuilder; [all …]
|
D | TestMain.cpp | 38 using namespace android::nn::test_wrapper; 67 android::nn::DeviceManager::get()->setUseCpuOnly(useCpuOnly); in test() 114 testing::UnitTest::GetInstance()->listeners().Append(new android::nn::LogTestCaseToLogcat()); in main() 124 android::nn::initVLogMask(); in main()
|
D | TestExtensions.cpp | 33 using DeviceManager = ::android::nn::DeviceManager; 34 using SampleDriver = ::android::nn::sample_driver::SampleDriver; 35 using TypeManager = ::android::nn::TypeManager; 61 cb(V1_3::ErrorStatus::NONE, ::android::nn::makeCapabilities(1.0)); in getCapabilities_1_3() 81 android::nn::makeSharedDevice(kTestDriverName, new TestDriver())); in SetUp() 134 auto native_info = [&](const std::string& binaryPath) -> android::nn::AppInfoFetcher::AppInfo { in TEST_F()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 52 using namespace ::android::nn::sl_wrapper; 58 constexpr std::optional<::android::nn::wrapper::ExecutePriority> convertToNDKPriority( in convertToNDKPriority() 62 return ::android::nn::wrapper::ExecutePriority::LOW; in convertToNDKPriority() 64 return ::android::nn::wrapper::ExecutePriority::MEDIUM; in convertToNDKPriority() 66 return ::android::nn::wrapper::ExecutePriority::HIGH; in convertToNDKPriority() 72 constexpr std::optional<::android::nn::wrapper::ExecutePreference> convertToNDKPreference( in convertToNDKPreference() 76 return ::android::nn::wrapper::ExecutePreference::PREFER_LOW_POWER; in convertToNDKPreference() 78 return ::android::nn::wrapper::ExecutePreference::PREFER_FAST_SINGLE_ANSWER; in convertToNDKPreference() 80 return ::android::nn::wrapper::ExecutePreference::PREFER_SUSTAINED_SPEED; in convertToNDKPreference() 196 ShimBuffer(const NnApiSupportLibrary* nnApi, const ::android::nn::Dimensions initialDimensions, in ShimBuffer() [all …]
|
D | ShimConverter.cpp | 39 using namespace ::android::nn::sl_wrapper; 48 const std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>>& memoryPools, in convertSubgraphFromHAL() 50 std::vector<std::optional<::android::nn::sl_wrapper::Model>>* allModels, in convertSubgraphFromHAL() 63 ::android::nn::sl_wrapper::Model resultModel(nnapi); in convertSubgraphFromHAL() 80 ::android::nn::toUnsigned(operand.dimensions).value(); in convertSubgraphFromHAL() 82 ::android::nn::wrapper::OperandType operandType( in convertSubgraphFromHAL() 83 static_cast<::android::nn::wrapper::Type>(operand.type), dimensions, operand.scale, in convertSubgraphFromHAL() 88 operandType.channelQuant = ::android::nn::wrapper::SymmPerChannelQuantParams( in convertSubgraphFromHAL() 92 if (::android::nn::isExtension(static_cast<::android::nn::OperandType>(operand.type))) { in convertSubgraphFromHAL() 94 ::android::nn::getExtensionPrefix(static_cast<uint32_t>(operand.type)); in convertSubgraphFromHAL() [all …]
|
D | ShimPreparedModel.cpp | 49 ::android::nn::sl_wrapper::Execution* execution, in parseInputs() 50 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, in parseInputs() 57 std::shared_ptr<::android::nn::sl_wrapper::Memory> mem = in parseInputs() 96 ::android::nn::wrapper::OperandType operandType = model.getOperands()[model.getInputs()[i]]; in parseInputs() 99 operandType.updateDimensions(::android::nn::toUnsigned(input.dimensions).value()); in parseInputs() 121 ::android::nn::wrapper::OperandType operandType = in parseInputs() 126 operandType.updateDimensions(::android::nn::toUnsigned(output.dimensions).value()); in parseInputs() 173 const auto prefix = ::android::nn::getExtensionPrefix(uToken); in parseInputs() 174 const auto attributeCodeWithinExtension = ::android::nn::getTypeWithinExtension(uToken); in parseInputs() 196 std::shared_ptr<::android::nn::sl_wrapper::Execution> execution, Event e, in ShimFencedExecutionCallback() [all …]
|
/packages/modules/NeuralNetworks/common/types/include/nnapi/ |
D | IBurst.h | 30 namespace android::nn { 118 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline, 119 const nn::OptionalDuration& loopTimeoutDuration, 120 const std::vector<nn::TokenValuePair>& hints, 121 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0; 148 const nn::OptionalDuration& loopTimeoutDuration, 149 const std::vector<nn::TokenValuePair>& hints, 150 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
|
D | IPreparedModel.h | 28 namespace android::nn { 95 const std::vector<nn::TokenValuePair>& hints, 96 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0; 159 const std::vector<nn::TokenValuePair>& hints, 160 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0; 191 const std::vector<nn::TokenValuePair>& hints, 192 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
|
D | Result.h | 28 namespace android::nn { 95 using ::android::nn::error; \ 146 using ::android::nn::nnTryHasValue; \ 147 using ::android::nn::nnTryGetValue; \ 148 using ::android::nn::nnTryGetError; \
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | ShimPreparedModel.h | 36 ::android::nn::sl_wrapper::Compilation compilation, in ShimPreparedModel() 37 std::vector<::android::nn::sl_wrapper::Model> mainAndReferencedModels, in ShimPreparedModel() 38 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimPreparedModel() 71 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation() 72 const ::android::nn::sl_wrapper::Model& getMainModel() const { in getMainModel() 79 ::android::nn::sl_wrapper::Execution* execution, 80 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, 99 ::android::nn::sl_wrapper::Compilation mCompilation; 100 std::vector<::android::nn::sl_wrapper::Model> mMainAndReferencedModels; 101 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools;
|
D | ShimConverter.h | 33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory; 34 std::vector<::android::nn::sl_wrapper::Model> models; 55 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL(
|
D | ShimBufferTracker.h | 69 std::unique_ptr<Token> add(std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer); 70 std::shared_ptr<::android::nn::sl_wrapper::Memory> get(uint32_t token) const; 81 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mTokenToBuffers
|
/packages/modules/NeuralNetworks/runtime/ |
D | SupportLibraryDiagnostic.cpp | 28 using android::nn::ExecutionMode; 29 using android::nn::telemetry::DataClass; 30 using android::nn::telemetry::DiagnosticCompilationInfo; 31 using android::nn::telemetry::DiagnosticExecutionInfo; 91 return android::nn::telemetry::getSessionId(); in SL_ANeuralNetworksDiagnosticCompilationInfo_getSessionId() 96 return android::nn::DeviceManager::get()->getRuntimeFeatureLevel(); in SL_ANeuralNetworksDiagnosticCompilationInfo_getNnApiVersion() 146 return android::nn::telemetry::getSessionId(); in SL_ANeuralNetworksDiagnosticExecutionInfo_getSessionId() 151 return android::nn::DeviceManager::get()->getRuntimeFeatureLevel(); in SL_ANeuralNetworksDiagnosticExecutionInfo_getNnApiVersion() 218 using android::nn::telemetry::registerTelemetryCallbacks; in SL_ANeuralNetworksDiagnostic_registerCallbacks()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | visualize_random_graph.sh | 32 DUMPSPEC=$(adb shell getprop debug.nn.fuzzer.dumpspec) 33 LOGLEVEL=$(adb shell getprop debug.nn.fuzzer.log) 44 adb shell setprop debug.nn.fuzzer.dumpspec 1 45 adb shell setprop debug.nn.fuzzer.log silence 52 adb shell setprop debug.nn.fuzzer.dumpspec $DUMPSPEC 53 adb shell setprop debug.nn.fuzzer.log $LOGLEVEL
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalBurst.h | 32 namespace android::nn::sample { 42 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline, 43 const nn::OptionalDuration& loopTimeoutDuration, 49 const nn::OptionalDuration& loopTimeoutDuration,
|
D | CanonicalBurst.cpp | 31 namespace android::nn::sample { namespace 43 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline, in execute() 44 const nn::OptionalDuration& loopTimeoutDuration, in execute() 52 const nn::OptionalDuration& loopTimeoutDuration, in createReusableExecution()
|
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/ |
D | FuzzTest.cpp | 28 using ::android::nn::wrapper::Compilation; 29 using ::android::nn::wrapper::Execution; 30 using ::android::nn::wrapper::Model; 31 using ::android::nn::wrapper::OperandType; 32 using ::android::nn::wrapper::Result; 33 using ::android::nn::wrapper::SymmPerChannelQuantParams; 34 using ::android::nn::wrapper::Type;
|
D | FuzzHarness.cpp | 32 using ::android::nn::getNonExtensionSize; 33 using ::android::nn::OperandType; 34 using ::android::nn::fuzz::convertToTestModel; 60 DEFINE_PROTO_FUZZER(const ::android::nn::fuzz::Test& model) { in DEFINE_PROTO_FUZZER()
|
/packages/modules/Bluetooth/system/embdrv/lc3/test/ |
D | energy.py | 52 (e , nn ) = nrg.compute(x) 54 ok = ok and np.amax(np.abs(e_c - e)) < 1e-5 and nn_c == nn 58 (e , nn ) = nrg.compute(x) 60 ok = ok and np.amax(np.abs(e_c - e)) < 1e-3 and nn_c == nn
|