Home
last modified time | relevance | path

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

/frameworks/ml/nn/runtime/
DTypeManager.cpp108 bool fetchAppPackageLocationInfo(uid_t uid, TypeManager::AppPackageInfo* appPackageInfo) { in fetchAppPackageLocationInfo() argument
113 appPackageInfo->appPackageName = packageInfo.appPackageName; in fetchAppPackageLocationInfo()
114 appPackageInfo->appIsSystemApp = packageInfo.appIsSystemApp; in fetchAppPackageLocationInfo()
115 appPackageInfo->appIsOnVendorImage = packageInfo.appIsOnVendorImage; in fetchAppPackageLocationInfo()
116 appPackageInfo->appIsOnProductImage = packageInfo.appIsOnProductImage; in fetchAppPackageLocationInfo()
124 TypeManager::AppPackageInfo appPackageInfo = { in isNNAPIVendorExtensionsUseAllowed() local
131 if (appPackageInfo.binaryPath == "/system/bin/app_process64" || in isNNAPIVendorExtensionsUseAllowed()
132 appPackageInfo.binaryPath == "/system/bin/app_process32") { in isNNAPIVendorExtensionsUseAllowed()
133 if (!fetchAppPackageLocationInfo(getuid(), &appPackageInfo)) { in isNNAPIVendorExtensionsUseAllowed()
139 appPackageInfo, isNNAPIVendorExtensionsUseAllowedInProductImage(), allowlist); in isNNAPIVendorExtensionsUseAllowed()
[all …]
DTypeManager.h131 static bool isExtensionsUseAllowed(const AppPackageInfo& appPackageInfo,
/frameworks/ml/nn/runtime/packageinfo/
DPackageInfo.cpp26 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo) { in ANeuralNetworks_fetch_PackageInfo() argument
27 if (appPackageInfo == nullptr) { in ANeuralNetworks_fetch_PackageInfo()
59 appPackageInfo->appPackageName = new char[packageName.size() + 1]; in ANeuralNetworks_fetch_PackageInfo()
60 memcpy(appPackageInfo->appPackageName, packageName.c_str(), packageName.size() + 1); in ANeuralNetworks_fetch_PackageInfo()
63 appPackageInfo->appIsSystemApp = in ANeuralNetworks_fetch_PackageInfo()
66 appPackageInfo->appIsOnVendorImage = in ANeuralNetworks_fetch_PackageInfo()
69 appPackageInfo->appIsOnProductImage = in ANeuralNetworks_fetch_PackageInfo()
74 void ANeuralNetworks_free_PackageInfo(ANeuralNetworks_PackageInfo* appPackageInfo) { in ANeuralNetworks_free_PackageInfo() argument
75 if (appPackageInfo != nullptr) { in ANeuralNetworks_free_PackageInfo()
76 if (appPackageInfo->appPackageName != nullptr) { in ANeuralNetworks_free_PackageInfo()
[all …]
/frameworks/ml/nn/runtime/packageinfo/include/
DPackageInfo.h46 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo);
50 void ANeuralNetworks_free_PackageInfo(ANeuralNetworks_PackageInfo* appPackageInfo);