Home
last modified time | relevance | path

Searched refs:TypeManager (Results 1 – 9 of 9) sorted by relevance

/frameworks/ml/nn/runtime/test/
DTestExtensions.cpp30 using TypeManager = ::android::nn::TypeManager; typedef
73 TypeManager::get()->forTest_reset(); in SetUp()
80 TypeManager::get()->forTest_reset(); in TearDown()
125 [&](const std::string& binaryPath) -> android::nn::TypeManager::AppPackageInfo { in TEST_F()
134 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info(""), in TEST_F()
138 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/foobar/foo"), in TEST_F()
142 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/data/foo"), in TEST_F()
146 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/vendor/foo"), in TEST_F()
150 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/odm/foo"), in TEST_F()
154 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/system/foo"), in TEST_F()
[all …]
DTestValidation.cpp116 EXPECT_TRUE(::android::nn::TypeManager::get()->forTest_registerExtension({ in SetUp()
130 ::android::nn::TypeManager::get()->forTest_reset(); in TearDown()
/frameworks/ml/nn/runtime/
DTypeManager.cpp100 bool fetchAppPackageLocationInfo(uid_t uid, TypeManager::AppPackageInfo* appPackageInfo) { in fetchAppPackageLocationInfo()
142 TypeManager::AppPackageInfo appPackageInfo = { in isNNAPIVendorExtensionsUseAllowed()
156 return TypeManager::isExtensionsUseAllowed( in isNNAPIVendorExtensionsUseAllowed()
162 TypeManager::TypeManager() { in TypeManager() function in android::nn::TypeManager
169 bool TypeManager::isExtensionsUseAllowed(const AppPackageInfo& appPackageInfo, in isExtensionsUseAllowed()
202 void TypeManager::findAvailableExtensions() { in findAvailableExtensions()
210 bool TypeManager::registerExtension(Extension extension, const std::string& deviceName) { in registerExtension()
239 bool TypeManager::getExtensionPrefix(const std::string& extensionName, uint16_t* prefix) { in getExtensionPrefix()
252 bool TypeManager::getExtensionType(const char* extensionName, uint16_t typeWithinExtension, in getExtensionType()
260 bool TypeManager::getExtensionInfo(uint16_t prefix, const Extension** extension) const { in getExtensionInfo()
[all …]
DTypeManager.h34 class TypeManager {
36 static TypeManager* get() { in get()
37 static TypeManager manager; in get()
100 void forTest_reset() { *this = TypeManager(); } in forTest_reset()
127 TypeManager();
DModelBuilder.cpp52 return TypeManager::get()->getExtensionType(extensionName, typeWithinExtension, type) in getExtensionType()
63 if (isExtensionOperandType(operandType) && !TypeManager::get()->areExtensionsAllowed()) { in addOperand()
73 !TypeManager::get()->getExtensionOperandTypeInfo(operandType, &info)) { in addOperand()
120 if (TypeManager::get()->isTensorType(operand.type) && in setOperandValue()
133 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand); in setOperandValue()
292 if (TypeManager::get()->isTensorType(operand.type) && tensorHasUnspecifiedDimensions(operand)) { in setOperandValueFromMemory()
303 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand); in setOperandValueFromMemory()
327 if (isExtensionOperationType(operationType) && !TypeManager::get()->areExtensionsAllowed()) { in addOperation()
555 CHECK(TypeManager::get()->getExtensionInfo(prefix, &extension)); in getExtensionNameToPrefixMap()
DExecutionBuilder.cpp52 NN_RET_CHECK(TypeManager::get()->getExtensionOperandTypeInfo(operand.type, &info)); in checkDimensionInfo()
73 if (!allowUnspecified && TypeManager::get()->isTensorType(operand.type) && in checkDimensionInfo()
96 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand.type, dimensions); in setFromPointer()
114 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand.type, dimensions); in setFromMemory()
132 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand.type, dimensions); in setFromTemporaryMemory()
763 uint32_t length = TypeManager::get()->getSizeOfData(inputOrOutputOperand); in setInputOrOutputFromTemporaryMemory()
DAndroid.bp48 "TypeManager.cpp",
DExecutionPlan.cpp718 const uint32_t size = TypeManager::get()->getSizeOfData(fromModelOperand); in makeController()
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp55 TypeManager::get()->forTest_reset(); in SetUp()
90 TypeManager::get()->forTest_reset(); in TearDown()