/cts/tests/tests/os/src/android/os/cts/ |
D | UserHandleTest.java | 75 UserHandle.getUid(UserHandle.USER_ALL, TEST_APP_ID), in testGetUid() 76 UserHandle.ALL.getUid(TEST_APP_ID)); in testGetUid() 78 UserHandle.getUid(UserHandle.USER_SYSTEM, TEST_APP_ID), in testGetUid() 79 UserHandle.SYSTEM.getUid(TEST_APP_ID)); in testGetUid() 81 UserHandle.ALL.getUid(TEST_APP_ID), in testGetUid() 82 UserHandle.getUid(UserHandle.ALL.getIdentifier(), TEST_APP_ID)); in testGetUid() 84 UserHandle.SYSTEM.getUid(TEST_APP_ID), in testGetUid() 85 UserHandle.getUid(UserHandle.SYSTEM.getIdentifier(), TEST_APP_ID)); in testGetUid() 98 final int uid = UserHandle.getUid(userId, appId); in assertConsistent()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | UidTrafficTest.java | 45 assertEquals(mUidTraffic.getUid(), clonedUidTraffic.getUid()); in test_UidTrafficClone() 52 assertEquals(mUidTraffic.getUid(), 1000); in test_UidTrafficGet()
|
/cts/hostsidetests/neuralnetworks/src/com/android/nn/host/cts/ |
D | NeuralNetworksStatsTests.java | 98 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksCompilationCompletedNative() 124 assertThat(atom.getUid()).isEqualTo(current.getUid()); in testAppNeuralNetworksCompilationCompletedNative() 147 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksCompilationFailedNative() 168 assertThat(atom.getUid()).isEqualTo(current.getUid()); in testAppNeuralNetworksCompilationFailedNative() 191 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksExecutionCompletedNative() 227 assertThat(atom.getUid()).isEqualTo(current.getUid()); in testAppNeuralNetworksExecutionCompletedNative() 250 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksExecutionFailedNative() 272 assertThat(atom.getUid()).isEqualTo(current.getUid()); in testAppNeuralNetworksExecutionFailedNative()
|
/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 | 85 assertThat(permissionState.getUid()).isAtLeast(0); in testDangerousPermissionState() 88 if (getAppId(permissionState.getUid()) == testAppId) { in testDangerousPermissionState() 157 if (referenceState.getUid() != permissionState.getUid()) { in testDangerousPermissionStateSampled() 160 assertThat(permissionState.getUid()).isNotEqualTo(lastUid); in testDangerousPermissionStateSampled() 164 lastUid = permissionState.getUid(); in testDangerousPermissionStateSampled()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageInstallerV2StatsTests.java | 62 assertTrue(report.getUid() != 0); in testPackageInstallerV2MetricsReported() 63 assertEquals(getAppUid(TEST_INSTALL_PACKAGE), report.getUid()); in testPackageInstallerV2MetricsReported() 80 assertTrue(report.getUid() != 0); in testPackageInstallerV2MetricsReportedForSplits() 81 assertEquals(getAppUid(TEST_INSTALL_PACKAGE), report.getUid()); in testPackageInstallerV2MetricsReportedForSplits()
|
D | ComponentStateChangedReportedStatsTests.java | 122 assertThat(atom.getUid()).isEqualTo( in testComponentStateChangedReportedForWholeApp() 157 assertThat(atom.getUid()).isEqualTo( in testComponentStateChangedReportedForLauncherActivity() 192 assertThat(atom.getUid()).isEqualTo( in testComponentStateChangedReportedForNoLauncherActivity() 227 assertThat(atom1.getUid()).isEqualTo( in testComponentStateChangedReportedEnabledThenDisabled() 238 assertThat(atom2.getUid()).isEqualTo( in testComponentStateChangedReportedEnabledThenDisabled() 273 assertThat(atom1.getUid()).isEqualTo( in testComponentStateChangedReportedEnabledThenDisabledWholeApp() 284 assertThat(atom2.getUid()).isEqualTo( in testComponentStateChangedReportedEnabledThenDisabledWholeApp() 320 assertThat(atom1.getUid()).isEqualTo( in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities() 331 assertThat(atom2.getUid()).isEqualTo( in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 82 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationPackagePreferenceExtraction() 86 if (pref.getUid() == uid) { in testNotificationPackagePreferenceExtraction() 117 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationChannelPreferencesExtraction() 124 if (uid == pref.getUid() && pref.getChannelId().equals("StatsdCtsChannel")) { in testNotificationChannelPreferencesExtraction() 156 assertThat(pref.getUid()).isGreaterThan(0); in testNotificationChannelGroupPreferencesExtraction() 162 if (uid == pref.getUid() && pref.getGroupId().equals("StatsdCtsGroup")) { in testNotificationChannelGroupPreferencesExtraction()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 59 assertEquals(ANY_UID, inputBinding.getUid()); in testInputBinding() 69 assertEquals(ANY_UID, target.getUid()); in testInputBinding() 83 assertEquals(ANY_UID, binding.getUid()); in testInputBindingConstructor() 96 assertEquals(ANY_UID, copy.getUid()); in testInputBindingCopyConstructor()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | StatsdBlobStoreAtomTest.java | 85 assertThat(blobCommitted.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 91 assertThat(blobLeased.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 97 assertThat(blobOpened.getUid()).isEqualTo(mTestAppUid); in testPushedBlobStoreStats() 124 if (temp.getCommitters().getCommitter(0).getUid() == mTestAppUid) { in testPulledBlobStoreStats() 152 assertThat(blobInfo.getLeasees().getLeasee(0).getUid()).isEqualTo(mTestAppUid); in testPulledBlobStoreStats()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | StatsdAppSecurityAtomTest.java | 88 assertThat(roleHolder.getUid()).isEqualTo(-1); in testRoleHolder() 90 assertThat(roleHolder.getUid()).isAtLeast(0); in testRoleHolder() 94 assertThat(getAppId(roleHolder.getUid())).isEqualTo(testAppId); in testRoleHolder()
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 163 final int firstAppUid = UserHandle.getUid(userId, Process.FIRST_APPLICATION_UID); in testGetPackagesForUidVisibility_currentUser() 164 final int lastAppUid = UserHandle.getUid(userId, Process.LAST_APPLICATION_UID); in testGetPackagesForUidVisibility_currentUser() 177 final int firstAppUid = UserHandle.getUid(getInstallUser(), Process.FIRST_APPLICATION_UID); in testGetPackagesForUidVisibility_anotherUserCrossUserGrant() 178 final int lastAppUid = UserHandle.getUid(getInstallUser(), Process.LAST_APPLICATION_UID); in testGetPackagesForUidVisibility_anotherUserCrossUserGrant() 192 final int firstAppUid = UserHandle.getUid(getInstallUser(), Process.FIRST_APPLICATION_UID); in testGetPackagesForUidVisibility_anotherUserCrossUserNoGrant() 193 final int lastAppUid = UserHandle.getUid(getInstallUser(), Process.LAST_APPLICATION_UID); in testGetPackagesForUidVisibility_anotherUserCrossUserNoGrant()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/ |
D | AlarmStatsTests.java | 103 private int getUid(String packageName) throws DeviceNotAvailableException { in getUid() method in AlarmStatsTests 140 final int uid = getUid(ALARM_ATOM_TEST_PACKAGE); in testAlarmScheduled() 175 final int uid = getUid(ALARM_ATOM_TEST_PACKAGE); in testAlarmScheduled_exactWithUEA() 203 final int uid = getUid(ALARM_ATOM_TEST_PACKAGE_2); in testAlarmScheduled_exactWithSEA() 230 final int expectedUid = getUid(ALARM_ATOM_TEST_PACKAGE); in testAlarmBatchDelivered()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSession2Test.java | 203 assertThat(token.getUid()).isEqualTo(Process.myUid()); in testSession2Token() 238 assertThat(controllerInfo.getUid()).isEqualTo(Process.myUid()); in testGetConnectedControllers_newController() 283 assertThat(tokenOut.getUid()).isEqualTo(Process.myUid()); in testSession2Token_writeToParcel() 381 assertThat(remoteUserInfo.getUid()).isEqualTo(Process.myUid()); in testCallback_onConnect_onDisconnect() 408 assertThat(sessionCallback.mController.getUid()).isEqualTo(Process.myUid()); in testCallback_onPostConnect_connected() 680 if (controller.getUid() != Process.myUid()) { in onConnect() 692 if (controller.getUid() != Process.myUid()) { in onPostConnect() 703 if (controller.getUid() != Process.myUid()) { in onDisconnected() 715 if (controller.getUid() != Process.myUid()) { in onSessionCommand() 738 if (controller.getUid() != Process.myUid()) { in onCommandResult()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | UidAtomTests.java | 133 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping() 175 .filter(atom -> atom.getUid() == appUid) in testLmkKillOccurred() 207 assertThat(atom.getUid()).isGreaterThan(10000); in testAppCrashOccurred() 241 assertThat(atom.getUid()).isGreaterThan(10000); 736 assertThat(attrChain.get(0).getUid()).isEqualTo(1234); 738 assertThat(attrChain.get(1).getUid()).isEqualTo( 764 assertThat(attrChain.get(0).getUid()).isEqualTo(9999); 766 assertThat(attrChain.get(1).getUid()).isEqualTo( 793 assertThat(attrChain.get(0).getUid()).isEqualTo( 817 assertThat(attrChain.get(0).getUid()).isEqualTo( [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 94 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransfer() 110 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransferByFgBg() 126 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testBytesTransferByTagAndMetered()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 82 if (state.getUid() != uid) { in testProcessMemoryState() 121 if (state.getUid() == uid) { in testProcessMemoryHighWaterMark() 161 if (snapshot.getUid() == uid) { in testProcessMemorySnapshot()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | CtsRecognitionService.java | 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()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | MediaDrmAtomTests.java | 103 if (created != null && created.getUid() == testAppUid) { in testMediaDrmAtom() 107 if (opened != null && opened.getUid() == testAppUid) { in testMediaDrmAtom() 111 if (errored != null && errored.getUid() == testAppUid in testMediaDrmAtom()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | CacheQuotaHintTest.java | 74 assertEquals(0, hint.getUid()); in assertCacheQuotaHint()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 79 assertThat(atom.getCpuTimePerUid().getUid()).isEqualTo(appUid); in testCpuTimePerUid() 123 assertThat(atom.getCpuCyclesPerUidCluster().getUid()).isAtLeast(0); in testCpuCyclesPerUidCluster()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | StatusBarNotificationTest.java | 64 assertEquals(UID, mSbn.getUid()); in testGetUid() 201 assertEquals(UID, clone.getUid()); in testClone()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/ |
D | ExpresslogAtomsTests.java | 157 assertThat(atom1.getUid()).isAtLeast(0); in testExpressLogCounterWithUidAtom() 163 assertThat(atom2.getUid()).isAtLeast(0); in testExpressLogCounterWithUidAtom() 276 assertThat(atom.getUid()).isEqualTo(TEST_UID); in testExpressLogSampleWihtUidAtomUniform() 318 assertThat(atom.getUid()).isEqualTo(TEST_UID); in testExpressLogSampleWithUidAtomScaled()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | Utils.java | 143 && a.getUid() == b.getUid(); in compareRemoteUserInfo()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/ |
D | HotwordDetectorCreateRequestedStatsTests.java | 179 int uid = metric.getAtom().getHotwordDetectorCreateRequested().getUid(); in assertHotwordDetectorCreateRequested() 190 if (metric.getAtom().getHotwordDetectorCreateRequested().getUid() == appId) { in filterTestAppMetrics()
|