/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/tools/aapt2/ |
D | ValueVisitor.h | 31 virtual void VisitAny(Value* value) {} in VisitAny() argument 32 virtual void VisitItem(Item* value) { VisitAny(value); } in VisitItem() argument 33 virtual void Visit(Reference* value) { VisitItem(value); } in Visit() argument 34 virtual void Visit(RawString* value) { VisitItem(value); } in Visit() argument 35 virtual void Visit(String* value) { VisitItem(value); } in Visit() argument 36 virtual void Visit(StyledString* value) { VisitItem(value); } in Visit() argument 37 virtual void Visit(FileReference* value) { VisitItem(value); } in Visit() argument 38 virtual void Visit(Id* value) { VisitItem(value); } in Visit() argument 39 virtual void Visit(BinaryPrimitive* value) { VisitItem(value); } in Visit() argument 41 virtual void Visit(Attribute* value) { VisitAny(value); } in Visit() argument [all …]
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 74 Res_value value; in ResolveAttrs() local 81 Res_value value; in ResolveAttrs() local 82 if (theme->GetAttribute(def_style_attr, &value, &def_style_flags) != kInvalidCookie) { in ResolveAttrs() 83 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs() 84 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, value.data); in ResolveAttrs() [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/base/core/java/android/content/ |
D | ContentValues.java | 118 public void put(String key, String value) { in put() argument 119 mMap.put(key, value); in put() 137 public void put(String key, Byte value) { in put() argument 138 mMap.put(key, value); in put() 147 public void put(String key, Short value) { in put() argument 148 mMap.put(key, value); in put() 157 public void put(String key, Integer value) { in put() argument 158 mMap.put(key, value); in put() 167 public void put(String key, Long value) { in put() argument 168 mMap.put(key, value); in put() [all …]
|
/frameworks/base/telephony/common/com/google/android/mms/pdu/ |
D | PduHeaders.java | 363 protected void setOctet(int value, int field) in setOctet() argument 381 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet() 387 if ((READ_STATUS_READ != value) && in setOctet() 388 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet() 394 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet() 395 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet() 401 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet() 407 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet() 413 if ((value < REPLY_CHARGING_REQUESTED) in setOctet() 414 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | Preconditions.java | 211 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() argument 213 if (value < 0) { in checkArgumentNonnegative() 217 return value; in checkArgumentNonnegative() 228 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() argument 229 if (value < 0) { in checkArgumentNonnegative() 233 return value; in checkArgumentNonnegative() 243 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() argument 244 if (value < 0) { in checkArgumentNonnegative() 248 return value; in checkArgumentNonnegative() 259 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument [all …]
|
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 | ParseUtils.java | 31 public static int parseInt(@Nullable String value, int defValue) { in parseInt() argument 32 return parseIntWithBase(value, 10, defValue); in parseInt() 36 public static int parseIntWithBase(@Nullable String value, int base, int defValue) { in parseIntWithBase() argument 37 if (value == null) { in parseIntWithBase() 41 return Integer.parseInt(value, base); in parseIntWithBase() 48 public static long parseLong(@Nullable String value, long defValue) { in parseLong() argument 49 return parseLongWithBase(value, 10, defValue); in parseLong() 53 public static long parseLongWithBase(@Nullable String value, int base, long defValue) { in parseLongWithBase() argument 54 if (value == null) { in parseLongWithBase() 58 return Long.parseLong(value, base); in parseLongWithBase() [all …]
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | Preconditions.java | 203 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() argument 205 if (value < 0) { in checkArgumentNonnegative() 209 return value; in checkArgumentNonnegative() 220 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() argument 221 if (value < 0) { in checkArgumentNonnegative() 225 return value; in checkArgumentNonnegative() 235 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() argument 236 if (value < 0) { in checkArgumentNonnegative() 240 return value; in checkArgumentNonnegative() 251 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument [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/base/core/java/android/provider/ |
D | SettingsValidators.java | 44 public boolean validate(@Nullable String value) { 51 public boolean validate(@Nullable String value) { 53 return Integer.parseInt(value) >= 0; 62 public boolean validate(@Nullable String value) { 64 Integer.parseInt(value); 74 public boolean validate(@Nullable String value) { 76 Uri.decode(value); 91 public boolean validate(@Nullable String value) { 92 return value != null && ComponentName.unflattenFromString(value) != null; 101 public boolean validate(@Nullable String value) { [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 | 75 bool MtpDataPacket::getUInt8(uint8_t& value) { in getUInt8() argument 76 if (mPacketSize - mOffset < sizeof(value)) in getUInt8() 78 value = mBuffer[mOffset++]; in getUInt8() 82 bool MtpDataPacket::getUInt16(uint16_t& value) { in getUInt16() argument 83 if (mPacketSize - mOffset < sizeof(value)) in getUInt16() 86 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); in getUInt16() 87 mOffset += sizeof(value); in getUInt16() 91 bool MtpDataPacket::getUInt32(uint32_t& value) { in getUInt32() argument 92 if (mPacketSize - mOffset < sizeof(value)) in getUInt32() 95 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | in getUInt32() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | DppMetricsTest.java | 71 private void checkOperationBucketEqualsTo(int index, int value) { in checkOperationBucketEqualsTo() argument 75 assertEquals(hb.count, value); in checkOperationBucketEqualsTo() 95 private void checkDppFailures(int key, int value) { in checkDppFailures() argument 104 assertEquals(hb.count, value); in checkDppFailures() 119 private void checkDppSuccesses(int key, int value) { in checkDppSuccesses() argument 128 assertEquals(hb.count, value); in checkDppSuccesses() 145 int value = getNumOfTimes(MAX_ITERATIONS) + 1; in testUpdateDppConfiguratorInitiatorRequests() local 147 for (int i = 0; i < value; i++) { in testUpdateDppConfiguratorInitiatorRequests() 153 assertEquals(mWifiDppLogProto.numDppConfiguratorInitiatorRequests, value); in testUpdateDppConfiguratorInitiatorRequests() 164 int value = getNumOfTimes(MAX_ITERATIONS) + 1; in testUpdateDppEnrolleeInitiatorRequests() local [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/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/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 …]
|
D | Float3.java | 64 public void add(Float3 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(float value) { in add() argument 76 x += value; in add() 77 y += value; in add() 78 z += value; in add() 102 public void sub(Float3 value) { in sub() argument 103 x -= value.x; in sub() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Theme_test.cpp | 71 Res_value value; in TEST_F() local 73 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags)); in TEST_F() 83 Res_value value; in TEST_F() local 87 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 89 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 90 EXPECT_EQ(1u, value.data); in TEST_F() 93 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 95 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 96 EXPECT_EQ(2u, value.data); in TEST_F() 107 Res_value value; in TEST_F() local [all …]
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_display_manager.cpp | 27 void operator()(int32_t value) { in operator ()() 28 attribute->value.int32_value = value; in operator ()() 29 attribute->value.type = DVR_SURFACE_ATTRIBUTE_TYPE_INT32; in operator ()() 31 void operator()(int64_t value) { in operator ()() 32 attribute->value.int64_value = value; in operator ()() 33 attribute->value.type = DVR_SURFACE_ATTRIBUTE_TYPE_INT64; in operator ()() 35 void operator()(bool value) { in operator ()() 36 attribute->value.bool_value = value; in operator ()() 37 attribute->value.type = DVR_SURFACE_ATTRIBUTE_TYPE_BOOL; in operator ()() 39 void operator()(float value) { in operator ()() [all …]
|