/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
H A D | MockSharedPreferences.java | 48 public boolean getBoolean(String key, boolean defValue) { argument 52 return defValue; 55 public float getFloat(String key, float defValue) { argument 59 return defValue; 62 public int getInt(String key, int defValue) { argument 66 return defValue; 69 public long getLong(String key, long defValue) { argument 73 return defValue; 76 public String getString(String key, String defValue) { argument 79 return defValue; [all...] |
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
H A D | 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) { argument 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) { argument 141 value = valString != null ? Integer.parseInt(valString) : defValue; 143 value = defValue; 154 getLong(ContentResolver cr, String key, long defValue) argument 165 getBoolean(ContentResolver cr, String key, boolean defValue) argument [all...] |
H A D | GoogleSettingsContract.java | 142 * conversion then return defValue. 144 public static int getInt(ContentResolver resolver, String name, int defValue) { argument 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) { argument 164 value = valString != null ? Long.parseLong(valString) : defValue; 166 value = defValue;
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | MockSharedPreferences.java | 50 public boolean getBoolean(String key, boolean defValue) { argument 54 return defValue; 57 public float getFloat(String key, float defValue) { argument 61 return defValue; 64 public int getInt(String key, int defValue) { argument 68 return defValue; 71 public long getLong(String key, long defValue) { argument 75 return defValue; 78 public String getString(String key, String defValue) { argument 81 return defValue; [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | ComboPreferences.java | 84 public String getString(String key, String defValue) { argument 86 return mPrefGlobal.getString(key, defValue); 88 return mPrefLocal.getString(key, defValue); 92 public int getInt(String key, int defValue) { argument 94 return mPrefGlobal.getInt(key, defValue); 96 return mPrefLocal.getInt(key, defValue); 100 public long getLong(String key, long defValue) { argument 102 return mPrefGlobal.getLong(key, defValue); 104 return mPrefLocal.getLong(key, defValue); 108 public float getFloat(String key, float defValue) { argument 116 getBoolean(String key, boolean defValue) argument [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | XmlKeyboardLoader.java | 753 private int getInteger(XmlResourceParser xrp, String name, int defValue) { argument 758 if (null == s) return defValue; 763 return defValue; 770 private int getColor(XmlResourceParser xrp, String name, int defValue) { argument 775 if (null == s) return defValue; 780 return defValue; 787 private String getString(XmlResourceParser xrp, String name, String defValue) { argument 796 private float getFloat(XmlResourceParser xrp, String name, float defValue) { argument 800 if (null == s) return defValue; 810 return defValue; 817 getBoolean(XmlResourceParser xrp, String name, boolean defValue) argument 829 getDrawable(XmlResourceParser xrp, String name, Drawable defValue) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardBuilder.java | 813 public static float getDimensionOrFraction(TypedArray a, int index, int base, float defValue) { argument 816 return defValue; 818 return a.getFraction(index, base, base, defValue); 820 return a.getDimension(index, defValue); 822 return defValue; 825 public static int getEnumValue(TypedArray a, int index, int defValue) { argument 828 return defValue; 830 return a.getInt(index, defValue); 832 return defValue;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ShortcutsProvider.java | 191 private static boolean unboxBoolean(Boolean value, boolean defValue) { argument 192 return value == null ? defValue : value;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | LatinKeyboard.java | 333 public static int getTextSizeFromTheme(Theme theme, int style, int defValue) { argument 335 final int textSize = a.getDimensionPixelSize(a.getResourceId(0, 0), defValue);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | SuggestionsView.java | 252 private static float getPercent(TypedArray a, int index, int defValue) { argument 253 return a.getInt(index, defValue) / 100.0f;
|