Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/test/
DTestExtensions.cpp134 auto native_info = [&](const std::string& binaryPath) -> android::nn::AppInfoFetcher::AppInfo { in TEST_F() argument
135 return {.binaryPath = binaryPath, in TEST_F()
228 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
237 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
246 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
255 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
264 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
273 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
283 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
293 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/
DTypeManager.cpp143 if (StartsWith(appPackageInfo.binaryPath, "/vendor/") || in isExtensionsUseAllowed()
144 StartsWith(appPackageInfo.binaryPath, "/odm/") || in isExtensionsUseAllowed()
145 StartsWith(appPackageInfo.binaryPath, "/data/") || in isExtensionsUseAllowed()
146 (StartsWith(appPackageInfo.binaryPath, "/product/") && useOnProductImageEnabled)) { in isExtensionsUseAllowed()
153 if (StartsWith(appPackageInfo.binaryPath, "/data/nativetest") || in isExtensionsUseAllowed()
155 StartsWith(appPackageInfo.binaryPath, NN_TMP_DIR "/NeuralNetworksTest_")) { in isExtensionsUseAllowed()
159 return std::find(allowlist.begin(), allowlist.end(), appPackageInfo.binaryPath) != in isExtensionsUseAllowed()
161 } else if (appPackageInfo.binaryPath == "/system/bin/app_process64" || in isExtensionsUseAllowed()
162 appPackageInfo.binaryPath == "/system/bin/app_process32") { in isExtensionsUseAllowed()
DAppInfoFetcher.cpp64 : appInfo({.binaryPath = ::android::procpartition::getExe(getpid()), in AppInfoFetcher()
69 if (appInfo.binaryPath == "/system/bin/app_process64" ||
70 appInfo.binaryPath == "/system/bin/app_process32") {
80 : appInfo({.binaryPath = "/system/bin/app_process64",
DAppInfoFetcher.h39 std::string binaryPath; member