/cts/tests/app/src/android/app/cts/ |
D | UserHandleTest.java | 62 UserHandle.getUid(UserHandle.USER_ALL, TEST_APP_ID), in testGetUid() 63 UserHandle.ALL.getUid(TEST_APP_ID)); in testGetUid() 65 UserHandle.getUid(UserHandle.USER_SYSTEM, TEST_APP_ID), in testGetUid() 66 UserHandle.SYSTEM.getUid(TEST_APP_ID)); in testGetUid() 68 UserHandle.ALL.getUid(TEST_APP_ID), in testGetUid() 69 UserHandle.getUid(UserHandle.ALL.getIdentifier(), TEST_APP_ID)); in testGetUid() 71 UserHandle.SYSTEM.getUid(TEST_APP_ID), in testGetUid() 72 UserHandle.getUid(UserHandle.SYSTEM.getIdentifier(), TEST_APP_ID)); in testGetUid()
|
D | StatusBarNotificationTest.java | 48 assertEquals(UID, mSbn.getUid()); in testGetUid() 166 assertEquals(UID, clone.getUid()); in testClone()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | ZygotePreload.java | 99 int appStart = UserHandle.getUid(userId, Process.FIRST_APPLICATION_UID); in doPreload() 101 int appEnd = UserHandle.getUid(userId, Process.LAST_APPLICATION_UID); in doPreload() 107 int regularIsolatedStart = UserHandle.getUid(userId, Process.FIRST_ISOLATED_UID); in doPreload() 110 int regularIsolatedEnd = UserHandle.getUid(userId, Process.LAST_ISOLATED_UID); in doPreload() 119 int isolatedUserStart = UserHandle.getUid(UserHandle.myUserId(), in doPreload() 121 int isolatedUserEnd = UserHandle.getUid(UserHandle.myUserId(), in doPreload()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/permissionstate/ |
D | DangerousPermissionStateTests.java | 84 assertThat(permissionState.getUid()).isAtLeast(0); in testDangerousPermissionState() 87 if (getAppId(permissionState.getUid()) == testAppId) { in testDangerousPermissionState() 156 if (referenceState.getUid() != permissionState.getUid()) { in testDangerousPermissionStateSampled() 159 assertThat(permissionState.getUid()).isNotEqualTo(lastUid); in testDangerousPermissionStateSampled() 163 lastUid = permissionState.getUid(); in testDangerousPermissionStateSampled()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageInstallerV2StatsTests.java | 63 assertTrue(report.getUid() != 0); in testPackageInstallerV2MetricsReported() 64 assertEquals(getAppUid(TEST_INSTALL_PACKAGE), report.getUid()); in testPackageInstallerV2MetricsReported() 81 assertTrue(report.getUid() != 0); in testPackageInstallerV2MetricsReportedForSplits() 82 assertEquals(getAppUid(TEST_INSTALL_PACKAGE), report.getUid()); in testPackageInstallerV2MetricsReportedForSplits()
|
D | InstalledIncrementalPackageStatsTests.java | 71 uidsReported.add(atom.getInstalledIncrementalPackage().getUid()); in testInstalledIncrementalMetricsReported()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 81 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationPackagePreferenceExtraction() 85 if (pref.getUid() == uid) { in testNotificationPackagePreferenceExtraction() 116 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationChannelPreferencesExtraction() 123 if (uid == pref.getUid() && pref.getChannelId().equals("StatsdCtsChannel")) { in testNotificationChannelPreferencesExtraction() 155 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationChannelGroupPreferencesExtraction() 161 if (uid == pref.getUid() && pref.getGroupId().equals("StatsdCtsGroup")) { in testNotificationChannelGroupPreferencesExtraction()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | StatsdBlobStoreAtomTest.java | 84 assertThat(blobCommitted.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 90 assertThat(blobLeased.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 96 assertThat(blobOpened.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 123 if (temp.getCommitters().getCommitter(0).getUid() == mTestAppUid) { in testPulledBlobStoreStats() 151 assertThat(blobInfo.getLeasees().getLeasee(0).getUid()).isEqualTo(mTestAppUid); in testPulledBlobStoreStats()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | PowerIncidentTest.java | 79 assertEquals(uid.getUid(), SYSTEM_UID); in verifyPowerManagerServiceDumpProto() 84 assertTrue(0 <= us.getUid()); in verifyPowerManagerServiceDumpProto() 114 assertTrue(0 <= wl.getUid()); in verifyPowerManagerServiceDumpProto()
|
D | PackageIncidentTest.java | 77 assertEquals(testPackage.getUid(), uid); in testPackageServiceDump() 110 if (user.getUid() == 1000) { in verifyPackageServiceDumpProto()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 50 assertEquals(uid, inputBinding.getUid()); in testInputBinding() 60 assertEquals(uid, target.getUid()); in testInputBinding()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | StatsdAppSecurityAtomTest.java | 83 assertThat(roleHolder.getUid()).isAtLeast(0); in testRoleHolder() 87 assertThat(getAppId(roleHolder.getUid())).isEqualTo(testAppId); in testRoleHolder()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 81 if (state.getUid() != uid) { in testProcessMemoryState() 120 if (state.getUid() == uid) { in testProcessMemoryHighWaterMark() 160 if (snapshot.getUid() == uid) { in testProcessMemorySnapshot()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSession2Test.java | 216 assertEquals(Process.myUid(), token.getUid()); in testSession2Token() 251 assertEquals(Process.myUid(), controllerInfo.getUid()); in testGetConnectedControllers_newController() 298 assertEquals(Process.myUid(), tokenOut.getUid()); in testSession2Token_writeToParcel() 396 assertEquals(Process.myUid(), remoteUserInfo.getUid()); in testCallback_onConnect_onDisconnect() 422 assertEquals(Process.myUid(), sessionCallback.mController.getUid()); in testCallback_onPostConnect_connected() 692 if (controller.getUid() != Process.myUid()) { in onConnect() 704 if (controller.getUid() != Process.myUid()) { in onPostConnect() 715 if (controller.getUid() != Process.myUid()) { in onDisconnected() 727 if (controller.getUid() != Process.myUid()) { in onSessionCommand() 750 if (controller.getUid() != Process.myUid()) { in onCommandResult()
|
D | Utils.java | 144 && a.getUid() == b.getUid(); in compareRemoteUserInfo()
|
D | StubMediaSession2Service.java | 113 if (controller.getUid() == Process.myUid()) { in onGetSession()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | DeviceAtomTestCase.java | 107 int appUid = getUid(); in doDeviceMethod() 168 protected int getUid() throws Exception { in getUid() method in DeviceAtomTestCase 193 LogUtil.CLog.i("Installing device-side test app with uid " + getUid()); in installTestApp()
|
D | UidAtomTests.java | 130 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping() 171 .filter(atom -> atom.getUid() == appUid) in testLmkKillOccurred() 203 assertThat(atom.getUid()).isGreaterThan(10000); in testAppCrashOccurred() 237 assertThat(atom.getUid()).isGreaterThan(10000); 361 if (item.getUid() == uid) { in testDeviceCalculatedPowerBlameUid() 794 assertThat(attrChain.get(0).getUid()).isEqualTo(1234); 796 assertThat(attrChain.get(1).getUid()).isEqualTo( 813 assertThat(attrChain.get(0).getUid()).isEqualTo(9999); 815 assertThat(attrChain.get(1).getUid()).isEqualTo( 831 assertThat(attrChain.get(0).getUid()).isEqualTo( [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 90 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransfer() 106 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransferByFgBg() 122 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testBytesTransferByTagAndMetered()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 78 assertThat(atom.getCpuTimePerUid().getUid()).isEqualTo(appUid); in testCpuTimePerUid() 122 assertThat(atom.getCpuCyclesPerUidCluster().getUid()).isAtLeast(0); in testCpuCyclesPerUidCluster()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | CacheQuotaHintTest.java | 74 assertEquals(0, hint.getUid()); in assertCacheQuotaHint()
|
D | NetworkUsageStatsTest.java | 385 assertEquals(bucket.getUid(), UID_ALL); in testDeviceSummary() 420 assertEquals(bucket.getUid(), UID_ALL); in testUserSummary() 470 if (bucket.getUid() == Process.myUid()) { in testAppSummary() 575 assertEquals(bucket.getUid(), Process.myUid()); in testUidDetails() 628 assertEquals(bucket.getUid(), Process.myUid()); in testTagDetails() 705 bucket.getUid(), tagToString(bucket.getTag()), stateToString(bucket.getState()), in assertAlmostNoUnexpectedTraffic() 849 if (bucket.getUid() == Process.myUid()) { in getTotalAndAssertNotEmpty()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/ |
D | AppExitHostTest.java | 95 assertThat(appDied.getUid()).isEqualTo(expectedUid); in testLogStatsdPermChanged() 108 assertThat(appDied.getUid()).isEqualTo(expectedUid); in testLogStatsdOther()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ShellPermissionTest.java | 69 int uid = UserHandle.getUid(UserHandle.myUserId(), UserHandle.getAppId(Process.SHELL_UID)); in testBlacklistedPermissions()
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 160 final int firstAppUid = UserHandle.getUid(userId, Process.FIRST_APPLICATION_UID); in testGetPackagesForUidVisibility_currentUser() 161 final int lastAppUid = UserHandle.getUid(userId, Process.LAST_APPLICATION_UID); in testGetPackagesForUidVisibility_currentUser()
|