/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...] |
/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),
|
/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...] |
/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...] |
/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/ContactsCommon/TestCommon/src/com/android/contacts/common/test/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/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/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...] |
/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...] |
/frameworks/base/core/java/android/content/res/ |
TypedArray.java | 207 * @param defValue Value to return if the attribute is not defined. 209 * @return Attribute boolean value, or defValue if not defined. 211 public boolean getBoolean(int index, boolean defValue) { 216 return defValue; 226 v.coerceToString(), defValue); 230 return defValue; 237 * @param defValue Value to return if the attribute is not defined. 239 * @return Attribute int value, or defValue if not defined. 241 public int getInt(int index, int defValue) { 246 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/Camera2/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...] |
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/ |
InMemorySharedPreferences.java | 40 public String getString(String key, String defValue) { 46 return defValue; 61 public int getInt(String key, int defValue) { 67 return defValue; 71 public long getLong(String key, long defValue) { 77 return defValue; 81 public float getFloat(String key, float defValue) { 87 return defValue; 91 public boolean getBoolean(String key, boolean defValue) { 97 return defValue; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ResourceUtils.java | 263 public static float getFraction(final TypedArray a, final int index, final float defValue) { 266 return defValue; 268 return a.getFraction(index, 1, 1, defValue); 284 final float defValue) { 287 return defValue; 290 return a.getFraction(index, base, base, defValue); 292 return a.getDimension(index, defValue); 294 return defValue; 297 public static int getEnumValue(final TypedArray a, final int index, final int defValue) { 300 return defValue; [all...] |
/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/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...] |
/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...] |
/cts/tests/tests/app/src/android/app/cts/ |
DialogTest.java | 121 final int defValue = -1; 128 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), 129 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); 130 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), 131 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); 132 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), 133 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); 134 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), 135 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); 136 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue), [all...] |
/system/core/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/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;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeContext.java | 285 a = getFrameworkResourceValue(value.getResourceType(), value.getName(), 0 /*defValue*/); 289 a = getProjectResourceValue(value.getResourceType(), value.getName(), 0 /*defValue*/); 842 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { 848 return defValue; 851 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { 859 return defValue; [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
Keyboard.java | [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
AlertServiceTest.java | 81 public boolean getBoolean(String key, boolean defValue) { 107 public String getString(String key, String defValue) { 133 public int getInt(String key, int defValue) { 138 public long getLong(String key, long defValue) { 143 public float getFloat(String key, float defValue) { [all...] |