Home
last modified time | relevance | path

Searched refs:getAppId (Results 1 – 20 of 20) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DStatsdAppSecurityAtomTest.java78 int testAppId = getAppId(DeviceUtils.getAppUid(getDevice(), STATSD_APP_PKG)); in testRoleHolder()
94 assertThat(getAppId(roleHolder.getUid())).isEqualTo(testAppId); in testRoleHolder()
112 private static int getAppId(int uid) { in getAppId() method in StatsdAppSecurityAtomTest
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/content-provider/src/android/security/cts/BUG_261036568_provider/
DImageProvider.java79 private static int getAppId(int uid) { in getAppId() method in ImageProvider
159 if (getAppId(callingUid) != getAppId(mChooserUid)) { in maybeRecordUriAccess()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/permissionstate/
DDangerousPermissionStateTests.java79 int testAppId = getAppId(DeviceUtils.getStatsdTestAppUid(getDevice())); in testDangerousPermissionState()
88 if (getAppId(permissionState.getUid()) == testAppId) { in testDangerousPermissionState()
187 private static int getAppId(int uid) { in getAppId() method in DangerousPermissionStateTests
/cts/tests/tests/os/src/android/os/cts/
DUserHandleTest.java100 assertEquals(appId, UserHandle.getAppId(uid)); in assertConsistent()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationDisabledAppOpsTest.java82 int appId = UserHandle.getAppId(ai.uid); in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
/cts/tests/tests/security/src/android/security/cts/
DLocationDisabledAppOpsTest.java89 int appId = UserHandle.getAppId(ai.uid); in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DRenouncedPermissionsTest.kt143 Process.myUserHandle().identifier, UserHandle.getAppId(Process.SHELL_UID)) in getShellAttributionSourceWithRenouncedPermissions()
DRuntimePermissionsAppOpTrackingTest.kt361 UserHandle.getAppId(Process.SHELL_UID)) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java166 int appId = UserHandle.getAppId(entry.uid); in testNoAccessibleListeningPorts()
/cts/tests/app/src/android/app/cts/
DServiceTest.java1771 int getAppId() { in getAppId() method in ServiceTest.LruOrderItem
1772 return UserHandle.getAppId(getUid()); in getAppId()
1776 int procAppId = proc.isolatedAppId != 0 ? proc.isolatedAppId : UserHandle.getAppId( in isEquivalentTo()
1780 return procAppId == getAppId() && proc.userId == getUserId(); in isEquivalentTo()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageStatsManagerTest.java174 UserHandle.getAppId(Process.myUid())); in queryCratesForUid_withOtherUid_shouldRiseSecurityIssueException()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java325 final String expectedText = "UID=" + UserHandle.getAppId(mTestPackageUid); in isTestAppTempWhitelisted()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DNetworkScanApiTest.java546 .filter(uid -> !specialUids.contains(UserHandle.getAppId(uid))) in testNetworkScanPermission()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DCrossUserPackageVisibilityTests.java555 final int crossUid = UserHandle.getUid(mOtherUser.id(), UserHandle.getAppId(uid)); in testQueryContentProviders_cannotDetectStubPkg()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DExactAlarmsTest.java509 final String selfAppId = String.valueOf(UserHandle.getAppId(Process.myUid())); in assertTempWhitelistState()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBaseDefaultPermissionGrantPolicyTest.java319 properties.put("uid", UserHandle.getAppId(info.applicationInfo.uid)); in getPackageProperties()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpEventCollectionTest.kt58 UserHandle.getAppId(Process.SHELL_UID))
DAppOpsTest.kt150 UserHandle.getAppId(Process.SHELL_UID))
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandIncrementalTest.java904 final int appId = UserHandle.getAppId(uid); in testInstallWithIdSigNoDigesting()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt6149 method @Deprecated public long getAppId();
6209 method @Deprecated public long getAppId();
11222 method public static int getAppId(int);