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