/frameworks/base/core/java/android/net/ |
D | NetworkScorerAppData.java | 17 public final int packageUid; field in NetworkScorerAppData 32 public NetworkScorerAppData(int packageUid, ComponentName recommendationServiceComp, in NetworkScorerAppData() argument 35 this.packageUid = packageUid; in NetworkScorerAppData() 43 packageUid = in.readInt(); in NetworkScorerAppData() 52 dest.writeInt(packageUid); in writeToParcel() 103 "packageUid=" + packageUid + in toString() 117 return packageUid == that.packageUid && in equals() 127 return Objects.hash(packageUid, mRecommendationService, mRecommendationServiceLabel, in hashCode()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 150 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin() argument 152 setUpPackageManagerForAdmin(admin, packageUid, in setUpPackageManagerForAdmin() 156 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument 158 setUpPackageManagerForAdmin(admin, packageUid, enabledSetting, /* appTargetSdk = */ null); in setUpPackageManagerForAdmin() 161 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument 163 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin() 167 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument 170 setUpPackageManagerForFakeAdmin(admin, packageUid, in setUpPackageManagerForFakeAdmin() 181 private void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument 197 ai.uid = packageUid; in setUpPackageManagerForFakeAdmin() [all …]
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | SenderPackageFilter.java | 46 int packageUid = -1; in matches() local 50 packageUid = pm.getPackageUid(mPackageName, PackageManager.MATCH_ANY_USER, in matches() 56 if (packageUid == -1) { in matches() 60 return UserHandle.isSameApp(packageUid, callerUid); in matches()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 105 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable() 119 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable_serviceLabelOverride() 167 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityNotSet() 182 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityNotResolved() 199 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityResolved() 215 assertEquals(PACKAGE_UID, activeScorer.packageUid); in testGetActiveScorer_providerAvailable_networkAvailableNotificationChannelIdSet() 610 private void mockRecommendationServiceAvailable(final ComponentName compName, int packageUid) { in mockRecommendationServiceAvailable() argument 611 mockRecommendationServiceAvailable(compName, packageUid, null, false); in mockRecommendationServiceAvailable() 614 private void mockRecommendationServiceAvailable(final ComponentName compName, int packageUid, in mockRecommendationServiceAvailable() argument 617 compName, packageUid, enableUseOpenWifiActivityPackage, false); in mockRecommendationServiceAvailable() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 57 public static void setPackageUid(String packageName, int packageUid) { in setPackageUid() argument 58 sPackageUids.put(packageName, packageUid); in setPackageUid()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCapturePerUserService.java | 396 final int packageUid; in assertCallerLocked() local 398 packageUid = pm.getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in assertCallerLocked() 402 if (callingUid != packageUid && !LocalServices.getService(ActivityManagerInternal.class) in assertCallerLocked() 407 + ") passed package (" + packageName + ") owned by UID " + packageUid); in assertCallerLocked()
|
/frameworks/native/cmds/installd/ |
D | dexopt.h | 92 uid_t packageUid,
|
D | dexopt.cpp | 1048 uid_t packageUid, const std::string& package_name, const std::string& profile_name) { in copy_system_profile() argument 1050 unique_fd out_fd(open_reference_profile(packageUid, in copy_system_profile() 1069 drop_capabilities(packageUid); in copy_system_profile()
|
D | InstalldNativeService.cpp | 2233 int32_t packageUid, const std::string& packageName, const std::string& profileName, in copySystemProfile() argument 2238 *_aidl_return = copy_system_profile(systemProfile, packageUid, packageName, profileName); in copySystemProfile()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1193 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in getAppStandbyBucket() local 1195 if (packageUid != callingUid) { in getAppStandbyBucket() 1201 if (packageUid < 0) { in getAppStandbyBucket() 1241 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, in setAppStandbyBucket() local 1245 if (packageUid == callingUid) { in setAppStandbyBucket() 1248 if (packageUid < 0) { in setAppStandbyBucket()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 321 int packageUid = -1; in verifyCallingPackage() local 323 packageUid = AppGlobals.getPackageManager().getPackageUid(callingPackage, in verifyCallingPackage() 330 if (packageUid < 0) { in verifyCallingPackage() 333 if (packageUid != injectBinderCallingUid()) { in verifyCallingPackage()
|
D | UserManagerService.java | 4499 int packageUid = mPm.getPackageUid(callingPackage, 0, UserHandle.getUserId(callingUid)); in verifyCallingPackage() local 4500 if (packageUid != callingUid) { in verifyCallingPackage()
|
D | PackageManagerService.java | 13251 final int packageUid = getPackageUid(callingPackage, 0, userId); 13252 final boolean allowedPackageUid = packageUid == callingUid; 13254 && UserHandle.isSameApp(packageUid, callingUid); 20900 int packageUid = UserHandle.getUid(userId, pkgSetting.appId); 20902 (flags&PackageManager.DONT_KILL_APP) != 0, components, packageUid); 20929 boolean killFlag, ArrayList<String> componentNames, int packageUid) { 20939 extras.putInt(Intent.EXTRA_UID, packageUid); 20945 final int userId = UserHandle.getUserId(packageUid);
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 447 final int packageUid = context.getPackageManager() in validateInput() local 450 Preconditions.checkArgument(callingUid == packageUid in validateInput()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerServiceImpl.java | 509 final int packageUid; in assertCallerLocked() local 511 packageUid = pm.getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in assertCallerLocked() 515 if (callingUid != packageUid && !LocalServices.getService(ActivityManagerInternal.class) in assertCallerLocked() 520 + ") passed component (" + componentName + ") owned by UID " + packageUid); in assertCallerLocked()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScoredNetworkEvaluator.java | 117 int uid = networkScorerAppData.packageUid; in activeScorerAllowedtoSeeScanResults()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 3258 int packageUid; field in AppOpsService.Shell 3428 packageUid = resolveUid(packageName); in parseUserPackageOp() 3429 if (packageUid < 0) { in parseUserPackageOp() 3430 packageUid = AppGlobals.getPackageManager().getPackageUid(packageName, in parseUserPackageOp() 3433 if (packageUid < 0) { in parseUserPackageOp() 3501 shell.mInterface.setMode(shell.op, shell.packageUid, shell.packageName, in onShellCommand() 3526 shell.packageUid, in onShellCommand() 3532 shell.packageUid, shell.packageName, in onShellCommand() 3682 shell.op, shell.packageUid, shell.packageName, true); in onShellCommand() 3696 shell.op, shell.packageUid, shell.packageName); in onShellCommand()
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriGrantsManagerService.java | 223 final int packageUid = pm.getPackageUid(packageName, in getUriPermissions() local 225 if (packageUid != callingUid) { in getUriPermissions()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 996 final int packageUid = getUidForPackage(packageName, grantId); in hasBindAppWidgetPermission() local 997 if (packageUid < 0) { in hasBindAppWidgetPermission() 1020 final int packageUid = getUidForPackage(packageName, grantId); in setBindAppWidgetPermission() local 1021 if (packageUid < 0) { in setBindAppWidgetPermission() 3740 final int packageUid = getUidForPackage(packageName, userId); in isCallerBindAppWidgetWhiteListedLocked() local 3741 if (packageUid < 0) { in isCallerBindAppWidgetWhiteListedLocked()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 4302 int packageUid, 4327 if (packageUid != -1 && 4330 callingUid = packageUid; 4476 int packageUid = -1; 4478 packageUid = mPackageManager.getPackageUidAsUser(packageName, userId); 4489 packageName, packageUid, opPackageName, false /* includeUserManagedNotVisible */); 4492 packageName, packageUid, opPackageName, true /* includeUserManagedNotVisible */);
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 728 && mServiceConnection.getAppData().packageUid == callingUid; in isCallerActiveScorer()
|
D | StorageManagerService.java | 2351 final int packageUid = mPmInternal.getPackageUid(packageName, in isUidOwnerOfPackageOrSystem() local 2356 packageUid + ", callerUid = " + callerUid); in isUidOwnerOfPackageOrSystem() 2359 return callerUid == packageUid; in isUidOwnerOfPackageOrSystem()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 6204 int packageUid = 0; in startActivitiesAsPackage() local 6213 packageUid = AppGlobals.getPackageManager().getPackageUid( in startActivitiesAsPackage() 6222 packageUid, packageName, in startActivitiesAsPackage()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 14425 final int packageUid = mInjector.getPackageManager().getPackageUidAsUser( in isCallingFromPackage() local 14427 return packageUid == callingUid; in isCallingFromPackage()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 7765 final int packageUid = pm.getPackageUid(packageName, MATCH_DEBUG_TRIAGED_MISSING, in isBackgroundRestricted() local 7767 if (packageUid != callingUid) { in isBackgroundRestricted()
|