/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 | NumericValueMetricProducer_test.cpp | 50 const int tagId = 1; variable 110 const int pullAtomId = tagId) { in createValueProducerNoConditions() 116 ConditionState conditionAfterFirstBucketPrepared, const int pullAtomId = tagId) { in createValueProducerWithCondition() 125 const int pullAtomId = tagId) { in createValueProducerWithState() 135 ConditionState conditionAfterFirstBucketPrepared, const int pullAtomId = tagId) { in createValueProducerWithConditionAndState() 143 const int pullAtomId = tagId) { in createValueProducerWithSampling() 159 const int64_t timeBaseNs, const int64_t startTimeNs, const int pullAtomId = tagId) { in createValueProducerWithBucketParams() 167 const sp<EventMatcherWizard>& eventMatcherWizard, const int pullAtomId = tagId) { in createValueProducerWithEventMatcherWizard() 183 eventMatcherWizard = createEventMatcherWizard(tagId, logEventMatcherIndex); 187 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) [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() 192 int tagId = 1; in TEST() local 194 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() 200 int tagId = 1; in TEST() local 209 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST() 213 makeLogEvent(&event1, bucketStartTimeNs + 1, tagId, /*uid=*/"111"); in TEST() 216 makeLogEvent(&event2, bucketStartTimeNs + 10, tagId, /*uid=*/"222"); in TEST() 259 int tagId = 1; in TEST_P() local 281 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);
|
D | EventMetricProducer_test.cpp | 149 int tagId = 1; in TEST_F() local 157 buildSimpleAtomFieldMatcher(tagId, 1, link->mutable_fields_in_what()); in TEST_F() 200 int tagId = 1; in TEST_F() local 206 makeLogEvent(&event1, tagId, bucketStartTimeNs + 10, "111"); in TEST_F() 208 makeLogEvent(&event2, tagId, bucketStartTimeNs + 20, "111"); in TEST_F() 210 makeLogEvent(&event3, tagId, bucketStartTimeNs + 30, "111"); in TEST_F() 213 makeLogEvent(&event4, tagId, bucketStartTimeNs + 40, "222"); in TEST_F() 250 int tagId = 1; in TEST_F() local 258 makeLogEvent(&event1, tagId, bucketStartTimeNs + 10, "111", &bytesField1); in TEST_F() 260 makeLogEvent(&event2, tagId, bucketStartTimeNs + 20, "111", &bytesField1); in TEST_F() [all …]
|
/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/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()
|
/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()
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPullerManager.cpp | 55 bool StatsPullerManager::Pull(int tagId, const ConfigKey& configKey, const int64_t eventTimeNs, in Pull() argument 58 return PullLocked(tagId, configKey, eventTimeNs, data); in Pull() 61 bool StatsPullerManager::Pull(int tagId, const vector<int32_t>& uids, const int64_t eventTimeNs, in Pull() argument 64 return PullLocked(tagId, uids, eventTimeNs, data); in Pull() 67 bool StatsPullerManager::PullLocked(int tagId, const ConfigKey& configKey, in PullLocked() argument 72 ALOGE("Error pulling tag %d. No pull uid provider for config key %s", tagId, in PullLocked() 74 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 79 ALOGE("Error pulling tag %d, pull uid provider for config %s is gone.", tagId, in PullLocked() 81 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 84 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 | 51 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()
|
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()
|
/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 | IfdData.java | 76 protected ExifTag getTag(short tagId) { in getTag() argument 77 return exifTags.get(tagId); in getTag()
|
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()
|
/packages/modules/StatsD/statsd/tests/utils/ |
D | DbUtils_test.cpp | 41 const int32_t tagId = 1; variable 75 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 101 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 129 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 155 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 182 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 209 AStatsEvent* statsEvent1 = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 213 AStatsEvent* statsEvent2 = makeAStatsEvent(tagId, eventElapsedTimeNs + 20); in TEST_F() 242 AStatsEvent* statsEvent1 = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F() 247 AStatsEvent* statsEvent2 = makeAStatsEvent(tagId, eventElapsedTimeNs + 20); in TEST_F() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 624 byte[] tagId = nfcBarcode.getTag().getId(); in decodeNfcBarcodeUri() 626 if (tagId.length >= 4 in decodeNfcBarcodeUri() 627 && (tagId[1] == URI_PREFIX_HTTP_WWW || tagId[1] == URI_PREFIX_HTTPS_WWW in decodeNfcBarcodeUri() 628 || tagId[1] == URI_PREFIX_HTTP || tagId[1] == URI_PREFIX_HTTPS)) { in decodeNfcBarcodeUri() 634 for (; end < tagId.length - 2; end++) { in decodeNfcBarcodeUri() 635 if (tagId[end] == (byte) 0xfe) { in decodeNfcBarcodeUri() 640 System.arraycopy(tagId, 1, payload, 0, payload.length); in decodeNfcBarcodeUri() 642 NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_URI, tagId, payload); in decodeNfcBarcodeUri()
|