Searched refs:appPackageInfo (Results 1 – 4 of 4) sorted by relevance
108 bool fetchAppPackageLocationInfo(uid_t uid, TypeManager::AppPackageInfo* appPackageInfo) { in fetchAppPackageLocationInfo() argument113 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() local131 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 …]
131 static bool isExtensionsUseAllowed(const AppPackageInfo& appPackageInfo,
26 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo) { in ANeuralNetworks_fetch_PackageInfo() argument27 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() argument75 if (appPackageInfo != nullptr) { in ANeuralNetworks_free_PackageInfo()76 if (appPackageInfo->appPackageName != nullptr) { in ANeuralNetworks_free_PackageInfo()[all …]
46 bool ANeuralNetworks_fetch_PackageInfo(uid_t uid, ANeuralNetworks_PackageInfo* appPackageInfo);50 void ANeuralNetworks_free_PackageInfo(ANeuralNetworks_PackageInfo* appPackageInfo);