Home
last modified time | relevance | path

Searched refs:myUid (Results 1 – 19 of 19) 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.java620 ? Process.myUid() in addUser()
630 userPidMap.put(UserHandle.USER_SYSTEM, Process.myUid()); in reset()
DShadowActivityManager.java108 processInfo.uid = Process.myUid(); in fillInProcessInfo()
DShadowNotificationManager.java88 android.os.Process.myUid() /* uid */, in getActiveNotifications()
DShadowInstrumentation.java702 grantPermissions(Process.myPid(), Process.myUid(), permissionNames);
715 denyPermissions(Process.myPid(), Process.myUid(), permissionNames);
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/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/types/
DTestCrossProfileTypeWhichNeedsContext.java148 return android.os.Process.myUid() / 100000; in getUserId()
DTestCrossProfileType.java548 return android.os.Process.myUid() / 100000; in getUserId()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DAppDataDirGuesserTest.java171 assertTrue(guesser.getProcessUid() == Process.myUid()); in testGetProcessUid()
/external/setupcompat/main/java/com/google/android/setupcompat/portal/
DPortalHelper.java222 return UserHandle.getUserHandleForUid(Process.myUid()); in getCurrentUserHandle()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCBluetoothManager.java417 return apprtcContext.checkPermission(permission, Process.myPid(), Process.myUid()) in hasPermission()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java638 if (getActivity().checkPermission(permission, Process.myPid(), Process.myUid()) in allPermissionsGranted()