/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/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
Gservices.java | 88 * @param defValue the value to return if the value from the database is null 89 * @return the corresponding value, or defValue if not present 91 public static String getString(ContentResolver cr, String key, String defValue) { 98 return (value != null) ? value : defValue; 102 if (cursor == null) return defValue; 115 return (value != null) ? value : defValue; 135 * return defValue. 137 public static int getInt(ContentResolver cr, String key, int defValue) { 141 value = valString != null ? Integer.parseInt(valString) : defValue; 143 value = defValue; [all...] |
GoogleSettingsContract.java | 142 * conversion then return defValue. 144 public static int getInt(ContentResolver resolver, String name, int defValue) { 148 value = valString != null ? Integer.parseInt(valString) : defValue; 150 value = defValue; 158 * conversion then return defValue. 160 public static long getLong(ContentResolver resolver, String name, long defValue) { 164 value = valString != null ? Long.parseLong(valString) : defValue; 166 value = defValue;
|
/frameworks/base/core/java/android/content/ |
SharedPreferences.java | 240 * @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); 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); 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); 296 * @param defValue Value to return if this preference does not exist [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
BridgeTypedArray.java | 170 * @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) { 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) { [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/Camera/src/com/android/camera/ |
ComboPreferences.java | 83 public String getString(String key, String defValue) { 85 return mPrefGlobal.getString(key, defValue); 87 return mPrefLocal.getString(key, defValue); 91 public int getInt(String key, int defValue) { 93 return mPrefGlobal.getInt(key, defValue); 95 return mPrefLocal.getInt(key, defValue); 99 public long getLong(String key, long defValue) { 101 return mPrefGlobal.getLong(key, defValue); 103 return mPrefLocal.getLong(key, defValue); 107 public float getFloat(String key, float defValue) { [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ContextThemeWrapperTest.java | 162 final int defValue = -1; 169 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), 170 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); 171 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), 172 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); 173 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), 174 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); 175 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), 176 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); 177 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue), [all...] |
ViewGroup_LayoutParamsTest.java | 86 int defValue = -1; 87 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue), 89 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue),
|
/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 | 202 public String getString(String key, String defValue) { 206 return v != null ? v : defValue; 218 public int getInt(String key, int defValue) { 222 return v != null ? v : defValue; 225 public long getLong(String key, long defValue) { 229 return v != null ? v : defValue; 232 public float getFloat(String key, float defValue) { 236 return v != null ? v : defValue; 239 public boolean getBoolean(String key, boolean defValue) { 243 return v != null ? v : defValue; [all...] |
/frameworks/base/include/utils/ |
KeyedVector.h | 104 inline DefaultKeyedVector(const VALUE& defValue = VALUE()); 186 DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue) 187 : mDefault(defValue)
|
/system/core/libpixelflinger/tinyutils/ |
KeyedVector.h | 96 inline DefaultKeyedVector(const VALUE& defValue = VALUE()); 178 DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue) 179 : mDefault(defValue)
|
/cts/tests/tests/app/src/android/app/cts/ |
DialogTest.java | 156 final int defValue = -1; 163 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), 164 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); 165 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), 166 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); 167 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), 168 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); 169 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), 170 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); 171 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue), [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardBuilder.java | [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
ShortcutsProvider.java | 191 private static boolean unboxBoolean(Boolean value, boolean defValue) { 192 return value == null ? defValue : value;
|
/external/llvm/lib/CodeGen/ |
SplitKit.h | 294 /// defValue - define a value in RegIdx from ParentVNI at Idx. 299 VNInfo *defValue(unsigned RegIdx, const VNInfo *ParentVNI, SlotIndex Idx);
|
SplitKit.cpp | 330 VNInfo *SplitEditor::defValue(unsigned RegIdx, 619 VNInfo *VNI = defValue(RegIdx, ParentVNI, Def); [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
Keyboard.java | [all...] |
/frameworks/base/tools/aapt/ |
Command.cpp | 278 String8* outError, int32_t defValue = -1) 282 return defValue; 289 return defValue; 296 uint32_t attrRes, String8* outError, int32_t defValue = -1) 300 return defValue; 310 return defValue; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
LatinKeyboard.java | 332 public static int getTextSizeFromTheme(Theme theme, int style, int defValue) { 335 int textSize = array.getDimensionPixelSize(array.getResourceId(0, 0), defValue);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeContext.java | 275 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) { 849 return defValue; 852 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { 860 return defValue; [all...] |
/external/libxml2/include/libxml/ |
schemasInternals.h | 261 const xmlChar *defValue; /* The initial value of the value constraint */
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SuggestionsView.java | 252 private static float getPercent(TypedArray a, int index, int defValue) { 253 return a.getInt(index, defValue) / 100.0f; [all...] |