Searched refs:getAppId (Results 1 – 10 of 10) sorted by relevance
77 int testAppId = getAppId(DeviceUtils.getAppUid(getDevice(), STATSD_APP_PKG)); in testRoleHolder()87 assertThat(getAppId(roleHolder.getUid())).isEqualTo(testAppId); in testRoleHolder()105 private static int getAppId(int uid) { in getAppId() method in StatsdAppSecurityAtomTest
78 int testAppId = getAppId(DeviceUtils.getStatsdTestAppUid(getDevice())); in testDangerousPermissionState()87 if (getAppId(permissionState.getUid()) == testAppId) { in testDangerousPermissionState()186 private static int getAppId(int uid) { in getAppId() method in DangerousPermissionStateTests
69 int uid = UserHandle.getUid(UserHandle.myUserId(), UserHandle.getAppId(Process.SHELL_UID)); in testBlacklistedPermissions()
247 final int appUid = userHandle.getAppId(pkg.applicationInfo.uid); in testWriteMediaStorage()
129 UserHandle.getAppId(Process.SHELL_UID)) in getShellAttributionSourceWithRenouncedPermissions()
123 int appId = UserHandle.getAppId(entry.uid); in testNoAccessibleListeningPorts()
1671 int getAppId() { in getAppId() method in ServiceTest.LruOrderItem1672 return UserHandle.getAppId(getUid()); in getAppId()1676 int procAppId = proc.isolatedAppId != 0 ? proc.isolatedAppId : UserHandle.getAppId( in isEquivalentTo()1680 return procAppId == getAppId() && proc.userId == getUserId(); in isEquivalentTo()
173 UserHandle.getAppId(Process.myUid())); in queryCratesForUid_withOtherUid_shouldRiseSecurityIssueException()
468 .filter(uid -> !specialUids.contains(UserHandle.getAppId(uid))) in testNetworkScanPermission()
308 properties.put("uid", UserHandle.getAppId(info.applicationInfo.uid)); in getPackageProperties()