HomeSort by relevance Sort by last modified time
    Searched refs:defaultValue (Results 1 - 25 of 545) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/base/
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(String.class))
    [all...]
  /cts/tools/signature-tools/src/signature/model/impl/
SigAnnotationField.java 27 private Object defaultValue = Uninitialized.unset();
34 return defaultValue;
37 public void setDefaultValue(Object defaultValue) {
38 this.defaultValue = defaultValue;
  /frameworks/base/core/java/android/util/
XmlPullAttributes.java 58 String[] options, int defaultValue) {
60 getAttributeValue(namespace, attribute), options, defaultValue);
64 boolean defaultValue) {
66 getAttributeValue(namespace, attribute), defaultValue);
70 int defaultValue) {
72 getAttributeValue(namespace, attribute), defaultValue);
76 int defaultValue) {
78 getAttributeValue(namespace, attribute), defaultValue);
82 int defaultValue) {
84 getAttributeValue(namespace, attribute), defaultValue);
    [all...]
AttributeSet.java 130 * @param defaultValue Value returned if attribute doesn't exist or no
133 * @return Index in to 'options' or defaultValue.
136 String[] options, int defaultValue);
143 * @param defaultValue What to return if the attribute isn't found.
148 boolean defaultValue);
161 * @param defaultValue What to return if the attribute isn't found.
166 int defaultValue);
173 * @param defaultValue What to return if the attribute isn't found.
178 int defaultValue);
187 * @param defaultValue What to return if the attribute isn't found
    [all...]
  /libcore/luni/src/main/java/java/io/
EmulatedFieldsForLoading.java 83 * default value <code>defaultValue</code> is returned instead.
87 * @param defaultValue
98 public byte get(String name, byte defaultValue) throws IOException,
100 return emulatedFields.get(name, defaultValue);
106 * default value <code>defaultValue</code> is returned instead.
110 * @param defaultValue
121 public char get(String name, char defaultValue) throws IOException,
123 return emulatedFields.get(name, defaultValue);
129 * default value <code>defaultValue</code> is returned instead.
133 * @param defaultValue
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/page/
EditorClient.h 46 virtual bool canCopyCut(Frame*, bool defaultValue) const = 0;
47 virtual bool canPaste(Frame*, bool defaultValue) const = 0;
  /external/chromium_org/third_party/WebKit/public/web/
WebPermissionClient.h 90 virtual bool allowReadFromClipboard(WebFrame*, bool defaultValue) { return defaultValue; }
93 virtual bool allowWriteToClipboard(WebFrame*, bool defaultValue) { return defaultValue; }
97 virtual bool allowWebComponents(WebFrame*, bool defaultValue) { return defaultValue; }
102 virtual bool allowMutationEvents(WebFrame*, bool defaultValue) { return defaultValue; }
108 virtual bool allowWebComponents(const WebDocument&, bool defaultValue) { return defaultValue; }
    [all...]
  /external/proguard/src/proguard/classfile/attribute/annotation/
