Searched refs:defaultValue (Results 1 - 25 of 245) sorted by relevance

12345678910

/external/guava/guava-tests/test/com/google/common/base/
H A DDefaultsTest.java28 assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
29 assertEquals('\0', Defaults.defaultValue(char.class).charValue());
30 assertEquals(0, Defaults.defaultValue(byte.class).byteValue());
31 assertEquals(0, Defaults.defaultValue(short.class).shortValue());
32 assertEquals(0, Defaults.defaultValue(int.class).intValue());
33 assertEquals(0, Defaults.defaultValue(long.class).longValue());
34 assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue());
35 assertEquals(0.0d, Defaults.defaultValue(double.class).doubleValue());
36 assertNull(Defaults.defaultValue(void.class));
37 assertNull(Defaults.defaultValue(Strin
[all...]
/external/webkit/Source/WebCore/webaudio/
H A DAudioGain.h39 static PassRefPtr<AudioGain> create(const char* name, double defaultValue, double minValue, double maxValue) argument
41 return adoptRef(new AudioGain(name, defaultValue, minValue, maxValue));
45 AudioGain(const char* name, double defaultValue, double minValue, double maxValue) argument
46 : AudioParam(name, defaultValue, minValue, maxValue)
H A DAudioParam.h44 static PassRefPtr<AudioParam> create(const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0) argument
46 return adoptRef(new AudioParam(name, defaultValue, minValue, maxValue, units));
49 AudioParam(const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0) argument
51 , m_value(defaultValue)
52 , m_defaultValue(defaultValue)
56 , m_smoothedValue(defaultValue)
69 float defaultValue() const { return static_cast<float>(m_defaultValue); } function in class:WebCore::AudioParam
H A DAudioParam.idl36 readonly attribute float defaultValue;
/external/proguard/src/proguard/classfile/attribute/annotation/
H A DAnnotationDefaultAttribute.java35 public ElementValue defaultValue; field in class:AnnotationDefaultAttribute
50 ElementValue defaultValue)
54 this.defaultValue = defaultValue;
63 defaultValue.accept(clazz, null, elementValueVisitor);
49 AnnotationDefaultAttribute(int u2attributeNameIndex, ElementValue defaultValue) argument
/external/apache-http/src/org/apache/http/params/
H A DAbstractHttpParams.java56 public long getLongParameter(final String name, long defaultValue) { argument
59 return defaultValue;
69 public int getIntParameter(final String name, int defaultValue) { argument
72 return defaultValue;
82 public double getDoubleParameter(final String name, double defaultValue) { argument
85 return defaultValue;
95 public boolean getBooleanParameter(final String name, boolean defaultValue) { argument
98 return defaultValue;
H A DHttpParams.java87 * @param defaultValue the default value.
93 long getLongParameter(String name, long defaultValue); argument
108 * @param defaultValue the default value.
114 int getIntParameter(String name, int defaultValue); argument
129 * @param defaultValue the default value.
135 double getDoubleParameter(String name, double defaultValue); argument
150 * @param defaultValue the default value.
156 boolean getBooleanParameter(String name, boolean defaultValue); argument
/external/qemu/android/utils/
H A Dini.h68 /* returns a copy of the value of a given key, or NULL if defaultValue is NULL.
71 char* iniFile_getString( IniFile* f, const char* key, const char* defaultValue );
76 int iniFile_getInteger( IniFile* f, const char* key, int defaultValue );
81 int64_t iniFile_getInt64( IniFile* f, const char* key, int64_t defaultValue );
86 double iniFile_getDouble( IniFile* f, const char* key, double defaultValue );
92 int iniFile_getBoolean( IniFile* f, const char* key, const char* defaultValue );
100 int64_t iniFile_getDiskSize( IniFile* f, const char* key, const char* defaultValue );
/external/jsilver/src/com/google/clearsilver/jsilver/data/
H A DAbstractData.java51 public String getValue(String path, String defaultValue) { argument
54 return defaultValue;
57 return result == null ? defaultValue : result;
67 public int getIntValue(String path, int defaultValue) { argument
70 return defaultValue;
74 return result == null ? defaultValue : TypeConverter.parseNumber(result);
76 return defaultValue;
H A DChainedData.java141 public String getValue(String path, String defaultValue) { argument
146 return defaultValue;
151 public int getIntValue(String path, int defaultValue) { argument
156 return value == null ? defaultValue : TypeConverter.parseNumber(value);
158 return defaultValue;
161 return defaultValue;
/external/webkit/Source/WebCore/html/
H A DResetInputType.h47 virtual String defaultValue();
H A DResetInputType.cpp66 String ResetInputType::defaultValue() function in class:WebCore::ResetInputType
H A DSubmitInputType.h49 virtual String defaultValue();
H A DStepRange.h44 double defaultValue() function in class:WebCore::StepRange
H A DHTMLOutputElement.idl32 attribute [ConvertNullToNullString] DOMString defaultValue;
/external/webkit/Source/WebCore/inspector/front-end/
H A DSettings.js80 installApplicationSetting: function(key, defaultValue)
85 this.__defineGetter__(key, this._get.bind(this, key, defaultValue));
89 _get: function(key, defaultValue)
98 return defaultValue;
/external/webkit/Source/WebCore/page/
H A DWindowFeatures.h84 static bool boolFeature(const DialogFeaturesMap&, const char* key, bool defaultValue = false);
85 static float floatFeature(const DialogFeaturesMap&, const char* key, float min, float max, float defaultValue);
/external/webkit/Source/WebCore/svg/
H A DSVGStyleElement.cpp56 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css"));
58 return n.isNull() ? defaultValue : n;
68 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("all"));
70 return n.isNull() ? defaultValue : n;
/external/webkit/LayoutTests/dom/html/level2/html/
H A DHTMLInputElement01.js78 The defaultValue attribute represents the HTML value of the attribute
81 Retrieve the defaultValue attribute of the 1st INPUT element and examine
104 vdefaultvalue = testNode.defaultValue;
H A DHTMLTextAreaElement01.js78 The defaultValue attribute represents the HTML value of the attribute
81 Retrieve the defaultValue attribute of the 2nd TEXTAREA element and examine
104 vdefaultvalue = testNode.defaultValue;
/external/webkit/LayoutTests/dom/xhtml/level2/html/
H A DHTMLInputElement01.js78 The defaultValue attribute represents the HTML value of the attribute
81 Retrieve the defaultValue attribute of the 1st INPUT element and examine
104 vdefaultvalue = testNode.defaultValue;
H A DHTMLTextAreaElement01.js78 The defaultValue attribute represents the HTML value of the attribute
81 Retrieve the defaultValue attribute of the 2nd TEXTAREA element and examine
104 vdefaultvalue = testNode.defaultValue;
/external/guava/guava/src/com/google/common/base/
H A DFunctions.java135 * this method returns {@code defaultValue} for all inputs that do not belong to the map's key
139 * @param defaultValue the value to return for inputs that aren't map keys
141 * defaultValue} otherwise
143 public static <K, V> Function<K, V> forMap(Map<K, ? extends V> map, @Nullable V defaultValue) { argument
144 return new ForMapWithDefault<K, V>(map, defaultValue);
149 final V defaultValue; field in class:Functions.ForMapWithDefault
151 ForMapWithDefault(Map<K, ? extends V> map, @Nullable V defaultValue) { argument
153 this.defaultValue = defaultValue;
159 return (result != null || map.containsKey(key)) ? result : defaultValue;
[all...]
H A DOptional.java114 * Returns the contained instance if it is present; {@code defaultValue} otherwise. If
118 public abstract T or(T defaultValue); argument
213 @Override public T or(T defaultValue) { argument
214 checkNotNull(defaultValue, "use orNull() instead of or(null)");
266 @Override public Object or(Object defaultValue) { argument
267 return checkNotNull(defaultValue, "use orNull() instead of or(null)");
/external/jsilver/src/org/clearsilver/
H A DHDF.java74 int getIntValue(String hdfName, int defaultValue); argument
79 String getValue(String hdfName, String defaultValue); argument

Completed in 511 milliseconds

12345678910