Home
last modified time | relevance | path

Searched refs:getDefaultValue (Results 1 – 9 of 9) sorted by relevance

/external/protobuf/java/src/main/java/com/google/protobuf/
DDescriptors.java715 public Object getDefaultValue() { in getDefaultValue() method in Descriptors.FieldDescriptor
1011 defaultValue = TextFormat.parseInt32(proto.getDefaultValue()); in crossLink()
1015 defaultValue = TextFormat.parseUInt32(proto.getDefaultValue()); in crossLink()
1020 defaultValue = TextFormat.parseInt64(proto.getDefaultValue()); in crossLink()
1024 defaultValue = TextFormat.parseUInt64(proto.getDefaultValue()); in crossLink()
1027 if (proto.getDefaultValue().equals("inf")) { in crossLink()
1029 } else if (proto.getDefaultValue().equals("-inf")) { in crossLink()
1031 } else if (proto.getDefaultValue().equals("nan")) { in crossLink()
1034 defaultValue = Float.valueOf(proto.getDefaultValue()); in crossLink()
1038 if (proto.getDefaultValue().equals("inf")) { in crossLink()
[all …]
DDynamicMessage.java166 result = field.getDefaultValue(); in getField()
372 result = field.getDefaultValue(); in getField()
DGeneratedMessage.java362 descriptor.getDefaultValue()); in getExtension()
479 return field.getDefaultValue(); in getField()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingTestCase.java71 return getDefaultValue(method.getReturnType()); in createProxyInstance()
107 private static Object getDefaultValue(Class<?> returnType) { in getDefaultValue() method in ForwardingTestCase
129 parameters[i] = getDefaultValue(parameterTypes[i]); in callAllPublicMethods()
/external/javassist/src/main/javassist/bytecode/
DAnnotationDefaultAttribute.java121 public MemberValue getDefaultValue() in getDefaultValue() method in AnnotationDefaultAttribute
157 return getDefaultValue().toString(); in toString()
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java274 assertEquals(0, d.findFieldByName("optional_int32").getDefaultValue()); in testFieldDescriptorDefault()
276 assertEquals(41, d.findFieldByName("default_int32").getDefaultValue()); in testFieldDescriptorDefault()
282 d.findFieldByName("escaped_bytes").getDefaultValue()); in testFieldDescriptorDefault()
283 assertEquals(-1, d.findFieldByName("large_uint32").getDefaultValue()); in testFieldDescriptorDefault()
284 assertEquals(-1L, d.findFieldByName("large_uint64").getDefaultValue()); in testFieldDescriptorDefault()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DPreferenceTest.java130 assertThat(shadow.getDefaultValue(), nullValue()); in shouldRememberDefaultValue()
132 assertThat(shadow.getDefaultValue(), sameInstance(defaultValue)); in shouldRememberDefaultValue()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPreference.java157 public Object getDefaultValue() { in getDefaultValue() method in ShadowPreference
/external/javassist/src/main/javassist/bytecode/annotation/
DAnnotationImpl.java165 MemberValue mv = ainfo.getDefaultValue(); in getDefault()