Home
last modified time | relevance | path

Searched refs:getCallingUid (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBinderTest.java75 assertThat(Binder.getCallingUid()).isEqualTo(37); in testSetCallingUid()
86 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testGetCallingUidShouldUseProcessUidByDefault()
100 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testResetUpdatesCallingUidAndPid()
DShadowAppOpsManagerTest.java112 appOps.setMode(OP_GPS, Binder.getCallingUid(), PACKAGE_NAME1, MODE_DEFAULT); in setMode_withModeDefault_atLeastO_noteProxyOpNoThrow_shouldReturnModeDefault()
120 appOps.setMode(OP_GPS, Binder.getCallingUid(), PACKAGE_NAME1, MODE_ERRORED); in setMode_noteProxyOpNoThrow_atLeastO()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBinder.java51 protected static final int getCallingUid() { in getCallingUid() method in ShadowBinder
DShadowAppOpsManager.java165 mStoredOps.put(getInternalKey(Binder.getCallingUid(), proxiedPackageName), op); in noteProxyOpNoThrow()
166 return checkOpNoThrow(op, Binder.getCallingUid(), proxiedPackageName); in noteProxyOpNoThrow()
DShadowPackageManager.java558 packagesForUid.put(Binder.getCallingUid(), packagesForCallingUid); in setPackagesForCallingUid()
560 uidForPackage.put(packageName, Binder.getCallingUid()); in setPackagesForCallingUid()