Home
last modified time | relevance | path

Searched refs:uid1 (Results 1 – 15 of 15) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DHashableDimensionKey_test.cpp38 int32_t uid1 = 1000; in TEST() local
41 getUidProcessKey(uid1, &primaryKey); in TEST()
71 int32_t uid1 = 1000; in TEST() local
76 getUidProcessKey(uid1, &primaryKey); in TEST()
90 int32_t uid1 = 1000; in TEST() local
92 getOverlayKey(uid1, "package", &whatKey); in TEST()
94 getUidProcessKey(uid1, &primaryKey); in TEST()
123 int32_t uid1 = 1000; in TEST() local
125 getOverlayKey(uid1, "package", &whatKey); in TEST()
127 getUidProcessKey(uid1, &primaryKey); in TEST()
Dstatsd_test_util.h336 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1,
Dstatsd_test_util.cpp831 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1, in makeExtraUidsLogEvent() argument
833 AStatsEvent* statsEvent = makeUidStatsEvent(atomId, eventTimeNs, uid1, data1, data2); in makeExtraUidsLogEvent()
/packages/modules/StatsD/statsd/tests/external/
DStatsPullerManager_test.cpp39 int uid1 = 9999; variable
81 return {uid2, uid1}; in getPullAtomUids()
91 shared_ptr<FakePullAtomCallback> cb1 = SharedRefBase::make<FakePullAtomCallback>(uid1); in createPullerManagerAndRegister()
92 pullerManager->RegisterPullAtomCallback(uid1, pullTagId1, coolDownNs, timeoutNs, {}, cb1); in createPullerManagerAndRegister()
95 pullerManager->RegisterPullAtomCallback(uid1, pullTagId2, coolDownNs, timeoutNs, {}, cb1); in createPullerManagerAndRegister()
111 EXPECT_TRUE(pullerManager->Pull(pullTagId1, {uid1}, /*timestamp =*/1, &data)); in TEST()
115 EXPECT_EQ(data[0]->getValues()[0].mValue.int_value, uid1); in TEST()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java236 final int uid1 = 1005; in testAttachSessionMetrics() local
245 new WifiAwareClientState(mMockContext, 10, uid1, 0, null, null, null, null, false, in testAttachSessionMetrics()
247 mDut.recordAttachSession(uid1, false, clients); in testAttachSessionMetrics()
251 new WifiAwareClientState(mMockContext, 11, uid1, 0, null, null, null, null, false, in testAttachSessionMetrics()
253 mDut.recordAttachSession(uid1, false, clients); in testAttachSessionMetrics()
315 final int uid1 = 1005; in testDiscoverySessionMetrics() local
322 WifiAwareClientState client1 = new WifiAwareClientState(mMockContext, 10, uid1, 0, null, in testDiscoverySessionMetrics()
335 mDut.recordDiscoverySession(uid1, clients); in testDiscoverySessionMetrics()
336 mDut.recordDiscoveryStatus(uid1, NanStatusType.SUCCESS, true); in testDiscoverySessionMetrics()
341 mDut.recordDiscoverySession(uid1, clients); in testDiscoverySessionMetrics()
[all …]
DWifiAwareStateManagerTest.java294 final int uid1 = 1000; in testRequestMacAddresses() local
335 mDut.connect(clientId1, uid1, pid1, callingPackage, callingFeature, mockCallback1, in testRequestMacAddresses()
338 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage)); in testRequestMacAddresses()
352 WorkSource expectedRequestorWs = new WorkSource(uid1, callingPackage); in testRequestMacAddresses()
400 mDut.requestMacAddresses(uid1, request, new IWifiAwareMacAddressProvider() { in testRequestMacAddresses()
2473 final int uid1 = 1000; in testSendMessageQueueLimitBlock() local
2519 mDut.connect(clientId1, uid1, pid1, callingPackage1, callingFeature, mockCallback, in testSendMessageQueueLimitBlock()
2522 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage1)); in testSendMessageQueueLimitBlock()
2536 WorkSource expectedRequestorWs = new WorkSource(uid1, callingPackage1); in testSendMessageQueueLimitBlock()
2577 mDut.sendMessage(uid1, clientId1, sessionId1.getValue(), peerIdCaptor1.getValue(), null, in testSendMessageQueueLimitBlock()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java79 final int uid1 = 10001; in testQueryDetails() local
83 Entry uid1Entry1 = new Entry("if1", uid1, in testQueryDetails()
88 "if2", uid1, in testQueryDetails()
111 when(mStatsSession.getRelevantUids()).thenReturn(new int[] { uid1, uid2, uid3 }); in testQueryDetails()
114 eq(uid1), eq(android.net.NetworkStats.SET_ALL), in testQueryDetails()
177 final int uid1 = 10001; in runQueryDetailsAndCheckTemplate() local
182 when(mStatsSession.getRelevantUids()).thenReturn(new int[] { uid1, uid2 }); in runQueryDetailsAndCheckTemplate()
191 eq(uid1), eq(android.net.NetworkStats.SET_ALL), in runQueryDetailsAndCheckTemplate()
/packages/modules/StatsD/statsd/tests/guardrail/
DStatsdStats_test.cpp465 int uid1 = 1; in TEST() local
467 stats.noteActivationBroadcastGuardrailHit(uid1, 10); in TEST()
468 stats.noteActivationBroadcastGuardrailHit(uid1, 20); in TEST()
484 if (uid1 == guardrailTimes.uid()) { in TEST()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DDelegateStateTracker.java108 setCompatChangesFactory((changeId, uid1) -> CompatChanges.isChangeEnabled(changeId, uid1)); in DelegateStateTracker()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java683 int uid1 = 10; in testCancelRangingFullMatch() local
687 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingFullMatch()
693 worksourceCancel.add(uid1); in testCancelRangingFullMatch()
734 int uid1 = 10; in testCancelRangingPartialMatch() local
737 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingPartialMatch()
740 WorkSource worksourceCancel = new WorkSource(uid1); in testCancelRangingPartialMatch()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp1892 int uid1 = 55555; in TEST_F() local
1898 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 5 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1900 events.push_back(CreateReleaseWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1902 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1904 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 20 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1906 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 25 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1908 events.push_back(CreateReleaseWakelockEvent(bucketStartTimeNs + 30 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1910 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1947 CreateSyncStartEvent(bucketStartTimeNs + 45 * NS_PER_SEC, {uid1}, {""}, "") in TEST_F()
1964 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 60 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1433 int uid1 = 1000; in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck() local
1441 when(attributionSource.getUid()).thenReturn(uid1); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck()
1451 verify(mMockAppOps).checkPackage(uid1, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java2357 private static boolean isSameApp(int uid1, int uid2) { in isSameApp() argument
2358 return UserHandle.getAppId(uid1) == UserHandle.getAppId(uid2); in isSameApp()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp2528 int uid1 = 10; in TEST_F() local
2534 unique_ptr<LogEvent> event = CreateAcquireWakelockEvent(timeBaseNs + 3, {uid1}, {"tag"}, "wl1"); in TEST_F()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java15792 final int uid1 = PRIMARY_USER_HANDLE.getUid(TEST_PACKAGE_UID);
15795 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1));
15796 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1, uid3));
15797 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1, uid2));