/packages/modules/StatsD/statsd/tests/ |
D | HashableDimensionKey_test.cpp | 38 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()
|
D | statsd_test_util.h | 420 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1,
|
D | statsd_test_util.cpp | 854 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/ |
D | BpfNetMapsTest.java | 410 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 …]
|
D | NsdServiceTest.java | 1868 final int uid1 = 12; in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly() local 1874 doReturn(uid1).when(mDeps).getCallingUid(); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
|
D | ConnectivityServiceTest.java | 17999 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/ |
D | StatsPullerManager_test.cpp | 39 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/ |
D | WifiAwareMetricsTest.java | 256 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 …]
|
D | WifiAwareStateManagerTest.java | 370 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/ |
D | CSSatelliteNetworkTest.kt | 81 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/ |
D | NetworkStatsManagerTest.java | 93 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/ |
D | UserHandleCompat.java | 31 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/ |
D | UidRangeUtilsTest.java | 408 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/ |
D | DelegateStateTracker.java | 108 setCompatChangesFactory((changeId, uid1) -> CompatChanges.isChangeEnabled(changeId, uid1)); in DelegateStateTracker()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 741 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/ |
D | ConfigUpdate_e2e_test.cpp | 1932 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 …]
|
D | DurationMetric_e2e_test.cpp | 1693 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/ |
D | BatteryBackupHelperTest.java | 400 String packageName1, int uid1, String packageName2, String packageName3) in createTestingData() argument 408 applicationInfo1.uid = uid1; in createTestingData()
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 665 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/ |
D | WifiPermissionsUtilTest.java | 1571 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/ |
D | CarUserService.java | 2855 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/ |
D | config_update_utils_test.cpp | 2627 int uid1 = 10; in TEST_F() local 2633 unique_ptr<LogEvent> event = CreateAcquireWakelockEvent(timeBaseNs + 3, {uid1}, {"tag"}, "wl1"); in TEST_F()
|