Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTintTypedArray.java115 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument
116 return mWrapped.getBoolean(index, defValue); in getBoolean()
119 public int getInt(int index, int defValue) { in getInt() argument
120 return mWrapped.getInt(index, defValue); in getInt()
123 public float getFloat(int index, float defValue) { in getFloat() argument
124 return mWrapped.getFloat(index, defValue); in getFloat()
127 public int getColor(int index, int defValue) { in getColor() argument
128 return mWrapped.getColor(index, defValue); in getColor()
145 public int getInteger(int index, int defValue) { in getInteger() argument
146 return mWrapped.getInteger(index, defValue); in getInteger()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java220 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument
222 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue); in getBoolean()
235 public int getInt(int index, int defValue) { in getInt() argument
238 return convertValueToInt(s, defValue); in getInt()
245 return defValue; in getInt()
256 public float getFloat(int index, float defValue) { in getFloat() argument
268 return defValue; in getFloat()
284 public int getColor(int index, int defValue) { in getColor() argument
286 return defValue; in getColor()
290 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.java308 public boolean getBoolean(@StyleableRes int index, boolean defValue) { in getBoolean() argument
317 return defValue; in getBoolean()
326 return XmlUtils.convertValueToBoolean(v.coerceToString(), defValue); in getBoolean()
347 public int getInt(@StyleableRes int index, int defValue) { in getInt() argument
356 return defValue; in getInt()
365 return XmlUtils.convertValueToInt(v.coerceToString(), defValue); in getInt()
384 public float getFloat(@StyleableRes int index, float defValue) { in getFloat() argument
393 return defValue; in getFloat()
433 public int getColor(@StyleableRes int index, @ColorInt int defValue) { in getColor() argument
444 return defValue; in getColor()
[all …]
/frameworks/base/core/java/android/content/
DSharedPreferences.java259 String getString(String key, @Nullable String defValue); in getString() argument
292 int getInt(String key, int defValue); in getInt() argument
306 long getLong(String key, long defValue); in getLong() argument
320 float getFloat(String key, float defValue); in getFloat() argument
334 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.java1056 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { in getFrameworkResourceValue() argument
1063 return defValue; in getFrameworkResourceValue()
1066 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { in getProjectResourceValue() argument
1078 return defValue; in getProjectResourceValue()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java232 public String getString(String key, @Nullable String defValue) { in getString() argument
236 return v != null ? v : defValue; in getString()
249 public int getInt(String key, int defValue) { in getInt() argument
253 return v != null ? v : defValue; in getInt()
256 public long getLong(String key, long defValue) { in getLong() argument
260 return v != null ? v : defValue; in getLong()
263 public float getFloat(String key, float defValue) { in getFloat() argument
267 return v != null ? v : defValue; in getFloat()
270 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument
274 return v != null ? v : defValue; in getBoolean()
DNotificationManager.java1012 public static int zenModeFromInterruptionFilter(int interruptionFilter, int defValue) { in zenModeFromInterruptionFilter() argument
1018 default: return defValue; in zenModeFromInterruptionFilter()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java298 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() argument
300 return tryParseInt(val, defValue); in safeInt()
303 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument
304 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt()
308 return defValue; in tryParseInt()
312 private static boolean tryParseBool(String value, boolean defValue) { in tryParseBool() argument
313 if (TextUtils.isEmpty(value)) return defValue; in tryParseBool()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java383 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument
384 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt()
388 return defValue; in tryParseInt()
392 private static long tryParseLong(String value, long defValue) { in tryParseLong() argument
393 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong()
397 return defValue; in tryParseLong()
575 private static boolean safeBoolean(XmlPullParser parser, String att, boolean defValue) { in safeBoolean() argument
577 return safeBoolean(val, defValue); in safeBoolean()
580 private static boolean safeBoolean(String val, boolean defValue) { in safeBoolean() argument
581 if (TextUtils.isEmpty(val)) return defValue; in safeBoolean()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java896 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction() argument
898 if (value == null) return defValue; in getDimensionOrFraction()
900 return a.getDimensionPixelOffset(index, defValue); in getDimensionOrFraction()
903 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction()
905 return defValue; in getDimensionOrFraction()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java1310 boolean defValue, Context context) { in getBooleanSubscriptionProperty() argument
1319 return defValue; in getBooleanSubscriptionProperty()
1330 public static int getIntegerSubscriptionProperty(int subId, String propKey, int defValue, in getIntegerSubscriptionProperty() argument
1340 return defValue; in getIntegerSubscriptionProperty()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java335 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument
337 return (value == null) ? defValue : Integer.parseInt(value); in getAttributeInt()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DVectorDrawableCompat.java1675 private Paint.Cap getStrokeLineCap(int id, Paint.Cap defValue) { in getStrokeLineCap() argument
1684 return defValue; in getStrokeLineCap()
1688 private Paint.Join getStrokeLineJoin(int id, Paint.Join defValue) { in getStrokeLineJoin() argument
1697 return defValue; in getStrokeLineJoin()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java381 private CharSequence getResourceString(Resources res, int resId, CharSequence defValue) { in getResourceString() argument
386 return defValue; in getResourceString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java415 private int getSelectedZen(int defValue) { in getSelectedZen() argument
417 return zen != null ? (Integer) zen : defValue; in getSelectedZen()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaPhone.java1560 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
1565 return TelephonyManager.getTelephonyProperty(mPhoneId, property, defValue); in getSystemProperty()
1567 return super.getSystemProperty(property, defValue); in getSystemProperty()
DPhone.java395 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
399 return SystemProperties.get(property, defValue); in getSystemProperty()
DServiceStateTracker.java4591 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
4592 return TelephonyManager.getTelephonyProperty(mPhone.getPhoneId(), property, defValue); in getSystemProperty()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DPhoneMock.java105 public String getSystemProperty(String property, String defValue) { in getSystemProperty() argument
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1931 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument
1934 return defValue; in getAttributeInt()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java3345 private int readInt(XmlPullParser parser, String ns, String name, int defValue) { in readInt() argument
3349 return defValue; in readInt()
3358 return defValue; in readInt()