Home
last modified time | relevance | path

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

12345

/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/cmds/statsd/tests/
DLogEvent_test.cpp59 EXPECT_EQ(Type::INT, item0.mValue.getType()); in TEST()
60 EXPECT_EQ(1000, item0.mValue.int_value); in TEST()
64 EXPECT_EQ(Type::STRING, item1.mValue.getType()); in TEST()
65 EXPECT_EQ("tag1", item1.mValue.str_value); in TEST()
69 EXPECT_EQ(Type::INT, item2.mValue.getType()); in TEST()
70 EXPECT_EQ(2000, item2.mValue.int_value); in TEST()
74 EXPECT_EQ(Type::STRING, item3.mValue.getType()); in TEST()
75 EXPECT_EQ("tag2", item3.mValue.str_value); in TEST()
79 EXPECT_EQ(Type::STRING, item4.mValue.getType()); in TEST()
80 EXPECT_EQ("hello", item4.mValue.str_value); in TEST()
[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/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 …]
DTimestampedValue.java42 private final T mValue; field in TimestampedValue
46 mValue = value; in TimestampedValue()
54 return mValue; in getValue()
67 && Objects.equals(mValue, that.mValue); in equals()
72 return Objects.hash(mReferenceTimeMillis, mValue); in hashCode()
79 + ", mValue=" + mValue in toString()
127 dest.writeValue(timestampedValue.mValue); in writeToParcel()
DHalf.java170 private final @HalfFloat short mValue; field in Half
179 mValue = value; in Half()
191 mValue = toHalf(value); in Half()
203 mValue = toHalf((float) value); in Half()
224 mValue = toHalf(Float.parseFloat(value)); in Half()
234 return mValue; in halfValue()
246 return (byte) toFloat(mValue); in byteValue()
258 return (short) toFloat(mValue); in shortValue()
270 return (int) toFloat(mValue); in intValue()
282 return (long) toFloat(mValue); in longValue()
[all …]
/frameworks/av/include/media/
DModulo.h86 T mValue; variable
93 Modulo(const T &value) { mValue = value; } 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/av/media/libmedia/include/media/
DModulo.h86 T mValue; variable
93 Modulo(const T &value) { mValue = value; } 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/cmds/statsd/src/matchers/
Dmatcher_util.cpp221 if ((values[i].mValue.getType() == INT && in matchesSimple()
222 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple()
223 (values[i].mValue.getType() == LONG && in matchesSimple()
224 (values[i].mValue.long_value != 0) == matcher.eq_bool())) { in matchesSimple()
232 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, in matchesSimple()
244 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, str)) { in matchesSimple()
259 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, str)) { in matchesSimple()
268 if (values[i].mValue.getType() == INT && in matchesSimple()
269 (matcher.eq_int() == values[i].mValue.int_value)) { in matchesSimple()
273 if (values[i].mValue.getType() == LONG && in matchesSimple()
[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/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/av/media/libmedia/
DMediaResource.cpp27 mValue(0) {} in MediaResource()
32 mValue(value) {} in MediaResource()
37 mValue(value) {} in MediaResource()
42 mValue = parcel.readUint64(); in readFromParcel()
48 parcel->writeUint64(mValue); in writeToParcel()
53 str.appendFormat("%s/%s:%llu", asString(mType), asString(mSubType), (unsigned long long)mValue); in toString()
58 return (other.mType == mType) && (other.mSubType == mSubType) && (other.mValue == mValue); in operator ==()
DMediaResourcePolicy.cpp31 mValue(value) {} in MediaResourcePolicy()
35 mValue = parcel.readString8(); in readFromParcel()
40 parcel->writeString8(mValue); in writeToParcel()
45 str.appendFormat("%s:%s", mType.string(), mValue.string()); in toString()
/frameworks/base/cmds/statsd/tests/external/
DGpuStatsPuller_test.cpp118 EXPECT_EQ(DRIVER_PACKAGE_NAME, outData[0]->getValues()[0].mValue.str_value); in TEST_F()
119 EXPECT_EQ(DRIVER_VERSION_NAME, outData[0]->getValues()[1].mValue.str_value); in TEST_F()
120 EXPECT_EQ(DRIVER_VERSION_CODE, outData[0]->getValues()[2].mValue.long_value); in TEST_F()
121 EXPECT_EQ(DRIVER_BUILD_TIME, outData[0]->getValues()[3].mValue.long_value); in TEST_F()
122 EXPECT_EQ(GL_LOADING_COUNT, outData[0]->getValues()[4].mValue.long_value); in TEST_F()
123 EXPECT_EQ(GL_LOADING_FAILURE_COUNT, outData[0]->getValues()[5].mValue.long_value); in TEST_F()
124 EXPECT_EQ(VK_LOADING_COUNT, outData[0]->getValues()[6].mValue.long_value); in TEST_F()
125 EXPECT_EQ(VK_LOADING_FAILURE_COUNT, outData[0]->getValues()[7].mValue.long_value); in TEST_F()
126 EXPECT_EQ(VULKAN_VERSION, outData[0]->getValues()[8].mValue.int_value); in TEST_F()
127 EXPECT_EQ(CPU_VULKAN_VERSION, outData[0]->getValues()[9].mValue.int_value); in TEST_F()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DTextClassificationSessionId.java32 private final @NonNull String mValue; field in TextClassificationSessionId
51 mValue = value; in TextClassificationSessionId()
58 result = prime * result + mValue.hashCode(); in hashCode()
74 if (!mValue.equals(other.mValue)) { in equals()
82 return String.format(Locale.US, "TextClassificationSessionId {%s}", mValue); in toString()
87 parcel.writeString(mValue); in writeToParcel()
103 return mValue; in flattenToString()
/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/os/
DStatsDimensionsValue.java85 private final Object mValue; // immutable or array of immutables field in StatsDimensionsValue
95 mValue = readValueFromParcel(mValueType, in); in StatsDimensionsValue()
115 if (mValueType == STRING_VALUE_TYPE) return (String) mValue; in getStringValue()
129 if (mValueType == INT_VALUE_TYPE) return (Integer) mValue; in getIntValue()
143 if (mValueType == LONG_VALUE_TYPE) return (Long) mValue; in getLongValue()
158 if (mValueType == BOOLEAN_VALUE_TYPE) return (Boolean) mValue; in getBooleanValue()
172 if (mValueType == FLOAT_VALUE_TYPE) return (Float) mValue; in getFloatValue()
192 StatsDimensionsValue[] orig = (StatsDimensionsValue[]) mValue; in getTupleValueList()
248 StatsDimensionsValue[] sbvs = (StatsDimensionsValue[]) mValue; in toString()
255 sb.append(mValue.toString()); in toString()
[all …]
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/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.cpp110 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper()
113 dim.mValue.int_value); in writeDimensionToProtoHelper()
117 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper()
121 dim.mValue.float_value); in writeDimensionToProtoHelper()
126 dim.mValue.str_value); in writeDimensionToProtoHelper()
128 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper()
131 (long long)Hash64(dim.mValue.str_value)); in writeDimensionToProtoHelper()
177 switch (dim.mValue.getType()) { in writeDimensionLeafToProtoHelper()
180 dim.mValue.int_value); in writeDimensionLeafToProtoHelper()
184 (long long)dim.mValue.long_value); in writeDimensionLeafToProtoHelper()
[all …]

12345