Home
last modified time | relevance | path

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

/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestExtensions.cpp135 return {.binaryPath = binaryPath, in TEST_F()
220 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
229 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
238 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
247 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
256 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
265 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
275 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
285 EXPECT_EQ(TypeManager::isExtensionsUseAllowed({.binaryPath = binary, in TEST_F()
298 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed({.binaryPath = other_binary, in TEST_F()
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DTypeManager.cpp140 if (StartsWith(appPackageInfo.binaryPath, "/vendor/") || in isExtensionsUseAllowed()
141 StartsWith(appPackageInfo.binaryPath, "/odm/") || in isExtensionsUseAllowed()
142 StartsWith(appPackageInfo.binaryPath, "/data/") || in isExtensionsUseAllowed()
143 (StartsWith(appPackageInfo.binaryPath, "/product/") && useOnProductImageEnabled)) { in isExtensionsUseAllowed()
150 if (StartsWith(appPackageInfo.binaryPath, "/data/nativetest") || in isExtensionsUseAllowed()
152 StartsWith(appPackageInfo.binaryPath, "/data/local/tmp/NeuralNetworksTest_")) { in isExtensionsUseAllowed()
156 return std::find(allowlist.begin(), allowlist.end(), appPackageInfo.binaryPath) != in isExtensionsUseAllowed()
158 } else if (appPackageInfo.binaryPath == "/system/bin/app_process64" || in isExtensionsUseAllowed()
159 appPackageInfo.binaryPath == "/system/bin/app_process32") { in isExtensionsUseAllowed()
H A DAppInfoFetcher.cpp60 : appInfo({.binaryPath = ::android::procpartition::getExe(getpid()), in AppInfoFetcher()
65 if (appInfo.binaryPath == "/system/bin/app_process64" ||
66 appInfo.binaryPath == "/system/bin/app_process32") {
H A DAppInfoFetcher.h39 std::string binaryPath; member
/aosp12/system/chre/host/common/test/
H A Dchre_test_client.cc227 const char *binaryPath) { in sendLoadNanoappRequest() argument
231 readFileContents(binaryPath, &binaryBuffer)) { in sendLoadNanoappRequest()
329 const std::string binaryPath{argi < argc ? argv[argi++] : ""}; in main() local
331 if (headerPath.empty() || binaryPath.empty()) { in main()
336 sendLoadNanoappRequest(client, headerPath.c_str(), binaryPath.c_str()); in main()