Home
last modified time | relevance | path

Searched refs:hostUid (Results 1 – 6 of 6) sorted by relevance

/packages/modules/StatsD/statsd/tests/external/
Dpuller_util_test.cpp50 const int hostUid = 20; variable
56 return makeMockUidMapForOneHost(hostUid, {isolatedUid1, isolatedUid2}); in makeMockUidMap()
68 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
78 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
90 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
94 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
105 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
111 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
119 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
123 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
[all …]
/packages/modules/StatsD/statsd/src/external/
Dpuller_util.cpp73 const int hostUid = uidMap->getHostUidOrSelf(fieldValue.mValue.int_value); in mapAndMergeIsolatedUidsToHostUid() local
74 fieldValue.mValue.setInt(hostUid); in mapAndMergeIsolatedUidsToHostUid()
81 const int hostUid = uidMap->getHostUidOrSelf(value.int_value); in mapAndMergeIsolatedUidsToHostUid() local
82 value.setInt(hostUid); in mapAndMergeIsolatedUidsToHostUid()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp1729 int hostUid = 20; in TEST() local
1735 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1741 shared_ptr<LogEvent> logEvent = makeUidLogEvent(atomId, eventTimeNs, hostUid, field1, field2); in TEST()
1747 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
1753 int hostUid = 20; in TEST() local
1759 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1772 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
1778 int hostUid = 20; in TEST() local
1784 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1790 shared_ptr<LogEvent> logEvent = makeAttributionLogEvent(atomId, eventTimeNs, {hostUid, 200}, in TEST()
[all …]
Dstatsd_test_util.h285 sp<MockUidMap> makeMockUidMapForOneHost(int hostUid, const vector<int>& isolatedUids);
348 std::unique_ptr<LogEvent> CreateIsolatedUidChangedEvent(uint64_t timestampNs, int hostUid,
Dstatsd_test_util.cpp741 sp<MockUidMap> makeMockUidMapForOneHost(int hostUid, const vector<int>& isolatedUids) { in makeMockUidMapForOneHost() argument
745 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)).WillRepeatedly(Return(hostUid)); in makeMockUidMapForOneHost()
989 std::unique_ptr<LogEvent> CreateIsolatedUidChangedEvent(uint64_t timestampNs, int hostUid, in CreateIsolatedUidChangedEvent() argument
995 AStatsEvent_writeInt32(statsEvent, hostUid); in CreateIsolatedUidChangedEvent()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp147 const int hostUid = mUidMap->getHostUidOrSelf(fieldValue.mValue.int_value); in mapIsolatedUidToHostUidIfNecessaryLocked() local
148 fieldValue.mValue.setInt(hostUid); in mapIsolatedUidToHostUidIfNecessaryLocked()
155 const int hostUid = mUidMap->getHostUidOrSelf(value.int_value); in mapIsolatedUidToHostUidIfNecessaryLocked() local
156 value.setInt(hostUid); in mapIsolatedUidToHostUidIfNecessaryLocked()