Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 3051) sorted by relevance

12345678910>>...123

/frameworks/base/media/mca/filterfw/native/core/
Dvalue.cpp34 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 …]
Dvalue.h29 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/
DValueVisitor.h31 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/core/java/android/content/
DContentValues.java119 public void put(String key, String value) { in put() argument
120 mMap.put(key, value); in put()
138 public void put(String key, Byte value) { in put() argument
139 mMap.put(key, value); in put()
148 public void put(String key, Short value) { in put() argument
149 mMap.put(key, value); in put()
158 public void put(String key, Integer value) { in put() argument
159 mMap.put(key, value); in put()
168 public void put(String key, Long value) { in put() argument
169 mMap.put(key, value); in put()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAnnotationValidations.java50 public static void validate(Class<UserIdInt> annotation, UserIdInt ignored, int value) { in validate() argument
51 if ((value != UserHandle.USER_NULL && value < -3) in validate()
52 || value > Integer.MAX_VALUE / UserHandle.PER_USER_RANGE) { in validate()
53 invalid(annotation, value); in validate()
57 public static void validate(Class<AppIdInt> annotation, AppIdInt ignored, int value) { in validate() argument
58 if (value / UserHandle.PER_USER_RANGE != 0 || value < 0) { in validate()
59 invalid(annotation, value); in validate()
63 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() argument
65 validate(annotation, ignored, value, paramName1, param1); in validate()
66 validate(annotation, ignored, value, paramName2, param2); in validate()
[all …]
DTypedProperties.java203 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 …]
DParseUtils.java31 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/core/java/com/android/internal/inputmethod/
DResultCallbacks.java52 final T value = ref.get(); in unwrap() local
54 return value; in unwrap()
65 public static IIntResultCallback.Stub of(@NonNull Completable.Int value) { in of() argument
67 atomicRef = new AtomicReference<>(new WeakReference<>(value)); in of()
73 final Completable.Int value = unwrap(atomicRef); in of()
74 if (value == null) { in of()
77 value.onComplete(result); in of()
83 final Completable.Int value = unwrap(atomicRef); in of() local
84 if (value == null) { in of()
87 value.onError(throwableHolder); in of()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/
DTypeTraits_test.cpp38 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/base/packages/SystemUI/src/com/android/systemui/statusbar/charging/
DRippleShader.kt123 set(value) {
124 field = value
125 setUniform("in_maxRadius", value)
132 set(value) {
133 field = value
134 setUniform("in_origin", floatArrayOf(value.x, value.y))
141 set(value) {
142 field = value
143 setUniform("in_progress", value)
145 (1 - (1 - value) * (1 - value) * (1 - value))* radius)
[all …]
/frameworks/base/libs/androidfw/tests/
DTheme_test.cpp80 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F() local
81 ASSERT_TRUE(value); in TEST_F()
82 EXPECT_EQ(Res_value::TYPE_INT_DEC, value->type); in TEST_F()
83 EXPECT_EQ(1u, value->data); in TEST_F()
84 EXPECT_EQ(static_cast<uint32_t>(ResTable_typeSpec::SPEC_PUBLIC), value->flags); in TEST_F()
86 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
87 ASSERT_TRUE(value); in TEST_F()
88 EXPECT_EQ(Res_value::TYPE_INT_DEC, value->type); in TEST_F()
89 EXPECT_EQ(2u, value->data); in TEST_F()
90 EXPECT_EQ(static_cast<uint32_t>(ResTable_typeSpec::SPEC_PUBLIC), value->flags); in TEST_F()
[all …]
/frameworks/rs/script_api/
Drs_object_types.spec90 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/libs/androidfw/
DAttributeResolution.cpp72 std::optional<AssetManager2::SelectedValue> value = theme->GetAttribute(theme_attribute_resid); in GetStyleBag() local
73 if (value.has_value()) { in GetStyleBag()
74 *out_theme_flags |= value->flags; in GetStyleBag()
75 auto result = theme->GetAssetManager()->ResolveBag(*value); in GetStyleBag()
98 Res_value value; in GetXmlStyleBag() local
100 if (idx < 0 || xml_parser->getAttributeValue(idx, &value) < 0) { in GetXmlStyleBag()
104 if (value.dataType == Res_value::TYPE_ATTRIBUTE) { in GetXmlStyleBag()
106 if (std::optional<AssetManager2::SelectedValue> result = theme->GetAttribute(value.data)) { in GetXmlStyleBag()
112 if (value.dataType == Res_value::TYPE_REFERENCE) { in GetXmlStyleBag()
113 return theme->GetAssetManager()->GetBag(value.data); in GetXmlStyleBag()
[all …]
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DPduHeaders.java363 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/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java321 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() argument
323 if (value < 0) { in checkArgumentNonnegative()
327 return value; in checkArgumentNonnegative()
338 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() argument
339 if (value < 0) { in checkArgumentNonnegative()
343 return value; in checkArgumentNonnegative()
353 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() argument
354 if (value < 0) { in checkArgumentNonnegative()
358 return value; in checkArgumentNonnegative()
369 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java203 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/
DMtpObjectInfo.java393 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/
DBinaryOp.cpp30 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/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSettingsValidators.java43 public boolean validate(@Nullable String value) {
50 public boolean validate(@Nullable String value) {
51 if (value == null) {
55 return Integer.parseInt(value) >= 0;
64 public boolean validate(@Nullable String value) {
65 if (value == null) {
69 Integer.parseInt(value);
79 public boolean validate(@Nullable String value) {
80 if (value == null) {
84 Uri.decode(value);
[all …]
/frameworks/av/media/mtp/
DMtpDataPacket.cpp75 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/base/core/java/android/os/
DBytesMatcher.java57 public final @NonNull byte[] value; field in BytesMatcher.Rule
60 public Rule(char type, @NonNull byte[] value, @Nullable byte[] mask) { in Rule() argument
61 if (mask != null && value.length != mask.length) { in Rule()
63 "Expected length " + value.length + " but found " + mask.length); in Rule()
66 this.value = value; in Rule()
79 builder.append(HexDump.toHexString(value)); in encode()
86 public boolean test(@NonNull byte[] value) { in test() argument
90 if (value.length != this.value.length) { in test()
96 if (value.length < this.value.length) { in test()
101 for (int i = 0; i < this.value.length; i++) { in test()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dencoding.h446 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/
DMediaMetadataTest.java71 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/
DFloat4.java73 public void add(Float4 value) { in add() argument
74 x += value.x; in add()
75 y += value.y; in add()
76 z += value.z; in add()
77 w += value.w; in add()
85 public void add(float value) { in add() argument
86 x += value; in add()
87 y += value; in add()
88 z += value; in add()
89 w += value; in add()
[all …]
DDouble4.java73 public void add(Double4 value) { in add() argument
74 x += value.x; in add()
75 y += value.y; in add()
76 z += value.z; in add()
77 w += value.w; in add()
85 public void add(double value) { in add() argument
86 x += value; in add()
87 y += value; in add()
88 z += value; in add()
89 w += value; in add()
[all …]

12345678910>>...123