/external/guava/guava-tests/test/com/google/common/base/ |
H A D | DefaultsTest.java | 28 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/proguard/src/proguard/classfile/attribute/annotation/ |
H A D | AnnotationDefaultAttribute.java | 35 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/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
H A D | Settings.java | 132 int getUploadBandwidth(int defaultValue) { argument 134 return (bit & set) != 0 ? values[UPLOAD_BANDWIDTH] : defaultValue; 144 int getDownloadBandwidth(int defaultValue) { argument 146 return (bit & set) != 0 ? values[DOWNLOAD_BANDWIDTH] : defaultValue; 151 boolean getEnablePush(boolean defaultValue) { argument 153 return ((bit & set) != 0 ? values[ENABLE_PUSH] : defaultValue ? 1 : 0) == 1; 157 int getRoundTripTime(int defaultValue) { argument 159 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue; 163 int getMaxConcurrentStreams(int defaultValue) { argument 165 return (bit & set) != 0 ? values[MAX_CONCURRENT_STREAMS] : defaultValue; 169 getCurrentCwnd(int defaultValue) argument 175 getDownloadRetransRate(int defaultValue) argument 180 getInitialWindowSize(int defaultValue) argument 186 getClientCertificateVectorSize(int defaultValue) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
H A D | EditorClientImpl.cpp | 61 bool EditorClientImpl::canCopyCut(LocalFrame* frame, bool defaultValue) const 65 return defaultValue; 66 return webFrame->permissionClient()->allowWriteToClipboard(defaultValue); 69 bool EditorClientImpl::canPaste(LocalFrame* frame, bool defaultValue) const 73 return defaultValue; 74 return webFrame->permissionClient()->allowReadFromClipboard(defaultValue);
|
H A D | ContextFeaturesClientImpl.cpp | 64 void set(bool value, bool defaultValue) argument 67 m_defaultValue = defaultValue; 70 bool needsRefresh(bool defaultValue) const 72 return m_value == NeedsRefresh || m_defaultValue != defaultValue; 123 bool ContextFeaturesClientImpl::isEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) argument 127 if (cache.needsRefresh(defaultValue)) 128 cache.set(askIfIsEnabled(document, type, defaultValue), defaultValue); local 138 bool ContextFeaturesClientImpl::askIfIsEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) argument 142 return defaultValue; [all...] |
H A D | ContextFeaturesClientImpl.h | 45 virtual bool isEnabled(Document*, ContextFeatures::FeatureType, bool defaultValue) OVERRIDE; 51 bool askIfIsEnabled(Document*, ContextFeatures::FeatureType, bool defaultValue);
|
H A D | EditorClientImpl.h | 50 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE; 51 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE;
|
/external/apache-http/src/org/apache/http/params/ |
H A D | AbstractHttpParams.java | 61 public long getLongParameter(final String name, long defaultValue) { argument 64 return defaultValue; 74 public int getIntParameter(final String name, int defaultValue) { argument 77 return defaultValue; 87 public double getDoubleParameter(final String name, double defaultValue) { argument 90 return defaultValue; 100 public boolean getBooleanParameter(final String name, boolean defaultValue) { argument 103 return defaultValue;
|
H A D | HttpParams.java | 92 * @param defaultValue the default value. 98 long getLongParameter(String name, long defaultValue); argument 113 * @param defaultValue the default value. 119 int getIntParameter(String name, int defaultValue); argument 134 * @param defaultValue the default value. 140 double getDoubleParameter(String name, double defaultValue); argument 155 * @param defaultValue the default value. 161 boolean getBooleanParameter(String name, boolean defaultValue); argument
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
H A D | EditorClient.h | 44 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const = 0; 45 virtual bool canPaste(LocalFrame*, bool defaultValue) const = 0;
|
H A D | WindowFeatures.h | 86 static bool boolFeature(const DialogFeaturesMap&, const char* key, bool defaultValue = false); 87 static float floatFeature(const DialogFeaturesMap&, const char* key, float min, float max, float defaultValue);
|
/external/chromium_org/third_party/WebKit/public/web/ |
H A D | WebPermissionClient.h | 95 virtual bool allowReadFromClipboard(bool defaultValue) { return defaultValue; } argument 98 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue; } argument 101 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; } argument 106 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; } argument
|
/external/qemu/android/utils/ |
H A D | ini.h | 72 /* returns a copy of the value of a given key, or NULL if defaultValue is NULL. 75 char* iniFile_getString( IniFile* f, const char* key, const char* defaultValue ); 80 int iniFile_getInteger( IniFile* f, const char* key, int defaultValue ); 85 int64_t iniFile_getInt64( IniFile* f, const char* key, int64_t defaultValue ); 90 double iniFile_getDouble( IniFile* f, const char* key, double defaultValue ); 96 int iniFile_getBoolean( IniFile* f, const char* key, const char* defaultValue ); 104 int64_t iniFile_getDiskSize( IniFile* f, const char* key, const char* defaultValue );
|
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
H A D | AudioParam.h | 51 static AudioParam* create(AudioContext* context, double defaultValue) argument 53 return new AudioParam(context, defaultValue); 67 float defaultValue() const { return static_cast<float>(m_defaultValue); } function in class:blink::FINAL 118 AudioParam(AudioContext* context, double defaultValue) argument 120 , m_value(defaultValue) 121 , m_defaultValue(defaultValue) 122 , m_smoothedValue(defaultValue) { }
|
H A D | AudioParam.idl | 34 readonly attribute float defaultValue;
|
H A D | AudioParamTimeline.h | 54 // otherwise defaultValue is returned. 55 float valueForContextTime(AudioContext*, float defaultValue, bool& hasValue); 58 // and returns the last parameter value calculated for "values" or the defaultValue if none were calculated. 62 float valuesForTimeRange(double startTime, double endTime, float defaultValue, float* values, unsigned numberOfValues, double sampleRate, double controlRate); 105 float valuesForTimeRangeImpl(double startTime, double endTime, float defaultValue, float* values, unsigned numberOfValues, double sampleRate, double controlRate);
|
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
H A D | AbstractData.java | 51 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;
|
/external/chromium_org/third_party/skia/tools/flags/ |
H A D | SkCommandLineFlags.h | 20 * DEFINE_bool(name, defaultValue, helpString); 21 * DEFINE_string(name, defaultValue, helpString); 22 * DEFINE_int32(name, defaultValue, helpString); 23 * DEFINE_double(name, defaultValue, helpString); 181 #define DEFINE_bool(name, defaultValue, helpString) \ 186 defaultValue, \ 191 #define DEFINE_bool2(name, shortName, defaultValue, helpString) \ 196 defaultValue, \ 201 #define DEFINE_string(name, defaultValue, helpString) \ 206 defaultValue, \ 263 CreateBoolFlag(const char* name, const char* shortName, bool* pBool, bool defaultValue, const char* helpString) argument 284 CreateIntFlag(const char* name, int32_t* pInt, int32_t defaultValue, const char* helpString) argument 295 CreateDoubleFlag(const char* name, double* pDouble, double defaultValue, const char* helpString) argument 368 SkString defaultValue() const { function in class:SkFlagInfo [all...] |
H A D | SkCommandLineFlags.cpp | 15 const char* defaultValue, const char* helpString) { 17 info->fDefaultString.set(defaultValue); 20 SetDefaultStrings(pStrings, defaultValue); 25 const char* defaultValue) { 27 if (NULL == defaultValue) { 31 size_t defaultLength = strlen(defaultValue); 33 const char* const defaultEnd = defaultValue + defaultLength; 34 const char* begin = defaultValue; 151 if (flag->defaultValue().size() > 0) { 152 SkDebugf("\tdefault: %s", flag->defaultValue() 13 CreateStringFlag(const char* name, const char* shortName, SkCommandLineFlags::StringArray* pStrings, const char* defaultValue, const char* helpString) argument 24 SetDefaultStrings(SkCommandLineFlags::StringArray* pStrings, const char* defaultValue) argument [all...] |
/external/skia/tools/flags/ |
H A D | SkCommandLineFlags.h | 20 * DEFINE_bool(name, defaultValue, helpString); 21 * DEFINE_string(name, defaultValue, helpString); 22 * DEFINE_int32(name, defaultValue, helpString); 23 * DEFINE_double(name, defaultValue, helpString); 177 #define DEFINE_bool(name, defaultValue, helpString) \ 182 defaultValue, \ 187 #define DEFINE_bool2(name, shortName, defaultValue, helpString) \ 192 defaultValue, \ 197 #define DEFINE_string(name, defaultValue, helpString) \ 202 defaultValue, \ 259 CreateBoolFlag(const char* name, const char* shortName, bool* pBool, bool defaultValue, const char* helpString) argument 280 CreateIntFlag(const char* name, int32_t* pInt, int32_t defaultValue, const char* helpString) argument 291 CreateDoubleFlag(const char* name, double* pDouble, double defaultValue, const char* helpString) argument 364 SkString defaultValue() const { function in class:SkFlagInfo [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
H A D | TestAttributeSet.java | 54 public boolean getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) { argument 56 return (value != null) ? Boolean.valueOf(value) : defaultValue; 65 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { argument 72 return (value != null) ? Integer.valueOf(value) : defaultValue; 101 public int getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) { argument 106 public int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) { argument 111 public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) { argument 118 return (value != null) ? Float.valueOf(value) : defaultValue; 122 public int getAttributeListValue(int index, String[] options, int defaultValue) { argument 127 public boolean getAttributeBooleanValue(int resourceId, boolean defaultValue) { argument 132 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument 142 getAttributeResourceValue(int resourceId, int defaultValue) argument 149 getAttributeIntValue(int index, int defaultValue) argument 154 getAttributeUnsignedIntValue(int index, int defaultValue) argument 159 getAttributeFloatValue(int index, float defaultValue) argument 174 getIdAttributeResourceValue(int defaultValue) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
H A D | ContextFeatures.h | 84 virtual bool isEnabled(Document*, ContextFeatures::FeatureType, bool defaultValue) { return defaultValue; } argument 96 inline bool ContextFeatures::isEnabled(Document* document, FeatureType type, bool defaultValue) const 99 return defaultValue; 100 return m_client->isEnabled(document, type, defaultValue);
|
/external/chromium_org/third_party/WebKit/Source/core/html/forms/ |
H A D | ResetInputType.cpp | 67 String ResetInputType::defaultValue() const function in class:blink::ResetInputType
|
H A D | ResetInputType.h | 47 virtual String defaultValue() const OVERRIDE;
|
/external/chromium_org/chrome/browser/resources/chromeos/login/ |
H A D | screen_context.js | 38 * Returns stored value for |key| or |defaultValue| if key not found in 39 * storage. Throws Error if key not found and |defaultValue| omitted. 41 get: function(key, defaultValue) { 45 } else if (typeof defaultValue !== 'undefined') { 46 return defaultValue;
|