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

1 2 3 4 5

  /external/robolectric/v1/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/ContactsCommon/src/com/android/contacts/commonbind/experiments/
Flags.java 38 public boolean getBoolean(String flagName, boolean defValue) {
39 return defValue;
42 public byte[] getBytes(String flagName, byte[] defValue) {
43 return defValue;
46 public double getDouble(String flagName, double defValue) {
47 return defValue;
50 public int getInt(String flagName, int defValue) {
51 return defValue;
54 public long getLong(String flagName, long defValue) {
55 return defValue;
    [all...]
  /packages/services/Telephony/src/com/android/phone/vvm/omtp/
VisualVoicemailPreferences.java 96 public boolean getBoolean(String key, boolean defValue) {
97 return getValue(key, defValue);
101 public float getFloat(String key, float defValue) {
102 return getValue(key, defValue);
105 public int getInt(String key, int defValue) {
106 return getValue(key, defValue);
110 public long getLong(String key, long defValue) {
111 return getValue(key, defValue);
114 public String getString(String key, String defValue) {
115 return getValue(key, 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/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...]
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
TintTypedArray.java 111 public boolean getBoolean(int index, boolean defValue) {
112 return mWrapped.getBoolean(index, defValue);
115 public int getInt(int index, int defValue) {
116 return mWrapped.getInt(index, defValue);
119 public float getFloat(int index, float defValue) {
120 return mWrapped.getFloat(index, defValue);
123 public int getColor(int index, int defValue) {
124 return mWrapped.getColor(index, defValue);
141 public int getInteger(int index, int defValue) {
142 return mWrapped.getInteger(index, defValue);
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 123 final int defValue = -1;
130 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue),
131 ta.getColor(R.styleable.TextAppearance_textColor, defValue));
132 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue),
133 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue));
134 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue),
135 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue));
136 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue),
137 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue));
138 assertEquals(expectedTa.getDimension(R.styleable.TextAppearance_textSize, defValue),
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/
Preferences.java 61 public boolean getBoolean (String key, boolean defValue);
63 public int getInteger (String key, int defValue);
65 public long getLong (String key, long defValue);
67 public float getFloat (String key, float defValue);
69 public String getString (String key, String defValue);
  /frameworks/base/core/java/android/content/
SharedPreferences.java 250 * @param defValue Value to return if this preference does not exist.
252 * @return Returns the preference value if it exists, or defValue. Throws
259 String getString(String key, @Nullable String defValue);
284 * @param defValue Value to return if this preference does not exist.
286 * @return Returns the preference value if it exists, or defValue. Throws
292 int getInt(String key, int defValue);
298 * @param defValue Value to return if this preference does not exist.
300 * @return Returns the preference value if it exists, or defValue. Throws
306 long getLong(String key, long defValue);
312 * @param defValue Value to return if this preference does not exist
    [all...]
  /external/robolectric/v1/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...]
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
AndroidPreferences.java 110 public boolean getBoolean (String key, boolean defValue) {
111 return sharedPrefs.getBoolean(key, defValue);
115 public int getInteger (String key, int defValue) {
116 return sharedPrefs.getInt(key, defValue);
120 public long getLong (String key, long defValue) {
121 return sharedPrefs.getLong(key, defValue);
125 public float getFloat (String key, float defValue) {
126 return sharedPrefs.getFloat(key, defValue);
130 public String getString (String key, String defValue) {
131 return sharedPrefs.getString(key, defValue);
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeTypedArray.java 215 * @param defValue Value to return if the attribute is not defined.
217 * @return Attribute boolean value, or defValue if not defined.
220 public boolean getBoolean(int index, boolean defValue) {
222 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue);
230 * @param defValue Value to return if the attribute is not defined.
232 * @return Attribute int value, or defValue if not defined.
235 public int getInt(int index, int defValue) {
238 return convertValueToInt(s, defValue);
245 return 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/Settings/src/com/android/settings/
SharedPreferencesLogger.java 48 public String getString(String key, @Nullable String defValue) {
49 return defValue;
58 public int getInt(String key, int defValue) {
59 return defValue;
63 public long getLong(String key, long defValue) {
64 return defValue;
68 public float getFloat(String key, float defValue) {
69 return defValue;
73 public boolean getBoolean(String key, boolean defValue) {
74 return defValue;
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
BridgeSharedPreferences.java 37 public String getString(String key, String defValue) {
47 public int getInt(String key, int defValue) {
52 public long getLong(String key, long defValue) {
57 public float getFloat(String key, float defValue) {
62 public boolean getBoolean(String key, boolean defValue) {
  /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/tools/aapt/
AaptXml.cpp 49 int32_t defValue, String8* outError) {
55 return defValue;
63 return defValue;
124 const char* attr, int32_t defValue, String8* outError) {
127 return defValue;
129 return getIntegerAttributeAtIndex(tree, idx, defValue, outError);
132 int32_t getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue,
136 return defValue;
138 return getIntegerAttributeAtIndex(tree, idx, defValue, outError);
142 uint32_t attrRes, int32_t defValue, String8* outError)
    [all...]
  /external/libgdx/backends/gdx-backend-headless/src/com/badlogic/gdx/backends/headless/
HeadlessPreferences.java 125 public boolean getBoolean (String key, boolean defValue) {
126 return Boolean.parseBoolean(properties.getProperty(key, Boolean.toString(defValue)));
130 public int getInteger (String key, int defValue) {
131 return Integer.parseInt(properties.getProperty(key, Integer.toString(defValue)));
135 public long getLong (String key, long defValue) {
136 return Long.parseLong(properties.getProperty(key, Long.toString(defValue)));
140 public float getFloat (String key, float defValue) {
141 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue)));
145 public String getString (String key, String defValue) {
146 return properties.getProperty(key, defValue);
    [all...]
  /external/libgdx/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/
JglfwPreferences.java 115 public boolean getBoolean (String key, boolean defValue) {
116 return Boolean.parseBoolean(properties.getProperty(key, Boolean.toString(defValue)));
119 public int getInteger (String key, int defValue) {
120 return Integer.parseInt(properties.getProperty(key, Integer.toString(defValue)));
123 public long getLong (String key, long defValue) {
124 return Long.parseLong(properties.getProperty(key, Long.toString(defValue)));
127 public float getFloat (String key, float defValue) {
128 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue)));
131 public String getString (String key, String defValue) {
132 return properties.getProperty(key, defValue);
    [all...]
  /external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
LwjglPreferences.java 127 public boolean getBoolean (String key, boolean defValue) {
128 return Boolean.parseBoolean(properties.getProperty(key, Boolean.toString(defValue)));
132 public int getInteger (String key, int defValue) {
133 return Integer.parseInt(properties.getProperty(key, Integer.toString(defValue)));
137 public long getLong (String key, long defValue) {
138 return Long.parseLong(properties.getProperty(key, Long.toString(defValue)));
142 public float getFloat (String key, float defValue) {
143 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue)));
147 public String getString (String key, String defValue) {
148 return properties.getProperty(key, defValue);
    [all...]
  /external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
Lwjgl3Preferences.java 125 public boolean getBoolean (String key, boolean defValue) {
126 return Boolean.parseBoolean(properties.getProperty(key, Boolean.toString(defValue)));
130 public int getInteger (String key, int defValue) {
131 return Integer.parseInt(properties.getProperty(key, Integer.toString(defValue)));
135 public long getLong (String key, long defValue) {
136 return Long.parseLong(properties.getProperty(key, Long.toString(defValue)));
140 public float getFloat (String key, float defValue) {
141 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue)));
145 public String getString (String key, String defValue) {
146 return properties.getProperty(key, defValue);
    [all...]
  /external/libgdx/backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/
IOSPreferences.java 128 public boolean getBoolean (String key, boolean defValue) {
129 if (!contains(key)) return defValue;
134 public int getInteger (String key, int defValue) {
135 if (!contains(key)) return defValue;
140 public long getLong (String key, long defValue) {
141 if (!contains(key)) return defValue;
146 public float getFloat (String key, float defValue) {
147 if (!contains(key)) return defValue;
152 public String getString (String key, String defValue) {
153 if (!contains(key)) return defValue;
    [all...]
  /external/libgdx/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/
IOSPreferences.java 128 public boolean getBoolean (String key, boolean defValue) {
129 if (!contains(key)) return defValue;
134 public int getInteger (String key, int defValue) {
135 if (!contains(key)) return defValue;
140 public long getLong (String key, long defValue) {
141 if (!contains(key)) return defValue;
146 public float getFloat (String key, float defValue) {
147 if (!contains(key)) return defValue;
152 public String getString (String key, String defValue) {
153 if (!contains(key)) return defValue;
    [all...]
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/
GwtPreferences.java 152 public boolean getBoolean (String key, boolean defValue) {
154 return res == null ? defValue : res;
158 public int getInteger (String key, int defValue) {
160 return res == null ? defValue : res;
164 public long getLong (String key, long defValue) {
166 return res == null ? defValue : res;
170 public float getFloat (String key, float defValue) {
172 return res == null ? defValue : res;
176 public String getString (String key, String defValue) {
178 return res == null ? defValue : res;
    [all...]

Completed in 1254 milliseconds

1 2 3 4 5