Home
last modified time | relevance | path

Searched refs:tagId (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/cmds/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp42 const int tagId = 1; variable
62 gaugeFieldMatcher->set_field(tagId); in TEST()
70 atomMatcher.set_atom_id(tagId); in TEST()
80 -1, -1, tagId, 5, 600 * NS_PER_SEC + NS_PER_SEC / 2, in TEST()
97 gaugeFieldMatcher->set_field(tagId); in TEST()
105 atomMatcher.set_atom_id(tagId); in TEST()
110 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, _, _, _)).WillOnce(Return()); in TEST()
111 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, _)).WillOnce(Return()); in TEST()
112 EXPECT_CALL(*pullerManager, Pull(tagId, _)) in TEST()
113 .WillOnce(Invoke([](int tagId, vector<std::shared_ptr<LogEvent>>* data) { in TEST() argument
[all …]
DValueMetricProducer_test.cpp43 const int tagId = 1; variable
84 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, eventTimeNs); in createEvent()
85 event->write(tagId); in createEvent()
96 atomMatcher.set_atom_id(tagId); in createValueProducerNoConditions()
101 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, _, _, _)).WillOnce(Return()); in createValueProducerNoConditions()
102 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, _)).WillRepeatedly(Return()); in createValueProducerNoConditions()
106 logEventMatcherIndex, eventMatcherWizard, tagId, in createValueProducerNoConditions()
116 atomMatcher.set_atom_id(tagId); in createValueProducerWithCondition()
121 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, _, _, _)).WillOnce(Return()); in createValueProducerWithCondition()
122 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, _)).WillRepeatedly(Return()); in createValueProducerWithCondition()
[all …]
Dmetrics_test_helper.cpp21 HashableDimensionKey getMockedDimensionKey(int tagId, int key, string value) { in getMockedDimensionKey() argument
24 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value))); in getMockedDimensionKey()
29 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, string value) { in getMockedMetricDimensionKey() argument
30 return MetricDimensionKey(getMockedDimensionKey(tagId, key, value), DEFAULT_DIMENSION_KEY); in getMockedMetricDimensionKey()
33 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher) { in buildSimpleAtomFieldMatcher() argument
34 matcher->set_field(tagId); in buildSimpleAtomFieldMatcher()
37 void buildSimpleAtomFieldMatcher(const int tagId, const int fieldNum, FieldMatcher* matcher) { in buildSimpleAtomFieldMatcher() argument
38 matcher->set_field(tagId); in buildSimpleAtomFieldMatcher()
DDurationMetricProducer_test.cpp69 int tagId = 1; in TEST() local
70 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
72 LogEvent event2(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST()
106 int tagId = 1; in TEST() local
107 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
109 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST()
111 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 1); in TEST()
113 LogEvent event4(tagId, bucketStartTimeNs + bucketSizeNs + 3); in TEST()
154 int tagId = 1; in TEST() local
155 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
[all …]
DCountMetricProducer_test.cpp58 int tagId = 1; in TEST() local
64 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
66 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST()
94 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST()
163 int tagId = 1; in TEST() local
172 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
175 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
182 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST()
220 int tagId = 1; in TEST() local
229 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
[all …]
Dmetrics_test_helper.h38 MOCK_METHOD4(RegisterReceiver, void(int tagId, wp<PullDataReceiver> receiver,
40 MOCK_METHOD2(UnRegisterReceiver, void(int tagId, wp<PullDataReceiver> receiver));
49 HashableDimensionKey getMockedDimensionKey(int tagId, int key, std::string value);
50 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, std::string value);
53 void buildSimpleAtomFieldMatcher(const int tagId, const int atomFieldNum, FieldMatcher* matcher);
54 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher);
DEventMetricProducer_test.cpp92 int tagId = 1; in TEST() local
100 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
103 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
109 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifInterface.java347 public static int defineTag(int ifdId, short tagId) { in defineTag() argument
348 return (tagId & 0x0000ffff) | (ifdId << 16); in defineTag()
1154 public List<ExifTag> getTagsForTagId(short tagId) { in getTagsForTagId() argument
1155 return mData.getAllTagsForTagId(tagId); in getTagsForTagId()
1176 public ExifTag getTag(int tagId, int ifdId) { in getTag() argument
1180 return mData.getTag(getTrueTagKey(tagId), ifdId); in getTag()
1190 public ExifTag getTag(int tagId) { in getTag() argument
1191 int ifdId = getDefinedTagDefaultIfd(tagId); in getTag()
1192 return getTag(tagId, ifdId); in getTag()
1200 public Object getTagValue(int tagId, int ifdId) { in getTagValue() argument
[all …]
DIfdData.java78 protected ExifTag getTag(short tagId) { in getTag() argument
79 return mExifTags.get(tagId); in getTag()
90 protected boolean checkCollision(short tagId) { in checkCollision() argument
91 return mExifTags.get(tagId) != null; in checkCollision()
97 protected void removeTag(short tagId) { in removeTag() argument
98 mExifTags.remove(tagId); in removeTag()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java862 int tagId, long elapsedNanos, long wallClockNanos, in pullKernelWakelock() argument
869 StatsLogEventWrapper e = new StatsLogEventWrapper(tagId, elapsedNanos, wallClockNanos); in pullKernelWakelock()
879 int tagId, long elapsedNanos, long wallClockNanos, in pullWifiBytesTransfer() argument
895 addNetworkStats(tagId, pulledData, stats, false); in pullWifiBytesTransfer()
904 int tagId, long elapsedNanos, long wallClockNanos, in pullWifiBytesTransferByFgBg() argument
919 addNetworkStats(tagId, pulledData, stats, true); in pullWifiBytesTransferByFgBg()
928 int tagId, long elapsedNanos, long wallClockNanos, in pullMobileBytesTransfer() argument
943 addNetworkStats(tagId, pulledData, stats, false); in pullMobileBytesTransfer()
952 int tagId, long elapsedNanos, long wallClockNanos, in pullBluetoothBytesTransfer() argument
957 StatsLogEventWrapper e = new StatsLogEventWrapper(tagId, elapsedNanos, in pullBluetoothBytesTransfer()
[all …]
/frameworks/base/cmds/statsd/src/external/
Dpuller_util.cpp57 int tagId) { in mapAndMergeIsolatedUidsToHostUid() argument
58 if (StatsPullerManager::kAllPullAtomInfo.find(tagId) == in mapAndMergeIsolatedUidsToHostUid()
60 VLOG("Unknown pull atom id %d", tagId); in mapAndMergeIsolatedUidsToHostUid()
63 if ((android::util::AtomsInfo::kAtomsWithAttributionChain.find(tagId) == in mapAndMergeIsolatedUidsToHostUid()
65 (android::util::AtomsInfo::kAtomsWithUidField.find(tagId) == in mapAndMergeIsolatedUidsToHostUid()
67 VLOG("No uid or attribution chain to merge, atom %d", tagId); in mapAndMergeIsolatedUidsToHostUid()
73 if (event->GetTagId() != tagId) { in mapAndMergeIsolatedUidsToHostUid()
74 ALOGE("Wrong atom. Expecting %d, got %d", tagId, event->GetTagId()); in mapAndMergeIsolatedUidsToHostUid()
77 if (android::util::AtomsInfo::kAtomsWithAttributionChain.find(tagId) != in mapAndMergeIsolatedUidsToHostUid()
89 auto it = android::util::AtomsInfo::kAtomsWithUidField.find(tagId); in mapAndMergeIsolatedUidsToHostUid()
[all …]
DStatsPullerManager.cpp277 bool StatsPullerManager::Pull(int tagId, vector<shared_ptr<LogEvent>>* data) { in Pull() argument
278 VLOG("Initiating pulling %d", tagId); in Pull()
280 if (kAllPullAtomInfo.find(tagId) != kAllPullAtomInfo.end()) { in Pull()
281 bool ret = kAllPullAtomInfo.find(tagId)->second.puller->Pull(data); in Pull()
284 StatsdStats::getInstance().notePullFailed(tagId); in Pull()
288 VLOG("Unknown tagId %d", tagId); in Pull()
293 bool StatsPullerManager::PullerForMatcherExists(int tagId) const { in PullerForMatcherExists()
295 return isVendorPulledAtom(tagId) || kAllPullAtomInfo.find(tagId) != kAllPullAtomInfo.end(); in PullerForMatcherExists()
326 void StatsPullerManager::RegisterReceiver(int tagId, wp<PullDataReceiver> receiver, in RegisterReceiver() argument
329 auto& receivers = mReceivers[tagId]; in RegisterReceiver()
[all …]
DStatsPullerManager.h63 virtual void RegisterReceiver(int tagId, wp<PullDataReceiver> receiver, int64_t nextPullTimeNs,
67 virtual void UnRegisterReceiver(int tagId, wp<PullDataReceiver> receiver);
70 bool PullerForMatcherExists(int tagId) const;
83 virtual bool Pull(int tagId, vector<std::shared_ptr<LogEvent>>* data);
DStatsCallbackPuller.cpp32 StatsCallbackPuller::StatsCallbackPuller(int tagId, const sp<IStatsPullerCallback>& callback) : in StatsCallbackPuller() argument
33 StatsPuller(tagId), mCallback(callback) { in StatsCallbackPuller()
34 VLOG("StatsCallbackPuller created for tag %d", tagId); in StatsCallbackPuller()
DStatsCompanionServicePuller.cpp41 StatsCompanionServicePuller::StatsCompanionServicePuller(int tagId) : StatsPuller(tagId) { in StatsCompanionServicePuller() argument
DCarStatsPuller.cpp70 CarStatsPuller::CarStatsPuller(const int tagId) : StatsPuller(tagId) { in CarStatsPuller() argument
DStatsPuller.cpp35 StatsPuller::StatsPuller(const int tagId) in StatsPuller() argument
36 : mTagId(tagId), mLastPullTimeNs(0) { in StatsPuller()
DResourceHealthManagerPuller.cpp54 ResourceHealthManagerPuller::ResourceHealthManagerPuller(int tagId) : StatsPuller(tagId) { in ResourceHealthManagerPuller() argument
Dpuller_util.h29 const sp<UidMap>& uidMap, int tagId);
DResourceHealthManagerPuller.h31 explicit ResourceHealthManagerPuller(int tagId);
/frameworks/av/services/camera/libcameraservice/tests/
DCameraProviderManagerTest.cpp271 uint32_t tagId = VENDOR_SECTION << 16; in TEST() local
277 vendorSection[0].tags[0].tagId = tagId; in TEST()
305 vendorSection[0].tags[0].tagId = tagId; in TEST()
330 hardware::hidl_string resultTag = vendorCache->getTagName(tagId, vendorId); in TEST()
333 resultTag = vendorCache->getTagName(tagId, vendorIdSecond); in TEST()
345 ASSERT_EQ(OK, metadata.update(tagId, &byteVal, 1)); in TEST()
347 ASSERT_TRUE(metadata.exists(tagId)); in TEST()
356 ASSERT_EQ(OK, secondMetadata.update(tagId, &doubleVal, 1)); in TEST()
358 ASSERT_TRUE(secondMetadata.exists(tagId)); in TEST()
363 ASSERT_TRUE(metadataCopy.exists(tagId)); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.h85 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs);
88 explicit LogEvent(int32_t tagId, int64_t timestampNs);
91 explicit LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid);
96 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs,
DLogEvent.cpp122 LogEvent::LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs) { in LogEvent() argument
125 mTagId = tagId; in LogEvent()
130 android_log_write_int32(mContext, tagId); in LogEvent()
134 LogEvent::LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, in LogEvent() argument
224 LogEvent::LogEvent(int32_t tagId, int64_t timestampNs) : LogEvent(tagId, timestampNs, timestampNs) { in LogEvent() argument
227 LogEvent::LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid) { in LogEvent() argument
229 mTagId = tagId; in LogEvent()
234 android_log_write_int32(mContext, tagId); in LogEvent()
/frameworks/base/cmds/statsd/tests/shell/
DShellSubscriber_test.cpp193 .WillRepeatedly(Invoke([](int tagId, vector<std::shared_ptr<LogEvent>>* data) { in TEST() argument
195 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, 1111L); in TEST()
201 event = make_shared<LogEvent>(tagId, 1111L); in TEST()
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp321 void writeFieldValueTreeToStreamHelper(int tagId, const std::vector<FieldValue>& dims, in writeFieldValueTreeToStreamHelper() argument
352 if (depth == 0 && (itr = AtomsInfo::kBytesFieldAtoms.find(tagId)) != in writeFieldValueTreeToStreamHelper()
394 writeFieldValueTreeToStreamHelper(tagId, dims, index, valueDepth, in writeFieldValueTreeToStreamHelper()
406 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, in writeFieldValueTreeToStream() argument
408 uint64_t atomToken = protoOutput->start(FIELD_TYPE_MESSAGE | tagId); in writeFieldValueTreeToStream()
411 writeFieldValueTreeToStreamHelper(tagId, values, &index, 0, 0, protoOutput); in writeFieldValueTreeToStream()

12