Home
last modified time | relevance | path

Searched refs:mValue (Results 1 – 25 of 99) sorted by relevance

1234

/packages/modules/StatsD/statsd/tests/external/
Dpuller_util_test.cpp78 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
79 EXPECT_EQ(hostNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
80 EXPECT_EQ(isolatedAdditiveData + hostAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
105 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
106 EXPECT_EQ(hostNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
107 EXPECT_EQ(hostAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
111 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
112 EXPECT_EQ(isolatedNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
113 EXPECT_EQ(hostAdditiveData + isolatedAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
134 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java101 private Object mValue; field in ExifTag
134 mValue = null; in ExifTag()
222 return mValue != null; in hasValue()
254 mValue = data; in setValue()
293 mValue = value; in setValue()
345 mValue = finalBuf; in setValue()
376 mValue = value; in setValue()
418 mValue = new byte[length]; in setValue()
419 System.arraycopy(value, offset, mValue, 0, length); in setValue()
541 if (mValue == null) { in getValueAsString()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java101 private Object mValue; field in ExifTag
134 mValue = null; in ExifTag()
222 return mValue != null; in hasValue()
254 mValue = data; in setValue()
293 mValue = value; in setValue()
345 mValue = finalBuf; in setValue()
376 mValue = value; in setValue()
418 mValue = new byte[length]; in setValue()
419 System.arraycopy(value, offset, mValue, 0, length); in setValue()
541 if (mValue == null) { in getValueAsString()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java101 private Object mValue; field in ExifTag
134 mValue = null; in ExifTag()
222 return mValue != null; in hasValue()
254 mValue = data; in setValue()
293 mValue = value; in setValue()
345 mValue = finalBuf; in setValue()
376 mValue = value; in setValue()
418 mValue = new byte[length]; in setValue()
419 System.arraycopy(value, offset, mValue, 0, length); in setValue()
541 if (mValue == null) { in getValueAsString()
[all …]
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp87 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()
220 if ((values[i].mValue.getType() == INT && in matchesSimple()
221 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple()
222 (values[i].mValue.getType() == LONG && in matchesSimple()
223 (values[i].mValue.long_value != 0) == matcher.eq_bool())) { in matchesSimple()
266 if (values[i].mValue.getType() == INT && in matchesSimple()
267 (matcher.eq_int() == values[i].mValue.int_value)) { in matchesSimple()
271 if (values[i].mValue.getType() == LONG && in matchesSimple()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeyValueListParser.java223 private int mValue; field in KeyValueListParser.IntValue
229 mValue = mDefaultValue; in IntValue()
234 mValue = parser.getInt(mKey, mDefaultValue); in parse()
249 return mValue; in getValue()
254 mValue = value; in setValue()
262 pw.print(mValue); in dump()
271 private long mValue; field in KeyValueListParser.LongValue
277 mValue = mDefaultValue; in LongValue()
282 mValue = parser.getLong(mKey, mDefaultValue); in parse()
297 return mValue; in getValue()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp34 EXPECT_EQ(10ull, trieMap.getRoot(10).mValue); in TEST()
36 EXPECT_EQ(10ull, trieMap.getRoot(10).mValue); in TEST()
37 EXPECT_EQ(10ull, trieMap.getRoot(0x10A).mValue); in TEST()
39 EXPECT_EQ(1000ull, trieMap.getRoot(10).mValue); in TEST()
41 EXPECT_EQ(1000ull, trieMap.getRoot(11).mValue); in TEST()
43 EXPECT_EQ(1000ull, trieMap.getRoot(10).mValue); in TEST()
45 EXPECT_EQ(9ull, trieMap.get(9, next).mValue); in TEST()
48 EXPECT_EQ(0xFFFFFFFFFull, trieMap.getRoot(0).mValue); in TEST()
54 EXPECT_EQ(10ull, trieMap.getRoot(10).mValue); in TEST()
64 EXPECT_EQ(0x3FFFFFull, trieMap.getRoot(10).mValue); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/
DValueMetricProducer_test.cpp1685 EXPECT_EQ(1, iter->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1720 EXPECT_EQ(2, it->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1762 EXPECT_EQ(1, it->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1792 EXPECT_EQ(2, it2->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1870 EXPECT_EQ(1, iter->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1907 EXPECT_EQ(2, it->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
1921 EXPECT_EQ(2, it->first.getDimensionKeyInWhat().getValues()[0].mValue.int_value); in TEST()
4034 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4039 it->first.getStateValuesKey().getValues()[0].mValue.int_value); in TEST()
4056 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
[all …]
DGaugeMetricProducer_test.cpp156 EXPECT_EQ(INT, it->mValue.getType()); in TEST()
157 EXPECT_EQ(10, it->mValue.int_value); in TEST()
159 EXPECT_EQ(11, it->mValue.int_value); in TEST()
165 ->mValue.int_value); in TEST()
172 EXPECT_EQ(INT, it->mValue.getType()); in TEST()
173 EXPECT_EQ(24, it->mValue.int_value); in TEST()
175 EXPECT_EQ(INT, it->mValue.getType()); in TEST()
176 EXPECT_EQ(25, it->mValue.int_value); in TEST()
181 EXPECT_EQ(INT, it->mValue.getType()); in TEST()
182 EXPECT_EQ(10L, it->mValue.int_value); in TEST()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyValue.java48 private final T mValue; field in CarPropertyValue
103 mValue = value; in CarPropertyValue()
128 mValue = (T) new String(bytes, DEFAULT_CHARSET); in CarPropertyValue()
130 mValue = (T) in.readBlob(); in CarPropertyValue()
132 mValue = (T) in.readValue(valueClass.getClassLoader()); in CarPropertyValue()
160 Class<?> valueClass = mValue == null ? null : mValue.getClass(); in writeToParcel()
165 dest.writeBlob(((String) mValue).getBytes(DEFAULT_CHARSET)); in writeToParcel()
167 dest.writeBlob((byte[]) mValue); in writeToParcel()
169 dest.writeValue(mValue); in writeToParcel()
212 return mValue; in getValue()
[all …]
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp106 EXPECT_EQ(Type::INT, int32Item.mValue.getType()); in TEST()
107 EXPECT_EQ(10, int32Item.mValue.int_value); in TEST()
112 EXPECT_EQ(Type::LONG, int64Item.mValue.getType()); in TEST()
113 EXPECT_EQ(0x123456789, int64Item.mValue.long_value); in TEST()
118 EXPECT_EQ(Type::FLOAT, floatItem.mValue.getType()); in TEST()
119 EXPECT_EQ(2.0, floatItem.mValue.float_value); in TEST()
124 EXPECT_EQ(Type::INT, boolItem.mValue.getType()); // FieldValue does not support boolean type in TEST()
125 EXPECT_EQ(1, boolItem.mValue.int_value); in TEST()
155 EXPECT_EQ(Type::STRING, stringItem.mValue.getType()); in TEST()
156 EXPECT_EQ(str, stringItem.mValue.str_value); in TEST()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterBasicRepresentation.java30 private int mValue; field in FilterBasicRepresentation
47 return getName() + " : " + mMinimum + " < " + mValue + " < " + mMaximum; in toString()
84 && basic.mValue == mValue in equals()
104 return mValue; in getValue()
109 mValue = value; in setValue()
110 if (mValue < mMinimum) { in setValue()
111 mValue = mMinimum; in setValue()
113 if (mValue > mMaximum) { in setValue()
114 mValue = mMaximum; in setValue()
182 {SERIAL_VALUE , Integer.toString(mValue)}}; in serializeRepresentation()
[all …]
/packages/modules/StatsD/statsd/src/
Dstats_log_util.cpp123 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper()
126 dim.mValue.int_value); in writeDimensionToProtoHelper()
130 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper()
134 dim.mValue.float_value); in writeDimensionToProtoHelper()
139 dim.mValue.str_value); in writeDimensionToProtoHelper()
141 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper()
144 (long long)Hash64(dim.mValue.str_value)); in writeDimensionToProtoHelper()
190 switch (dim.mValue.getType()) { in writeDimensionLeafToProtoHelper()
193 dim.mValue.int_value); in writeDimensionLeafToProtoHelper()
197 (long long)dim.mValue.long_value); in writeDimensionLeafToProtoHelper()
[all …]
DHashableDimensionKey.cpp58 switch (dim.mValue.getType()) { in populateStatsDimensionsValueParcelChildren()
61 child.intValue = dim.mValue.int_value; in populateStatsDimensionsValueParcelChildren()
65 child.longValue = dim.mValue.long_value; in populateStatsDimensionsValueParcelChildren()
69 child.floatValue = dim.mValue.float_value; in populateStatsDimensionsValueParcelChildren()
73 child.stringValue = dim.mValue.str_value; in populateStatsDimensionsValueParcelChildren()
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()
[all …]
DFieldValue.h416 FieldValue(const Field& field, const Value& value) : mField(field), mValue(value) { in FieldValue()
419 return mField == that.mField && mValue == that.mValue;
422 return mField != that.mField || mValue != that.mValue;
429 if (mValue != that.mValue) {
430 return mValue < that.mValue;
437 Value mValue; member
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DDampedSpring.java34 private float mValue = 0f; field in DampedSpring
61 return mValue; in getValue()
68 mValue = value; in setValue()
110 return mValue; in update()
113 float delta = (mTarget - mValue); in update()
117 mValue += mVelocity * dts; in update()
125 return mValue; in update()
133 boolean atTarget = Math.abs(mTarget - mValue) < EPSILON; in isActive()
142 mTarget = mValue;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DParameterColor.java29 int mValue; field in ParameterColor
52 mValue = Color.HSVToColor((int) (hsvo[3] * 255), mHSVO); in setColor()
65 mValue = p.mValue; in copyFrom()
76 return "(" + Integer.toHexString(mValue) + ")"; in getValueString()
85 return mValue; in getValue()
89 mValue = value; in setValue()
90 Color.colorToHSV(mValue, mHSVO); in setValue()
91 mHSVO[3] = ((mValue >> 24) & 0xFF) / (float) 255; in setValue()
DBasicParameterInt.java27 protected int mValue; field in BasicParameterInt
41 mValue = p.mValue; in copyFrom()
46 mValue = value; in BasicParameterInt()
51 mValue = value; in BasicParameterInt()
68 return mParameterName + mValue; in getValueString()
93 return mValue; in getValue()
98 mValue = value; in setValue()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMultiValueAlpha.java36 return alphaProperty.mValue;
82 private float mValue = 1; field in MultiValueAlpha.AlphaProperty
91 if (mValue == value) { in setValue()
100 mOthers *= prop.mValue; in setValue()
108 mValue = value; in setValue()
110 mView.setAlpha(mOthers * mValue); in setValue()
117 return mValue; in getValue()
122 return Float.toString(mValue); in toString()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPaper.java110 private float mValue; field in EdgeAnimation
136 mValue = Utils.clamp(mValue + deltaDistance, -1.0f, 1.0f); in onPull()
142 startAnimation(mValue, 0, RELEASE_TIME, STATE_RELEASE); in onRelease()
146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR, in onAbsorb()
148 startAnimation(mValue, finish, ABSORB_TIME, STATE_ABSORB); in onAbsorb()
160 mValue = mValueStart + (mValueFinish - mValueStart) * interp; in update()
165 startAnimation(mValue, 0, RELEASE_TIME, STATE_RELEASE); in update()
177 return mValue; in getValue()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp239 return mValues[mValues.size() - 1].mValue.getType() == expected; in checkPreviousValueType()
448 if (value.mValue.getType() == LONG) { in GetLong()
449 return value.mValue.long_value; in GetLong()
450 } else if (value.mValue.getType() == INT) { in GetLong()
451 return value.mValue.int_value; in GetLong()
470 if (value.mValue.getType() == INT) { in GetInt()
471 return value.mValue.int_value; in GetInt()
490 if (value.mValue.getType() == STRING) { in GetString()
491 return value.mValue.str_value.c_str(); in GetString()
510 if (value.mValue.getType() == INT) { in GetBool()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DSimpleLruResourcePool.java92 private TValue mValue; field in SimpleLruResourcePool.SynchronizedResource
98 mValue = value; in SynchronizedResource()
107 if (mValue != null) { in get()
108 return mValue; in get()
117 if (mValue != null) { in close()
118 mPool.release(mKey, mValue); in close()
119 mValue = null; in close()
/packages/modules/GeoTZ/common/src/main/java/com/android/timezone/location/common/
DPiiLoggables.java72 private final V mValue; in fromPiiValue() field in PiiLoggables.PiiLoggableValueImpl
75 mValue = value; in fromPiiValue()
80 return mValue; in fromPiiValue()
85 return String.valueOf(mValue); in fromPiiValue()
90 return mValue == null ? NULL_STRING : REDACTED_STRING; in fromPiiValue()
102 return Objects.equals(mValue, that.mValue); in fromPiiValue()
107 return Objects.hash(mValue); in fromPiiValue()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java84 private V[] mValue = (V[]) new Object[CACHE_SIZE]; field in NinePatchTexture.SmallCache
91 V old = mValue[CACHE_SIZE - 1]; // remove the last item in put()
93 mValue[CACHE_SIZE - 1] = value; in put()
97 mValue[mCount] = value; in put()
114 V tmpValue = mValue[i]; in get()
115 mValue[i] = mValue[i - 1]; in get()
116 mValue[i - 1] = tmpValue; in get()
118 return mValue[i]; in get()
126 mValue[i] = null; // make sure it's can be garbage-collected. in clear()
136 return mValue[i]; in valueAt()
/packages/apps/TV/common/src/com/android/tv/common/
DBooleanSystemProperty.java39 private Boolean mValue = null; field in BooleanSystemProperty
83 mValue = null; in reset()
93 if (mValue == null) { in getValue()
94 mValue = getBoolean(mKey, mDefaultValue); in getValue()
95 if (DEBUG) Log.d(TAG, mKey + "=" + mValue); in getValue()
97 return mValue; in getValue()

1234