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

12345

/frameworks/base/core/java/android/util/
H A DXmlPullAttributes.java58 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);
57 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
63 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
69 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument
75 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
81 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
87 getAttributeFloatValue(String namespace, String attribute, float defaultValue) argument
96 getAttributeListValue(int index, String[] options, int defaultValue) argument
102 getAttributeBooleanValue(int index, boolean defaultValue) argument
107 getAttributeResourceValue(int index, int defaultValue) argument
112 getAttributeIntValue(int index, int defaultValue) argument
117 getAttributeUnsignedIntValue(int index, int defaultValue) argument
122 getAttributeFloatValue(int index, float defaultValue) argument
138 getIdAttributeResourceValue(int defaultValue) argument
[all...]
H A DAttributeSet.java130 * @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 Wha
135 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
147 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
165 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument
177 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
191 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
203 getAttributeFloatValue(String namespace, String attribute, float defaultValue) argument
217 getAttributeListValue(int index, String[] options, int defaultValue) argument
227 getAttributeBooleanValue(int index, boolean defaultValue) argument
243 getAttributeResourceValue(int index, int defaultValue) argument
253 getAttributeIntValue(int index, int defaultValue) argument
265 getAttributeUnsignedIntValue(int index, int defaultValue) argument
275 getAttributeFloatValue(int index, float defaultValue) argument
301 getIdAttributeResourceValue(int defaultValue) argument
[all...]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DTypedArrayUtils.java28 int resId, float defaultValue) {
31 return defaultValue;
33 return a.getFloat(resId, defaultValue);
38 int resId, boolean defaultValue) {
41 return defaultValue;
43 return a.getBoolean(resId, defaultValue);
48 int resId, int defaultValue) {
51 return defaultValue;
53 return a.getInt(resId, defaultValue);
58 int resId, int defaultValue) {
27 getNamedFloat(TypedArray a, XmlPullParser parser, String attrName, int resId, float defaultValue) argument
37 getNamedBoolean(TypedArray a, XmlPullParser parser, String attrName, int resId, boolean defaultValue) argument
47 getNamedInt(TypedArray a, XmlPullParser parser, String attrName, int resId, int defaultValue) argument
57 getNamedColor(TypedArray a, XmlPullParser parser, String attrName, int resId, int defaultValue) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeLayoutParamsMapAttributes.java80 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) { argument
126 public int getAttributeResourceValue(int index, int defaultValue) { argument
131 public int getAttributeIntValue(int index, int defaultValue) { argument
79 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
85 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
91 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument
97 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
103 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
109 getAttributeFloatValue(String namespace, String attribute, float defaultValue) argument
115 getAttributeListValue(int index, String[] options, int defaultValue) argument
136 getAttributeUnsignedIntValue(int index, int defaultValue) argument
141 getAttributeFloatValue(int index, float defaultValue) argument
156 getIdAttributeResourceValue(int defaultValue) argument
[all...]
H A DBridgeXmlBlockParser.java409 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument
410 return mAttrib.getAttributeBooleanValue(index, defaultValue);
415 boolean defaultValue) {
416 return mAttrib.getAttributeBooleanValue(namespace, attribute, defaultValue);
420 public float getAttributeFloatValue(int index, float defaultValue) { argument
421 return mAttrib.getAttributeFloatValue(index, defaultValue);
425 public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) { argument
426 return mAttrib.getAttributeFloatValue(namespace, attribute, defaultValue);
430 public int getAttributeIntValue(int index, int defaultValue) { argument
431 return mAttrib.getAttributeIntValue(index, defaultValue);
414 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
435 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
440 getAttributeListValue(int index, String[] options, int defaultValue) argument
445 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
456 getAttributeResourceValue(int index, int defaultValue) argument
461 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument
466 getAttributeUnsignedIntValue(int index, int defaultValue) argument
471 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
486 getIdAttributeResourceValue(int defaultValue) argument
[all...]
/frameworks/base/core/java/android/app/
H A DAppGlobals.java54 * @param defaultValue The setting default value.
57 public static int getIntCoreSetting(String key, int defaultValue) { argument
60 return currentActivityThread.getIntCoreSetting(key, defaultValue);
62 return defaultValue;
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java84 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) { argument
120 return resolveResourceValue(value, defaultValue);
125 int defaultValue) {
134 return XmlUtils.convertValueToInt(value, defaultValue);
83 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
100 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
124 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
141 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
158 getAttributeFloatValue(String namespace, String attribute, float defaultValue) argument
175 getAttributeListValue(int index, String[] options, int defaultValue) argument
182 getAttributeBooleanValue(int index, boolean defaultValue) argument
198 getAttributeResourceValue(int index, int defaultValue) argument
205 getAttributeIntValue(int index, int defaultValue) argument
224 getAttributeUnsignedIntValue(int index, int defaultValue) argument
240 getAttributeFloatValue(int index, float defaultValue) argument
269 resolveResourceValue(String value, int defaultValue) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSystemPropertyService.java22 public String get(String key, String defaultValue) { argument
23 return android.os.SystemProperties.get(key, defaultValue);
H A DPropertyService.java28 * @return value of |key|, if key exists; |defaultValue| or empty string otherwise
31 String get(String key, String defaultValue); argument
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/util/
H A DSystemProperties.java33 * @param defaultValue the value to return if the property is undefined or empty (this parameter
37 public static String get(String key, String defaultValue) { argument
41 return (String) get.invoke(null, key, defaultValue);
45 return defaultValue;
/frameworks/base/core/java/org/apache/http/params/
H A DHttpParams.java92 * @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
/frameworks/base/media/java/android/media/
H A DAudioGain.java73 int minValue, int maxValue, int defaultValue, int stepValue,
80 mDefaultValue = defaultValue;
118 public int defaultValue() { method in class:AudioGain
72 AudioGain(int index, int mode, int channelMask, int minValue, int maxValue, int defaultValue, int stepValue, int rampDurationMinMs, int rampDurationMaxMs) argument
H A DMediaMetadataEditor.java328 * @param defaultValue the value returned if the key is not present
332 public synchronized long getLong(int key, long defaultValue) argument
337 return mEditorMetadata.getLong(String.valueOf(key), defaultValue);
343 * @param defaultValue the value returned if the key is not present
348 public synchronized String getString(int key, String defaultValue) argument
353 return mEditorMetadata.getString(String.valueOf(key), defaultValue);
359 * @param defaultValue the value returned if the key is not present
364 public synchronized Bitmap getBitmap(int key, Bitmap defaultValue) argument
369 return (mEditorArtwork != null ? mEditorArtwork : defaultValue);
375 * @param defaultValue th
381 getObject(int key, Object defaultValue) argument
[all...]
/frameworks/native/services/inputflinger/
H A DInputApplication.h53 inline nsecs_t getDispatchingTimeout(nsecs_t defaultValue) const {
54 return mInfo ? mInfo->dispatchingTimeout : defaultValue;
/frameworks/base/core/java/android/content/res/
H A DXmlBlock.java315 String[] options, int defaultValue) {
318 return getAttributeListValue(idx, options, defaultValue);
320 return defaultValue;
323 boolean defaultValue) {
326 return getAttributeBooleanValue(idx, defaultValue);
328 return defaultValue;
331 int defaultValue) {
334 return getAttributeResourceValue(idx, defaultValue);
336 return defaultValue;
339 int defaultValue) {
314 getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) argument
322 getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) argument
330 getAttributeResourceValue(String namespace, String attribute, int defaultValue) argument
338 getAttributeIntValue(String namespace, String attribute, int defaultValue) argument
346 getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) argument
355 getAttributeFloatValue(String namespace, String attribute, float defaultValue) argument
364 getAttributeListValue(int idx, String[] options, int defaultValue) argument
374 getAttributeBooleanValue(int idx, boolean defaultValue) argument
385 getAttributeResourceValue(int idx, int defaultValue) argument
394 getAttributeIntValue(int idx, int defaultValue) argument
404 getAttributeUnsignedIntValue(int idx, int defaultValue) argument
414 getAttributeFloatValue(int idx, float defaultValue) argument
434 getIdAttributeResourceValue(int defaultValue) argument
[all...]
/frameworks/support/core-utils/java/android/support/v4/content/res/
H A DTypedArrayUtils.java36 @StyleableRes int fallbackIndex, boolean defaultValue) {
37 boolean val = a.getBoolean(fallbackIndex, defaultValue);
51 @StyleableRes int fallbackIndex, int defaultValue) {
52 int val = a.getInt(fallbackIndex, defaultValue);
57 @StyleableRes int fallbackIndex, @AnyRes int defaultValue) {
58 int val = a.getResourceId(fallbackIndex, defaultValue);
35 getBoolean(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, boolean defaultValue) argument
50 getInt(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, int defaultValue) argument
56 getResourceId(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, @AnyRes int defaultValue) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DPrefs.java71 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { argument
72 return get(context).getBoolean(key, defaultValue);
79 public static int getInt(Context context, @Key String key, int defaultValue) { argument
80 return get(context).getInt(key, defaultValue);
87 public static long getLong(Context context, @Key String key, long defaultValue) { argument
88 return get(context).getLong(key, defaultValue);
95 public static String getString(Context context, @Key String key, String defaultValue) { argument
96 return get(context).getString(key, defaultValue);
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/util/
H A DXmlUtils_Delegate.java32 /*package*/ static final int convertValueToInt(CharSequence charSeq, int defaultValue) { argument
34 return defaultValue;
/frameworks/base/core/java/android/os/
H A DBaseBundle.java702 Object defaultValue, ClassCastException e) {
711 sb.append(defaultValue);
723 * Returns the value associated with the given key, or defaultValue if
727 * @param defaultValue Value to return if key does not exist
730 public boolean getBoolean(String key, boolean defaultValue) { argument
734 return defaultValue;
739 typeWarning(key, o, "Boolean", defaultValue, e);
740 return defaultValue;
757 * Returns the value associated with the given key, or defaultValue if
761 * @param defaultValue Valu
701 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument
764 getByte(String key, byte defaultValue) argument
798 getChar(String key, char defaultValue) argument
832 getShort(String key, short defaultValue) argument
866 getInt(String key, int defaultValue) argument
900 getLong(String key, long defaultValue) argument
934 getFloat(String key, float defaultValue) argument
968 getDouble(String key, double defaultValue) argument
1013 getString(@ullable String key, String defaultValue) argument
1049 getCharSequence(@ullable String key, CharSequence defaultValue) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DILockSettings.aidl28 boolean getBoolean(in String key, in boolean defaultValue, in int userId);
29 long getLong(in String key, in long defaultValue, in int userId);
30 String getString(in String key, in String defaultValue, in int userId);
/frameworks/base/telephony/java/com/android/ims/
H A DImsCallProfile.java244 public String getCallExtra(String name, String defaultValue) { argument
246 return defaultValue;
249 return mCallExtras.getString(name, defaultValue);
256 public boolean getCallExtraBoolean(String name, boolean defaultValue) { argument
258 return defaultValue;
261 return mCallExtras.getBoolean(name, defaultValue);
268 public int getCallExtraInt(String name, int defaultValue) { argument
270 return defaultValue;
273 return mCallExtras.getInt(name, defaultValue);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioGain.h43 void setDefaultValueInMb(int defaultValue) { mGain.default_value = defaultValue; } argument
/frameworks/base/core/java/android/security/keymaster/
H A DKeymasterArguments.java92 * Returns the value of the specified enum tag or {@code defaultValue} if the tag is not
97 public int getEnum(int tag, int defaultValue) { argument
103 return defaultValue;
153 * Returns the value of the specified unsigned 32-bit int tag or {@code defaultValue} if the tag
158 public long getUnsignedInt(int tag, long defaultValue) { argument
164 return defaultValue;
261 * Returns the value of the specified bytes tag or {@code defaultValue} if the tag is not
266 public byte[] getBytes(int tag, byte[] defaultValue) { argument
272 return defaultValue;
315 * Returns the value of the specified date tag or {@code defaultValue} i
322 getDate(int tag, Date defaultValue) argument
[all...]
/frameworks/support/core-utils/kitkat/android/support/v4/provider/
H A DDocumentsContractApi19.java143 String defaultValue) {
152 return defaultValue;
156 return defaultValue;
163 int defaultValue) {
164 return (int) queryForLong(context, self, column, defaultValue);
168 long defaultValue) {
177 return defaultValue;
181 return defaultValue;
142 queryForString(Context context, Uri self, String column, String defaultValue) argument
162 queryForInt(Context context, Uri self, String column, int defaultValue) argument
167 queryForLong(Context context, Uri self, String column, long defaultValue) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java555 * @param defaultValue the String to return if the tag's value does not
557 * @return the tag's value as a String, or the defaultValue.
559 public String getValueAsString(String defaultValue) { argument
562 return defaultValue;
586 * @param defaultValue the byte to return if tag's value does not exist or
588 * @return the tag's value as a byte, or the defaultValue.
590 public byte getValueAsByte(byte defaultValue) { argument
593 return defaultValue;
617 * @param defaultValue the Rational to return if tag's value does not exist
619 * @return the tag's value as a Rational, or the defaultValue
621 getValueAsRational(Rational defaultValue) argument
639 getValueAsRational(long defaultValue) argument
674 getValueAsInt(int defaultValue) argument
705 getValueAsLong(long defaultValue) argument
728 forceGetValueAsLong(long defaultValue) argument
[all...]

Completed in 451 milliseconds

12345