Home
last modified time | relevance | path

Searched refs:fieldValue (Results 1 – 13 of 13) sorted by relevance

/packages/modules/StatsD/statsd/src/
Dmetadata_util.cpp56 for (const FieldValue& fieldValue : metricKey.getDimensionKeyInWhat().getValues()) { in writeMetricDimensionKeyToMetadataDimensionKey() local
59 metadataField->set_tag(fieldValue.mField.getTag()); in writeMetricDimensionKeyToMetadataDimensionKey()
60 metadataField->set_field(fieldValue.mField.getField()); in writeMetricDimensionKeyToMetadataDimensionKey()
61 writeValueToProto(metadataFieldValue, fieldValue.mValue); in writeMetricDimensionKeyToMetadataDimensionKey()
64 for (const FieldValue& fieldValue : metricKey.getStateValuesKey().getValues()) { in writeMetricDimensionKeyToMetadataDimensionKey() local
67 metadataField->set_tag(fieldValue.mField.getTag()); in writeMetricDimensionKeyToMetadataDimensionKey()
68 metadataField->set_field(fieldValue.mField.getField()); in writeMetricDimensionKeyToMetadataDimensionKey()
69 writeValueToProto(metadataFieldValue, fieldValue.mValue); in writeMetricDimensionKeyToMetadataDimensionKey()
101 FieldValue fieldValue(field, value); in writeFieldValuesFromMetadata() local
DHashableDimensionKey.cpp116 for (const auto& fieldValue : value.getValues()) { in hashDimension() local
117 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension()
118 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getTag())); in hashDimension()
119 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mValue.getType())); in hashDimension()
120 switch (fieldValue.mValue.getType()) { in hashDimension()
123 android::hash_type(fieldValue.mValue.int_value)); in hashDimension()
127 android::hash_type(fieldValue.mValue.long_value)); in hashDimension()
131 fieldValue.mValue.str_value))); in hashDimension()
135 android::hash_type(fieldValue.mValue.float_value)); in hashDimension()
DFieldValue.cpp136 bool isUidField(const FieldValue& fieldValue) { in isUidField() argument
137 return fieldValue.mAnnotations.isUidField(); in isUidField()
518 for (const FieldValue& fieldValue : fieldValues) { in getSize() local
519 totalSize += fieldValue.getSize(); in getSize()
DStatsLogProcessor.cpp145 FieldValue& fieldValue = fieldValues->at(i); in mapIsolatedUidToHostUidIfNecessaryLocked() local
146 if (isAttributionUidField(fieldValue)) { in mapIsolatedUidToHostUidIfNecessaryLocked()
147 const int hostUid = mUidMap->getHostUidOrSelf(fieldValue.mValue.int_value); in mapIsolatedUidToHostUidIfNecessaryLocked()
148 fieldValue.mValue.setInt(hostUid); in mapIsolatedUidToHostUidIfNecessaryLocked()
DFieldValue.h455 bool isUidField(const FieldValue& fieldValue);
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp84 bool tryMatchString(const sp<UidMap>& uidMap, const FieldValue& fieldValue, in tryMatchString() argument
86 if (isAttributionUidField(fieldValue) || isUidField(fieldValue)) { in tryMatchString()
87 int uid = fieldValue.mValue.int_value; in tryMatchString()
94 } else if (fieldValue.mValue.getType() == STRING) { in tryMatchString()
95 return fieldValue.mValue.str_value == str_match; in tryMatchString()
/packages/modules/StatsD/statsd/src/external/
Dpuller_util.cpp72 FieldValue& fieldValue = fieldValues->at(i); in mapAndMergeIsolatedUidsToHostUid() local
73 if (isAttributionUidField(fieldValue)) { in mapAndMergeIsolatedUidsToHostUid()
74 const int hostUid = uidMap->getHostUidOrSelf(fieldValue.mValue.int_value); in mapAndMergeIsolatedUidsToHostUid()
75 fieldValue.mValue.setInt(hostUid); in mapAndMergeIsolatedUidsToHostUid()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.h215 for (auto& fieldValue : mValues) { in updateValue()
216 if (fieldValue.mField.getField() == field) { in updateValue()
217 if (fieldValue.mValue.getType() == type) { in updateValue()
218 fieldValue.mValue = Value(value); in updateValue()
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp337 FieldValue fieldValue; in getUnknownStateKey() local
338 fieldValue.mField.setTag(atom); in getUnknownStateKey()
339 fieldValue.mValue.setInt(StateTracker::kStateUnknown); in getUnknownStateKey()
340 stateKey.addValue(fieldValue); in getUnknownStateKey()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/util/
DBluetoothGattUtilsTest.java61 int fieldValue = (Integer) field.get(null); in testGetMessageForStatusCode() local
62 assertThat(getMessageForStatusCode(fieldValue)).isEqualTo(fieldName); in testGetMessageForStatusCode()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DDataClass.java273 void acceptObject(THIS self, String fieldName, Object fieldValue); in acceptObject() argument
283 void acceptInt(THIS self, String fieldName, int fieldValue); in acceptInt() argument
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp475 float fieldValue = -3.5; in TEST() local
482 AStatsEvent_writeFloat(event, fieldValue); in TEST()
499 checkScalar(&buffer, fieldValue); in TEST()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java1396 String fieldValue = formatFieldGetter.apply(mTrackFormats.valueAt(i)); in buildMediaMetricsString() local
1397 stringBuilder.append(fieldValue != null ? fieldValue : ""); in buildMediaMetricsString()