/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 231 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/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 59 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/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 101 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/ |
D | AutofillValue.java | 51 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/ |
D | KeyValueListParser.java | 222 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 …]
|
D | Half.java | 153 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/ |
D | matcher_util.cpp | 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() 231 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, in matchesSimple() 243 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, str)) { in matchesSimple() 258 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, str)) { in matchesSimple() 267 if (values[i].mValue.getType() == INT && in matchesSimple() 268 (matcher.eq_int() == values[i].mValue.int_value)) { in matchesSimple() 272 if (values[i].mValue.getType() == LONG && in matchesSimple() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | Modulo.h | 86 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/core/java/android/animation/ |
D | Keyframe.java | 267 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/ |
D | NumericTextView.java | 47 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/ |
D | ContentCaptureSessionId.java | 30 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/cmds/statsd/tests/external/ |
D | GpuStatsPuller_test.cpp | 119 EXPECT_EQ(DRIVER_PACKAGE_NAME, outData[0]->getValues()[0].mValue.str_value); in TEST_F() 120 EXPECT_EQ(DRIVER_VERSION_NAME, outData[0]->getValues()[1].mValue.str_value); in TEST_F() 121 EXPECT_EQ(DRIVER_VERSION_CODE, outData[0]->getValues()[2].mValue.long_value); in TEST_F() 122 EXPECT_EQ(DRIVER_BUILD_TIME, outData[0]->getValues()[3].mValue.long_value); in TEST_F() 123 EXPECT_EQ(GL_LOADING_COUNT, outData[0]->getValues()[4].mValue.long_value); in TEST_F() 124 EXPECT_EQ(GL_LOADING_FAILURE_COUNT, outData[0]->getValues()[5].mValue.long_value); in TEST_F() 125 EXPECT_EQ(VK_LOADING_COUNT, outData[0]->getValues()[6].mValue.long_value); in TEST_F() 126 EXPECT_EQ(VK_LOADING_FAILURE_COUNT, outData[0]->getValues()[7].mValue.long_value); in TEST_F() 127 EXPECT_EQ(VULKAN_VERSION, outData[0]->getValues()[8].mValue.int_value); in TEST_F() 128 EXPECT_EQ(CPU_VULKAN_VERSION, outData[0]->getValues()[9].mValue.int_value); in TEST_F() [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaResource.cpp | 29 mValue(0) {} in MediaResource() 34 mValue(value) {} in MediaResource() 39 mValue(value) {} in MediaResource() 44 mValue(value), in MediaResource() 50 mValue = parcel.readUint64(); in readFromParcel() 57 parcel->writeUint64(mValue); in writeToParcel() 74 (unsigned long long)mValue); in toString() 81 && (other.mValue == mValue) in operator ==()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassificationSessionId.java | 32 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/os/ |
D | TimestampedValue.java | 41 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()
|
D | StatsDimensionsValue.java | 85 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 …]
|
D | CoolingDevice.java | 40 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/print/ |
D | PrintJobId.java | 31 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/ |
D | RemoteResult.java | 46 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/av/media/libaaudio/examples/utils/ |
D | AAudioExampleUtils.h | 162 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/ |
D | Scanner.cpp | 70 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/core/java/android/text/ |
D | Annotation.java | 28 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/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 106 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper() 109 dim.mValue.int_value); in writeDimensionToProtoHelper() 113 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper() 117 dim.mValue.float_value); in writeDimensionToProtoHelper() 122 dim.mValue.str_value); in writeDimensionToProtoHelper() 124 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper() 127 (long long)Hash64(dim.mValue.str_value)); in writeDimensionToProtoHelper() 173 switch (dim.mValue.getType()) { in writeDimensionLeafToProtoHelper() 176 dim.mValue.int_value); in writeDimensionLeafToProtoHelper() 180 (long long)dim.mValue.long_value); in writeDimensionLeafToProtoHelper() [all …]
|
/frameworks/av/media/libaudioclient/ |
D | AudioPolicy.cpp | 34 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() 66 parcel->writeInt32(mValue.mUsage); in writeToParcel() 135 crit.mValue.mUid = uid; in setExcludeUid() 142 crit.mValue.mUid = uid; in setMatchUid() 150 && mCriteria[i].mValue.mUid == uid) { in hasUidRule()
|
/frameworks/av/media/codec2/core/include/ |
D | C2.h | 208 return T(value.mValue); in get() 239 T mValue; variable 249 inline constexpr c2_cntr_t() : mValue(T(0)) {} in c2_cntr_t() 255 inline constexpr c2_cntr_t(const U &value) : mValue(compat::get(value)) {} in c2_cntr_t() 262 return static_cast<typename std::make_signed<T>::type>(mValue); in peek() 269 return mValue; in peeku() 277 return (long long)mValue; in peekll() 285 return (unsigned long long)mValue; in peekull() 293 return c2_cntr_t<U>(mValue); 303 mValue op_assign compat::get(value); \ [all …]
|