Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/statsd/tests/metrics/
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 …]
DGaugeMetricProducer_test.cpp48 const int tagId = 1; variable
91 gaugeFieldMatcher->set_field(tagId); in TEST()
99 atomMatcher.set_atom_id(tagId); in TEST()
109 tagId, 5, 600 * NS_PER_SEC + NS_PER_SEC / 2, pullerManager); in TEST()
124 gaugeFieldMatcher->set_field(tagId); in TEST()
132 atomMatcher.set_atom_id(tagId); in TEST()
138 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST()
139 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST()
140 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _, _)) in TEST()
141 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST()
[all …]
DValueMetricProducer_test.cpp47 const int tagId = 1; variable
104 atomMatcher.set_atom_id(tagId); in createValueProducerNoConditions()
109 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerNoConditions()
111 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerNoConditions()
116 wizard, logEventMatcherIndex, eventMatcherWizard, tagId, in createValueProducerNoConditions()
127 atomMatcher.set_atom_id(tagId); in createValueProducerWithCondition()
132 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithCondition()
134 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerWithCondition()
139 logEventMatcherIndex, eventMatcherWizard, tagId, bucketStartTimeNs, in createValueProducerWithCondition()
152 atomMatcher.set_atom_id(tagId); in createValueProducerWithState()
[all …]
Dmetrics_test_helper.h37 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver,
40 void(int tagId, const ConfigKey& key, wp<PullDataReceiver> receiver));
52 HashableDimensionKey getMockedDimensionKey(int tagId, int key, std::string value);
53 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, std::string value);
55 HashableDimensionKey getMockedDimensionKeyLongValue(int tagId, int key, int64_t value);
56 MetricDimensionKey getMockedStateDimensionKey(int tagId, int key, int64_t value);
59 void buildSimpleAtomFieldMatcher(const int tagId, const int atomFieldNum, FieldMatcher* matcher);
60 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher);
DDurationMetricProducer_test.cpp94 int tagId = 1; in TEST() local
96 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
98 makeLogEvent(&event2, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
133 int tagId = 1; in TEST() local
135 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
137 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
139 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 1, tagId); in TEST()
141 makeLogEvent(&event4, bucketStartTimeNs + bucketSizeNs + 3, tagId); in TEST()
183 int tagId = 1; in TEST() local
185 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
[all …]
DCountMetricProducer_test.cpp89 int tagId = 1; in TEST() local
102 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST()
104 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST()
126 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST()
196 int tagId = 1; in TEST() local
205 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
209 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST()
212 makeLogEvent(&event2, bucketStartTimeNs + 10, tagId, /*uid=*/"222"); in TEST()
255 int tagId = 1; in TEST_P() local
275 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST_P()
[all …]
DEventMetricProducer_test.cpp130 int tagId = 1; in TEST() local
138 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
/frameworks/base/cmds/statsd/src/external/
DStatsPullerManager.cpp94 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull() argument
97 return PullLocked(tagId, configKey, eventTimeNs, data, useUids); in Pull()
100 bool StatsPullerManager::Pull(int tagId, const vector<int32_t>& uids, const int64_t eventTimeNs, in Pull() argument
103 return PullLocked(tagId, uids, eventTimeNs, data, useUids); in Pull()
106 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument
113 ALOGE("Error pulling tag %d. No pull uid provider for config key %s", tagId, in PullLocked()
115 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked()
120 ALOGE("Error pulling tag %d, pull uid provider for config %s is gone.", tagId, in PullLocked()
122 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked()
125 uids = pullUidProvider->getPullAtomUids(tagId); in PullLocked()
[all …]
Dpuller_util.cpp50 int tagId, const vector<int>& additiveFieldsVec) { in mapAndMergeIsolatedUidsToHostUid() argument
58 VLOG("No uid or attribution chain to merge, atom %d", tagId); in mapAndMergeIsolatedUidsToHostUid()
64 if (event->GetTagId() != tagId) { in mapAndMergeIsolatedUidsToHostUid()
65 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.cpp35 StatsPuller::StatsPuller(const int tagId, const int64_t coolDownNs, const int64_t pullTimeoutNs, in StatsPuller() argument
37 : mTagId(tagId), in StatsPuller()
Dpuller_util.h29 const sp<UidMap>& uidMap, int tagId,
DStatsCallbackPuller.h31 explicit StatsCallbackPuller(int tagId, const shared_ptr<IPullAtomCallback>& callback,
DStatsPuller.h38 explicit StatsPuller(const int tagId,
/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()
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()
637 private boolean checkAllowed(int ifd, int tagId) { in checkAllowed() argument
638 int info = mInterface.getTagInfo().get(tagId); in checkAllowed()
DExifData.java204 protected void removeTag(short tagId, int ifdId) { in removeTag() argument
209 ifdData.removeTag(tagId); in removeTag()
DExifTag.java127 ExifTag(short tagId, short type, int componentCount, int ifd, in ExifTag() argument
129 mTagId = tagId; in ExifTag()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java980 int tagId = FrameworkStatsLog.WIFI_BYTES_TRANSFER; in registerWifiBytesTransfer() local
985 tagId, in registerWifiBytesTransfer()
1316 int tagId = FrameworkStatsLog.WIFI_BYTES_TRANSFER_BY_FG_BG;
1321 tagId,
1329 int tagId = FrameworkStatsLog.MOBILE_BYTES_TRANSFER;
1334 tagId,
1342 int tagId = FrameworkStatsLog.MOBILE_BYTES_TRANSFER_BY_FG_BG;
1347 tagId,
1355 int tagId = FrameworkStatsLog.BYTES_TRANSFER_BY_TAG_AND_METERED;
1360 tagId,
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DCameraProviderManagerTest.cpp351 uint32_t tagId = VENDOR_SECTION << 16; in TEST() local
357 vendorSection[0].tags[0].tagId = tagId; in TEST()
385 vendorSection[0].tags[0].tagId = tagId; in TEST()
410 hardware::hidl_string resultTag = vendorCache->getTagName(tagId, vendorId); in TEST()
413 resultTag = vendorCache->getTagName(tagId, vendorIdSecond); in TEST()
425 ASSERT_EQ(OK, metadata.update(tagId, &byteVal, 1)); in TEST()
427 ASSERT_TRUE(metadata.exists(tagId)); in TEST()
436 ASSERT_EQ(OK, secondMetadata.update(tagId, &doubleVal, 1)); in TEST()
438 ASSERT_TRUE(secondMetadata.exists(tagId)); in TEST()
443 ASSERT_TRUE(metadataCopy.exists(tagId)); in TEST()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp56 #define BAIL_IF_INVALID_RET_BOOL(expr, jnienv, tagId, writer) \ argument
59 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
64 #define BAIL_IF_INVALID_RET_NULL_SP(expr, jnienv, tagId, writer) \ argument
67 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
72 #define BAIL_IF_INVALID_R(expr, jnienv, tagId, writer) \ argument
75 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
79 #define BAIL_IF_EMPTY_RET_NULL_SP(entry, jnienv, tagId, writer) \ argument
82 "Missing metadata fields for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
86 #define BAIL_IF_EXPR_RET_NULL_SP(expr, jnienv, tagId, writer) \ argument
89 "Invalid metadata for tag %s (%x)", (writer)->getTagName(tagId), (tagId)); \
[all …]
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp338 void writeFieldValueTreeToStreamHelper(int tagId, const std::vector<FieldValue>& dims, in writeFieldValueTreeToStreamHelper() argument
388 writeFieldValueTreeToStreamHelper(tagId, dims, index, valueDepth, in writeFieldValueTreeToStreamHelper()
400 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, in writeFieldValueTreeToStream() argument
402 uint64_t atomToken = protoOutput->start(FIELD_TYPE_MESSAGE | tagId); in writeFieldValueTreeToStream()
405 writeFieldValueTreeToStreamHelper(tagId, values, &index, 0, 0, protoOutput); in writeFieldValueTreeToStream()
Dstats_log_util.h33 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values,
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.h478 DeviceInfo(const std::string& name, const metadata_vendor_id_t tagId, in DeviceInfo()
483 mName(name), mId(id), mVersion(version), mProviderTagid(tagId), in DeviceInfo()
525 DeviceInfo1(const std::string& name, const metadata_vendor_id_t tagId,
554 DeviceInfo3(const std::string& name, const metadata_vendor_id_t tagId,
611 const metadata_vendor_id_t tagId, const std::string &id,

12