/packages/modules/StatsD/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 48 const int tagId = 1; variable 91 gaugeFieldMatcher->set_field(tagId); in TEST() 98 createEventMatcherWizard(tagId, logEventMatcherIndex); in TEST() 106 -1, -1, tagId, 5, 600 * NS_PER_SEC + NS_PER_SEC / 2, in TEST() 122 gaugeFieldMatcher->set_field(tagId); in TEST() 129 createEventMatcherWizard(tagId, logEventMatcherIndex); in TEST() 132 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST() 133 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST() 134 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _)) in TEST() 135 .WillOnce(Invoke([](int tagId, const ConfigKey&, const int64_t eventTimeNs, in TEST() [all …]
|
D | ValueMetricProducer_test.cpp | 47 const int tagId = 1; variable 110 createEventMatcherWizard(tagId, logEventMatcherIndex); in createValueProducerNoConditions() 112 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerNoConditions() 114 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerNoConditions() 120 tagId, bucketStartTimeNs, bucketStartTimeNs, pullerManager); in createValueProducerNoConditions() 129 createEventMatcherWizard(tagId, logEventMatcherIndex); in createValueProducerWithCondition() 131 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithCondition() 133 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerWithCondition() 138 protoHash, logEventMatcherIndex, eventMatcherWizard, tagId, bucketStartTimeNs, in createValueProducerWithCondition() 150 createEventMatcherWizard(tagId, logEventMatcherIndex); in createValueProducerWithState() [all …]
|
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 | DurationMetricProducer_test.cpp | 95 int tagId = 1; in TEST() local 97 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST() 99 makeLogEvent(&event2, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST() 134 int tagId = 1; in TEST() local 136 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST() 138 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST() 140 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 1, tagId); in TEST() 142 makeLogEvent(&event4, bucketStartTimeNs + bucketSizeNs + 3, tagId); in TEST() 185 int tagId = 1; in TEST() local 187 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST() [all …]
|
D | CountMetricProducer_test.cpp | 90 int tagId = 1; in TEST() local 103 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId); in TEST() 105 makeLogEvent(&event2, bucketStartTimeNs + 2, tagId); in TEST() 127 makeLogEvent(&event3, bucketStartTimeNs + bucketSizeNs + 2, tagId); in TEST() 197 int tagId = 1; in TEST() local 206 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST() 210 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST() 213 makeLogEvent(&event2, bucketStartTimeNs + 10, tagId, /*uid=*/"222"); in TEST() 256 int tagId = 1; in TEST_P() local 277 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST_P() [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)); 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, const int atomFieldNum, FieldMatcher* matcher); 59 void buildSimpleAtomFieldMatcher(const int tagId, FieldMatcher* matcher);
|
/packages/apps/Gallery2/gallerycommon/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()
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifInterface.java | 350 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 …]
|
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()
|
/packages/apps/Messaging/src/com/android/messaging/util/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 | 536 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/ |
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); 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); in Pull() 106 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument 111 ALOGE("Error pulling tag %d. No pull uid provider for config key %s", tagId, in PullLocked() 113 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 118 ALOGE("Error pulling tag %d, pull uid provider for config %s is gone.", tagId, in PullLocked() 120 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 123 uids = pullUidProvider->getPullAtomUids(tagId); in PullLocked() [all …]
|
D | StatsPullerManager.h | 72 virtual void RegisterReceiver(int tagId, const ConfigKey& configKey, 77 virtual void UnRegisterReceiver(int tagId, const ConfigKey& configKey, 89 bool PullerForMatcherExists(int tagId) const; 104 virtual bool Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, 108 virtual bool Pull(int tagId, const vector<int32_t>& uids, const int64_t eventTimeNs, 154 bool PullLocked(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, 157 bool PullLocked(int tagId, const vector<int32_t>& uids, const int64_t eventTimeNs,
|
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()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifInterface.java | 123 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 …]
|
D | ExifTag.java | 84 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()
|
D | ExifParser.java | 490 short tagId = tiffStream.readShort(); in readTag() local 498 LogUtil.i("ExifParser.readTag", "Tag %04x: Invalid data type %d", tagId, dataFormat); in readTag() 505 tagId, in readTag() 596 private boolean checkAllowed(int ifd, int tagId) { in checkAllowed() argument 597 int info = mInterface.getTagInfo().get(tagId); in checkAllowed()
|
D | IfdData.java | 76 protected ExifTag getTag(short tagId) { in getTag() argument 77 return exifTags.get(tagId); in getTag()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 418 byte[] tagId = nfcBarcode.getTag().getId(); in decodeNfcBarcodeUri() 420 if (tagId.length >= 4 in decodeNfcBarcodeUri() 421 && (tagId[1] == URI_PREFIX_HTTP_WWW || tagId[1] == URI_PREFIX_HTTPS_WWW in decodeNfcBarcodeUri() 422 || tagId[1] == URI_PREFIX_HTTP || tagId[1] == URI_PREFIX_HTTPS)) { in decodeNfcBarcodeUri() 428 for (; end < tagId.length - 2; end++) { in decodeNfcBarcodeUri() 429 if (tagId[end] == (byte) 0xfe) { in decodeNfcBarcodeUri() 434 System.arraycopy(tagId, 1, payload, 0, payload.length); in decodeNfcBarcodeUri() 436 NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_URI, tagId, payload); in decodeNfcBarcodeUri()
|
/packages/modules/StatsD/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()
|