Home
last modified time | relevance | path

Searched refs:possibleAppPackages (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/
DAppPackageNameRetriever.java61 String[] possibleAppPackages = mPackageManager.getPackagesForUid(appUid); in getAppPackageNameForUid() local
62 if (possibleAppPackages == null || possibleAppPackages.length == 0) { in getAppPackageNameForUid()
66 if (possibleAppPackages.length > 1) { in getAppPackageNameForUid()
70 possibleAppPackages.length, possibleAppPackages[0]); in getAppPackageNameForUid()
72 return possibleAppPackages[0]; in getAppPackageNameForUid()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DDevContextUtils.java134 String[] possibleAppPackages = context.getPackageManager().getPackagesForUid(appUid); in getAppPackageNameForUid() local
135 if (possibleAppPackages == null || possibleAppPackages.length == 0) { in getAppPackageNameForUid()
139 if (possibleAppPackages.length > 1) { in getAppPackageNameForUid()
145 possibleAppPackages.length, possibleAppPackages[0])); in getAppPackageNameForUid()
147 return possibleAppPackages[0]; in getAppPackageNameForUid()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/helpers/
DPackageManagerHelper.java102 String[] possibleAppPackages = mPackageManager.getPackagesForUid(callingUid); in getPackageNamesForUid() local
104 if (possibleAppPackages == null || possibleAppPackages.length == 0) { in getPackageNamesForUid()
108 if (possibleAppPackages.length > 1) { in getPackageNamesForUid()
114 + possibleAppPackages.length); in getPackageNamesForUid()
116 return List.of(possibleAppPackages); in getPackageNamesForUid()