/external/mockito/src/test/java/org/mockito/internal/util/ |
D | PrimitivesTest.java | 17 assertNotNull(Primitives.defaultValue(Boolean.class)); in should_not_return_null_for_primitives_wrappers() 18 assertNotNull(Primitives.defaultValue(Character.class)); in should_not_return_null_for_primitives_wrappers() 19 assertNotNull(Primitives.defaultValue(Byte.class)); in should_not_return_null_for_primitives_wrappers() 20 assertNotNull(Primitives.defaultValue(Short.class)); in should_not_return_null_for_primitives_wrappers() 21 assertNotNull(Primitives.defaultValue(Integer.class)); in should_not_return_null_for_primitives_wrappers() 22 assertNotNull(Primitives.defaultValue(Long.class)); in should_not_return_null_for_primitives_wrappers() 23 assertNotNull(Primitives.defaultValue(Float.class)); in should_not_return_null_for_primitives_wrappers() 24 assertNotNull(Primitives.defaultValue(Double.class)); in should_not_return_null_for_primitives_wrappers() 29 assertNotNull(Primitives.defaultValue(boolean.class)); in should_not_return_null_for_primitives() 30 assertNotNull(Primitives.defaultValue(char.class)); in should_not_return_null_for_primitives() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | Settings.java | 136 int getUploadBandwidth(int defaultValue) { in getUploadBandwidth() argument 138 return (bit & set) != 0 ? values[UPLOAD_BANDWIDTH] : defaultValue; in getUploadBandwidth() 148 int getDownloadBandwidth(int defaultValue) { in getDownloadBandwidth() argument 150 return (bit & set) != 0 ? values[DOWNLOAD_BANDWIDTH] : defaultValue; in getDownloadBandwidth() 155 boolean getEnablePush(boolean defaultValue) { in getEnablePush() argument 157 return ((bit & set) != 0 ? values[ENABLE_PUSH] : defaultValue ? 1 : 0) == 1; in getEnablePush() 161 int getRoundTripTime(int defaultValue) { in getRoundTripTime() argument 163 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue; in getRoundTripTime() 167 int getMaxConcurrentStreams(int defaultValue) { in getMaxConcurrentStreams() argument 169 return (bit & set) != 0 ? values[MAX_CONCURRENT_STREAMS] : defaultValue; in getMaxConcurrentStreams() [all …]
|
/external/skqp/tools/flags/ |
D | SkCommandLineFlags.h | 198 #define DEFINE_bool(name, defaultValue, helpString) \ argument 203 defaultValue, \ 208 #define DEFINE_bool2(name, shortName, defaultValue, helpString) \ argument 213 defaultValue, \ 218 #define DEFINE_string(name, defaultValue, helpString) \ argument 223 defaultValue, \ 225 #define DEFINE_extended_string(name, defaultValue, helpString, extendedHelpString) \ argument 230 defaultValue, \ 236 #define DEFINE_string2(name, shortName, defaultValue, helpString) \ argument 241 defaultValue, \ [all …]
|
/external/skia/tools/flags/ |
D | SkCommandLineFlags.h | 198 #define DEFINE_bool(name, defaultValue, helpString) \ argument 203 defaultValue, \ 208 #define DEFINE_bool2(name, shortName, defaultValue, helpString) \ argument 213 defaultValue, \ 218 #define DEFINE_string(name, defaultValue, helpString) \ argument 223 defaultValue, \ 225 #define DEFINE_extended_string(name, defaultValue, helpString, extendedHelpString) \ argument 230 defaultValue, \ 236 #define DEFINE_string2(name, shortName, defaultValue, helpString) \ argument 241 defaultValue, \ [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | DefaultsTest.java | 28 assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue()); in testGetDefaultValue() 29 assertEquals('\0', Defaults.defaultValue(char.class).charValue()); in testGetDefaultValue() 30 assertEquals(0, Defaults.defaultValue(byte.class).byteValue()); in testGetDefaultValue() 31 assertEquals(0, Defaults.defaultValue(short.class).shortValue()); in testGetDefaultValue() 32 assertEquals(0, Defaults.defaultValue(int.class).intValue()); in testGetDefaultValue() 33 assertEquals(0, Defaults.defaultValue(long.class).longValue()); in testGetDefaultValue() 34 assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); in testGetDefaultValue() 35 assertEquals(0.0d, Defaults.defaultValue(double.class).doubleValue()); in testGetDefaultValue() 36 assertNull(Defaults.defaultValue(void.class)); in testGetDefaultValue() 37 assertNull(Defaults.defaultValue(String.class)); in testGetDefaultValue()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/ |
D | AnnotationMemberDeclaration.java | 71 private Expression defaultValue; field in AnnotationMemberDeclaration 77 …onMemberDeclaration(EnumSet<Modifier> modifiers, Type type, String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 78 this(null, modifiers, new NodeList<>(), type, new SimpleName(name), defaultValue); in AnnotationMemberDeclaration() 82 …fiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 83 this(null, modifiers, annotations, type, name, defaultValue); in AnnotationMemberDeclaration() 90 …fiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 95 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 113 return Optional.ofNullable(defaultValue); in getDefaultValue() 149 public AnnotationMemberDeclaration setDefaultValue(final Expression defaultValue) { in setDefaultValue() argument 150 if (defaultValue == this.defaultValue) { in setDefaultValue() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
D | TestAttributeSet.java | 54 …public boolean getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) { in getAttributeBooleanValue() argument 56 return (value != null) ? Boolean.valueOf(value) : defaultValue; in getAttributeBooleanValue() 65 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { in getAttributeIntValue() argument 72 return (value != null) ? Integer.valueOf(value) : defaultValue; in getAttributeIntValue() 101 …int getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) { in getAttributeListValue() argument 106 public int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) { in getAttributeUnsignedIntValue() argument 111 public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) { in getAttributeFloatValue() argument 118 return (value != null) ? Float.valueOf(value) : defaultValue; in getAttributeFloatValue() 122 public int getAttributeListValue(int index, String[] options, int defaultValue) { in getAttributeListValue() argument 127 public boolean getAttributeBooleanValue(int resourceId, boolean defaultValue) { in getAttributeBooleanValue() argument [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | XmlResourceParserImpl.java | 600 String[] options, int defaultValue) { in getAttributeListValue() argument 608 return defaultValue; in getAttributeListValue() 615 boolean defaultValue) { in getAttributeBooleanValue() argument 618 return defaultValue; in getAttributeBooleanValue() 624 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { in getAttributeResourceValue() argument 629 return defaultValue; in getAttributeResourceValue() 633 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { in getAttributeIntValue() argument 634 return XmlUtils.convertValueToInt(this.getAttributeValue(namespace, attribute), defaultValue); in getAttributeIntValue() 638 public int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) { in getAttributeUnsignedIntValue() argument 639 int value = getAttributeIntValue(namespace, attribute, defaultValue); in getAttributeUnsignedIntValue() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/body/ |
D | AnnotationMemberDeclaration.java | 46 private Expression defaultValue; field in AnnotationMemberDeclaration 51 …ublic AnnotationMemberDeclaration(int modifiers, Type type, String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 55 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 58 …int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 63 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 66 …int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 71 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 85 return defaultValue; in getDefaultValue() 106 public void setDefaultValue(Expression defaultValue) { in setDefaultValue() argument 107 this.defaultValue = defaultValue; in setDefaultValue() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/ |
D | AnnotationMemberDeclaration.java | 53 private Expression defaultValue; field in AnnotationMemberDeclaration 58 …onMemberDeclaration(EnumSet<Modifier> modifiers, Type type, String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 62 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 66 Expression defaultValue) { in AnnotationMemberDeclaration() argument 71 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 75 String name, Expression defaultValue) { in AnnotationMemberDeclaration() argument 80 setDefaultValue(defaultValue); in AnnotationMemberDeclaration() 94 return defaultValue; in getDefaultValue() 118 public AnnotationMemberDeclaration setDefaultValue(Expression defaultValue) { in setDefaultValue() argument 119 this.defaultValue = defaultValue; in setDefaultValue() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | InternalFlags.java | 94 NullableProvidesOption defaultValue) { in parseNullableProvidesOption() argument 95 return getSystemOption("guice_check_nullable_provides_params", defaultValue); in parseNullableProvidesOption() 106 private static <T extends Enum<T>> T getSystemOption(final String name, T defaultValue) { in getSystemOption() argument 107 return getSystemOption(name, defaultValue, defaultValue); in getSystemOption() 119 private static <T extends Enum<T>> T getSystemOption(final String name, T defaultValue, in getSystemOption() argument 121 Class<T> enumType = defaultValue.getDeclaringClass(); in getSystemOption() 129 return (value != null && value.length() > 0) ? Enum.valueOf(enumType, value) : defaultValue; in getSystemOption() 135 return defaultValue; in getSystemOption()
|
/external/apache-http/src/org/apache/http/params/ |
D | AbstractHttpParams.java | 61 public long getLongParameter(final String name, long defaultValue) { in getLongParameter() argument 64 return defaultValue; in getLongParameter() 74 public int getIntParameter(final String name, int defaultValue) { in getIntParameter() argument 77 return defaultValue; in getIntParameter() 87 public double getDoubleParameter(final String name, double defaultValue) { in getDoubleParameter() argument 90 return defaultValue; in getDoubleParameter() 100 public boolean getBooleanParameter(final String name, boolean defaultValue) { in getBooleanParameter() argument 103 return defaultValue; in getBooleanParameter()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
D | LongHashtable.java | 20 public LongHashtable (int defaultValue) { in LongHashtable() argument 21 this.defaultValue = defaultValue; in LongHashtable() 25 if (value == defaultValue) { in put() 34 if (value == null) return defaultValue; in get() 38 private int defaultValue; field in LongHashtable
|
D | IntHashtable.java | 21 public IntHashtable (int defaultValue) { in IntHashtable() argument 22 this.defaultValue = defaultValue; in IntHashtable() 26 if (value == defaultValue) { in put() 35 if (value == null) return defaultValue; in get() 39 private int defaultValue; field in IntHashtable
|
D | IntStringHashtable.java | 21 public IntStringHashtable (String defaultValue) { in IntStringHashtable() argument 22 this.defaultValue = defaultValue; in IntStringHashtable() 26 if (value == defaultValue) { in put() 35 if (value == null) return defaultValue; in get() 39 private String defaultValue; field in IntStringHashtable
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/ |
D | IntStringHashtable.java | 24 public IntStringHashtable (String defaultValue) { in IntStringHashtable() argument 25 this.defaultValue = defaultValue; in IntStringHashtable() 29 if (value == defaultValue) { in put() 38 if (value == null) return defaultValue; in get() 42 private String defaultValue; field in IntStringHashtable
|
D | IntHashtable.java | 24 public IntHashtable (int defaultValue) { in IntHashtable() argument 25 this.defaultValue = defaultValue; in IntHashtable() 29 if (value == defaultValue) { in put() 38 if (value == null) return defaultValue; in get() 42 private int defaultValue; field in IntHashtable
|
D | LongHashtable.java | 23 public LongHashtable (int defaultValue) { in LongHashtable() argument 24 this.defaultValue = defaultValue; in LongHashtable() 28 if (value == defaultValue) { in put() 37 if (value == null) return defaultValue; in get() 41 private int defaultValue; field in LongHashtable
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUResourceTableAccess.java | 26 String itemName, String defaultValue) { in getTableString() argument 29 return getTableString(bundle, tableName, null, itemName, defaultValue); in getTableString() 37 String subtableName, String item, String defaultValue) { in getTableString() argument 43 return defaultValue; in getTableString() 76 return defaultValue; in getTableString() 84 return defaultValue; in getTableString() 96 return ((result != null && result.length() > 0) ? result : defaultValue); in getTableString()
|
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
D | AbstractData.java | 51 public String getValue(String path, String defaultValue) { in getValue() argument 54 return defaultValue; in getValue() 57 return result == null ? defaultValue : result; in getValue() 67 public int getIntValue(String path, int defaultValue) { in getIntValue() argument 70 return defaultValue; in getIntValue() 74 return result == null ? defaultValue : TypeConverter.parseNumber(result); in getIntValue() 76 return defaultValue; in getIntValue()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUResourceTableAccess.java | 24 String itemName, String defaultValue) { in getTableString() argument 27 return getTableString(bundle, tableName, null, itemName, defaultValue); in getTableString() 35 String subtableName, String item, String defaultValue) { in getTableString() argument 41 return defaultValue; in getTableString() 74 return defaultValue; in getTableString() 82 return defaultValue; in getTableString() 94 return ((result != null && result.length() > 0) ? result : defaultValue); in getTableString()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowBundle.java | 55 public String getString(String key, String defaultValue) { in getString() argument 60 return value == null || !(value instanceof String) ? defaultValue : (String) value; in getString() 74 public long getLong(String key, long defaultValue) { in getLong() argument 76 return value == null || !(value instanceof Long) ? defaultValue : (Long) value; in getLong() 90 public int getInt(String key, int defaultValue) { in getInt() argument 92 return value == null || !(value instanceof Integer) ? defaultValue : (Integer) value; in getInt() 106 public double getDouble(String key, double defaultValue) { in getDouble() argument 108 return value == null || !(value instanceof Double) ? defaultValue : (Double) value; in getDouble() 122 public Byte getByte(String key, byte defaultValue) { in getByte() argument 124 return value == null || !(value instanceof Byte) ? defaultValue : (Byte) value; in getByte() [all …]
|
/external/proguard/src/proguard/classfile/attribute/annotation/ |
D | AnnotationDefaultAttribute.java | 35 public ElementValue defaultValue; field in AnnotationDefaultAttribute 50 ElementValue defaultValue) in AnnotationDefaultAttribute() argument 54 this.defaultValue = defaultValue; in AnnotationDefaultAttribute() 63 defaultValue.accept(clazz, null, elementValueVisitor); in defaultValueAccept()
|
/external/swiftshader/src/Common/ |
D | Configurator.cpp | 206 string Configurator::getValue(string keyName, string valueName, string defaultValue) const in getValue() 209 if(keyID == -1) return defaultValue; in getValue() 211 if(valueID == -1) return defaultValue; in getValue() 216 int Configurator::getInteger(string keyName, string valueName, int defaultValue) const in getInteger() 220 sprintf(svalue, "%d", defaultValue); in getInteger() 225 bool Configurator::getBoolean(string keyName, string valueName, bool defaultValue) const in getBoolean() 227 return getInteger(keyName, valueName, (int)defaultValue) != 0; in getBoolean() 230 double Configurator::getFloat(string keyName, string valueName, double defaultValue) const in getFloat() 234 sprintf(svalue, "%f", defaultValue); in getFloat()
|
/external/jacoco/jacoco-maven-plugin/src/org/jacoco/maven/ |
D | DumpMojo.java | 47 @Parameter(property = "jacoco.destFile", defaultValue = "${project.build.directory}/jacoco.exec") 55 @Parameter(property = "jacoco.append", defaultValue = "true") 61 @Parameter(property = "jacoco.dump", defaultValue = "true") 68 @Parameter(property = "jacoco.reset", defaultValue = "false") 81 @Parameter(property = "jacoco.port", defaultValue = "6300") 88 @Parameter(property = "jacoco.retryCount", defaultValue = "10")
|