Home
last modified time | relevance | path

Searched refs:getUid (Results 1 – 25 of 74) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DUserHandleTest.java75 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/
DUidTrafficTest.java45 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/
DNeuralNetworksStatsTests.java98 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/
DZygotePreload.java99 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/
DDangerousPermissionStateTests.java85 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/
DPackageInstallerV2StatsTests.java62 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()
DComponentStateChangedReportedStatsTests.java122 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/
DNotificationStatsTests.java82 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/
DInputBindingTest.java59 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/
DStatsdBlobStoreAtomTest.java85 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/
DStatsdAppSecurityAtomTest.java88 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/
DApplicationVisibilityCrossUserTest.java163 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/
DAlarmStatsTests.java103 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/
DMediaSession2Test.java203 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/
DUidAtomTests.java133 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/
DBytesTransferredTest.java94 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/
DProcessMemoryStatsTests.java82 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/
DCtsRecognitionService.java137 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/
DMediaDrmAtomTests.java103 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/
DCacheQuotaHintTest.java74 assertEquals(0, hint.getUid()); in assertCacheQuotaHint()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java79 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/
DStatusBarNotificationTest.java64 assertEquals(UID, mSbn.getUid()); in testGetUid()
201 assertEquals(UID, clone.getUid()); in testClone()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/
DExpresslogAtomsTests.java157 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/
DUtils.java143 && a.getUid() == b.getUid(); in compareRemoteUserInfo()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordDetectorCreateRequestedStatsTests.java179 int uid = metric.getAtom().getHotwordDetectorCreateRequested().getUid(); in assertHotwordDetectorCreateRequested()
190 if (metric.getAtom().getHotwordDetectorCreateRequested().getUid() == appId) { in filterTestAppMetrics()

123