/frameworks/base/cmds/statsd/tests/metrics/ |
D | metrics_test_helper.cpp | 21 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 …]
|
D | GaugeMetricProducer_test.cpp | 48 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 …]
|
D | ValueMetricProducer_test.cpp | 47 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 …]
|
D | metrics_test_helper.h | 37 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);
|
D | DurationMetricProducer_test.cpp | 94 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 …]
|
D | CountMetricProducer_test.cpp | 89 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 …]
|
D | EventMetricProducer_test.cpp | 130 int tagId = 1; in TEST() local 138 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST()
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsPullerManager.cpp | 94 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 …]
|
D | puller_util.cpp | 50 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()
|
D | StatsCallbackPuller.cpp | 38 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()
|
D | StatsPuller.cpp | 35 StatsPuller::StatsPuller(const int tagId, const int64_t coolDownNs, const int64_t pullTimeoutNs, in StatsPuller() argument 37 : mTagId(tagId), in StatsPuller()
|
D | puller_util.h | 29 const sp<UidMap>& uidMap, int tagId,
|
D | StatsCallbackPuller.h | 31 explicit StatsCallbackPuller(int tagId, const shared_ptr<IPullAtomCallback>& callback,
|
D | StatsPuller.h | 38 explicit StatsPuller(const int tagId,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifInterface.java | 347 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 …]
|
D | IfdData.java | 78 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()
|
D | ExifParser.java | 534 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()
|
D | ExifData.java | 204 protected void removeTag(short tagId, int ifdId) { in removeTag() argument 209 ifdData.removeTag(tagId); in removeTag()
|
D | ExifTag.java | 127 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/ |
D | StatsPullAtomService.java | 980 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/ |
D | CameraProviderManagerTest.cpp | 351 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/ |
D | android_hardware_camera2_DngCreator.cpp | 56 #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/ |
D | stats_log_util.cpp | 338 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()
|
D | stats_log_util.h | 33 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values,
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.h | 478 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,
|