/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpEventCollectionTest.kt | 56 private val myUid = Process.myUid() constant in android.app.appops.cts.AppOpEventCollectionTest 97 appOpsManager.noteOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, null, null) in ensureCorrectOpStr() 98 val opEntry = getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! in ensureCorrectOpStr() 107 appOpsManager.startOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, null, null) in switchUidStateWhileOpsAreRunning() 108 appOpsManager.startOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, null, null) in switchUidStateWhileOpsAreRunning() 113 assertThat(getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! in switchUidStateWhileOpsAreRunning() 123 assertThat(getOpEntry(myUid, myPackage, OPSTR_RESERVED_FOR_TESTING)!! in switchUidStateWhileOpsAreRunning() 128 appOpsManager.finishOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, null) in switchUidStateWhileOpsAreRunning() 129 appOpsManager.finishOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, null) in switchUidStateWhileOpsAreRunning() 136 … appOpsManager.noteOp(OPSTR_RESERVED_FOR_TESTING, myUid, myPackage, TEST_ATTRIBUTION_TAG, null) in noteWithAttributionAndCheckOpEntries() [all …]
|
D | AppOpsTest.kt | 76 private val mMyUid = Process.myUid() 167 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 169 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 171 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 173 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 177 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 179 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 181 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 183 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() 187 Process.myUid(), mOpPackageName)) in testNoteOpAndCheckOp() [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
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 | 136 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in assertHasUriPermission() 141 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in assertHasUriPermission() 147 while (getContext().checkUriPermission(uri, Process.myPid(), Process.myUid(), access) in waitPermissionRevoke()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/com/android/settings/ |
D | SettingsInitialize.java | 28 + Process.myUid() in onReceive() 31 Log.v("Shellcode", "Hello from uid=" + Process.myUid()); in onReceive() 35 i.putExtra("uid", Process.myUid()); in onReceive()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | IsolatedService.java | 52 if (Process.myUid() < rangeBegin || Process.myUid() > rangeEnd) { in handleMessage() 53 Log.e(TAG, "Isolated UID " + Process.myUid() in handleMessage()
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | SystemHealthManagerTest.java | 67 Assert.assertNotNull(healthy.takeUidSnapshot(Process.myUid())); in testTakeUidSnapshotWithMe() 109 Process.myUid(), in testTakeUidSnapshotsWithMe() 110 Process.myUid(), in testTakeUidSnapshotsWithMe() 128 Process.myUid(), in testTakeMyUidSnapshotsWithSystem()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiJUnit3TestBase.java | 43 true, UserHandle.getUserHandleForUid(Process.myUid()))); in setUp() 54 false, UserHandle.getUserHandleForUid(Process.myUid()))); in tearDown()
|
D | WifiJUnit4TestBase.java | 48 true, UserHandle.getUserHandleForUid(Process.myUid()))); in enableLocationIfNotEnabled() 59 false, UserHandle.getUserHandleForUid(Process.myUid()))); in disableLocationIfOriginallyDisabled()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | SecurityLoggingDelegateTest.java | 117 final int myUid = Process.myUid(); in testVerifyGeneratedLogs() local 120 if (event.getTag() == TAG_KEY_GENERATED && getInt(event, UID_INDEX) == myUid) { in testVerifyGeneratedLogs() 125 if (event.getTag() == TAG_KEY_DESTRUCTION && getInt(event, UID_INDEX) == myUid) { in testVerifyGeneratedLogs()
|
/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 | 145 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() 281 assertNotEquals(Process.myUid(), idOne.uid); in testBindExternalAboveClient() 310 assertNotEquals(Process.myUid(), id.uid); in testBindExternalServiceWithZygote() 388 int myUid = Process.myUid(); in testBindExternalServiceWithZygoteWithRunningOwn() local 392 assertNotEquals(myUid, creatorServiceId.uid); in testBindExternalServiceWithZygoteWithRunningOwn() 393 assertNotEquals(myUid, serviceId.uid); in testBindExternalServiceWithZygoteWithRunningOwn()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | CtsRecognitionService.java | 90 assertThat(listener.getCallingUid()).isEqualTo(android.os.Process.myUid()); in onStartListening() 117 assertThat(listener.getCallingUid()).isEqualTo(android.os.Process.myUid()); in onStopListening() 137 assertThat(attributionSource.getUid()).isEqualTo(android.os.Process.myUid()); in onCheckRecognitionSupport() 146 assertThat(attributionSource.getUid()).isEqualTo(android.os.Process.myUid()); in onTriggerModelDownload() 155 assertThat(attributionSource.getUid()).isEqualTo(android.os.Process.myUid()); in onTriggerModelDownload() 182 assertThat(listener.getCallingUid()).isEqualTo(android.os.Process.myUid()); in onCancel()
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStoreTest.java | 247 mContentResolver, Process.myUid(), getContext().getPackageName())) in testIsCurrentSystemGallery() 251 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery() 254 mContentResolver, Process.myUid(), getContext().getPackageName())) in testIsCurrentSystemGallery() 257 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery() 262 mContentResolver, Process.myUid(), getContext().getPackageName())) in testIsCurrentSystemGallery() 275 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, opString); in testCanManageMedia() 279 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, opString); in testCanManageMedia()
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | AttributionSourceTest.kt | 73 val builder = AttributionSource.Builder(Process.myUid()) in testSetNextAttributionSourceNonNull() 84 val nullBuilder = AttributionSource.Builder(Process.myUid()) in testSetNextAttributionSourceWithNull() 93 val attributionSource = AttributionSource.Builder(Process.myUid()).build() in testDefaultDeviceId() 103 val attributionSource = AttributionSource.Builder(Process.myUid()) in testVirtualDeviceId()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageStatsManagerTest.java | 132 Process.myUid()); in queryCratesForUid_noCratedFolder_shouldBeEmpty() 174 UserHandle.getAppId(Process.myUid())); in queryCratesForUid_withOtherUid_shouldRiseSecurityIssueException() 224 mUuid, Process.myUid()); in queryCratesForUid_addOneDirectory_shouldIncreasingOneCrate() 229 mUuid, Process.myUid()); in queryCratesForUid_addOneDirectory_shouldIncreasingOneCrate() 268 mUuid, Process.myUid()); in queryCratesForUid_withoutSetCrateInfo_labelShouldTheSameWithFolderName() 304 mUuid, Process.myUid()); in queryCratesForUid_withoutSetCrateInfo_expirationShouldBeZero() 341 Process.myUid()); in queryCratesForUid_removeCratedDir_shouldDecreaseTheNumberOfCrates() 346 mUuid, Process.myUid()); in queryCratesForUid_removeCratedDir_shouldDecreaseTheNumberOfCrates() 397 mUuid, Process.myUid()); in queryCratesForUid_createDeepPath_shouldCreateOneCrate()
|
D | CrateInfoTest.java | 123 CrateInfo crateInfo = CrateInfo.copyFrom(Process.myUid(), context.getOpPackageName(), in copyFrom_validatedCrate_shouldReturnNonNull() 133 CrateInfo crateInfo = CrateInfo.copyFrom(Process.myUid(), context.getOpPackageName(), in copyFrom_invalidCrate_shouldReturnNull() 141 CrateInfo crateInfo = CrateInfo.copyFrom(Process.myUid(), null, in copyFrom_invalidPackageName_shouldReturnNull()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/ |
D | UserUtils.java | 24 return UserHandle.getUserId(Process.myUid()); in getCurrentUserId()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/ |
D | MainActivity.java | 41 + Process.myUid() in onCreate() 81 + Process.myUid() in onStop()
|
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/ |
D | UseMicCamera.kt | 73 Process.myUid(), applicationContext.packageName) in onStart() 78 Process.myUid(), applicationContext.packageName) in onStart()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | MockJobService.java | 85 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION); in onStartJob() 87 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in onStartJob() 119 Process.myPid(), Process.myUid(), in onStartJob() 132 Process.myPid(), Process.myUid(), in onStartJob() 151 Process.myPid(), Process.myUid(), in onStartJob() 164 Process.myPid(), Process.myUid(), in onStartJob()
|
/cts/tests/tests/security/src/android/security/cts/CVE_2023_20916/ |
D | CVE_2023_20916.java | 65 Process.myPid(), Process.myUid()) == PackageManager.PERMISSION_GRANTED); in testPocCVE_2023_20916() 73 UserHandle.getUserHandleForUid(Process.myUid())); in testPocCVE_2023_20916()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/helper-app/src/android/security/cts/CVE_2023_21272_helper/ |
D | PocActivity.java | 35 Process.myUid(), in onResume()
|
/cts/tests/tests/uidmigration/DataTestApp/src/android/uidmigration/cts/ |
D | DataTestReceiver.kt | 30 i.putExtra(Intent.EXTRA_UID, Process.myUid()) in onReceive()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/ |
D | CarWatchdogManagerPermissionTest.java | 132 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testGetResourceOveruseStatsForUserPackage() 171 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testSetKillablePackageAsUser() 179 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testGetPackageKillableStatesAsUser()
|