Home
last modified time | relevance | path

Searched refs:myUid (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBinderTest.java86 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testGetCallingUidShouldUseProcessUidByDefault()
100 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testResetUpdatesCallingUidAndPid()
DShadowActivityManagerTest.java86 assertThat(myInfo.uid).isEqualTo(android.os.Process.myUid()); in getRunningAppProcesses_shouldReturnProcessList()
158 assertThat(inState.uid).isEqualTo(Process.myUid()); in getMyMemoryState()
162 setState.uid = Process.myUid(); in getMyMemoryState()
DShadowProcessTest.java28 assertThat(android.os.Process.myUid()).isEqualTo(123); in shouldGetMyUidAsSet()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DAppDataDirGuesser.java209 Method myUid = Class.forName("android.os.Process").getMethod("myUid"); in getProcessUid() local
212 return (Integer) myUid.invoke(/* instance= */ null); in getProcessUid()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBinder.java55 return android.os.Process.myUid(); in getCallingUid()
DShadowProcess.java35 protected static final int myUid() { in myUid() method in ShadowProcess
DShadowUserManager.java609 ? Process.myUid() in addUser()
619 userPidMap.put(UserHandle.USER_SYSTEM, Process.myUid()); in reset()
DShadowActivityManager.java108 processInfo.uid = Process.myUid(); in fillInProcessInfo()
DShadowInstrumentation.java702 grantPermissions(Process.myPid(), Process.myUid(), permissionNames);
715 denyPermissions(Process.myPid(), Process.myUid(), permissionNames);
DShadowNotificationManager.java88 android.os.Process.myUid() /* uid */, in getActiveNotifications()
DShadowContextImpl.java105 return checkPermission(permission, android.os.Process.myPid(), android.os.Process.myUid()); in checkCallingPermission()
DLegacyManifestParser.java147 pkg.applicationInfo.uid = Process.myUid(); in createPackage()
DShadowPackageManager.java818 packageInfo.applicationInfo.uid = Process.myUid(); in addPackageInternal()
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioUtils.java200 Process.myUid()) == PackageManager.PERMISSION_GRANTED; in hasPermission()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DAppDataDirGuesserTest.java171 assertTrue(guesser.getProcessUid() == Process.myUid()); in testGetProcessUid()