Searched refs:myUid (Results 1 – 15 of 15) sorted by relevance
86 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testGetCallingUidShouldUseProcessUidByDefault()100 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid()); in testResetUpdatesCallingUidAndPid()
86 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()
28 assertThat(android.os.Process.myUid()).isEqualTo(123); in shouldGetMyUidAsSet()
209 Method myUid = Class.forName("android.os.Process").getMethod("myUid"); in getProcessUid() local212 return (Integer) myUid.invoke(/* instance= */ null); in getProcessUid()
55 return android.os.Process.myUid(); in getCallingUid()
35 protected static final int myUid() { in myUid() method in ShadowProcess
609 ? Process.myUid() in addUser()619 userPidMap.put(UserHandle.USER_SYSTEM, Process.myUid()); in reset()
108 processInfo.uid = Process.myUid(); in fillInProcessInfo()
702 grantPermissions(Process.myPid(), Process.myUid(), permissionNames);715 denyPermissions(Process.myPid(), Process.myUid(), permissionNames);
88 android.os.Process.myUid() /* uid */, in getActiveNotifications()
105 return checkPermission(permission, android.os.Process.myPid(), android.os.Process.myUid()); in checkCallingPermission()
147 pkg.applicationInfo.uid = Process.myUid(); in createPackage()
818 packageInfo.applicationInfo.uid = Process.myUid(); in addPackageInternal()
200 Process.myUid()) == PackageManager.PERMISSION_GRANTED; in hasPermission()
171 assertTrue(guesser.getProcessUid() == Process.myUid()); in testGetProcessUid()