/frameworks/base/packages/SystemUI/src/com/android/systemui/common/shared/model/ |
D | PackageChangeModel.kt | 33 val packageUid: Int constant 44 get() = UserHandle.getUserHandleForUid(packageUid) 51 override val packageUid: Int constant 66 override val packageUid: Int, constant in com.android.systemui.common.shared.model.PackageChangeModel.Uninstalled 78 override val packageUid: Int, constant in com.android.systemui.common.shared.model.PackageChangeModel.UpdateStarted 91 override val packageUid: Int, constant in com.android.systemui.common.shared.model.PackageChangeModel.UpdateFinished 103 override val packageUid: Int, constant in com.android.systemui.common.shared.model.PackageChangeModel.Installed 115 override val packageUid: Int, constant in com.android.systemui.common.shared.model.PackageChangeModel.Changed 120 this.packageName == other.packageName && this.packageUid == other.packageUid
|
/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 | 171 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin() argument 173 setUpPackageManagerForAdmin(admin, packageUid, in setUpPackageManagerForAdmin() 177 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument 179 setUpPackageManagerForAdmin(admin, packageUid, enabledSetting, /* appTargetSdk = */ null); in setUpPackageManagerForAdmin() 182 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument 184 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin() 188 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument 191 setUpPackageManagerForFakeAdmin(admin, packageUid, in setUpPackageManagerForFakeAdmin() 202 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument 218 ai.uid = packageUid; in setUpPackageManagerForFakeAdmin() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/ |
D | FakePackageChangeRepository.kt | 35 user == UserHandle.ALL || user == UserHandle.getUserHandleForUid(it.packageUid) in packageChanged() 55 packageUid = in notifyInstall() 69 packageUid = in notifyUpdateStarted() 83 packageUid = in notifyUpdateFinished() 97 packageUid = in notifyUninstall()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/domain/interactor/ |
D | PackageChangeInteractorTest.kt | 75 packageUid = UserHandle.getUid(MAIN_USER.id, /* appId = */ 10), in packageChanges() 95 packageUid = UserHandle.getUid(SECONDARY_USER.id, /* appId = */ 10), in packageChanges_ignoresUpdatesFromOtherUsers() 114 packageUid = UserHandle.getUid(SECONDARY_USER.id, /* appId = */ 10), in packageChanges_forCurrentUser() 120 packageUid = UserHandle.getUid(MAIN_USER.id, /* appId = */ 10), in packageChanges_forCurrentUser() 127 packageUid = UserHandle.getUid(MAIN_USER.id, /* appId = */ 10), in packageChanges_forCurrentUser() 148 packageUid = UserHandle.getUid(MAIN_USER.id, /* appId = */ 10), in packageChanges_forSpecificPackageName() 156 packageUid = UserHandle.getUid(MAIN_USER.id, /* appId = */ 10), in packageChanges_forSpecificPackageName()
|
/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/companion/java/com/android/server/companion/virtual/ |
D | PermissionUtils.java | 44 int packageUid = context.getPackageManager() in validateCallingPackageName() local 46 if (packageUid != callingUid) { in validateCallingPackageName() 48 + " is UID " + packageUid + " but caller is " + callingUid); in validateCallingPackageName()
|
D | CameraAccessController.java | 157 for (int packageUid : openCameraInfo.packageUids) { in blockCameraAccessIfNeeded() 158 if (runningUids.contains(packageUid)) { in blockCameraAccessIfNeeded() 162 data.appUid = packageUid; in blockCameraAccessIfNeeded()
|
/frameworks/base/services/companion/java/com/android/server/companion/utils/ |
D | PermissionsUtils.java | 86 @NonNull AssociationRequest request, int packageUid) { in enforcePermissionForCreatingAssociation() argument 87 enforcePermissionForRequestingProfile(context, request.getDeviceProfile(), packageUid); in enforcePermissionForCreatingAssociation() 90 enforcePermissionForRequestingSelfManaged(context, packageUid); in enforcePermissionForCreatingAssociation() 98 @NonNull Context context, @Nullable String deviceProfile, int packageUid) { in enforcePermissionForRequestingProfile() argument 107 if (context.checkPermission(permission, getCallingPid(), packageUid) in enforcePermissionForRequestingProfile() 118 int packageUid) { in enforcePermissionForRequestingSelfManaged() argument 119 if (context.checkPermission(REQUEST_COMPANION_SELF_MANAGED, getCallingPid(), packageUid) in enforcePermissionForRequestingSelfManaged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateMonitor.kt | 96 packageUid = uid, in <lambda>() 107 packageUid = uid, in <lambda>() 122 packageUid = uid, in <lambda>() 134 packageUid = uid, in <lambda>() 145 packageUid = uid, in <lambda>()
|
D | PackageUpdateLogger.kt | 48 int1 = model.packageUid in logChange()
|
/frameworks/base/services/companion/java/com/android/server/companion/association/ |
D | AssociationRequestsProcessor.java | 162 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in processNewAssociationRequest() local 164 + userId + "/" + packageName + " (uid=" + packageUid + ")"); in processNewAssociationRequest() 167 enforcePermissionForCreatingAssociation(mContext, request, packageUid); in processNewAssociationRequest() 211 final PendingIntent pendingIntent = createPendingIntent(packageUid, intent); in processNewAssociationRequest() 229 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in buildAssociationCancellationIntent() local 238 return createPendingIntent(packageUid, intent); in buildAssociationCancellationIntent() 246 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in processAssociationRequestApproval() local 251 enforcePermissionForCreatingAssociation(mContext, request, packageUid); in processAssociationRequestApproval() 407 private PendingIntent createPendingIntent(int packageUid, Intent intent) { in createPendingIntent() argument 417 mContext, /*requestCode */ packageUid, intent, in createPendingIntent()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 65 public static void setPackageUid(String packageName, int packageUid) { in setPackageUid() argument 66 sPackageUids.put(packageName, packageUid); in setPackageUid() 73 public static void setPackageUidAsUser(String packageName, int packageUid, int userId) { in setPackageUidAsUser() argument 78 userPackageUids.put(packageName, packageUid); in setPackageUidAsUser()
|
/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/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateMonitorTest.kt | 110 packageUid = 123, in packageAdded() 131 packageUid = 123, in packageRemoved() 152 packageUid = 123, in packageChanged() 173 packageUid = 123, in packageUpdateStarted() 194 packageUid = 123, in packageUpdateFinished()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityMetricsLogger.java | 923 final int packageUid = r.info.applicationInfo.uid; in notifyActivityRemoved() local 924 final PackageCompatStateInfo compatStateInfo = mPackageUidToCompatStateInfo.get(packageUid); in notifyActivityRemoved() 1523 final int packageUid = activity.info.applicationInfo.uid; in logAppCompatState() local 1526 if (!mPackageUidToCompatStateInfo.contains(packageUid)) { in logAppCompatState() 1527 mPackageUidToCompatStateInfo.put(packageUid, new PackageCompatStateInfo()); in logAppCompatState() 1529 final PackageCompatStateInfo compatStateInfo = mPackageUidToCompatStateInfo.get(packageUid); in logAppCompatState() 1541 mPackageUidToCompatStateInfo.remove(packageUid); in logAppCompatState() 1555 findAppCompatStateToLog(compatStateInfo, packageUid); in logAppCompatState() 1579 private void findAppCompatStateToLog(PackageCompatStateInfo compatStateInfo, int packageUid) { in findAppCompatStateToLog() argument 1596 + packageUid); in findAppCompatStateToLog() [all …]
|
/frameworks/base/services/incremental/ |
D | IncrementalServiceValidation.cpp | 60 if (auto packageUid = pc.getPackageUid(packageName, 0); packageUid != uid) { in CheckPermissionForDataDelivery() local
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ApplicationStartInfoTest.java | 504 private ProcessRecord makeProcessRecord(int pid, int uid, int packageUid, Integer definingUid, in makeProcessRecord() argument 506 return makeProcessRecord(pid, uid, packageUid, definingUid, processName, packageName, mAms); in makeProcessRecord() 510 static ProcessRecord makeProcessRecord(int pid, int uid, int packageUid, Integer definingUid, in makeProcessRecord() argument 516 app.info.uid = packageUid; in makeProcessRecord() 537 Integer pid, Integer uid, Integer packageUid, in verifyInProgressApplicationStartInfo() argument 542 pid, uid, packageUid, definingUid, processName, reason, startupState, in verifyInProgressApplicationStartInfo() local 548 Integer pid, Integer uid, Integer packageUid, in verifyApplicationStartInfo() argument 559 if (packageUid != null) { in verifyApplicationStartInfo() 560 assertEquals(packageUid.intValue(), info.getPackageUid()); in verifyApplicationStartInfo()
|
D | ApplicationExitInfoTest.java | 989 private ProcessRecord makeProcessRecord(int pid, int uid, int packageUid, Integer definingUid, in makeProcessRecord() argument 992 return makeProcessRecord(pid, uid, packageUid, definingUid, connectionGroup, in makeProcessRecord() 996 static ProcessRecord makeProcessRecord(int pid, int uid, int packageUid, Integer definingUid, in makeProcessRecord() argument 1003 app.info.uid = packageUid; in makeProcessRecord() 1019 Long timestamp, Integer pid, Integer uid, Integer packageUid, in verifyApplicationExitInfo() argument 1036 if (packageUid != null) { in verifyApplicationExitInfo() 1037 assertEquals(packageUid.intValue(), info.getPackageUid()); in verifyApplicationExitInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/ |
D | LegacyPermissionManagerServiceTest.java | 395 int packageUid) { in setupCheckDeviceIdentifierAccessTest() argument 396 setupAccessTest(callingPid, callingUid, packageUid); in setupCheckDeviceIdentifierAccessTest() 422 private void setupCheckPhoneNumberAccessTest(int callingPid, int callingUid, int packageUid) in setupCheckPhoneNumberAccessTest() argument 424 setupAccessTest(callingPid, callingUid, packageUid); in setupCheckPhoneNumberAccessTest() 432 private void setupAccessTest(int callingPid, int callingUid, int packageUid) { in setupAccessTest() argument 435 when(mInjector.getPackageUidForUser(anyString(), anyInt())).thenReturn(packageUid); in setupAccessTest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SensitiveNotificationProtectionControllerImpl.java | 101 int packageUid; 103 packageUid = mPackageManager.getPackageUidAsUser(info.getPackageName(), 107 packageUid = -1; 112 new Random().nextLong(), packageUid, !isSensitiveStateActive());
|
/frameworks/base/core/java/android/app/ |
D | IProcessObserver.aidl | 30 void onProcessStarted(int pid, int processUid, int packageUid, in onProcessStarted() argument
|
D | HomeVisibilityListener.java | 72 public void onProcessStarted(int pid, int processUid, int packageUid, in HomeVisibilityListener()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCapturePerUserService.java | 423 final int packageUid; in assertCallerLocked() local 425 packageUid = pm.getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in assertCallerLocked() 429 if (callingUid != packageUid && !LocalServices.getService(ActivityManagerInternal.class) in assertCallerLocked() 440 && packageUid == hotwordDetectionServiceIdentity.getOwnerUid(); in assertCallerLocked() 446 + ") passed package (" + packageName + ") owned by UID " + packageUid); in assertCallerLocked()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipTestBase.kt | 84 packageUid: Int, in fail()
|