Home
last modified time | relevance | path

Searched refs:binaryPath (Results 1 – 3 of 3) sorted by relevance

/frameworks/ml/nn/runtime/test/
DTestExtensions.cpp129 [&](const std::string& binaryPath) -> android::nn::TypeManager::AppPackageInfo { in TEST_F() argument
130 return {.binaryPath = binaryPath, in TEST_F()
203 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
212 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
221 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
230 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
239 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
248 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
257 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
266 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
[all …]
/frameworks/ml/nn/runtime/
DTypeManager.cpp125 .binaryPath = ::android::procpartition::getExe(getpid()), in isNNAPIVendorExtensionsUseAllowed()
131 if (appPackageInfo.binaryPath == "/system/bin/app_process64" || in isNNAPIVendorExtensionsUseAllowed()
132 appPackageInfo.binaryPath == "/system/bin/app_process32") { in isNNAPIVendorExtensionsUseAllowed()
156 if (StartsWith(appPackageInfo.binaryPath, "/vendor/") || in isExtensionsUseAllowed()
157 StartsWith(appPackageInfo.binaryPath, "/odm/") || in isExtensionsUseAllowed()
158 StartsWith(appPackageInfo.binaryPath, "/data/") || in isExtensionsUseAllowed()
159 (StartsWith(appPackageInfo.binaryPath, "/product/") && useOnProductImageEnabled)) { in isExtensionsUseAllowed()
163 if (StartsWith(appPackageInfo.binaryPath, "/data/nativetest") || in isExtensionsUseAllowed()
165 StartsWith(appPackageInfo.binaryPath, "/data/local/tmp/NeuralNetworksTest_")) { in isExtensionsUseAllowed()
170 return std::find(allowlist.begin(), allowlist.end(), appPackageInfo.binaryPath) != in isExtensionsUseAllowed()
[all …]
DTypeManager.h114 std::string binaryPath; member