Lines Matching refs:appPackageInfo
26 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()
77 delete[] appPackageInfo->appPackageName; in ANeuralNetworks_free_PackageInfo()