Home
last modified time | relevance | path

Searched refs:uid1 (Results 1 – 22 of 22) 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.h420 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1,
Dstatsd_test_util.cpp854 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1, in makeExtraUidsLogEvent() argument
856 AStatsEvent* statsEvent = makeUidStatsEvent(atomId, eventTimeNs, uid1, data1, data2); in makeExtraUidsLogEvent()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java410 final int uid1 = TEST_UIDS[1]; in testAddUidInterfaceRules() local
415 checkUidOwnerValue(uid1, TEST_IF_INDEX, IIF_MATCH); in testAddUidInterfaceRules()
422 final int uid1 = TEST_UIDS[1]; in testAddUidInterfaceRulesWithOtherMatch() local
426 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NO_IIF, match1)); in testAddUidInterfaceRulesWithOtherMatch()
431 checkUidOwnerValue(uid1, TEST_IF_INDEX, match1 | IIF_MATCH); in testAddUidInterfaceRulesWithOtherMatch()
438 final int uid1 = TEST_UIDS[1]; in testAddUidInterfaceRulesWithExistingIifMatch() local
442 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NULL_IIF, match1)); in testAddUidInterfaceRulesWithExistingIifMatch()
447 checkUidOwnerValue(uid1, TEST_IF_INDEX, match1); in testAddUidInterfaceRulesWithExistingIifMatch()
462 final int uid1 = TEST_UIDS[1]; in testAddUidInterfaceRulesWithNullInterface() local
466 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NULL_IIF, match1)); in testAddUidInterfaceRulesWithNullInterface()
[all …]
DNsdServiceTest.java1868 final int uid1 = 12; in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly() local
1874 doReturn(uid1).when(mDeps).getCallingUid(); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
DConnectivityServiceTest.java17999 final int uid1 = PRIMARY_USER_HANDLE.getUid(TEST_PACKAGE_UID);
18002 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1));
18003 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1, uid3));
18004 assertCreateNrisFromMobileDataPreferredUids(Set.of(uid1, uid2));
/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.java256 final int uid1 = 1005; in testAttachSessionMetrics() local
267 new WifiAwareClientState(mMockContext, 10, uid1, 0, null, null, null, null, false, in testAttachSessionMetrics()
270 mDut.recordAttachSession(uid1, false, clients, 6, tag1); in testAttachSessionMetrics()
274 new WifiAwareClientState(mMockContext, 11, uid1, 0, null, null, null, null, false, in testAttachSessionMetrics()
277 mDut.recordAttachSession(uid1, false, clients, 6, tag1); in testAttachSessionMetrics()
311 mDut.recordAttachStatus(NanStatusCode.INTERNAL_FAILURE, 6, tag1, uid1); in testAttachSessionMetrics()
341 WifiStatsLog.WIFI_AWARE_ATTACH_REPORTED__CALLER_TYPE__OTHERS, tag1, uid1), in testAttachSessionMetrics()
351 WifiStatsLog.WIFI_AWARE_ATTACH_REPORTED__CALLER_TYPE__OTHERS, tag1, uid1), in testAttachSessionMetrics()
367 final int uid1 = 1005; in testDiscoverySessionMetrics() local
378 WifiAwareClientState client1 = new WifiAwareClientState(mMockContext, 10, uid1, 0, null, in testDiscoverySessionMetrics()
[all …]
DWifiAwareStateManagerTest.java370 final int uid1 = 1000; in testRequestMacAddresses() local
417 mDut.connect(clientId1, uid1, pid1, callingPackage, callingFeature, mockCallback1, in testRequestMacAddresses()
420 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage)); in testRequestMacAddresses()
434 WorkSource expectedRequestorWs = new WorkSource(uid1, callingPackage); in testRequestMacAddresses()
483 mDut.requestMacAddresses(uid1, request, new IWifiAwareMacAddressProvider() { in testRequestMacAddresses()
2616 final int uid1 = 1000; in testSendMessageQueueLimitBlock() local
2662 mDut.connect(clientId1, uid1, pid1, callingPackage1, callingFeature, mockCallback, in testSendMessageQueueLimitBlock()
2665 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage1)); in testSendMessageQueueLimitBlock()
2679 WorkSource expectedRequestorWs = new WorkSource(uid1, callingPackage1); in testSendMessageQueueLimitBlock()
2720 mDut.sendMessage(uid1, clientId1, sessionId1.getValue(), peerIdCaptor1.getValue(), null, in testSendMessageQueueLimitBlock()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSSatelliteNetworkTest.kt81 val uid1 = PRIMARY_USER_HANDLE.getUid(TEST_PACKAGE_UID) in testCreateMultiLayerNrisFromSatelliteNetworkPreferredUids() constant
84 assertCreateMultiLayerNrisFromSatelliteNetworkPreferredUids(mutableSetOf(uid1)) in testCreateMultiLayerNrisFromSatelliteNetworkPreferredUids()
85 assertCreateMultiLayerNrisFromSatelliteNetworkPreferredUids(mutableSetOf(uid1, uid3)) in testCreateMultiLayerNrisFromSatelliteNetworkPreferredUids()
86 assertCreateMultiLayerNrisFromSatelliteNetworkPreferredUids(mutableSetOf(uid1, uid2)) in testCreateMultiLayerNrisFromSatelliteNetworkPreferredUids()
104 val uid1 = PRIMARY_USER_HANDLE.getUid(TEST_PACKAGE_UID) in doTestSatelliteNetworkFallbackUids() constant
114 var uids = mutableSetOf(uid1, uid2, uid3) in doTestSatelliteNetworkFallbackUids()
125 uids = mutableSetOf(uid1) in doTestSatelliteNetworkFallbackUids()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java93 final int uid1 = 10001; in testQueryDetails() local
97 Entry uid1Entry1 = new Entry("if1", uid1, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails()
100 Entry uid1Entry2 = new Entry("if2", uid1, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testQueryDetails()
119 when(mStatsSession.getRelevantUids()).thenReturn(new int[] { uid1, uid2, uid3 }); in testQueryDetails()
122 eq(uid1), eq(SET_ALL), eq(TAG_NONE), in testQueryDetails()
183 final int uid1 = 10001; in runQueryDetailsAndCheckTemplate() local
188 when(mStatsSession.getRelevantUids()).thenReturn(new int[] { uid1, uid2 }); in runQueryDetailsAndCheckTemplate()
197 eq(uid1), eq(SET_ALL), in runQueryDetailsAndCheckTemplate()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserHandleCompat.java31 public static boolean isSameApp(int uid1, int uid2) { in isSameApp() argument
32 return UserHandle.isSameApp(uid1, uid2); in isSameApp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DUidRangeUtilsTest.java408 final UidRange uid1 = new UidRange(100, 110); in testSortRangesByStartUid() local
410 final UidRange[] unsortedRanges = new UidRange[] {uid2, uid1}; in testSortRangesByStartUid()
412 assertEquals(uid1, sortedRanges[0]); in testSortRangesByStartUid()
418 final UidRange uid1 = new UidRange(100, 110); in testSortedRangesContainOverlap() local
421 final UidRange[] overlapRanges1 = new UidRange[] {uid1, uid2}; in testSortedRangesContainOverlap()
423 final UidRange[] notOverlapRanges = new UidRange[] {uid1, uid3}; in testSortedRangesContainOverlap()
/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.java741 int uid1 = 10; in testCancelRangingFullMatch() local
745 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingFullMatch()
751 worksourceCancel.add(uid1); in testCancelRangingFullMatch()
793 int uid1 = 10; in testCancelRangingPartialMatch() local
796 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingPartialMatch()
799 WorkSource worksourceCancel = new WorkSource(uid1); in testCancelRangingPartialMatch()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp1932 int uid1 = 55555; in TEST_F() local
1938 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 5 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1940 events.push_back(CreateReleaseWakelockEvent(bucketStartTimeNs + 10 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1942 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1944 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 20 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1946 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 25 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1948 events.push_back(CreateReleaseWakelockEvent(bucketStartTimeNs + 30 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1950 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
1988 CreateSyncStartEvent(bucketStartTimeNs + 45 * NS_PER_SEC, {uid1}, {""}, "") in TEST_F()
2005 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 60 * NS_PER_SEC, {uid1}, {""}, in TEST_F()
[all …]
DDurationMetric_e2e_test.cpp1693 int uid1 = 1001; // odd hash value in TEST() local
1708 events.push_back(CreateStartScheduledJobEvent(durationStartNs1, {uid1}, {"App1"}, "job1")); in TEST()
1711 events.push_back(CreateFinishScheduledJobEvent(durationEndNs1, {uid1}, {"App1"}, "job1")); in TEST()
1743 uid1); in TEST()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java400 String packageName1, int uid1, String packageName2, String packageName3) in createTestingData() argument
408 applicationInfo1.uid = uid1; in createTestingData()
/packages/modules/StatsD/statsd/tests/guardrail/
DStatsdStats_test.cpp665 int uid1 = 1; in TEST() local
667 stats.noteActivationBroadcastGuardrailHit(uid1, 10); in TEST()
668 stats.noteActivationBroadcastGuardrailHit(uid1, 20); in TEST()
680 if (uid1 == guardrailTimes.uid()) { in TEST()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1571 int uid1 = 1000; in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck() local
1579 when(attributionSource.getUid()).thenReturn(uid1); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck()
1590 verify(mMockAppOps).checkPackage(uid1, TEST_PACKAGE_NAME); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java2855 private static boolean isSameApp(int uid1, int uid2) { in isSameApp() argument
2856 return UserHandle.getAppId(uid1) == UserHandle.getAppId(uid2); in isSameApp()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp2627 int uid1 = 10; in TEST_F() local
2633 unique_ptr<LogEvent> event = CreateAcquireWakelockEvent(timeBaseNs + 3, {uid1}, {"tag"}, "wl1"); in TEST_F()