AnnotationDefaultAttribute.java 35 public ElementValue defaultValue;
50 ElementValue defaultValue)
54 this.defaultValue = defaultValue;
63 defaultValue.accept(clazz, null, elementValueVisitor);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
BridgeLayoutParamsMapAttributes.java 80 String[] options, int defaultValue) {
86 boolean defaultValue) {
92 int defaultValue) {
98 int defaultValue) {
104 int defaultValue) {
110 float defaultValue) {
116 String[] options, int defaultValue) {
121 public boolean getAttributeBooleanValue(int index, boolean defaultValue) {
126 public int getAttributeResourceValue(int index, int defaultValue) {
131 public int getAttributeIntValue(int index, int defaultValue) {
    [all...]
  /frameworks/base/core/java/android/app/
AppGlobals.java 54 * @param defaultValue The setting default value.
57 public static int getIntCoreSetting(String key, int defaultValue) {
60 return currentActivityThread.getIntCoreSetting(key, defaultValue);
62 return defaultValue;
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
Settings.java 109 int getUploadBandwidth(int defaultValue) {
111 return (bit & set) != 0 ? values[UPLOAD_BANDWIDTH] : defaultValue;
114 int getDownloadBandwidth(int defaultValue) {
116 return (bit & set) != 0 ? values[DOWNLOAD_BANDWIDTH] : defaultValue;
119 int getRoundTripTime(int defaultValue) {
121 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue;
124 int getMaxConcurrentStreams(int defaultValue) {
126 return (bit & set) != 0 ? values[MAX_CONCURRENT_STREAMS] : defaultValue;
129 int getCurrentCwnd(int defaultValue) {
131 return (bit & set) != 0 ? values[CURRENT_CWND] : defaultValue;
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/util/
BridgeXmlPullAttributes.java 83 String[] options, int defaultValue) {
92 return XmlUtils.convertValueToList(value, options, defaultValue);
95 return defaultValue;
100 boolean defaultValue) {
109 return XmlUtils.convertValueToBoolean(value, defaultValue);
112 return defaultValue;
116 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) {
119 return resolveResourceValue(value, defaultValue);
124 int defaultValue) {
133 return XmlUtils.convertValueToInt(value, defaultValue);
    [all...]
  /external/apache-http/src/org/apache/http/params/
AbstractHttpParams.java 56 public long getLongParameter(final String name, long defaultValue) {
59 return defaultValue;
69 public int getIntParameter(final String name, int defaultValue) {
72 return defaultValue;
82 public double getDoubleParameter(final String name, double defaultValue) {
85 return defaultValue;
95 public boolean getBooleanParameter(final String name, boolean defaultValue) {
98 return defaultValue;
HttpParams.java 87 * @param defaultValue the default value.
93 long getLongParameter(String name, long defaultValue);
108 * @param defaultValue the default value.
114 int getIntParameter(String name, int defaultValue);
129 * @param defaultValue the default value.
135 double getDoubleParameter(String name, double defaultValue);
150 * @param defaultValue the default value.
156 boolean getBooleanParameter(String name, boolean defaultValue);
  /external/chromium_org/third_party/WebKit/Source/web/
EditorClientImpl.cpp 61 bool EditorClientImpl::canCopyCut(Frame* frame, bool defaultValue) const
65 return webFrame->permissionClient()->allowWriteToClipboard(webFrame, defaultValue);
68 return defaultValue;
69 return m_webView->permissionClient()->allowWriteToClipboard(webFrame, defaultValue);
72 bool EditorClientImpl::canPaste(Frame* frame, bool defaultValue) const
76 return webFrame->permissionClient()->allowReadFromClipboard(webFrame, defaultValue);
79 return defaultValue;
80 return m_webView->permissionClient()->allowReadFromClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
ContextFeaturesClientImpl.cpp 65 void set(bool value, bool defaultValue)
68 m_defaultValue = defaultValue;
71 bool needsRefresh(bool defaultValue) const
73 return m_value == NeedsRefresh || m_defaultValue != defaultValue;
124 bool ContextFeaturesClientImpl::isEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue)
127 if (cache.needsRefresh(defaultValue))
128 cache.set(askIfIsEnabled(document, type, defaultValue), defaultValue);
137 bool ContextFeaturesClientImpl::askIfIsEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue)
140 return defaultValue;
    [all...]
ContextFeaturesClientImpl.h 46 virtual bool isEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue) OVERRIDE;
51 bool askIfIsEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue);
EditorClientImpl.h 53 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const OVERRIDE;
54 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const OVERRIDE;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
AsyncResultHolder.java 56 * @param defaultValue the default value.
58 * @return if the result is set until the time limit then the result, otherwise defaultValue.
60 public E get(final E defaultValue, final long timeOut) {
65 return defaultValue;
68 return defaultValue;
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
GLIntegerProperty.java 27 public GLIntegerProperty(GLStateType name, Integer defaultValue, DisplayRadix radix) {
30 mDefaultValue = mCurrentValue = defaultValue;
34 public GLIntegerProperty(GLStateType name, Integer defaultValue) {
35 this(name, defaultValue, DisplayRadix.DECIMAL);
  /external/qemu/android/utils/
ini.h 68 /* 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/chromium_org/third_party/WebKit/Source/modules/webaudio/
AudioParam.h 51 static PassRefPtr<AudioParam> create(AudioContext* context, const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0)
53 return adoptRef(new AudioParam(context, name, defaultValue, minValue, maxValue, units));
72 float defaultValue() const { return static_cast<float>(m_defaultValue); }
107 AudioParam(AudioContext* context, const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0)
110 , m_value(defaultValue)
111 , m_defaultValue(defaultValue)
115 , m_smoothedValue(defaultValue)
  /external/jsilver/src/com/google/clearsilver/jsilver/data/
AbstractData.java 51 public String getValue(String path, String defaultValue) {
54 return defaultValue;
57 return result == null ? defaultValue : result;
67 public int getIntValue(String path, int defaultValue) {
70 return defaultValue;
74 return result == null ? defaultValue : TypeConverter.parseNumber(result);
76 return defaultValue;
  /external/chromium_org/third_party/WebKit/Source/core/dom/
ContextFeatures.h 84 virtual bool isEnabled(Document*, ContextFeatures::FeatureType, bool defaultValue) { return defaultValue; }
96 inline bool ContextFeatures::isEnabled(Document* document, FeatureType type, bool defaultValue) const
99 return defaultValue;
100 return m_client->isEnabled(document, type, defaultValue);
  /external/skia/tools/flags/
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, \
    [all...]

Completed in 1554 milliseconds

1 2 3 4 5 6 7 8 91011>>