Home
last modified time | relevance | path

Searched refs:defValue (Results 1 – 23 of 23) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintTypedArray.java96 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument
97 return mWrapped.getBoolean(index, defValue); in getBoolean()
100 public int getInt(int index, int defValue) { in getInt() argument
101 return mWrapped.getInt(index, defValue); in getInt()
104 public float getFloat(int index, float defValue) { in getFloat() argument
105 return mWrapped.getFloat(index, defValue); in getFloat()
108 public int getColor(int index, int defValue) { in getColor() argument
109 return mWrapped.getColor(index, defValue); in getColor()
116 public int getInteger(int index, int defValue) { in getInteger() argument
117 return mWrapped.getInteger(index, defValue); in getInteger()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java185 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument
187 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue); in getBoolean()
200 public int getInt(int index, int defValue) { in getInt() argument
204 return XmlUtils.convertValueToInt(s, defValue); in getInt()
211 return defValue; in getInt()
213 return defValue; in getInt()
224 public float getFloat(int index, float defValue) { in getFloat() argument
236 return defValue; in getFloat()
252 public int getColor(int index, int defValue) { in getColor() argument
254 return defValue; in getColor()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.cpp49 int32_t defValue, String8* outError) { in getIntegerAttributeAtIndex() argument
55 return defValue; in getIntegerAttributeAtIndex()
63 return defValue; in getIntegerAttributeAtIndex()
124 const char* attr, int32_t defValue, String8* outError) { in getIntegerAttribute() argument
127 return defValue; in getIntegerAttribute()
129 return getIntegerAttributeAtIndex(tree, idx, defValue, outError); in getIntegerAttribute()
132 int32_t getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, in getIntegerAttribute() argument
136 return defValue; in getIntegerAttribute()
138 return getIntegerAttributeAtIndex(tree, idx, defValue, outError); in getIntegerAttribute()
142 uint32_t attrRes, int32_t defValue, String8* outError) { in getResolvedIntegerAttribute() argument
[all …]
DAaptXml.h54 const char* attr, int32_t defValue = -1, android::String8* outError = NULL);
72 int32_t defValue = -1, android::String8* outError = NULL);
90 const android::ResXMLTree& tree, uint32_t attrRes, int32_t defValue = -1,
/frameworks/base/core/java/android/content/res/
DTypedArray.java270 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument
279 return defValue; in getBoolean()
289 v.coerceToString(), defValue); in getBoolean()
293 return defValue; in getBoolean()
304 public int getInt(int index, int defValue) { in getInt() argument
313 return defValue; in getInt()
323 v.coerceToString(), defValue); in getInt()
327 return defValue; in getInt()
337 public float getFloat(int index, float defValue) { in getFloat() argument
346 return defValue; in getFloat()
[all …]
/frameworks/base/core/java/android/content/
DSharedPreferences.java257 String getString(String key, String defValue); in getString() argument
289 int getInt(String key, int defValue); in getInt() argument
303 long getLong(String key, long defValue); in getLong() argument
317 float getFloat(String key, float defValue); in getFloat() argument
331 boolean getBoolean(String key, boolean defValue); in getBoolean() argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java37 public String getString(String key, String defValue) { in getString() argument
47 public int getInt(String key, int defValue) { in getInt() argument
52 public long getLong(String key, long defValue) { in getLong() argument
57 public float getFloat(String key, float defValue) { in getFloat() argument
62 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument
DBridgeContext.java897 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { in getFrameworkResourceValue() argument
904 return defValue; in getFrameworkResourceValue()
907 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { in getProjectResourceValue() argument
919 return defValue; in getProjectResourceValue()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java220 public String getString(String key, String defValue) { in getString() argument
224 return v != null ? v : defValue; in getString()
236 public int getInt(String key, int defValue) { in getInt() argument
240 return v != null ? v : defValue; in getInt()
243 public long getLong(String key, long defValue) { in getLong() argument
247 return v != null ? v : defValue; in getLong()
250 public float getFloat(String key, float defValue) { in getFloat() argument
254 return v != null ? v : defValue; in getFloat()
257 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument
261 return v != null ? v : defValue; in getBoolean()
/frameworks/base/services/core/java/com/android/server/notification/
DNextAlarmConditionProvider.java170 private static long tryParseLong(String value, long defValue) { in tryParseLong() argument
171 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong()
175 return defValue; in tryParseLong()
DRankingHelper.java285 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() argument
287 return tryParseInt(val, defValue); in safeInt()
290 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument
291 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt()
295 return defValue; in tryParseInt()
DZenModeHelper.java138 int defValue) { in zenModeFromListenerInterruptionFilter() argument
147 return defValue; in zenModeFromListenerInterruptionFilter()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java270 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument
271 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt()
275 return defValue; in tryParseInt()
416 private static boolean safeBoolean(XmlPullParser parser, String att, boolean defValue) { in safeBoolean() argument
418 if (TextUtils.isEmpty(val)) return defValue; in safeBoolean()
422 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() argument
424 return tryParseInt(val, defValue); in safeInt()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java883 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction() argument
885 if (value == null) return defValue; in getDimensionOrFraction()
887 return a.getDimensionPixelOffset(index, defValue); in getDimensionOrFraction()
890 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction()
892 return defValue; in getDimensionOrFraction()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCDMALTEPhone.java374 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
378 return TelephonyManager.getTelephonyProperty(mPhoneId, property, defValue); in getSystemProperty()
DCDMAPhone.java1400 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
1401 return super.getSystemProperty(property, defValue); in getSystemProperty()
/frameworks/base/graphics/java/android/graphics/drawable/
DVectorDrawable.java1384 private Paint.Cap getStrokeLineCap(int id, Paint.Cap defValue) { in getStrokeLineCap() argument
1393 return defValue; in getStrokeLineCap()
1397 private Paint.Join getStrokeLineJoin(int id, Paint.Join defValue) { in getStrokeLineJoin() argument
1406 return defValue; in getStrokeLineJoin()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java910 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
911 return TelephonyManager.getTelephonyProperty(mPhoneBase.getPhoneId(), property, defValue); in getSystemProperty()
DPhoneBase.java273 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
277 return SystemProperties.get(property, defValue); in getSystemProperty()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java391 private int getSelectedZen(int defValue) { in getSelectedZen() argument
393 return zen != null ? (Integer) zen : defValue; in getSelectedZen()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1165 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument
1168 return defValue; in getAttributeInt()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGSMPhone.java1125 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
1129 return TelephonyManager.getTelephonyProperty(mPhoneId, property, defValue); in getSystemProperty()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java2506 private int readInt(XmlPullParser parser, String ns, String name, int defValue) { in readInt() argument
2510 return defValue; in readInt()
2519 return defValue; in readInt()