HomeSort by relevance Sort by last modified time
    Searched refs:defValue (Results 1 - 25 of 43) sorted by null

1 2

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTypedArray.java 18 public boolean getBoolean(int index, boolean defValue) {
19 return defValue;
23 public float getFloat(int index, float defValue) {
24 return defValue;
28 public int getInt(int index, int defValue) {
29 return defValue;
33 public int getInteger(int index, int defValue) {
34 return defValue;
38 public float getDimension(int index, float defValue) {
39 return defValue;
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
MockSharedPreferences.java 48 public boolean getBoolean(String key, boolean defValue) {
52 return defValue;
55 public float getFloat(String key, float defValue) {
59 return defValue;
62 public int getInt(String key, int defValue) {
66 return defValue;
69 public long getLong(String key, long defValue) {
73 return defValue;
76 public String getString(String key, String defValue) {
79 return defValue;
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
MockSharedPreferences.java 48 public boolean getBoolean(String key, boolean defValue) {
52 return defValue;
55 public float getFloat(String key, float defValue) {
59 return defValue;
62 public int getInt(String key, int defValue) {
66 return defValue;
69 public long getLong(String key, long defValue) {
73 return defValue;
76 public String getString(String key, String defValue) {
79 return defValue;
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 107 final int defValue = -1;
114 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue),
115 ta.getColor(R.styleable.TextAppearance_textColor, defValue));
116 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue),
117 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue));
118 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue),
119 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue));
120 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue),
121 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue));
122 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue),
    [all...]
ViewGroup_LayoutParamsTest.java 58 int defValue = -1;
59 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue),
61 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue),
  /frameworks/base/core/java/android/content/
SharedPreferences.java 249 * @param defValue Value to return if this preference does not exist.
251 * @return Returns the preference value if it exists, or defValue. Throws
257 String getString(String key, String defValue);
281 * @param defValue Value to return if this preference does not exist.
283 * @return Returns the preference value if it exists, or defValue. Throws
289 int getInt(String key, int defValue);
295 * @param defValue Value to return if this preference does not exist.
297 * @return Returns the preference value if it exists, or defValue. Throws
303 long getLong(String key, long defValue);
309 * @param defValue Value to return if this preference does not exist
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeTypedArray.java 175 * @param defValue Value to return if the attribute is not defined.
177 * @return Attribute boolean value, or defValue if not defined.
180 public boolean getBoolean(int index, boolean defValue) {
182 return defValue;
186 return defValue;
191 return XmlUtils.convertValueToBoolean(s, defValue);
194 return defValue;
201 * @param defValue Value to return if the attribute is not defined.
203 * @return Attribute int value, or defValue if not defined.
206 public int getInt(int index, int defValue) {
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/content/
TestSharedPreferences.java 33 public String getString(String key, String defValue) {
34 return (String) getValue(key, defValue);
37 private Object getValue(String key, Object defValue) {
45 return defValue;
49 public int getInt(String key, int defValue) {
50 return (Integer) getValue(key, defValue);
54 public long getLong(String key, long defValue) {
55 return (Long) getValue(key, defValue);
59 public float getFloat(String key, float defValue) {
60 return (Float) getValue(key, defValue);
    [all...]
  /packages/apps/Calendar/tests/src/com/android/calendar/
FakeSharedPreferences.java 48 public boolean getBoolean(String key, boolean defValue) {
52 return defValue;
56 public float getFloat(String key, float defValue) {
60 return defValue;
64 public int getInt(String key, int defValue) {
68 return defValue;
72 public long getLong(String key, long defValue) {
76 return defValue;
80 public String getString(String key, String defValue) {
83 return defValue;
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
MockSharedPreferences.java 50 public boolean getBoolean(String key, boolean defValue) {
54 return defValue;
57 public float getFloat(String key, float defValue) {
61 return defValue;
64 public int getInt(String key, int defValue) {
68 return defValue;
71 public long getLong(String key, long defValue) {
75 return defValue;
78 public String getString(String key, String defValue) {
81 return defValue;
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
ComboPreferences.java 84 public String getString(String key, String defValue) {
86 return mPrefGlobal.getString(key, defValue);
88 return mPrefLocal.getString(key, defValue);
92 public int getInt(String key, int defValue) {
94 return mPrefGlobal.getInt(key, defValue);
96 return mPrefLocal.getInt(key, defValue);
100 public long getLong(String key, long defValue) {
102 return mPrefGlobal.getLong(key, defValue);
104 return mPrefLocal.getLong(key, defValue);
108 public float getFloat(String key, float defValue) {
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ResourceUtils.java 197 public static float getFraction(final TypedArray a, final int index, final float defValue) {
200 return defValue;
202 return a.getFraction(index, 1, 1, defValue);
218 final float defValue) {
221 return defValue;
224 return a.getFraction(index, base, base, defValue);
226 return a.getDimension(index, defValue);
228 return defValue;
231 public static int getEnumValue(final TypedArray a, final int index, final int defValue) {
234 return defValue;
    [all...]
  /packages/apps/Camera/src/com/android/camera/
ComboPreferences.java 154 public String getString(String key, String defValue) {
156 return mPrefGlobal.getString(key, defValue);
158 return mPrefLocal.getString(key, defValue);
163 public int getInt(String key, int defValue) {
165 return mPrefGlobal.getInt(key, defValue);
167 return mPrefLocal.getInt(key, defValue);
172 public long getLong(String key, long defValue) {
174 return mPrefGlobal.getLong(key, defValue);
176 return mPrefLocal.getLong(key, defValue);
181 public float getFloat(String key, float defValue) {
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/
ComboPreferences.java 158 public String getString(String key, String defValue) {
160 return mPrefGlobal.getString(key, defValue);
162 return mPrefLocal.getString(key, defValue);
167 public int getInt(String key, int defValue) {
169 return mPrefGlobal.getInt(key, defValue);
171 return mPrefLocal.getInt(key, defValue);
176 public long getLong(String key, long defValue) {
178 return mPrefGlobal.getLong(key, defValue);
180 return mPrefLocal.getLong(key, defValue);
185 public float getFloat(String key, float defValue) {
    [all...]
  /frameworks/base/core/java/android/content/res/
TypedArray.java 206 * @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) {
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) {
245 return defValue;
    [all...]
  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
XmlKeyboardLoader.java 753 private int getInteger(XmlResourceParser xrp, String name, int defValue) {
758 if (null == s) return defValue;
763 return defValue;
770 private int getColor(XmlResourceParser xrp, String name, int defValue) {
775 if (null == s) return defValue;
780 return defValue;
    [all...]
  /frameworks/base/core/java/android/app/
SharedPreferencesImpl.java 221 public String getString(String key, String defValue) {
225 return v != null ? v : defValue;
237 public int getInt(String key, int defValue) {
241 return v != null ? v : defValue;
244 public long getLong(String key, long defValue) {
248 return v != null ? v : defValue;
251 public float getFloat(String key, float defValue) {
255 return v != null ? v : defValue;
258 public boolean getBoolean(String key, boolean defValue) {
262 return v != null ? v : defValue;
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
DialogTest.java 122 final int defValue = -1;
129 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue),
130 ta.getColor(R.styleable.TextAppearance_textColor, defValue));
131 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue),
132 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue));
133 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue),
134 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue));
135 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue),
136 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue));
137 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue),
    [all...]
  /frameworks/native/include/utils/
KeyedVector.h 117 inline DefaultKeyedVector(const VALUE& defValue = VALUE());
209 DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue)
210 : mDefault(defValue)
  /system/core/libpixelflinger/codeflinger/tinyutils/
KeyedVector.h 105 inline DefaultKeyedVector(const VALUE& defValue = VALUE());
187 DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue)
188 : mDefault(defValue)
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ShortcutsProvider.java 191 private static boolean unboxBoolean(Boolean value, boolean defValue) {
192 return value == null ? defValue : value;
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
Keyboard.java 851 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) {
853 if (value == null) return defValue;
855 return a.getDimensionPixelOffset(index, defValue);
857 return Math.round(a.getFraction(index, base, base, defValue));
859 return defValue;
  /external/llvm/lib/CodeGen/
SplitKit.h 300 /// defValue - define a value in RegIdx from ParentVNI at Idx.
305 VNInfo *defValue(unsigned RegIdx, const VNInfo *ParentVNI, SlotIndex Idx);
  /frameworks/base/core/java/android/inputmethodservice/
Keyboard.java     [all...]
  /frameworks/base/tools/aapt/
Command.cpp 279 String8* outError, int32_t defValue = -1)
283 return defValue;
290 return defValue;
297 uint32_t attrRes, String8* outError, int32_t defValue = -1)
301 return defValue;
311 return defValue;
    [all...]

Completed in 527 milliseconds

1 2