Home
last modified time | relevance | path

Searched refs:rawValue (Results 1 – 25 of 31) sorted by relevance

12

/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPUtils.java311 public static int convertToInteger(String rawValue) throws XMPException in convertToInteger() argument
315 if (rawValue == null || rawValue.length() == 0) in convertToInteger()
319 if (rawValue.startsWith("0x")) in convertToInteger()
321 return Integer.parseInt(rawValue.substring(2), 16); in convertToInteger()
325 return Integer.parseInt(rawValue); in convertToInteger()
358 public static long convertToLong(String rawValue) throws XMPException in convertToLong() argument
362 if (rawValue == null || rawValue.length() == 0) in convertToLong()
366 if (rawValue.startsWith("0x")) in convertToLong()
368 return Long.parseLong(rawValue.substring(2), 16); in convertToLong()
372 return Long.parseLong(rawValue); in convertToLong()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DParseRequest.java24 final String rawValue; field in ParseRequest
27 private ParseRequest(String rawValue, int radix) { in ParseRequest() argument
28 this.rawValue = rawValue; in ParseRequest()
38 String rawValue; in fromString() local
42 rawValue = stringValue.substring(2); in fromString()
45 rawValue = stringValue.substring(1); in fromString()
48 rawValue = stringValue.substring(1); in fromString()
51 rawValue = stringValue; in fromString()
55 return new ParseRequest(rawValue, radix); in fromString()
DUnsignedInts.java215 return parseUnsignedInt(request.rawValue, request.radix); in decode()
DUnsignedLongs.java273 return parseUnsignedLong(request.rawValue, request.radix); in decode()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DResourceReferenceResolver.java27 …public void processResource(String name, String rawValue, ResourceValueConverter loader, boolean i… in processResource() argument
32 if (rawValue.startsWith("@") in processResource()
33 && rawValue.contains(allowedReferenceTypesForRawValue + "/")) { in processResource()
40 addAttributeReference(rawValue, valuePointer); in processResource()
45 addAttribute(valuePointer, (T) loader.convertRawValue(rawValue)); in processResource()
73 private void addAttributeReference(String rawValue, String valuePointer) { in addAttributeReference() argument
74 String attributeName = rawValue.substring(1); in addAttributeReference()
DColorResourceLoader.java47 public Integer convertRawValue(String rawValue) { in convertRawValue() argument
48 if (rawValue.startsWith("#")) { in convertRawValue()
49 long color = Long.parseLong(rawValue.substring(1), 16); in convertRawValue()
51 } else if (androidColors.containsKey(rawValue)) { in convertRawValue()
52 return androidColors.get(rawValue); in convertRawValue()
DDimenResourceLoader.java29 public Object convertRawValue(String rawValue) { in convertRawValue() argument
30 int end = rawValue.length(); in convertRawValue()
32 int index = rawValue.indexOf(UNITS[i]); in convertRawValue()
38 return Float.parseFloat(rawValue.substring(0, end)); in convertRawValue()
DIntegerResourceLoader.java36 public Object convertRawValue( String rawValue ) { in convertRawValue() argument
41 return (int) Long.decode(rawValue).longValue(); in convertRawValue()
43 throw new RuntimeException( rawValue + " is not an integer." , nfe ); in convertRawValue()
DStringResourceLoader.java24 @Override public Object convertRawValue(String rawValue) { in convertRawValue() argument
25 return rawValue; in convertRawValue()
DPluralResourceLoader.java54 @Override public Object convertRawValue(String rawValue) { in convertRawValue() argument
55 return rawValue; in convertRawValue()
DResourceValueConverter.java4 Object convertRawValue(String rawValue); in convertRawValue() argument
/external/mdnsresponder/mDNSWindows/DLLX/
DTXTRecord.cpp190 const void * rawValue; in GetValueForKey() local
214rawValue = TXTRecordGetValuePtr( ( uint16_t ) m_byteArray.size(), &m_byteArray[ 0 ], keyUTF8.c_str… in GetValueForKey()
218 if ( rawValue ) in GetValueForKey()
222 ok = ByteArrayToVariant( rawValue, rawValueLen, value ); in GetValueForKey()
274 const void * rawValue; in GetKeyAtIndex() local
286 …size(), &m_byteArray[ 0 ], ( uint16_t ) index, sizeof( keyBuf ), keyBuf, &rawValueLen, &rawValue ); in GetKeyAtIndex()
320 const void * rawValue; in GetValueAtIndex() local
332 …size(), &m_byteArray[ 0 ], ( uint16_t ) index, sizeof( keyBuf ), keyBuf, &rawValueLen, &rawValue ); in GetValueAtIndex()
338 ok = ByteArrayToVariant( rawValue, rawValueLen, retval ); in GetValueAtIndex()
/external/protobuf/objectivec/Tests/
DGPBSwiftTests.swift54 msg.repeatedEnumArray.addValue(Message2_Enum.Bar.rawValue) in testProto2Basics()
55 msg.repeatedEnumArray.addValue(Message2_Enum.Baz.rawValue) in testProto2Basics()
60 msg.mapInt32Enum.setValue(Message2_Enum.Bar.rawValue, forKey:600) in testProto2Basics()
61 msg.mapInt32Enum.setValue(Message2_Enum.Baz.rawValue, forKey:601) in testProto2Basics()
89 XCTAssertEqual(msg.repeatedEnumArray.valueAtIndex(0), Message2_Enum.Bar.rawValue) in testProto2Basics()
90 XCTAssertEqual(msg.repeatedEnumArray.valueAtIndex(1), Message2_Enum.Baz.rawValue) in testProto2Basics()
103 XCTAssertEqual(intValue, Message2_Enum.Bar.rawValue) in testProto2Basics()
105 XCTAssertEqual(intValue, Message2_Enum.Baz.rawValue) in testProto2Basics()
151 msg.repeatedEnumArray.addValue(Message3_Enum.Bar.rawValue) in testProto3Basics()
158 msg.mapInt32Enum.setValue(Message2_Enum.Bar.rawValue, forKey:600) in testProto3Basics()
[all …]
DGPBDictionaryTests+Int32.m2961 XCTAssertTrue([dict valueForKey:11 rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:11 rawValue:&value]);
2967 XCTAssertTrue([dict valueForKey:12 rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:12 rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:13 rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:13 rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:14 rawValue:NULL]);
3162 XCTAssertTrue([dict valueForKey:12 rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:12 rawValue:&value]);
3171 XCTAssertTrue([dict valueForKey:14 rawValue:NULL]);
[all …]
DGPBDictionaryTests+String.m2961 XCTAssertTrue([dict valueForKey:@"foo" rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:@"foo" rawValue:&value]);
2967 XCTAssertTrue([dict valueForKey:@"bar" rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:@"bar" rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:@"baz" rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:@"baz" rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:@"mumble" rawValue:NULL]);
3162 XCTAssertTrue([dict valueForKey:@"bar" rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:@"bar" rawValue:&value]);
3171 XCTAssertTrue([dict valueForKey:@"mumble" rawValue:NULL]);
[all …]
DGPBDictionaryTests+UInt32.m2961 XCTAssertTrue([dict valueForKey:1U rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:1U rawValue:&value]);
2967 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:3U rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:3U rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:4U rawValue:NULL]);
3162 XCTAssertTrue([dict valueForKey:2U rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:2U rawValue:&value]);
3171 XCTAssertTrue([dict valueForKey:4U rawValue:NULL]);
[all …]
DGPBDictionaryTests+Int64.m2961 XCTAssertTrue([dict valueForKey:21LL rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:21LL rawValue:&value]);
2967 XCTAssertTrue([dict valueForKey:22LL rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:22LL rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:23LL rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:23LL rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:24LL rawValue:NULL]);
3162 XCTAssertTrue([dict valueForKey:22LL rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:22LL rawValue:&value]);
3171 XCTAssertTrue([dict valueForKey:24LL rawValue:NULL]);
[all …]
DGPBDictionaryTests+UInt64.m2961 XCTAssertTrue([dict valueForKey:31ULL rawValue:NULL]);
2962 XCTAssertTrue([dict valueForKey:31ULL rawValue:&value]);
2967 XCTAssertTrue([dict valueForKey:32ULL rawValue:NULL]);
2968 XCTAssertTrue([dict valueForKey:32ULL rawValue:&value]);
2970 XCTAssertTrue([dict valueForKey:33ULL rawValue:NULL]);
2971 XCTAssertTrue([dict valueForKey:33ULL rawValue:&value]);
2973 XCTAssertFalse([dict valueForKey:34ULL rawValue:NULL]);
3162 XCTAssertTrue([dict valueForKey:32ULL rawValue:NULL]);
3163 XCTAssertTrue([dict valueForKey:32ULL rawValue:&value]);
3171 XCTAssertTrue([dict valueForKey:34ULL rawValue:NULL]);
[all …]
DGPBMessageTests+Merge.m202 rawValue:UnknownEnumsMyEnum_Bar];
205 rawValue:UnknownEnumsMyEnum_Bar];
225 rawValue:kUnknownValue];
228 rawValue:kUnknownValue];
/external/protobuf/objectivec/
DGPBDictionary.h300 rawValue:(int32_t)rawValue
331 - (BOOL)valueForKey:(uint32_t)key rawValue:(nullable int32_t *)rawValue;
334 (void (^)(uint32_t key, int32_t rawValue, BOOL *stop))block;
347 - (void)setRawValue:(int32_t)rawValue forKey:(uint32_t)key;
646 rawValue:(int32_t)rawValue
677 - (BOOL)valueForKey:(int32_t)key rawValue:(nullable int32_t *)rawValue;
680 (void (^)(int32_t key, int32_t rawValue, BOOL *stop))block;
693 - (void)setRawValue:(int32_t)rawValue forKey:(int32_t)key;
992 rawValue:(int32_t)rawValue
1023 - (BOOL)valueForKey:(uint64_t)key rawValue:(nullable int32_t *)rawValue;
[all …]
DGPBDictionary.m688 //% rawValue:(VALUE_TYPE)rawValue
693 …% KEY_NAME$S VALUE_NAME$S rawValues:&rawValue
779 //%- (BOOL)valueForKey:(KEY_TYPE##KisP$S##KisP)key rawValue:(VALUE_TYPE *)rawValue {
781 //% if (wrapped && rawValue) {
782 //% *rawValue = UNWRAP##VALUE_NAME(wrapped);
2978 rawValue:(int32_t)rawValue
2983 rawValues:&rawValue
3177 - (BOOL)valueForKey:(uint32_t)key rawValue:(int32_t *)rawValue {
3179 if (wrapped && rawValue) {
3180 *rawValue = [wrapped intValue];
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPMetaImpl.java1388 String rawValue = propNode.getValue();
1392 value = new Boolean(XMPUtils.convertToBoolean(rawValue));
1395 value = new Integer(XMPUtils.convertToInteger(rawValue));
1398 value = new Long(XMPUtils.convertToLong(rawValue));
1401 value = new Double(XMPUtils.convertToDouble(rawValue));
1404 value = XMPUtils.convertToDate(rawValue);
1407 XMPDateTime dt = XMPUtils.convertToDate(rawValue);
1411 value = XMPUtils.decodeBase64(rawValue);
1419 value = rawValue != null || propNode.getOptions().isCompositeProperty() ? rawValue : "";
/external/parameter-framework/upstream/xmlserializer/
DXmlElement.cpp103 std::string rawValue; in getAttribute() local
104 if (!getAttribute(name, rawValue)) { in getAttribute()
109 if (!convertTo<T>(rawValue, value)) { in getAttribute()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java806 final int rawValue = input.readEnum(); in mergeFieldFrom() local
809 field.getEnumType().findValueByNumberCreatingIfUnknown(rawValue)); in mergeFieldFrom()
811 final Object value = field.getEnumType().findValueByNumber(rawValue); in mergeFieldFrom()
842 final int rawValue = input.readEnum(); in mergeFieldFrom() local
844 value = field.getEnumType().findValueByNumberCreatingIfUnknown(rawValue); in mergeFieldFrom()
846 value = field.getEnumType().findValueByNumber(rawValue); in mergeFieldFrom()
850 unknownFields.mergeVarintField(fieldNumber, rawValue); in mergeFieldFrom()
DGeneratedMessageLite.java517 int rawValue = input.readEnum(); in parseUnknownField() local
519 extension.descriptor.getEnumType().findValueByNumber(rawValue); in parseUnknownField()
565 int rawValue = input.readEnum(); in parseUnknownField() local
567 .findValueByNumber(rawValue); in parseUnknownField()
571 mergeVarintField(fieldNumber, rawValue); in parseUnknownField()

12