HomeSort by relevance Sort by last modified time
    Searched refs:myUid (Results 1 - 25 of 67) sorted by null

1 2 3

  /cts/tests/tests/permission2/src/android/permission2/cts/
PermissionMaxSdkVersionTest.java 40 Process.myPid(), Process.myUid());
53 Process.myPid(), Process.myUid());
  /cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
ClipDataJobTest.java 68 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
71 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
83 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
86 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
126 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
129 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
141 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
144 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
ConstraintTest.java 135 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
140 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
146 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access)
  /cts/tests/tests/os/src/android/os/health/cts/
SystemHealthManagerTest.java 51 Assert.assertNotNull(healthy.takeUidSnapshot(Process.myUid()));
93 Process.myUid(),
94 Process.myUid(),
112 Process.myUid(),
  /cts/tests/tests/netpermission/updatestatspermission/src/android/net/cts/network/permission/
UpdateStatsPermissionTest.java 66 final long uidTxBytesBefore = TrafficStats.getUidTxBytes(Process.myUid());
70 long uidTxBytesAfter = TrafficStats.getUidTxBytes(Process.myUid());
  /cts/tests/tests/net/src/android/net/cts/
TrafficStatsTest.java 95 final long uidTxBytesBefore = TrafficStats.getUidTxBytes(Process.myUid());
96 final long uidRxBytesBefore = TrafficStats.getUidRxBytes(Process.myUid());
97 final long uidTxPacketsBefore = TrafficStats.getUidTxPackets(Process.myUid());
98 final long uidRxPacketsBefore = TrafficStats.getUidRxPackets(Process.myUid());
169 long uidTxBytesAfter = TrafficStats.getUidTxBytes(Process.myUid());
170 long uidRxBytesAfter = TrafficStats.getUidRxBytes(Process.myUid());
171 long uidTxPacketsAfter = TrafficStats.getUidTxPackets(Process.myUid());
172 long uidRxPacketsAfter = TrafficStats.getUidRxPackets(Process.myUid());
205 NetworkStats.Entry entry = testStats.getTotal(null, Process.myUid());
  /cts/tests/tests/app.usage/src/android/app/usage/cts/
NetworkUsageStatsTest.java 265 "cmd activity get-uid-state " + Process.myUid());
446 if (bucket.getUid() == Process.myUid()) {
460 assertTrue("No Rx bytes usage for uid " + Process.myUid(), totalRxBytes > 0);
461 assertTrue("No Rx packets usage for uid " + Process.myUid(), totalRxPackets > 0);
462 assertTrue("No Tx bytes usage for uid " + Process.myUid(), totalTxBytes > 0);
463 assertTrue("No Tx packets usage for uid " + Process.myUid(), totalTxPackets > 0);
538 mStartTime, mEndTime, Process.myUid());
551 assertEquals(bucket.getUid(), Process.myUid());
558 assertTrue("No Rx bytes usage for uid " + Process.myUid(), totalRxBytes > 0);
559 assertTrue("No Rx packets usage for uid " + Process.myUid(), totalRxPackets > 0)
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
MultiUserStorageTest.java 47 private final String FILE_MY_UID = FILE_PREFIX + android.os.Process.myUid();
69 final int uid = android.os.Process.myUid();
85 final int uid = android.os.Process.myUid();
133 final int myId = android.os.Process.myUid() / 100000;
151 final int myId = android.os.Process.myUid() / 100000;
  /cts/tests/tests/externalservice/src/android/externalservice/cts/
ExternalServiceTest.java 147 assertNotEquals(Process.myUid(), id.uid);
218 int myUid = Process.myUid();
222 assertNotEquals(myUid, creatorId.uid);
223 assertNotEquals(myUid, creatorServiceId.uid);
224 assertNotEquals(myUid, serviceId.uid);
283 assertNotEquals(Process.myUid(), idOne.uid);
312 assertNotEquals(Process.myUid(), id.uid);
390 int myUid = Process.myUid();
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowBinderTest.java 86 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid());
100 assertThat(Binder.getCallingUid()).isEqualTo(android.os.Process.myUid());
ShadowActivityManagerTest.java 86 assertThat(myInfo.uid).isEqualTo(android.os.Process.myUid());
158 assertThat(inState.uid).isEqualTo(Process.myUid());
162 setState.uid = Process.myUid();
  /cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
UsePermissionTest22.java 48 Process.myPid(), Process.myUid()));
51 Process.myPid(), Process.myUid()));
71 Process.myPid(), Process.myUid()));
74 Process.myPid(), Process.myUid()));
  /cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
RemoteSocketFactoryService.java 55 return Process.myUid();
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowBinder.java 55 return android.os.Process.myUid();
ShadowProcess.java 31 * via {@link android.os.Process#myUid()}. You can override this value by calling {@link
35 protected static final int myUid() {
119 // android.os.Process.myUid(), which persists between tests.
124 // should access the current process UID via android.os.Process::myUid().
  /cts/tests/JobScheduler/src/android/jobscheduler/
MockJobService.java 85 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION);
87 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
118 Process.myPid(), Process.myUid(),
131 Process.myPid(), Process.myUid(),
150 Process.myPid(), Process.myUid(),
163 Process.myPid(), Process.myUid(),
  /cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
MockJobService.java 85 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION);
87 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
118 Process.myPid(), Process.myUid(),
131 Process.myPid(), Process.myUid(),
150 Process.myPid(), Process.myUid(),
163 Process.myPid(), Process.myUid(),
  /cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
Utils.java 74 "cmd netpolicy add restrict-background-whitelist " + Process.myUid());
83 "cmd netpolicy remove restrict-background-whitelist " + Process.myUid());
  /cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
ReadExternalStorageTest.java 80 final String userId = Integer.toString(android.os.Process.myUid() / 100000);
  /cts/tests/tests/externalservice/service/src/android/externalservice/service/
BaseService.java 59 serviceInfo.uid = Process.myUid();
  /cts/tests/tests/media/src/android/media/cts/
StubMediaSession2Service.java 113 if (controller.getUid() == Process.myUid()) {
MediaSession2Test.java 216 assertEquals(Process.myUid(), token.getUid());
251 assertEquals(Process.myUid(), controllerInfo.getUid());
298 assertEquals(Process.myUid(), tokenOut.getUid());
396 assertEquals(Process.myUid(), remoteUserInfo.getUid());
422 assertEquals(Process.myUid(), sessionCallback.mController.getUid());
692 if (controller.getUid() != Process.myUid()) {
704 if (controller.getUid() != Process.myUid()) {
715 if (controller.getUid() != Process.myUid()) {
727 if (controller.getUid() != Process.myUid()) {
750 if (controller.getUid() != Process.myUid()) {
    [all...]
  /cts/tests/JobScheduler/src/android/jobscheduler/cts/
ConstraintTest.java 138 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION));
143 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION));
149 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access)
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationListenerActivity.java 59 + Process.myUid());
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
BaseDeviceAdminTest.java 50 if (uid != Process.myUid() || uri == null) {

Completed in 647 milliseconds

1 2 3