/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/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/skia/tools/flags/ |
D | SkCommandLineFlags.h | 195 #define DEFINE_bool(name, defaultValue, helpString) \ argument 200 defaultValue, \ 205 #define DEFINE_bool2(name, shortName, defaultValue, helpString) \ argument 210 defaultValue, \ 215 #define DEFINE_string(name, defaultValue, helpString) \ argument 220 defaultValue, \ 222 #define DEFINE_extended_string(name, defaultValue, helpString, extendedHelpString) \ argument 227 defaultValue, \ 233 #define DEFINE_string2(name, shortName, defaultValue, helpString) \ argument 238 defaultValue, \ [all …]
|
D | SkCommandLineFlags.cpp | 25 const char* defaultValue, const char* helpString, in CreateStringFlag() argument 29 info->fDefaultString.set(defaultValue); in CreateStringFlag() 32 SetDefaultStrings(pStrings, defaultValue); in CreateStringFlag() 37 const char* defaultValue) { in SetDefaultStrings() argument 39 if (nullptr == defaultValue) { in SetDefaultStrings() 43 size_t defaultLength = strlen(defaultValue); in SetDefaultStrings() 45 const char* const defaultEnd = defaultValue + defaultLength; in SetDefaultStrings() 46 const char* begin = defaultValue; in SetDefaultStrings() 203 if (flag->defaultValue().size() > 0) { in print_help_for_flag() 204 SkDebugf("\tdefault: %s", flag->defaultValue().c_str()); in print_help_for_flag()
|
/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/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/libgdx/tests/gdx-tests-android/assets/data/g3d/shaders/ |
D | common.glsl | 93 #define fetchColorDiffuseTD(texCoord, defaultValue) texture2D(u_diffuseTexture, texCoord) * u_diffu… 95 #define fetchColorDiffuseTD(texCoord, defaultValue) texture2D(u_diffuseTexture, texCoord) 97 #define fetchColorDiffuseTD(texCoord, defaultValue) u_diffuseColor 99 #define fetchColorDiffuseTD(texCoord, defaultValue) (defaultValue) 106 #define fetchColorDiffuseD(defaultValue) fetchColorDiffuseTD(g_texCoord0, defaultValue) 120 #define fetchColorSpecularTD(texCoord, defaultValue) (texture2D(u_specularTexture, texCoord).rgb * … 122 #define fetchColorSpecularTD(texCoord, defaultValue) texture2D(u_specularTexture, texCoord).rgb 124 #define fetchColorSpecularTD(texCoord, defaultValue) u_specularColor.rgb 126 #define fetchColorSpecularTD(texCoord, defaultValue) (defaultValue) 133 #define fetchColorSpecularD(defaultValue) fetchColorSpecularTD(g_texCoord0, defaultValue)
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
D | LongHashtable.java | 18 public LongHashtable (int defaultValue) { in LongHashtable() argument 19 this.defaultValue = defaultValue; in LongHashtable() 23 if (value == defaultValue) { in put() 32 if (value == null) return defaultValue; in get() 36 private int defaultValue; field in LongHashtable
|
D | IntHashtable.java | 19 public IntHashtable (int defaultValue) { in IntHashtable() argument 20 this.defaultValue = defaultValue; in IntHashtable() 24 if (value == defaultValue) { in put() 33 if (value == null) return defaultValue; in get() 37 private int defaultValue; field in IntHashtable
|
D | IntStringHashtable.java | 19 public IntStringHashtable (String defaultValue) { in IntStringHashtable() argument 20 this.defaultValue = defaultValue; in IntStringHashtable() 24 if (value == defaultValue) { in put() 33 if (value == null) return defaultValue; in get() 37 private String defaultValue; field in IntStringHashtable
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/ |
D | LongHashtable.java | 19 public LongHashtable (int defaultValue) { in LongHashtable() argument 20 this.defaultValue = defaultValue; in LongHashtable() 24 if (value == defaultValue) { in put() 33 if (value == null) return defaultValue; in get() 37 private int defaultValue; field in LongHashtable
|
D | IntHashtable.java | 20 public IntHashtable (int defaultValue) { in IntHashtable() argument 21 this.defaultValue = defaultValue; in IntHashtable() 25 if (value == defaultValue) { in put() 34 if (value == null) return defaultValue; in get() 38 private int defaultValue; field in IntHashtable
|
D | IntStringHashtable.java | 20 public IntStringHashtable (String defaultValue) { in IntStringHashtable() argument 21 this.defaultValue = defaultValue; in IntStringHashtable() 25 if (value == defaultValue) { in put() 34 if (value == null) return defaultValue; in get() 38 private String defaultValue; field in IntStringHashtable
|
/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()
|
D | ChainedData.java | 141 public String getValue(String path, String defaultValue) { in getValue() argument 146 return defaultValue; in getValue() 151 public int getIntValue(String path, int defaultValue) { in getIntValue() argument 156 return value == null ? defaultValue : TypeConverter.parseNumber(value); in getIntValue() 158 return defaultValue; in getIntValue() 161 return defaultValue; in getIntValue()
|
/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/ims/rcs/rcsmanager/src/java/com/android/ims/ |
D | RcsPresenceInfo.java | 308 private String getServiceInfo(int serviceType, String infoKey, String defaultValue) { in getServiceInfo() argument 314 return defaultValue; in getServiceInfo() 317 private long getServiceInfo(int serviceType, String infoKey, long defaultValue) { in getServiceInfo() argument 323 return defaultValue; in getServiceInfo() 326 private int getServiceInfo(int serviceType, String infoType, int defaultValue) { in getServiceInfo() argument 331 return defaultValue; in getServiceInfo() 334 private Uri getServiceInfo(int serviceType, String infoKey, Uri defaultValue) { in getServiceInfo() argument 340 return defaultValue; in getServiceInfo()
|
/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/guava/guava/src/com/google/common/base/ |
D | Functions.java | 154 public static <K, V> Function<K, V> forMap(Map<K, ? extends V> map, @Nullable V defaultValue) { in forMap() argument 155 return new ForMapWithDefault<K, V>(map, defaultValue); in forMap() 160 final V defaultValue; field in Functions.ForMapWithDefault 162 ForMapWithDefault(Map<K, ? extends V> map, @Nullable V defaultValue) { in ForMapWithDefault() argument 164 this.defaultValue = defaultValue; in ForMapWithDefault() 170 return (result != null || map.containsKey(key)) ? result : defaultValue; in apply() 176 return map.equals(that.map) && Objects.equal(defaultValue, that.defaultValue); in equals() 182 return Objects.hashCode(map, defaultValue); in hashCode() 186 return "forMap(" + map + ", defaultValue=" + defaultValue + ")"; in toString()
|
/external/deqp/modules/gles31/functional/ |
D | es31fInternalFormatQueryTests.cpp | 223 const glw::GLint defaultValue = -123; // queries always return positive values in iterate() local 229 glw::GLint buffer[2] = { defaultValue, defaultValue }; in iterate() 235 if (buffer[1] != defaultValue) in iterate() 244 glw::GLint buffer[1] = { defaultValue }; in iterate() 250 if (buffer[0] != defaultValue) in iterate() 282 const glw::GLint defaultValue = -123; // queries always return positive values in iterate() local 305 std::vector<glw::GLint> buffer(numSampleCounts + 1, defaultValue); in iterate() 311 if (buffer.back() != defaultValue) in iterate() 321 glw::GLint buffer[3] = { defaultValue, defaultValue, defaultValue }; in iterate() 327 if (buffer[2] != defaultValue) in iterate() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | XmlReader.java | 479 public String getAttribute (String name, String defaultValue) { in getAttribute() argument 480 if (attributes == null) return defaultValue; in getAttribute() 482 if (value == null) return defaultValue; in getAttribute() 631 public float getFloatAttribute (String name, float defaultValue) { in getFloatAttribute() argument 633 if (value == null) return defaultValue; in getFloatAttribute() 642 public int getIntAttribute (String name, int defaultValue) { in getIntAttribute() argument 644 if (value == null) return defaultValue; in getIntAttribute() 653 public boolean getBooleanAttribute (String name, boolean defaultValue) { in getBooleanAttribute() argument 655 if (value == null) return defaultValue; in getBooleanAttribute() 669 public String get (String name, String defaultValue) { in get() argument [all …]
|
D | IntFloatMap.java | 295 public float get (int key, float defaultValue) { in get() argument 297 if (!hasZeroValue) return defaultValue; in get() 305 if (keyTable[index] != key) return getStash(key, defaultValue); in get() 311 private float getStash (int key, float defaultValue) { in getStash() argument 315 return defaultValue; in getStash() 320 public float getAndIncrement (int key, float defaultValue, float increment) { in getAndIncrement() argument 328 zeroValue = defaultValue + increment; in getAndIncrement() 330 return defaultValue; in getAndIncrement() 338 if (key != keyTable[index]) return getAndIncrementStash(key, defaultValue, increment); in getAndIncrement() 346 private float getAndIncrementStash (int key, float defaultValue, float increment) { in getAndIncrementStash() argument [all …]
|
D | IntIntMap.java | 293 public int get (int key, int defaultValue) { in get() argument 295 if (!hasZeroValue) return defaultValue; in get() 303 if (keyTable[index] != key) return getStash(key, defaultValue); in get() 309 private int getStash (int key, int defaultValue) { in getStash() argument 313 return defaultValue; in getStash() 318 public int getAndIncrement (int key, int defaultValue, int increment) { in getAndIncrement() argument 326 zeroValue = defaultValue + increment; in getAndIncrement() 328 return defaultValue; in getAndIncrement() 336 if (key != keyTable[index]) return getAndIncrementStash(key, defaultValue, increment); in getAndIncrement() 344 private int getAndIncrementStash (int key, int defaultValue, int increment) { in getAndIncrementStash() argument [all …]
|
/external/skia/include/utils/ |
D | SkRTConf.h | 38 SkRTConf(const char *name, const T &defaultValue, const char *description); 53 …CLARE(confType, varName, confName, defaultValue, description) static SkRTConf<confType> varName(co… argument 62 …K_CONF_DECLARE(confType, varName, confName, defaultValue, description) static confType varName = d… argument 107 SkRTConf<T>::SkRTConf(const char *name, const T &defaultValue, const char *description) in SkRTConf() argument 109 , fValue(defaultValue) in SkRTConf() 110 , fDefault(defaultValue) in SkRTConf()
|