HomeSort by relevance Sort by last modified time
    Searched full:defaultvalue (Results 226 - 250 of 1710) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/libgdx/gdx/src/com/badlogic/gdx/utils/
JsonValue.java 590 /** Finds the child with the specified name and returns it as a string. Returns defaultValue if not found.
591 * @param defaultValue May be null. */
592 public String getString (String name, String defaultValue) {
594 return (child == null || !child.isValue() || child.isNull()) ? defaultValue : child.asString();
597 /** Finds the child with the specified name and returns it as a float. Returns defaultValue if not found. */
598 public float getFloat (String name, float defaultValue) {
600 return (child == null || !child.isValue()) ? defaultValue : child.asFloat();
603 /** Finds the child with the specified name and returns it as a double. Returns defaultValue if not found. */
604 public double getDouble (String name, double defaultValue) {
606 return (child == null || !child.isValue()) ? defaultValue : child.asDouble();
    [all...]
ObjectFloatMap.java 277 /** @param defaultValue Returned if the key was not associated with a value. */
278 public float get (K key, float defaultValue) {
285 if (!key.equals(keyTable[index])) return getStash(key, defaultValue);
291 private float getStash (K key, float defaultValue) {
295 return defaultValue;
298 /** Returns the key's current value and increments the stored value. If the key is not in the map, defaultValue + increment is
300 public float getAndIncrement (K key, float defaultValue, float increment) {
307 if (!key.equals(keyTable[index])) return getAndIncrementStash(key, defaultValue, increment);
315 private float getAndIncrementStash (K key, float defaultValue, float increment) {
323 put(key, defaultValue + increment)
    [all...]
ObjectIntMap.java 277 /** @param defaultValue Returned if the key was not associated with a value. */
278 public int get (K key, int defaultValue) {
285 if (!key.equals(keyTable[index])) return getStash(key, defaultValue);
291 private int getStash (K key, int defaultValue) {
295 return defaultValue;
298 /** Returns the key's current value and increments the stored value. If the key is not in the map, defaultValue + increment is
300 public int getAndIncrement (K key, int defaultValue, int increment) {
307 if (!key.equals(keyTable[index])) return getAndIncrementStash(key, defaultValue, increment);
315 private int getAndIncrementStash (K key, int defaultValue, int increment) {
323 put(key, defaultValue + increment);
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
BundleTest.java 130 bundle.getString("value", "defaultValue");
148 assertEquals("value", bundle.getString("key", "defaultValue"));
163 assertEquals("defaultValue", bundle.getString("foo", "defaultValue"));
178 assertEquals("value", bundle.getString(null, "defaultValue"));
193 assertEquals("defaultValue", bundle.getString("key", "defaultValue"));
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowIntent.java 297 public boolean getBooleanExtra(String name, boolean defaultValue) {
298 return extras.getBoolean(name, defaultValue);
376 public int getIntExtra(String name, int defaultValue) {
377 return extras.getInt(name, defaultValue);
381 public long getLongExtra(String name, long defaultValue) {
382 return extras.getLong(name, defaultValue);
386 public double getDoubleExtra(String name, double defaultValue) {
387 return extras.getDouble(name, defaultValue);
396 public float getFloatExtra(String name, float defaultValue) {
397 return extras.getFloat(name, defaultValue);
    [all...]
  /frameworks/av/media/mtp/
MtpProperty.cpp 51 int defaultValue)
69 if (defaultValue) {
72 mDefaultValue.u.i8 = defaultValue;
75 mDefaultValue.u.u8 = defaultValue;
78 mDefaultValue.u.i16 = defaultValue;
81 mDefaultValue.u.u16 = defaultValue;
84 mDefaultValue.u.i32 = defaultValue;
87 mDefaultValue.u.u32 = defaultValue;
90 mDefaultValue.u.i64 = defaultValue;
93 mDefaultValue.u.u64 = defaultValue;
    [all...]
  /external/google-tv-pairing-protocol/java/src/com/google/polo/json/
JSONArray.java 443 * It returns the defaultValue if there is no value at that index or if
447 * @param defaultValue A boolean default.
450 public boolean optBoolean(int index, boolean defaultValue) {
454 return defaultValue;
474 * The defaultValue is returned if there is no value for the index,
478 * @param defaultValue The default value.
481 public double optDouble(int index, double defaultValue) {
485 return defaultValue;
505 * The defaultValue is returned if there is no value for the index,
508 * @param defaultValue The default value
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
KeyStylesSet.java 73 public int getInt(final TypedArray a, final int index, final int defaultValue) {
74 return a.getInt(index, defaultValue);
126 public int getInt(final TypedArray a, final int index, final int defaultValue) {
128 return a.getInt(index, defaultValue);
135 return parentStyle.getInt(a, index, defaultValue);
  /frameworks/base/telephony/java/com/android/ims/
ImsCallProfile.java 244 public String getCallExtra(String name, String defaultValue) {
246 return defaultValue;
249 return mCallExtras.getString(name, defaultValue);
256 public boolean getCallExtraBoolean(String name, boolean defaultValue) {
258 return defaultValue;
261 return mCallExtras.getBoolean(name, defaultValue);
268 public int getCallExtraInt(String name, int defaultValue) {
270 return defaultValue;
273 return mCallExtras.getInt(name, defaultValue);
  /external/autotest/frontend/client/src/autotest/common/
Utils.java 235 public static String setDefaultValue(Map<String, String> map, String key, String defaultValue) {
239 map.put(key, defaultValue);
240 return defaultValue;
243 public static JSONValue setDefaultValue(JSONObject object, String key, JSONValue defaultValue) {
247 object.put(key, defaultValue);
248 return defaultValue;
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
CompactByteArray.java 57 * @param defaultValue the default value of the compact array.
62 public CompactByteArray(byte defaultValue)
69 values[i] = defaultValue;
77 this.defaultValue = defaultValue;
399 byte defaultValue;
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
Utils.java 240 public static float parseFloatSafely(String content, float defaultValue) {
241 if (content == null) return defaultValue;
245 return defaultValue;
249 public static int parseIntSafely(String content, int defaultValue) {
250 if (content == null) return defaultValue;
254 return defaultValue;
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Utils.java 240 public static float parseFloatSafely(String content, float defaultValue) {
241 if (content == null) return defaultValue;
245 return defaultValue;
249 public static int parseIntSafely(String content, int defaultValue) {
250 if (content == null) return defaultValue;
254 return defaultValue;
  /sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/launch/
NdkDebuggerTab.java 279 private String getAttribute(ILaunchConfiguration config, String key, String defaultValue) {
281 return config.getAttribute(key, defaultValue);
283 return defaultValue;
288 List<String> defaultValue) {
290 return config.getAttribute(key, defaultValue);
292 return defaultValue;
  /cts/tests/tests/preference2/src/android/preference2/cts/
CustomPreference.java 146 Object defaultValue) {
147 super.onSetInitialValue(restorePersistedValue, defaultValue);
  /development/samples/ApiDemos/src/com/example/android/apis/preference/
MyPreference.java 84 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) {
90 int value = (Integer) defaultValue;
  /external/deqp/framework/opengl/
gluRenderConfig.hpp 107 T getValueOrDefault (const RenderConfig& config, const T RenderConfig::*field, T defaultValue)
110 return value == (T)RenderConfig::DONT_CARE ? defaultValue : value;
  /external/icu/icu4c/source/test/intltest/
numberformattesttuple.h 18 #define NFTT_GET_FIELD(tuple, fieldName, defaultValue) ((tuple).fieldName##Flag ? (tuple).fieldName : (defaultValue))
  /frameworks/base/core/java/com/android/internal/preference/
YesNoPreference.java 89 protected void onSetInitialValue(boolean restorePersistedValue, Object defaultValue) {
91 (Boolean) defaultValue);
  /frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/
shared-preferences.jd 117 int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
118 long highScore = sharedPref.getInt(getString(R.string.saved_high_score), defaultValue);
  /frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
shared-preferences.jd 117 int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
118 long highScore = sharedPref.getInt(getString(R.string.saved_high_score), defaultValue);
  /frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
shared-preferences.jd 117 int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
118 long highScore = sharedPref.getInt(getString(R.string.saved_high_score), defaultValue);
  /frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
shared-preferences.jd 117 int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
118 long highScore = sharedPref.getInt(getString(R.string.saved_high_score), defaultValue);
  /frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
shared-preferences.jd 117 int defaultValue = getResources().getInteger(R.string.saved_high_score_default);
118 long highScore = sharedPref.getInt(getString(R.string.saved_high_score), defaultValue);
  /frameworks/base/services/net/java/android/net/netlink/
StructNlAttr.java 101 public int getValueAsInt(int defaultValue) {
104 return defaultValue;

Completed in 2254 milliseconds

1 2 3 4 5 6 7 8 91011>>