Home
last modified time | relevance | path

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

12

/packages/modules/StatsD/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp48 const int tagId = 1; variable
100 gaugeFieldMatcher->set_field(tagId); in TEST()
107 createEventMatcherWizard(tagId, logEventMatcherIndex); in TEST()
116 -1, -1, tagId, 5, 600 * NS_PER_SEC + NS_PER_SEC / 2, in TEST()
131 gaugeFieldMatcher->set_field(tagId); in TEST()
138 createEventMatcherWizard(tagId, logEventMatcherIndex); in TEST()
141 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST()
142 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST()
143 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _)) in TEST()
144 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST()
[all …]
DNumericValueMetricProducer_test.cpp50 const int tagId = 1; variable
120 const int pullAtomId = tagId) { in createValueProducerNoConditions()
126 ConditionState conditionAfterFirstBucketPrepared, const int pullAtomId = tagId) { in createValueProducerWithCondition()
135 const int pullAtomId = tagId) { in createValueProducerWithState()
145 ConditionState conditionAfterFirstBucketPrepared, const int pullAtomId = tagId) { in createValueProducerWithConditionAndState()
153 const int pullAtomId = tagId) { in createValueProducerWithSampling()
169 const int64_t timeBaseNs, const int64_t startTimeNs, const int pullAtomId = tagId) { in createValueProducerWithBucketParams()
177 const sp<EventMatcherWizard>& eventMatcherWizard, const int pullAtomId = tagId) { in createValueProducerWithEventMatcherWizard()
193 pullerManager, metric, tagId, pullAtomId != -1, kConfigKey, protoHash, timeBaseNs,
208 metric.mutable_value_field()->set_field(tagId); in createMetric()
[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 HashableDimensionKey getMockedDimensionKeyLongValue(int tagId, int key, int64_t value) { in getMockedDimensionKeyLongValue() argument
32 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value))); in getMockedDimensionKeyLongValue()
37 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, string value) { in getMockedMetricDimensionKey() argument
38 return MetricDimensionKey(getMockedDimensionKey(tagId, key, value), DEFAULT_DIMENSION_KEY); in getMockedMetricDimensionKey()
41 MetricDimensionKey getMockedStateDimensionKey(int tagId, int key, int64_t value) { in getMockedStateDimensionKey() argument
43 getMockedDimensionKeyLongValue(tagId, key, value)); in getMockedStateDimensionKey()
46 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher) { in buildSimpleAtomFieldMatcher() argument
47 matcher->set_field(tagId); in buildSimpleAtomFieldMatcher()
[all …]
DEventMetricProducer_test.cpp149 int tagId = 1; in TEST_F() local
157 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST_F()
196 int tagId = 1; in TEST_F() local
202 makeLogEvent(&event1, tagId, bucketStartTimeNs + 10, "111"); in TEST_F()
204 makeLogEvent(&event2, tagId, bucketStartTimeNs + 20, "111"); in TEST_F()
206 makeLogEvent(&event3, tagId, bucketStartTimeNs + 30, "111"); in TEST_F()
209 makeLogEvent(&event4, tagId, bucketStartTimeNs + 40, "222"); in TEST_F()
242 int tagId = 1; in TEST_F() local
250 makeLogEvent(&event1, tagId, bucketStartTimeNs + 10, "111", &bytesField1); in TEST_F()
252 makeLogEvent(&event2, tagId, bucketStartTimeNs + 20, "111", &bytesField1); in TEST_F()
[all …]
DDurationMetricProducer_test.cpp104 int tagId = 1; in TEST() local
106 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
108 makeLogEvent(&event2, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
144 int tagId = 1; in TEST() local
146 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
148 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
150 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 1, tagId); in TEST()
152 makeLogEvent(&event4, bucketStartTimeNs + bucketSizeNs + 3, tagId); in TEST()
203 int tagId = 1; in TEST() local
205 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
[all …]
DCountMetricProducer_test.cpp99 int tagId = 1; in TEST() local
113 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
115 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
137 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
211 int tagId = 1; in TEST() local
220 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
224 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST()
227 makeLogEvent(&event2, bucketStartTimeNs + 10, tagId, /*uid=*/"222"); in TEST()
271 int tagId = 1; in TEST_P() local
293 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST_P()
[all …]
Dmetrics_test_helper.h37 void(int tagId, const ConfigKey& key, const wp<PullDataReceiver>& receiver,
40 void(int tagId, const ConfigKey& key, const wp<PullDataReceiver>& receiver));
51 HashableDimensionKey getMockedDimensionKey(int tagId, int key, std::string value);
52 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, std::string value);
54 HashableDimensionKey getMockedDimensionKeyLongValue(int tagId, int key, int64_t value);
55 MetricDimensionKey getMockedStateDimensionKey(int tagId, int key, int64_t value);
58 void buildSimpleAtomFieldMatcher(const int tagId, int atomFieldNum, FieldMatcher* matcher);
59 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher);
/packages/apps/Gallery2/gallerycommon/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()
DExifParser.java534 short tagId = mTiffStream.readShort(); in readTag() local
543 Log.w(TAG, String.format("Tag %04x: Invalid data type %d", tagId, dataFormat)); in readTag()
548 ExifTag tag = new ExifTag(tagId, dataFormat, (int) numOfComp, mIfdType, in readTag()
633 private boolean checkAllowed(int ifd, int tagId) { in checkAllowed() argument
634 int info = mInterface.getTagInfo().get(tagId); in checkAllowed()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java350 public static int defineTag(int ifdId, short tagId) { in defineTag() argument
351 return (tagId & 0x0000ffff) | (ifdId << 16); in defineTag()
1133 public List<ExifTag> getTagsForTagId(short tagId) { in getTagsForTagId() argument
1134 return mData.getAllTagsForTagId(tagId); in getTagsForTagId()
1155 public ExifTag getTag(int tagId, int ifdId) { in getTag() argument
1159 return mData.getTag(getTrueTagKey(tagId), ifdId); in getTag()
1169 public ExifTag getTag(int tagId) { in getTag() argument
1170 int ifdId = getDefinedTagDefaultIfd(tagId); in getTag()
1171 return getTag(tagId, ifdId); in getTag()
1179 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()
/packages/apps/Messaging/src/com/android/messaging/util/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()
DExifParser.java536 short tagId = mTiffStream.readShort(); in readTag() local
545 Log.w(TAG, String.format("Tag %04x: Invalid data type %d", tagId, dataFormat)); in readTag()
550 ExifTag tag = new ExifTag(tagId, dataFormat, (int) numOfComp, mIfdType, in readTag()
641 private boolean checkAllowed(int ifd, int tagId) { in checkAllowed() argument
642 int info = mInterface.getTagInfo().get(tagId); in checkAllowed()
/packages/modules/StatsD/statsd/src/external/
DStatsPullerManager.cpp72 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull() argument
76 return PullLocked(tagId, configKey, eventTimeNs, data); in Pull()
79 bool StatsPullerManager::Pull(int tagId, const vector<int32_t>& uids, const int64_t eventTimeNs, in Pull() argument
83 return PullLocked(tagId, uids, eventTimeNs, data); in Pull()
86 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument
89 if (!getPullerUidsLocked(tagId, configKey, uids)) { in PullLocked()
92 return PullLocked(tagId, uids, eventTimeNs, data); in PullLocked()
95 bool StatsPullerManager::PullLocked(int tagId, const vector<int32_t>& uids, in PullLocked() argument
97 VLOG("Initiating pulling %d", tagId); in PullLocked()
99 PullerKey key = {.uid = uid, .atomTag = tagId}; in PullLocked()
[all …]
DStatsPullerManager.h102 virtual void RegisterReceiver(int tagId, const ConfigKey& configKey,
107 virtual void UnRegisterReceiver(int tagId, const ConfigKey& configKey,
120 bool PullerForMatcherExists(int tagId) const;
135 virtual bool Pull(int tagId, const ConfigKey& configKey, int64_t eventTimeNs,
139 virtual bool Pull(int tagId, const vector<int32_t>& uids, int64_t eventTimeNs,
169 bool PullLocked(int tagId, const ConfigKey& configKey, int64_t eventTimeNs,
172 bool PullLocked(int tagId, const vector<int32_t>& uids, int64_t eventTimeNs,
175 bool getPullerUidsLocked(const int tagId, const ConfigKey& configKey, vector<int32_t>& uids);
Dpuller_util.cpp51 int tagId, const vector<int>& additiveFieldsVec) { in mapAndMergeIsolatedUidsToHostUid() argument
59 VLOG("No uid or attribution chain to merge, atom %d", tagId); in mapAndMergeIsolatedUidsToHostUid()
65 if (event->GetTagId() != tagId) { in mapAndMergeIsolatedUidsToHostUid()
66 ALOGE("Wrong atom. Expecting %d, got %d", tagId, event->GetTagId()); in mapAndMergeIsolatedUidsToHostUid()
DStatsCallbackPuller.cpp38 StatsCallbackPuller::StatsCallbackPuller(int tagId, const shared_ptr<IPullAtomCallback>& callback, in StatsCallbackPuller() argument
41 : StatsPuller(tagId, coolDownNs, timeoutNs, additiveFields), mCallback(callback) { in StatsCallbackPuller()
42 VLOG("StatsCallbackPuller created for tag %d", tagId); in StatsCallbackPuller()
DStatsPuller.cpp37 StatsPuller::StatsPuller(const int tagId, const int64_t coolDownNs, const int64_t pullTimeoutNs, in StatsPuller() argument
39 : mTagId(tagId), in StatsPuller()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifInterface.java123 private static int defineTag(int ifdId, short tagId) { in defineTag() argument
124 return (tagId & 0x0000ffff) | (ifdId << 16); in defineTag()
214 private Integer getTagIntValue(int tagId, int ifdId) { in getTagIntValue() argument
215 int[] l = getTagIntValues(tagId, ifdId); in getTagIntValue()
222 private int[] getTagIntValues(int tagId, int ifdId) { in getTagIntValues() argument
223 ExifTag t = getTag(tagId, ifdId); in getTagIntValues()
231 public ExifTag getTag(int tagId, int ifdId) { in getTag() argument
235 return data.getTag(getTrueTagKey(tagId), ifdId); in getTag()
238 public Integer getTagIntValue(int tagId) { in getTagIntValue() argument
239 int ifdId = getDefinedTagDefaultIfd(tagId); in getTagIntValue()
[all …]
DExifTag.java84 private final short tagId; field in ExifTag
120 ExifTag(short tagId, short type, int componentCount, int ifd, boolean hasDefinedComponentCount) { in ExifTag() argument
121 this.tagId = tagId; in ExifTag()
164 return tagId; in getTagId()
559 if (tag.tagId != this.tagId in equals()
595 tagId, dataType, hasDefinedDefaultComponentCount, componentCountActual, ifd, value, offset); in hashCode()
600 return String.format("tag id: %04X\n", tagId) in toString()
DIfdData.java76 protected ExifTag getTag(short tagId) { in getTag() argument
77 return exifTags.get(tagId); in getTag()
/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp39 const int32_t tagId = 1; variable
73 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
99 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
127 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
153 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
180 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
207 AStatsEvent* statsEvent1 = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
211 AStatsEvent* statsEvent2 = makeAStatsEvent(tagId, eventElapsedTimeNs + 20); in TEST_F()
240 AStatsEvent* statsEvent1 = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
245 AStatsEvent* statsEvent2 = makeAStatsEvent(tagId, eventElapsedTimeNs + 20); in TEST_F()
[all …]
/packages/modules/StatsD/statsd/src/state/
DStateManager.cpp53 const int tagId = event.GetTagId(); in onLogEvent() local
54 if (tagId == util::STATS_SOCKET_LOSS_REPORTED) { in onLogEvent()
61 auto stateTrackersForEvent = mStateTrackers.find(tagId); in onLogEvent()

12