Home
last modified time | relevance | path

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

12

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DClipDataJobTest.java68 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()
DConstraintTest.java135 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/
DNetworkUsageStatsTest.java427 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/
DSystemHealthManagerTest.java52 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/
DTrafficStatsTest.java113 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/
DPermissionMaxSdkVersionTest.java40 Process.myPid(), Process.myUid()); in testMaxSdkInPast()
53 Process.myPid(), Process.myUid()); in testMaxSdkInFuture()
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
DMultiUserStorageTest.java47 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/
DExternalServiceTest.java146 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/
DMockJobService.java83 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/
DUsePermissionTest22.java53 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/
DCtsSyncAccountAccessSameCertTestCases.java145 "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/
DRemoteSocketFactoryService.java55 return Process.myUid();
/cts/tests/tests/permission/src/android/permission/cts/
DAppOpsTest.java53 setMode.invoke(mAppOps, writeSmsOp, android.os.Process.myUid(), in testSetMode()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DBaseService.java57 Process.myUid(), Process.myPid()); in handleMessage()
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java174 "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/
DReadExternalStorageTest.java80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java56 if (uid != Process.myUid() || uri == null) { in onChoosePrivateKeyAlias()
/cts/tests/tests/os/src/android/os/cts/
DCrossProcessExceptionTest.java110 assertEquals(android.os.Process.myUid(), are.getUserAction().getCreatorUid()); in testARE()
DProcessTest.java149 assertTrue(Process.myUid() >= 0); in testMiscMethods()
DBinderTest.java316 assertEquals(Process.myUid(), Binder.getCallingUid()); in testSimpleMethods()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationListenerActivity.java43 + Process.myUid()); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java385 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/
DExternalStorageTest.java86 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotReadable()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java109 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/
DWriteExternalStorageTest.java290 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testSecondaryMountPointsNotWritable()

12