Home
last modified time | relevance | path

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

123456

/frameworks/base/cmds/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 …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java231 protected byte[] mValue; field in BluetoothGattCharacteristic
279 mValue = null; in initCharacteristic()
511 return mValue; in getValue()
528 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue()
532 return unsignedByteToInt(mValue[offset]); in getIntValue()
535 return unsignedBytesToInt(mValue[offset], mValue[offset + 1]); in getIntValue()
538 return unsignedBytesToInt(mValue[offset], mValue[offset + 1], in getIntValue()
539 mValue[offset + 2], mValue[offset + 3]); in getIntValue()
541 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue()
544 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue()
[all …]
/frameworks/base/packages/WallpaperCropper/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 …]
/frameworks/base/core/java/android/view/autofill/
DAutofillValue.java51 private final @NonNull Object mValue; field in AutofillValue
55 mValue = value; in AutofillValue()
67 return (CharSequence) mValue; in getTextValue()
88 return (Boolean) mValue; in getToggleValue()
109 return (Integer) mValue; in getListValue()
130 return (Long) mValue; in getDateValue()
150 return isText() && ((CharSequence) mValue).length() == 0; in isEmpty()
159 return mType + mValue.hashCode(); in hashCode()
172 return mValue.toString().equals(other.mValue.toString()); in equals()
174 return Objects.equals(mValue, other.mValue); in equals()
[all …]
/frameworks/base/core/java/android/content/integrity/
DAtomicFormula.java137 private final Long mValue; field in AtomicFormula.LongAtomicFormula
153 mValue = null; in LongAtomicFormula()
175 mValue = value; in LongAtomicFormula()
180 mValue = in.readLong(); in LongAtomicFormula()
205 if (mValue == null || mOperator == null) { in matches()
212 return metadataValue == mValue; in matches()
214 return metadataValue > mValue; in matches()
216 return metadataValue >= mValue; in matches()
235 if (mValue == null || mOperator == null) { in toString()
239 "(%s %s %s)", keyToString(getKey()), operatorToString(mOperator), mValue); in toString()
[all …]
/frameworks/base/core/java/android/util/
DKeyValueListParser.java222 private int mValue; field in KeyValueListParser.IntValue
228 mValue = mDefaultValue; in IntValue()
233 mValue = parser.getInt(mKey, mDefaultValue); in parse()
248 return mValue; in getValue()
253 mValue = value; in setValue()
261 pw.print(mValue); in dump()
267 proto.write(tag, mValue); in dumpProto()
275 private long mValue; field in KeyValueListParser.LongValue
281 mValue = mDefaultValue; in LongValue()
286 mValue = parser.getLong(mKey, mDefaultValue); in parse()
[all …]
DHalf.java153 private final @HalfFloat short mValue; field in Half
162 mValue = value; in Half()
174 mValue = toHalf(value); in Half()
186 mValue = toHalf((float) value); in Half()
207 mValue = toHalf(Float.parseFloat(value)); in Half()
217 return mValue; in halfValue()
229 return (byte) toFloat(mValue); in byteValue()
241 return (short) toFloat(mValue); in shortValue()
253 return (int) toFloat(mValue); in intValue()
265 return (long) toFloat(mValue); in longValue()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp86 int uid = fieldValue.mValue.int_value; in tryMatchString()
93 } else if (fieldValue.mValue.getType() == STRING) { in tryMatchString()
94 return fieldValue.mValue.str_value == str_match; in tryMatchString()
219 if ((values[i].mValue.getType() == INT && in matchesSimple()
220 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple()
221 (values[i].mValue.getType() == LONG && in matchesSimple()
222 (values[i].mValue.long_value != 0) == matcher.eq_bool())) { in matchesSimple()
265 if (values[i].mValue.getType() == INT && in matchesSimple()
266 (matcher.eq_int() == values[i].mValue.int_value)) { in matchesSimple()
270 if (values[i].mValue.getType() == LONG && in matchesSimple()
[all …]
/frameworks/av/media/libmedia/include/media/
DModulo.h86 T mValue; variable
93 Modulo(const T &value) { mValue = value; } // NOLINT in Modulo()
94 const T & value() const { return mValue; } // not assignable in value()
95 signedT signedValue() const { return mValue; } in signedValue()
96 unsignedT unsignedValue() const { return mValue; } in unsignedValue()
97 void getValue(T *value) const { *value = mValue; } // more type safe than value() in getValue()
104 mValue += other.unsignedValue();
112 mValue -= other.unsignedValue();
122 return Modulo<T>(mValue + other.unsignedValue());
129 return Modulo<T>(mValue - other.unsignedValue());
[all …]
/frameworks/base/core/java/android/animation/
DKeyframe.java267 Object mValue; field in Keyframe.ObjectKeyframe
271 mValue = value; in ObjectKeyframe()
277 return mValue; in getValue()
281 mValue = value; in setValue()
287 ObjectKeyframe kfClone = new ObjectKeyframe(getFraction(), hasValue() ? mValue : null); in clone()
302 int mValue; field in Keyframe.IntKeyframe
306 mValue = value; in IntKeyframe()
317 return mValue; in getIntValue()
321 return mValue; in getValue()
326 mValue = ((Integer)value).intValue(); in setValue()
[all …]
/frameworks/opt/net/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 …]
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java47 private int mValue; field in NumericTextView
73 mPreviousValue = mValue; in onFocusChanged()
74 mValue = 0; in onFocusChanged()
83 mValue = mPreviousValue; in onFocusChanged()
90 if (mValue < mMinValue) { in onFocusChanged()
91 mValue = mMinValue; in onFocusChanged()
94 setValue(mValue); in onFocusChanged()
97 mListener.onValueChanged(this, mValue, true, true); in onFocusChanged()
112 if (mValue != value) { in setValue()
113 mValue = value; in setValue()
[all …]
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureSessionId.java30 private final @NonNull int mValue; field in ContentCaptureSessionId
40 mValue = value; in ContentCaptureSessionId()
47 return mValue; in getValue()
54 result = prime * result + mValue; in hashCode()
64 if (mValue != other.mValue) return false; in equals()
76 return Integer.toString(mValue); in toString()
83 pw.print(mValue); in dump()
93 parcel.writeInt(mValue); in writeToParcel()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/shadows/
DDataEntity.java28 public final byte[] mValue; field in DataEntity
37 this.mValue = value.getBytes(StandardCharsets.UTF_8); in DataEntity()
38 mSize = this.mValue.length; in DataEntity()
48 mValue = null; in DataEntity()
66 mValue = new byte[size]; in DataEntity()
68 mValue[i] = data[i]; in DataEntity()
89 return Arrays.equals(mValue, that.mValue); in equals()
95 result = 31 * result + Arrays.hashCode(mValue); in hashCode()
/frameworks/base/core/java/android/os/
DTimestampedValue.java41 private final T mValue; field in TimestampedValue
45 mValue = value; in TimestampedValue()
59 return mValue; in getValue()
72 && Objects.equals(mValue, that.mValue); in equals()
77 return Objects.hash(mReferenceTimeMillis, mValue); in hashCode()
84 + ", mValue=" + mValue in toString()
127 dest.writeValue(mValue); in writeToParcel()
DCoolingDevice.java40 private final long mValue; field in CoolingDevice
85 mValue = value; in CoolingDevice()
96 return mValue; in getValue()
119 return "CoolingDevice{mValue=" + mValue + ", mType=" + mType + ", mName=" + mName + "}"; in toString()
125 hash = 31 * hash + Long.hashCode(mValue); in hashCode()
136 return other.mValue == mValue && other.mType == mType && other.mName.equals(mName); in equals()
141 p.writeLong(mValue); in writeToParcel()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassificationSessionId.java34 private final String mValue; field in TextClassificationSessionId
55 mValue = Objects.requireNonNull(value); in TextClassificationSessionId()
70 return Objects.equals(mValue, that.mValue) && Objects.equals(mToken, that.mToken); in equals()
75 return Objects.hash(mValue, mToken); in hashCode()
80 return String.format(Locale.US, "TextClassificationSessionId {%s}", mValue); in toString()
85 parcel.writeString(mValue); in writeToParcel()
99 return mValue; in getValue()
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp34 mValue.mUsage = usage; in AudioMixMatchCriterion()
36 mValue.mSource = source; in AudioMixMatchCriterion()
46 mValue.mUsage = (audio_usage_t) parcel->readInt32(); in readFromParcel()
50 mValue.mSource = (audio_source_t) parcel->readInt32(); in readFromParcel()
54 mValue.mUid = (uid_t) parcel->readInt32(); in readFromParcel()
58 mValue.mUserId = (int) parcel->readInt32(); in readFromParcel()
70 parcel->writeInt32(mValue.mUsage); in writeToParcel()
141 crit.mValue.mUid = uid; in setExcludeUid()
148 crit.mValue.mUid = uid; in setMatchUid()
156 && mCriteria[i].mValue.mUid == uid) { in hasUidRule()
[all …]
/frameworks/base/cmds/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 …]
/frameworks/base/core/java/android/print/
DPrintJobId.java31 private final @NonNull String mValue; field in PrintJobId
50 mValue = value; in PrintJobId()
57 result = prime * result + mValue.hashCode(); in hashCode()
73 if (!mValue.equals(other.mValue)) { in equals()
81 parcel.writeString(mValue); in writeToParcel()
97 return mValue; in flattenToString()
/frameworks/base/services/backup/java/com/android/server/backup/remote/
DRemoteResult.java46 private final long mValue; field in RemoteResult
50 mValue = value; in RemoteResult()
64 return mValue; in get()
75 return Long.toString(mValue); in toStringDescription()
96 return mType == that.mType && mValue == that.mValue; in equals()
101 return Objects.hash(mType, mValue); in hashCode()
/frameworks/base/core/java/android/text/
DAnnotation.java28 private final String mValue; field in Annotation
32 mValue = value; in Annotation()
37 mValue = src.readString(); in Annotation()
60 dest.writeString(mValue); in writeToParcelInternal()
68 return mValue; in getValue()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioExampleUtils.h162 WakeUp() : mValue(0) {} in WakeUp()
163 explicit WakeUp(int32_t value) : mValue(value) {} in WakeUp()
178 return futex_wait(&mValue, value, &time); in wait()
187 ++mValue; in wake()
188 return futex_wake(&mValue, INT_MAX); in wake()
197 mValue.store(value); in wake()
198 return futex_wake(&mValue, INT_MAX); in wake()
202 return mValue.load(); in get()
206 std::atomic<int32_t> mValue;
/frameworks/rs/script_api/
DScanner.cpp70 mValue.clear(); in getNextEntry()
83 readRestOfLine(&mValue); in getNextEntry()
90 readRestOfLine(&mValue); in getNextEntry()
91 trimSpaces(&mValue); in getNextEntry()
111 if (!mValue.empty()) { in skipBlankEntries()
112 error() << "Unexpected: \" " << mValue << "\".\n"; in skipBlankEntries()
143 if (!mValue.empty()) { in checkNoValue()
144 error() << "Did not expect \"" << mValue << "\" after \"" << mTag << "\".\n"; in checkNoValue()
164 string s = mValue; in parseArgString()
/frameworks/base/cmds/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 …]

123456