/frameworks/base/media/mca/filterfw/native/core/ |
D | value.cpp | 34 POD GetPODValue(Value value) { in GetPODValue() argument 35 return value.type == TYPEID ? *reinterpret_cast<POD*>(value.value) : POD(); in GetPODValue() 39 PTR GetPtrValue(Value value) { in GetPtrValue() argument 40 return value.type == TYPEID ? reinterpret_cast<PTR>(value.value) : NULL; in GetPtrValue() 44 Value MakePODValue(POD value) { in MakePODValue() argument 47 result.value = malloc(sizeof(POD)); in MakePODValue() 49 *reinterpret_cast<POD*>(result.value) = value; in MakePODValue() 57 result.value = malloc(sizeof(BASE) * count); in MakePtrValue() 58 memcpy(result.value, values, sizeof(BASE) * count); in MakePtrValue() 64 int SetPODValue(Value* value, POD new_value) { in SetPODValue() argument [all …]
|
D | value.h | 29 void* value; member 35 int GetIntValue(Value value); 36 float GetFloatValue(Value value); 37 const char* GetStringValue(Value value); 38 const char* GetBufferValue(Value value); 39 char* GetMutableBufferValue(Value value); 40 int* GetIntArrayValue(Value value); 41 float* GetFloatArrayValue(Value value); 44 int ValueIsNull(Value value); 45 int ValueIsInt(Value value); [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentValues.java | 95 public void put(String key, String value) { in put() argument 96 mValues.put(key, value); in put() 114 public void put(String key, Byte value) { in put() argument 115 mValues.put(key, value); in put() 124 public void put(String key, Short value) { in put() argument 125 mValues.put(key, value); in put() 134 public void put(String key, Integer value) { in put() argument 135 mValues.put(key, value); in put() 144 public void put(String key, Long value) { in put() argument 145 mValues.put(key, value); in put() [all …]
|
/frameworks/av/media/libstagefright/foundation/tests/ |
D | TypeTraits_test.cpp | 38 static_assert(!std::is_integral<A>::value, "enums should not be integral"); in TEST_F() 39 static_assert(!std::is_integral<UA>::value, "enums should not be integral"); in TEST_F() 40 static_assert(!std::is_integral<IA>::value, "enums should not be integral"); in TEST_F() 41 static_assert(is_integral_or_enum<A>::value, "enums should be integral_or_enum"); in TEST_F() 42 static_assert(is_integral_or_enum<UA>::value, "enums should be integral_or_enum"); in TEST_F() 43 static_assert(is_integral_or_enum<IA>::value, "enums should be integral_or_enum"); in TEST_F() 44 static_assert(is_integral_or_enum<int>::value, "ints should be integral_or_enum"); in TEST_F() 45 static_assert(is_integral_or_enum<unsigned>::value, "unsigned ints should be integral_or_enum"); in TEST_F() 46 static_assert(!is_integral_or_enum<float>::value, "floats should not be integral_or_enum"); in TEST_F() 50 static_assert(!std::is_unsigned<UA>::value, in TEST_F() [all …]
|
/frameworks/rs/script_api/ |
D | rs_object_types.spec | 90 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X = 0 91 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_X = 1 92 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Y = 2 93 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Y = 3 94 value: RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Z = 4 95 value: RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Z = 5 104 value: RS_ALLOCATION_USAGE_SCRIPT = 0x0001, "Allocation is bound to and accessed by scripts." 105 value: RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE = 0x0002, "Allocation is used as a texture source." 106 value: RS_ALLOCATION_USAGE_GRAPHICS_VERTEX = 0x0004, "Deprecated." 107 value: RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS = 0x0008, "Deprecated." [all …]
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduHeaders.java | 358 protected void setOctet(int value, int field) in setOctet() argument 376 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet() 382 if ((READ_STATUS_READ != value) && in setOctet() 383 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet() 389 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet() 390 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet() 396 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet() 402 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet() 408 if ((value < REPLY_CHARGING_REQUESTED) in setOctet() 409 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet() [all …]
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 70 Res_value value; in ResolveAttrs() local 77 Res_value value; in ResolveAttrs() local 78 if (theme->getAttribute(def_style_attr, &value, &def_style_bag_type_set_flags) >= 0) { in ResolveAttrs() 79 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs() 80 def_style_res = value.data; in ResolveAttrs() 112 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs() 113 value.data = Res_value::DATA_NULL_UNDEFINED; in ResolveAttrs() 122 value.dataType = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs() 123 value.data = src_values[ii]; in ResolveAttrs() 125 ALOGI("-> From values: type=0x%x, data=0x%08x", value.dataType, in ResolveAttrs() [all …]
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | Preconditions.java | 168 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() argument 170 if (value < 0) { in checkArgumentNonnegative() 174 return value; in checkArgumentNonnegative() 185 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() argument 186 if (value < 0) { in checkArgumentNonnegative() 190 return value; in checkArgumentNonnegative() 200 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() argument 201 if (value < 0) { in checkArgumentNonnegative() 205 return value; in checkArgumentNonnegative() 216 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TypedProperties.java | 203 final Object value = parseValue(st, type); in parse() local 208 if (value.getClass() != oldValue.getClass()) { in parse() 213 map.put(propertyName, value); in parse() 257 long value; in parseValue() local 259 value = Long.decode(st.sval); in parseValue() 268 if (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE) { in parseValue() 271 return new Byte((byte)value); in parseValue() 273 if (value < Short.MIN_VALUE || value > Short.MAX_VALUE) { in parseValue() 276 return new Short((short)value); in parseValue() 278 if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) { in parseValue() [all …]
|
D | Preconditions.java | 202 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() argument 204 if (value < 0) { in checkArgumentNonnegative() 208 return value; in checkArgumentNonnegative() 219 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() argument 220 if (value < 0) { in checkArgumentNonnegative() 224 return value; in checkArgumentNonnegative() 234 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() argument 235 if (value < 0) { in checkArgumentNonnegative() 239 return value; in checkArgumentNonnegative() 250 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument [all …]
|
/frameworks/base/tools/aapt2/ |
D | ValueVisitor.h | 32 virtual void VisitAny(Value* value) {} in VisitAny() 33 virtual void VisitItem(Item* value) { VisitAny(value); } in VisitItem() 34 virtual void Visit(Reference* value) { VisitItem(value); } in Visit() 35 virtual void Visit(RawString* value) { VisitItem(value); } in Visit() 36 virtual void Visit(String* value) { VisitItem(value); } in Visit() 37 virtual void Visit(StyledString* value) { VisitItem(value); } in Visit() 38 virtual void Visit(FileReference* value) { VisitItem(value); } in Visit() 39 virtual void Visit(Id* value) { VisitItem(value); } in Visit() 40 virtual void Visit(BinaryPrimitive* value) { VisitItem(value); } in Visit() 42 virtual void Visit(Attribute* value) { VisitAny(value); } in Visit() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_cavlc.c | 324 #define BUFFER_INIT(value, bits) \ argument 327 (value) = h264bsdShowBits32(pStrmData); \ 332 #define BUFFER_SHOW(value, bits, outVal, numBits) \ argument 338 (value) = h264bsdShowBits32(pStrmData); \ 341 (outVal) = (value) >> (32 - (numBits)); \ 345 #define BUFFER_FLUSH(value, bits, numBits) \ argument 347 (value) <<= (numBits); \ 353 #define BUFFER_GET(value, bits, outVal, numBits) \ argument 359 (value) = h264bsdShowBits32(pStrmData); \ 362 (outVal) = (value) >> (32 - (numBits)); \ [all …]
|
/frameworks/base/media/java/android/mtp/ |
D | MtpObjectInfo.java | 393 public Builder setObjectHandle(int value) { in setObjectHandle() argument 394 mObjectInfo.mHandle = value; in setObjectHandle() 398 public Builder setAssociationDesc(int value) { in setAssociationDesc() argument 399 mObjectInfo.mAssociationDesc = value; in setAssociationDesc() 403 public Builder setAssociationType(int value) { in setAssociationType() argument 404 mObjectInfo.mAssociationType = value; in setAssociationType() 408 public Builder setCompressedSize(long value) { in setCompressedSize() argument 409 mObjectInfo.mCompressedSize = longToUint32(value, "value"); in setCompressedSize() 413 public Builder setDateCreated(long value) { in setDateCreated() argument 414 mObjectInfo.mDateCreated = value; in setDateCreated() [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | BinaryOp.cpp | 30 res->setValue(m_pOperand[0]->value() * m_pOperand[1]->value()); in eval() 38 res->setValue(m_pOperand[0]->value() / m_pOperand[1]->value()); in eval() 46 res->setValue(m_pOperand[0]->value() % m_pOperand[1]->value()); in eval() 54 res->setValue(m_pOperand[0]->value() + m_pOperand[1]->value()); in eval() 62 res->setValue(m_pOperand[0]->value() - m_pOperand[1]->value()); in eval() 70 res->setValue(m_pOperand[0]->value() << m_pOperand[1]->value()); in eval() 78 res->setValue(m_pOperand[0]->value() >> m_pOperand[1]->value()); in eval() 86 res->setValue(m_pOperand[0]->value() < m_pOperand[1]->value()); in eval() 94 res->setValue(m_pOperand[0]->value() <= m_pOperand[1]->value()); in eval() 102 res->setValue(m_pOperand[0]->value() > m_pOperand[1]->value()); in eval() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 74 bool MtpDataPacket::getUInt8(uint8_t& value) { in getUInt8() argument 75 if (mPacketSize - mOffset < sizeof(value)) in getUInt8() 77 value = mBuffer[mOffset++]; in getUInt8() 81 bool MtpDataPacket::getUInt16(uint16_t& value) { in getUInt16() argument 82 if (mPacketSize - mOffset < sizeof(value)) in getUInt16() 85 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); in getUInt16() 86 mOffset += sizeof(value); in getUInt16() 90 bool MtpDataPacket::getUInt32(uint32_t& value) { in getUInt32() argument 91 if (mPacketSize - mOffset < sizeof(value)) in getUInt32() 94 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | in getUInt32() [all …]
|
D | MtpDataPacket.h | 47 bool getUInt8(uint8_t& value); 48 inline bool getInt8(int8_t& value) { return getUInt8((uint8_t&)value); } in getInt8() argument 49 bool getUInt16(uint16_t& value); 50 inline bool getInt16(int16_t& value) { return getUInt16((uint16_t&)value); } in getInt16() argument 51 bool getUInt32(uint32_t& value); 52 inline bool getInt32(int32_t& value) { return getUInt32((uint32_t&)value); } in getInt32() argument 53 bool getUInt64(uint64_t& value); 54 inline bool getInt64(int64_t& value) { return getUInt64((uint64_t&)value); } in getInt64() argument 55 bool getUInt128(uint128_t& value); 56 inline bool getInt128(int128_t& value) { return getUInt128((uint128_t&)value); } in getInt128() argument [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | encoding.h | 446 inline constexpr EncodingType EncodeType(const StringWrapper<T>& value) { in EncodeType() argument 447 return EncodeStringType(value.length()); in EncodeType() 450 inline constexpr EncodingType EncodeType(const std::string& value) { in EncodeType() argument 451 return EncodeStringType(value.length()); in EncodeType() 460 inline constexpr EncodingType EncodeType(const ArrayWrapper<T>& value) { in EncodeType() argument 461 return EncodeArrayType(value.size()); in EncodeType() 466 const std::vector<T, Allocator>& value) { in EncodeType() argument 467 return EncodeArrayType(value.size()); in EncodeType() 472 const std::map<Key, T, Compare, Allocator>& value) { in EncodeType() argument 473 return EncodeMapType(value.size()); in EncodeType() [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderValueTypeTest.cpp | 41 Value value = VAL; \ 42 ASSERT_FALSE(value.empty()); \ 43 ASSERT_TRUE(value.is ## TYPENAME ()); \ 44 ASSERT_TRUE(value.get ## TYPENAME (&y)); \ 46 ASSERT_EQ(value, Value(y)); \ 47 value.put ## TYPENAME (x); \ 48 ASSERT_EQ(value, Value(y)); \ 49 value = Value(); \ 50 ASSERT_TRUE(value.empty()); \ 51 ASSERT_NE(value, Value(y)); \ [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 71 String value = null; in validateMetatData() local 82 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER); in validateMetatData() 83 Log.v(TAG, "CD_TRACK_NUMBER : " + value); in validateMetatData() 84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData() 86 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM); in validateMetatData() 87 Log.v(TAG, "Album : "+ value); in validateMetatData() 88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData() 90 value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST); in validateMetatData() 91 Log.v(TAG, "Artist : "+ value); in validateMetatData() 92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Value.h | 76 Value(const Value& value); 77 Value(const bool& value); 78 Value(const int8_t& value); 79 Value(const int32_t& value); 80 Value(const int64_t& value); 81 Value(const double& value); 82 Value(const String16& value); 83 Value(const std::vector<bool>& value); 84 Value(const std::vector<uint8_t>& value); 85 Value(const std::vector<int32_t>& value); [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Float4.java | 68 public void add(Float4 value) { in add() argument 69 x += value.x; in add() 70 y += value.y; in add() 71 z += value.z; in add() 72 w += value.w; in add() 80 public void add(float value) { in add() argument 81 x += value; in add() 82 y += value; in add() 83 z += value; in add() 84 w += value; in add() [all …]
|
D | Double4.java | 68 public void add(Double4 value) { in add() argument 69 x += value.x; in add() 70 y += value.y; in add() 71 z += value.z; in add() 72 w += value.w; in add() 80 public void add(double value) { in add() argument 81 x += value; in add() 82 y += value; in add() 83 z += value; in add() 84 w += value; in add() [all …]
|
D | Double3.java | 64 public void add(Double3 value) { in add() argument 65 x += value.x; in add() 66 y += value.y; in add() 67 z += value.z; in add() 75 public void add(double value) { in add() argument 76 x += value; in add() 77 y += value; in add() 78 z += value; in add() 102 public void sub(Double3 value) { in sub() argument 103 x -= value.x; in sub() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LongSparseLongArrayTest.java | 35 final long value = 1 << i; in testSimplePut() local 36 array.put(value, value); in testSimplePut() 39 final long value = 1 << i; in testSimplePut() local 40 assertEquals(value, array.get(value, -1)); in testSimplePut() 41 assertEquals(-1, array.get(-value, -1)); in testSimplePut() 48 final long value = 1 << i; in testSimplePutBackwards() local 49 array.put(value, value); in testSimplePutBackwards() 52 final long value = 1 << i; in testSimplePutBackwards() local 53 assertEquals(value, array.get(value, -1)); in testSimplePutBackwards() 54 assertEquals(-1, array.get(-value, -1)); in testSimplePutBackwards() [all …]
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 230 public RowBuilder add(String columnName, Object value) { in add() argument 233 data[(row * columnCount) + i] = value; in add() 254 Object value = get(column); in getString() local 255 if (value == null) return null; in getString() 256 return value.toString(); in getString() 261 Object value = get(column); in getShort() local 262 if (value == null) return 0; in getShort() 263 if (value instanceof Number) return ((Number) value).shortValue(); in getShort() 264 return Short.parseShort(value.toString()); in getShort() 269 Object value = get(column); in getInt() local [all …]
|