Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/test/
DTestExtensions.cpp35 using TypeManager = ::android::nn::TypeManager; typedef
83 TypeManager::get()->forTest_reset(); in SetUp()
90 TypeManager::get()->forTest_reset(); in TearDown()
143 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info(""), in TEST_F()
147 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/foobar/foo"), in TEST_F()
151 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/data/foo"), in TEST_F()
155 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/vendor/foo"), in TEST_F()
159 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/odm/foo"), in TEST_F()
163 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/system/foo"), in TEST_F()
167 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/system/allowlisted"), in TEST_F()
[all …]
DTestValidation.cpp150 EXPECT_TRUE(::android::nn::TypeManager::get()->forTest_registerExtension({ in SetUp()
164 ::android::nn::TypeManager::get()->forTest_reset(); in TearDown()
4018 EXPECT_TRUE(::android::nn::TypeManager::get()->forTest_registerExtension({ in SetUp()
4025 ::android::nn::TypeManager::get()->forTest_reset(); in TearDown()
4085 EXPECT_TRUE(::android::nn::TypeManager::get()->forTest_registerExtension({ in SetUp()
4092 ::android::nn::TypeManager::get()->forTest_reset(); in TearDown()
4178 EXPECT_TRUE(::android::nn::TypeManager::get()->forTest_registerExtension({ in SetUp()
4185 ::android::nn::TypeManager::get()->forTest_reset(); in TearDown()
/packages/modules/NeuralNetworks/runtime/
DTypeManager.cpp115 TypeManager::TypeManager() { in TypeManager() function in android::nn::TypeManager
118 mExtensionsAllowed = TypeManager::isExtensionsUseAllowed( in TypeManager()
129 bool TypeManager::isExtensionsUseAllowed(const AppInfoFetcher::AppInfo& appPackageInfo, in isExtensionsUseAllowed()
171 void TypeManager::findAvailableExtensions() { in findAvailableExtensions()
179 bool TypeManager::registerExtension(Extension extension, const std::string& deviceName) { in registerExtension()
208 bool TypeManager::getExtensionPrefix(const std::string& extensionName, uint16_t* prefix) { in getExtensionPrefix()
221 std::vector<ExtensionNameAndPrefix> TypeManager::getExtensionNameAndPrefix( in getExtensionNameAndPrefix()
240 bool TypeManager::getExtensionType(const char* extensionName, uint16_t typeWithinExtension, in getExtensionType()
248 bool TypeManager::getExtensionInfo(uint16_t prefix, const Extension** extension) const { in getExtensionInfo()
255 bool TypeManager::getExtensionOperandTypeInfo( in getExtensionOperandTypeInfo()
[all …]
DTypeManager.h38 class TypeManager {
40 static TypeManager* get() { in get()
41 static TypeManager manager; in get()
115 void forTest_reset() { *this = TypeManager(); } in forTest_reset()
130 TypeManager();
DMemory.cpp113 const bool isTensor = TypeManager::get()->isTensorType(kOperand.type); in validate()
138 return {.logicalSize = TypeManager::get()->getSizeOfData(kOperand.type, mUpdatedDimensions), in getMetadata()
151 TypeManager::get()->isTensorType(kOperand.type)); in updateMetadata()
156 TypeManager::get()->getSizeOfData(kOperand.type, combined.value())); in updateMetadata()
162 return TypeManager::get()->getSizeOfData(kOperand.type, kInitialDimensions) == 0; in createdWithUnknownShape()
368 if (!TypeManager::get()->isTensorType(operand.type) && !mDesc.dimensions.empty()) { in addRole()
400 if (mOperand.has_value() && !TypeManager::get()->isTensorType(mOperand->type) && in setDimensions()
478 const uint32_t size = TypeManager::get()->getSizeOfData(mOperand->type, mDesc.dimensions); in finish()
501 const uint32_t size = TypeManager::get()->getSizeOfData(mOperand->type, mDesc.dimensions); in allocate()
DModelBuilder.cpp73 return TypeManager::get()->getExtensionType(extensionName, typeWithinExtension, type) in getExtensionType()
84 if (isExtension(operandType) && !TypeManager::get()->areExtensionsAllowed()) { in addOperand()
96 !TypeManager::get()->getExtensionOperandTypeInfo(operandType, &info)) { in addOperand()
146 if (TypeManager::get()->isTensorType(operand.type) && in setOperandValue()
159 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand); in setOperandValue()
338 if (TypeManager::get()->isTensorType(operand.type) && tensorHasUnspecifiedDimensions(operand)) { in setOperandValueFromMemory()
343 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand); in setOperandValueFromMemory()
370 if (isExtension(operationType) && !TypeManager::get()->areExtensionsAllowed()) { in addOperation()
395 if (!TypeManager::get()->getExtensionInfo(extensionPrefix, &extension)) { in addOperation()
1011 CHECK(TypeManager::get()->getExtensionInfo(prefix, &extension)); in addExtensionWithPrefix()
DFlatbufferModelBuilderUtils.h52 CHECK(TypeManager::get()->isTensorType(type)); in getTensorFlatbufferOperandType()
122 return TypeManager::get()->isTensorType(operand.type) && operand.dimensions.empty(); in tensorOperandHasUnspecifiedRank()
DModelArgumentInfo.cpp55 neededLength = TypeManager::get()->getSizeOfData(operand.type, ret.mDimensions); in createFromPointer()
89 neededLength = TypeManager::get()->getSizeOfData(operand.type, ret.mDimensions); in createFromMemory()
DExecutionBuilder.cpp75 const TypeManager* tm = TypeManager::get(); in validateOutputShapesFromDriver()
122 NN_RET_CHECK(TypeManager::get()->getExtensionOperandTypeInfo(operand.type, &info)); in checkDimensionInfo()
144 if (!allowUnspecified && TypeManager::get()->isTensorType(operand.type) && in checkDimensionInfo()
502 if (!TypeManager::get()->getExtensionType(extensionName, attributeCodeWithinExtension, in addExtensionAttribute()
616 TypeManager::get()->isTensorType(mModel->getOutputOperand(i).type) && in areOutputsFullySpecified()
1178 NN_RET_CHECK(!TypeManager::get()->sizeOfDataOverflowsUInt32(operandType, in updateOutputShapes()
1298 const uint32_t actualSize = TypeManager::get()->getSizeOfData( in updateOutputShapes()
DManager.cpp606 TypeManager::get()->getExtensionNameAndPrefix(metaData)); in execute()
609 TypeManager::get()->getExtensionNameAndPrefix(metaData)); in execute()
667 TypeManager::get()->getExtensionNameAndPrefix(metaData)); in executeFenced()
690 TypeManager::get()->getExtensionNameAndPrefix(metaData)); in executeFenced()
721 TypeManager::get()->getExtensionNameAndPrefix(metaData)); in createReusableExecution()
753 TypeManager::get()->getExtensionNameAndPrefix(kMetaData)); in compute()
1057 uint32_t size = TypeManager::get()->getSizeOfData(type, desc.dimensions); in allocate()
DAndroid.bp102 "TypeManager.cpp",
299 "TypeManager.cpp",
DExecutionPlan.cpp74 if (!TypeManager::get()->getExtensionInfo(prefix, &extension)) { in updateTokenFromMetaData()
129 TypeManager::get()->getExtensionNameAndPrefix(metaData); in compile()
774 return TypeManager::get()->isTensorType(operand.type); in hasUnknownSize()
1310 const uint32_t size = TypeManager::get()->getSizeOfData(sourceOperand); in makeController()
1418 const TypeManager* typeManager = TypeManager::get(); in makeController()
1858 const uint32_t size = TypeManager::get()->getSizeOfData(sourceOperand); in nextCompound()
DCompilationBuilder.cpp240 if (!TypeManager::get()->getExtensionType(extensionName, attributeCodeWithinExtension, in addExtensionAttribute()
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp56 TypeManager::get()->forTest_reset(); in SetUp()
90 TypeManager::get()->forTest_reset(); in TearDown()