/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ClipDataJobTest.java | 68 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrant() 71 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrant() 83 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrant() 86 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrant() 126 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrantReschedule() 129 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrantReschedule() 141 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrantReschedule() 144 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrantReschedule()
|
D | ConstraintTest.java | 135 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in assertHasUriPermission() 140 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in assertHasUriPermission() 146 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access) in waitPermissionRevoke()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 427 if (bucket.getUid() == Process.myUid()) { in testAppSummary() 437 assertTrue("No Rx bytes usage for uid " + Process.myUid(), totalRxBytes > 0); in testAppSummary() 438 assertTrue("No Rx packets usage for uid " + Process.myUid(), totalRxPackets > 0); in testAppSummary() 439 assertTrue("No Tx bytes usage for uid " + Process.myUid(), totalTxBytes > 0); in testAppSummary() 440 assertTrue("No Tx packets usage for uid " + Process.myUid(), totalTxPackets > 0); in testAppSummary() 485 if (bucket.getUid() == Process.myUid()) { in testAppDetails() 493 assertTrue("No Rx bytes usage for uid " + Process.myUid(), totalRxBytes > 0); in testAppDetails() 494 assertTrue("No Rx packets usage for uid " + Process.myUid(), totalRxPackets > 0); in testAppDetails() 495 assertTrue("No Tx bytes usage for uid " + Process.myUid(), totalTxBytes > 0); in testAppDetails() 496 assertTrue("No Tx packets usage for uid " + Process.myUid(), totalTxPackets > 0); in testAppDetails() [all …]
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | SystemHealthManagerTest.java | 52 Assert.assertNotNull(healthy.takeUidSnapshot(Process.myUid())); in testTakeUidSnapshotWithMe() 94 Process.myUid(), in testTakeUidSnapshotsWithMe() 95 Process.myUid(), in testTakeUidSnapshotsWithMe() 113 Process.myUid(), in testTakeMyUidSnapshotsWithSystem()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | TrafficStatsTest.java | 113 final long uidTxBytesBefore = TrafficStats.getUidTxBytes(Process.myUid()); in testTrafficStatsForLocalhost() 114 final long uidRxBytesBefore = TrafficStats.getUidRxBytes(Process.myUid()); in testTrafficStatsForLocalhost() 115 final long uidTxPacketsBefore = TrafficStats.getUidTxPackets(Process.myUid()); in testTrafficStatsForLocalhost() 116 final long uidRxPacketsBefore = TrafficStats.getUidRxPackets(Process.myUid()); in testTrafficStatsForLocalhost() 187 long uidTxBytesAfter = TrafficStats.getUidTxBytes(Process.myUid()); in testTrafficStatsForLocalhost() 188 long uidRxBytesAfter = TrafficStats.getUidRxBytes(Process.myUid()); in testTrafficStatsForLocalhost() 189 long uidTxPacketsAfter = TrafficStats.getUidTxPackets(Process.myUid()); in testTrafficStatsForLocalhost() 190 long uidRxPacketsAfter = TrafficStats.getUidRxPackets(Process.myUid()); in testTrafficStatsForLocalhost()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PermissionMaxSdkVersionTest.java | 40 Process.myPid(), Process.myUid()); in testMaxSdkInPast() 53 Process.myPid(), Process.myUid()); in testMaxSdkInFuture()
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
D | MultiUserStorageTest.java | 47 private final String FILE_MY_UID = FILE_PREFIX + android.os.Process.myUid(); 69 final int uid = android.os.Process.myUid(); in testWriteIsolatedStorage() 85 final int uid = android.os.Process.myUid(); in testReadIsolatedStorage() 133 final int myId = android.os.Process.myUid() / 100000; in testUserIsolation() 151 final int myId = android.os.Process.myUid() / 100000; in testMediaProviderUserIsolation()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | ExternalServiceTest.java | 146 assertNotEquals(Process.myUid(), id.uid); in testBindExternalService() 216 int myUid = Process.myUid(); in testBindExternalServiceWithRunningOwn() local 220 assertNotEquals(myUid, creatorId.uid); in testBindExternalServiceWithRunningOwn() 221 assertNotEquals(myUid, creatorServiceId.uid); in testBindExternalServiceWithRunningOwn() 222 assertNotEquals(myUid, serviceId.uid); in testBindExternalServiceWithRunningOwn() 276 assertNotEquals(Process.myUid(), idOne.uid); in testBindExternalAboveClient()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 83 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION); in onStartJob() 85 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in onStartJob() 114 Process.myPid(), Process.myUid(), in onStartJob() 127 Process.myPid(), Process.myUid(), in onStartJob() 146 Process.myPid(), Process.myUid(), in onStartJob() 159 Process.myPid(), Process.myUid(), in onStartJob()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/ |
D | UsePermissionTest22.java | 53 Process.myPid(), Process.myUid())); in testCompatDefault() 56 Process.myPid(), Process.myUid())); in testCompatDefault() 82 Process.myPid(), Process.myUid())); in testCompatRevoked_part2() 85 Process.myPid(), Process.myUid())); in testCompatRevoked_part2()
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/ |
D | CtsSyncAccountAccessSameCertTestCases.java | 145 "cmd netpolicy add restrict-background-whitelist " + Process.myUid()); in allowSyncAdapterRunInBackgroundAndDataInBackground() 154 "cmd netpolicy remove restrict-background-whitelist " + Process.myUid()); in disallowSyncAdapterRunInBackgroundAndDataInBackground()
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | RemoteSocketFactoryService.java | 55 return Process.myUid();
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | AppOpsTest.java | 53 setMode.invoke(mAppOps, writeSmsOp, android.os.Process.myUid(), in testSetMode()
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | BaseService.java | 57 Process.myUid(), Process.myPid()); in handleMessage()
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/ |
D | CtsSyncAccountAccessOtherCertTestCases.java | 174 "cmd netpolicy add restrict-background-whitelist " + Process.myUid()); in allowSyncAdapterRunInBackgroundAndDataInBackground() 183 "cmd netpolicy remove restrict-background-whitelist " + Process.myUid()); in disallowSyncAdapterRunInBackgroundAndDataInBackground()
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadExternalStorageTest.java | 80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BaseDeviceOwnerTest.java | 56 if (uid != Process.myUid() || uri == null) { in onChoosePrivateKeyAlias()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CrossProcessExceptionTest.java | 110 assertEquals(android.os.Process.myUid(), are.getUserAction().getCreatorUid()); in testARE()
|
D | ProcessTest.java | 149 assertTrue(Process.myUid() >= 0); in testMiscMethods()
|
D | BinderTest.java | 316 assertEquals(Process.myUid(), Binder.getCallingUid()); in testSimpleMethods()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationListenerActivity.java | 43 + Process.myUid()); in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 385 final String token = String.valueOf(android.os.Process.myUid()); in testDataWrite() 403 final String token = String.valueOf(android.os.Process.myUid()); in testDataRead() 445 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataWrite() 450 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataRead()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 86 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotReadable()
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 109 final int uid = android.os.Process.myUid(); in testVerifyStats() 166 final int uid = android.os.Process.myUid(); in testVerifyStatsExternal()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 290 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testSecondaryMountPointsNotWritable()
|