Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/packageinfo/
DPackageInfo.cpp28 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo) { in ANeuralNetworks_fetch_PackageInfo() argument
29 if (appPackageInfo == nullptr) { in ANeuralNetworks_fetch_PackageInfo()
61 appPackageInfo->appPackageName = new char[packageName.size() + 1]; in ANeuralNetworks_fetch_PackageInfo()
62 memcpy(appPackageInfo->appPackageName, packageName.c_str(), packageName.size() + 1); in ANeuralNetworks_fetch_PackageInfo()
65 appPackageInfo->appIsSystemApp = in ANeuralNetworks_fetch_PackageInfo()
68 appPackageInfo->appIsOnVendorImage = in ANeuralNetworks_fetch_PackageInfo()
71 appPackageInfo->appIsOnProductImage = in ANeuralNetworks_fetch_PackageInfo()
76 void ANeuralNetworks_free_PackageInfo(ANeuralNetworks_PackageInfo* appPackageInfo) { in ANeuralNetworks_free_PackageInfo() argument
77 if (appPackageInfo != nullptr) { in ANeuralNetworks_free_PackageInfo()
78 if (appPackageInfo->appPackageName != nullptr) { in ANeuralNetworks_free_PackageInfo()
[all …]
/packages/modules/NeuralNetworks/runtime/
DTypeManager.cpp129 bool TypeManager::isExtensionsUseAllowed(const AppInfoFetcher::AppInfo& appPackageInfo, in isExtensionsUseAllowed() argument
134 if (appPackageInfo.binaryPath.starts_with("/vendor/") || in isExtensionsUseAllowed()
135 appPackageInfo.binaryPath.starts_with("/odm/") || in isExtensionsUseAllowed()
136 appPackageInfo.binaryPath.starts_with("/data/") || in isExtensionsUseAllowed()
137 (appPackageInfo.binaryPath.starts_with("/product/") && useOnProductImageEnabled)) { in isExtensionsUseAllowed()
144 if (appPackageInfo.binaryPath.starts_with("/data/nativetest") || in isExtensionsUseAllowed()
146 appPackageInfo.binaryPath.starts_with(NN_TMP_DIR "/NeuralNetworksTest_")) { in isExtensionsUseAllowed()
150 return std::find(allowlist.begin(), allowlist.end(), appPackageInfo.binaryPath) != in isExtensionsUseAllowed()
152 } else if (appPackageInfo.binaryPath == "/system/bin/app_process64" || in isExtensionsUseAllowed()
153 appPackageInfo.binaryPath == "/system/bin/app_process32") { in isExtensionsUseAllowed()
[all …]
DTypeManager.h124 static bool isExtensionsUseAllowed(const AppInfoFetcher::AppInfo& appPackageInfo,
/packages/modules/NeuralNetworks/runtime/packageinfo/include/
DPackageInfo.h47 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo);
51 void ANeuralNetworks_free_PackageInfo(ANeuralNetworks_PackageInfo* appPackageInfo);