Searched defs:defValue (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/core/java/android/content/
H A DSharedPreferences.java240 * @param defValue Value to return if this preference does not exist.
242 * @return Returns the preference value if it exists, or defValue. Throws
248 String getString(String key, String defValue); argument
268 * @param defValue Value to return if this preference does not exist.
270 * @return Returns the preference value if it exists, or defValue. Throws
276 int getInt(String key, int defValue); argument
282 * @param defValue Value to return if this preference does not exist.
284 * @return Returns the preference value if it exists, or defValue. Throws
290 long getLong(String key, long defValue); argument
296 * @param defValue Valu
304 getFloat(String key, float defValue) argument
318 getBoolean(String key, boolean defValue) argument
[all...]
/frameworks/base/include/utils/
H A DKeyedVector.h104 inline DefaultKeyedVector(const VALUE& defValue = VALUE());
186 DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue) argument
187 : mDefault(defValue)
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java206 * @param defValue Value to return if the attribute is not defined.
208 * @return Attribute boolean value, or defValue if not defined.
210 public boolean getBoolean(int index, boolean defValue) { argument
215 return defValue;
225 v.coerceToString(), defValue);
229 return defValue;
236 * @param defValue Value to return if the attribute is not defined.
238 * @return Attribute int value, or defValue if not defined.
240 public int getInt(int index, int defValue) { argument
245 return defValue;
269 getFloat(int index, float defValue) argument
307 getColor(int index, int defValue) argument
356 getInteger(int index, int defValue) argument
387 getDimension(int index, float defValue) argument
419 getDimensionPixelOffset(int index, int defValue) argument
452 getDimensionPixelSize(int index, int defValue) argument
508 getLayoutDimension(int index, int defValue) argument
538 getFraction(int index, int base, int pbase, float defValue) argument
567 getResourceId(int index, int defValue) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java170 * @param defValue Value to return if the attribute is not defined.
172 * @return Attribute boolean value, or defValue if not defined.
175 public boolean getBoolean(int index, boolean defValue) { argument
177 return defValue;
181 return defValue;
186 return XmlUtils.convertValueToBoolean(s, defValue);
189 return defValue;
196 * @param defValue Value to return if the attribute is not defined.
198 * @return Attribute int value, or defValue if not defined.
201 public int getInt(int index, int defValue) { argument
269 getFloat(int index, float defValue) argument
308 getColor(int index, int defValue) argument
403 getInteger(int index, int defValue) argument
424 getDimension(int index, float defValue) argument
477 getDimensionPixelOffset(int index, int defValue) argument
500 getDimensionPixelSize(int index, int defValue) argument
551 getLayoutDimension(int index, int defValue) argument
601 getFraction(int index, int base, int pbase, float defValue) argument
644 getResourceId(int index, int defValue) argument
[all...]
/frameworks/base/core/java/android/app/
H A DSharedPreferencesImpl.java202 public String getString(String key, String defValue) { argument
206 return v != null ? v : defValue;
218 public int getInt(String key, int defValue) { argument
222 return v != null ? v : defValue;
225 public long getLong(String key, long defValue) { argument
229 return v != null ? v : defValue;
232 public float getFloat(String key, float defValue) { argument
236 return v != null ? v : defValue;
239 public boolean getBoolean(String key, boolean defValue) { argument
243 return v != null ? v : defValue;
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java883 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { argument
885 if (value == null) return defValue;
887 return a.getDimensionPixelOffset(index, defValue);
890 return Math.round(a.getFraction(index, base, base, defValue));
892 return defValue;
/frameworks/base/services/java/com/android/server/pm/
H A DSettings.java1372 private int readInt(XmlPullParser parser, String ns, String name, int defValue) { argument
1376 return defValue;
1385 return defValue;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java275 a = getFrameworkResourceValue(value.getResourceType(), value.getName(), 0 /*defValue*/);
279 a = getProjectResourceValue(value.getResourceType(), value.getName(), 0 /*defValue*/);
843 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { argument
849 return defValue;
852 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { argument
860 return defValue;
/frameworks/base/services/java/com/android/server/
H A DPowerManagerService.java438 private int getInt(String name, int defValue) { argument
441 return iVal != null ? iVal : defValue;
444 private float getFloat(String name, float defValue) { argument
447 return fVal != null ? fVal : defValue;

Completed in 500 milliseconds