/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;
|
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
SystemProperties.java | 21 public static String get(String key, String defaultValue) { 22 return 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(LocalFrame*, bool defaultValue) const = 0; 47 virtual bool canPaste(LocalFrame*, bool defaultValue) const = 0;
|
/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);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
Settings.java | 132 int getUploadBandwidth(int defaultValue) { 134 return (bit & set) != 0 ? values[UPLOAD_BANDWIDTH] : defaultValue; 144 int getDownloadBandwidth(int defaultValue) { 146 return (bit & set) != 0 ? values[DOWNLOAD_BANDWIDTH] : defaultValue; 151 boolean getEnablePush(boolean defaultValue) { 153 return ((bit & set) != 0 ? values[ENABLE_PUSH] : defaultValue ? 1 : 0) == 1; 157 int getRoundTripTime(int defaultValue) { 159 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue; 163 int getMaxConcurrentStreams(int defaultValue) { 165 return (bit & set) != 0 ? values[MAX_CONCURRENT_STREAMS] : defaultValue; [all...] |
/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...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
EditorClientImpl.cpp | 63 bool EditorClientImpl::canCopyCut(LocalFrame* frame, bool defaultValue) const 67 return defaultValue; 68 return webFrame->permissionClient()->allowWriteToClipboard(defaultValue); 71 bool EditorClientImpl::canPaste(LocalFrame* frame, bool defaultValue) const 75 return defaultValue; 76 return webFrame->permissionClient()->allowReadFromClipboard(defaultValue);
|
ContextFeaturesClientImpl.h | 45 virtual bool isEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue) OVERRIDE; 51 bool askIfIsEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue);
|
ContextFeaturesClientImpl.cpp | 66 void set(bool value, bool defaultValue) 69 m_defaultValue = defaultValue; 72 bool needsRefresh(bool defaultValue) const 74 return m_value == NeedsRefresh || m_defaultValue != defaultValue; 125 bool ContextFeaturesClientImpl::isEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) 129 if (cache.needsRefresh(defaultValue)) 130 cache.set(askIfIsEnabled(document, type, defaultValue), defaultValue); 140 bool ContextFeaturesClientImpl::askIfIsEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) 144 return defaultValue; [all...] |
EditorClientImpl.h | 53 virtual bool canCopyCut(WebCore::LocalFrame*, bool defaultValue) const OVERRIDE; 54 virtual bool canPaste(WebCore::LocalFrame*, bool defaultValue) const OVERRIDE;
|
/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;
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
BridgeXmlPullAttributes.java | 84 String[] options, int defaultValue) { 93 return XmlUtils.convertValueToList(value, options, defaultValue); 96 return defaultValue; 101 boolean defaultValue) { 110 return XmlUtils.convertValueToBoolean(value, defaultValue); 113 return defaultValue; 117 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { 120 return resolveResourceValue(value, defaultValue); 125 int defaultValue) { 134 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/public/web/ |
WebPermissionClient.h | 92 virtual bool allowReadFromClipboard(bool defaultValue) { return defaultValue; } 95 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue; } 98 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; } 103 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; }
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/util/ |
SystemProperties.java | 33 * @param defaultValue the value to return if the property is undefined or empty (this parameter 37 public static String get(String key, String defaultValue) { 41 return (String) get.invoke(null, key, defaultValue); 45 return defaultValue;
|
/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 before the time limit then the result, otherwise defaultValue. 60 public E get(final E defaultValue, final long timeOut) { 65 return defaultValue; 68 return defaultValue;
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
DefaultsStore.java | 48 public Defaults(String defaultValue, String[] possibleValues) { 49 mDefaultValue = defaultValue; 70 public void storeDefaults(String key, String defaultValue, String[] possibleValues) { 71 Defaults defaults = new Defaults(defaultValue, possibleValues);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/ |
GLIntegerProperty.java | 25 public GLIntegerProperty(GLStateType name, Integer defaultValue, DisplayRadix radix) { 28 mDefaultValue = mCurrentValue = defaultValue; 32 public GLIntegerProperty(GLStateType name, Integer defaultValue) { 33 this(name, defaultValue, DisplayRadix.DECIMAL);
|
GLLongProperty.java | 25 public GLLongProperty(GLStateType name, Long defaultValue, DisplayRadix radix) { 28 mDefaultValue = mCurrentValue = defaultValue; 32 public GLLongProperty(GLStateType name, Long defaultValue) { 33 this(name, defaultValue, DisplayRadix.DECIMAL);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
Timeouts.java | 40 * @param defaultValue Default value, in milliseconds. 43 private static long get(ContentResolver contentResolver, String key, long defaultValue) { 44 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue);
|