/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | CompatUtils.java | 93 public static Object invoke(final Object receiver, final Object defaultValue, in invoke() argument 96 return defaultValue; in invoke() 104 return defaultValue; in invoke() 107 public static Object getFieldValue(final Object receiver, final Object defaultValue, in getFieldValue() argument 110 return defaultValue; in getFieldValue() 117 return defaultValue; in getFieldValue() 146 final T defaultValue, final Class<?>... parameterTypes) { in getMethod() argument 148 defaultValue); in getMethod() 151 public ToIntMethodWrapper getPrimitiveMethod(final String name, final int defaultValue, in getPrimitiveMethod() argument 154 defaultValue); in getPrimitiveMethod() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | FakeBugleGservices.java | 31 public long getLong(final String key, final long defaultValue) { in getLong() argument 32 return defaultValue; in getLong() 36 public int getInt(final String key, final int defaultValue) { in getInt() argument 37 return defaultValue; in getInt() 41 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument 42 return defaultValue; in getBoolean() 46 public String getString(final String key, final String defaultValue) { in getString() argument 47 return defaultValue; in getString() 51 public float getFloat(String key, float defaultValue) { in getFloat() argument 52 return defaultValue; in getFloat()
|
D | FakeBuglePrefs.java | 28 public int getInt(final String key, final int defaultValue) { in getInt() argument 29 return defaultValue; in getInt() 33 public long getLong(final String key, final long defaultValue) { in getLong() argument 34 return defaultValue; in getLong() 38 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument 39 return defaultValue; in getBoolean() 43 public String getString(final String key, final String defaultValue) { in getString() argument 44 return defaultValue; in getString()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | BugleGservicesImpl.java | 40 public long getLong(final String key, final long defaultValue) { in getLong() argument 42 return defaultValue; in getLong() 46 public int getInt(final String key, final int defaultValue) { in getInt() argument 48 return defaultValue; in getInt() 52 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument 54 return defaultValue; in getBoolean() 58 public String getString(final String key, final String defaultValue) { in getString() argument 60 return defaultValue; in getString() 64 public float getFloat(final String key, final float defaultValue) { in getFloat() argument 66 return defaultValue; in getFloat()
|
D | BuglePrefsImpl.java | 43 public int getInt(final String key, final int defaultValue) { in getInt() argument 47 return prefs.getInt(key, defaultValue); in getInt() 51 public long getLong(final String key, final long defaultValue) { in getLong() argument 55 return prefs.getLong(key, defaultValue); in getLong() 59 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument 63 return prefs.getBoolean(key, defaultValue); in getBoolean() 67 public String getString(final String key, final String defaultValue) { in getString() argument 71 return prefs.getString(key, defaultValue); in getString()
|
D | BugleSubscriptionPrefs.java | 76 final boolean defaultValue = resources.getBoolean(defaultValueResId); in migratePrefBooleanInternal() 77 final boolean oldValue = oldPrefs.getBoolean(oldKey, defaultValue); in migratePrefBooleanInternal() 80 if (oldValue != defaultValue) { in migratePrefBooleanInternal() 86 final int newKeyResId, final String defaultValue) { in migratePrefStringInternal() argument 88 final String oldValue = oldPrefs.getString(oldKey, defaultValue); in migratePrefStringInternal() 91 if (!TextUtils.equals(oldValue, defaultValue)) { in migratePrefStringInternal()
|
D | BugleGservices.java | 42 public abstract long getLong(final String key, final long defaultValue); in getLong() argument 50 public abstract int getInt(final String key, final int defaultValue); in getInt() argument 57 public abstract boolean getBoolean(final String key, final boolean defaultValue); in getBoolean() argument 64 public abstract String getString(final String key, final String defaultValue); in getString() argument 71 public abstract float getFloat(final String key, final float defaultValue); in getFloat() argument
|
D | BuglePrefs.java | 76 public abstract int getInt(final String key, final int defaultValue); in getInt() argument 84 public abstract long getLong(final String key, final long defaultValue); in getLong() argument 91 public abstract boolean getBoolean(final String key, final boolean defaultValue); in getBoolean() argument 98 public abstract String getString(final String key, final String defaultValue); in getString() argument
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | pointer.h | 504 …ValueType& GetWithDefault(ValueType& root, const ValueType& defaultValue, typename ValueType::Allo… in GetWithDefault() argument 507 return alreadyExist ? v : v.CopyFrom(defaultValue, allocator); in GetWithDefault() 511 …ValueType& GetWithDefault(ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorTy… in GetWithDefault() argument 514 return alreadyExist ? v : v.SetString(defaultValue, allocator); in GetWithDefault() 519 …ValueType& GetWithDefault(ValueType& root, const std::basic_string<Ch>& defaultValue, typename Val… in GetWithDefault() argument 522 return alreadyExist ? v : v.SetString(defaultValue, allocator); in GetWithDefault() 532 …GetWithDefault(ValueType& root, T defaultValue, typename ValueType::AllocatorType& allocator) cons… in GetWithDefault() argument 533 return GetWithDefault(root, ValueType(defaultValue).Move(), allocator); in GetWithDefault() 538 …ypename ValueType::AllocatorType, stackAllocator>& document, const ValueType& defaultValue) const { in GetWithDefault() argument 539 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault() [all …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | SettingsManager.java | 298 public void setDefaults(String key, String defaultValue, String[] possibleValues) { 300 mDefaultsStore.storeDefaults(key, defaultValue, possibleValues); 309 public void setDefaults(String key, int defaultValue, int[] possibleValues) { 311 String defaultValueString = Integer.toString(defaultValue); 325 public void setDefaults(String key, boolean defaultValue) { 327 String defaultValueString = defaultValue ? "1" : "0"; 367 public String getString(String scope, String key, String defaultValue) { 371 return preferences.getString(key, defaultValue); 375 return defaultValue; 395 public int getInteger(String scope, String key, Integer defaultValue) { [all …]
|
D | DefaultsStore.java | 48 public Defaults(String defaultValue, String[] possibleValues) { in Defaults() argument 49 mDefaultValue = defaultValue; in Defaults() 70 public void storeDefaults(String key, String defaultValue, String[] possibleValues) { in storeDefaults() argument 71 Defaults defaults = new Defaults(defaultValue, possibleValues); in storeDefaults()
|
/packages/apps/TV/common/src/com/android/tv/common/dev/ |
D | DeveloperPreference.java | 35 public static DeveloperPreference<Boolean> create(String key, boolean defaultValue) { in create() argument 36 return new DeveloperBooleanPreference(key, defaultValue); in create() 50 public static DeveloperPreference<Integer> create(String key, int defaultValue) { in create() argument 51 return new DeveloperIntegerPreference(key, defaultValue); in create() 58 private DeveloperPreference(String key, T defaultValue) { in DeveloperPreference() argument 61 mDefaultValue = defaultValue; in DeveloperPreference() 101 private DeveloperBooleanPreference(String key, Boolean defaultValue) { in DeveloperBooleanPreference() argument 102 super(key, defaultValue); in DeveloperBooleanPreference() 118 private DeveloperIntegerPreference(String key, Integer defaultValue) { in DeveloperIntegerPreference() argument 119 super(key, defaultValue); in DeveloperIntegerPreference()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | NetworkStackUtils.java | 305 @Nullable String defaultValue) { in getDeviceConfigProperty() argument 307 return value != null ? value : defaultValue; in getDeviceConfigProperty() 318 int defaultValue) { in getDeviceConfigPropertyInt() argument 321 return (value != null) ? Integer.parseInt(value) : defaultValue; in getDeviceConfigPropertyInt() 323 return defaultValue; in getDeviceConfigPropertyInt() 338 int minimumValue, int maximumValue, int defaultValue) { in getDeviceConfigPropertyInt() argument 339 int value = getDeviceConfigPropertyInt(namespace, name, defaultValue); in getDeviceConfigPropertyInt() 340 if (value < minimumValue || value > maximumValue) return defaultValue; in getDeviceConfigPropertyInt() 352 @NonNull String name, boolean defaultValue) { in getDeviceConfigPropertyBoolean() argument 354 return (value != null) ? Boolean.parseBoolean(value) : defaultValue; in getDeviceConfigPropertyBoolean() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 559 public String getValueAsString(String defaultValue) { in getValueAsString() argument 562 return defaultValue; in getValueAsString() 590 public byte getValueAsByte(byte defaultValue) { in getValueAsByte() argument 593 return defaultValue; in getValueAsByte() 621 public Rational getValueAsRational(Rational defaultValue) { in getValueAsRational() argument 624 return defaultValue; in getValueAsRational() 639 public Rational getValueAsRational(long defaultValue) { in getValueAsRational() argument 640 Rational defaultVal = new Rational(defaultValue, 1); in getValueAsRational() 674 public int getValueAsInt(int defaultValue) { in getValueAsInt() argument 677 return defaultValue; in getValueAsInt() [all …]
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifTag.java | 559 public String getValueAsString(String defaultValue) { in getValueAsString() argument 562 return defaultValue; in getValueAsString() 590 public byte getValueAsByte(byte defaultValue) { in getValueAsByte() argument 593 return defaultValue; in getValueAsByte() 621 public Rational getValueAsRational(Rational defaultValue) { in getValueAsRational() argument 624 return defaultValue; in getValueAsRational() 639 public Rational getValueAsRational(long defaultValue) { in getValueAsRational() argument 640 Rational defaultVal = new Rational(defaultValue, 1); in getValueAsRational() 674 public int getValueAsInt(int defaultValue) { in getValueAsInt() argument 677 return defaultValue; in getValueAsInt() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifTag.java | 559 public String getValueAsString(String defaultValue) { in getValueAsString() argument 562 return defaultValue; in getValueAsString() 590 public byte getValueAsByte(byte defaultValue) { in getValueAsByte() argument 593 return defaultValue; in getValueAsByte() 621 public Rational getValueAsRational(Rational defaultValue) { in getValueAsRational() argument 624 return defaultValue; in getValueAsRational() 639 public Rational getValueAsRational(long defaultValue) { in getValueAsRational() argument 640 Rational defaultVal = new Rational(defaultValue, 1); in getValueAsRational() 674 public int getValueAsInt(int defaultValue) { in getValueAsInt() argument 677 return defaultValue; in getValueAsInt() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/config/ |
D | BaseFlags.java | 157 private final boolean defaultValue; field in BaseFlags.BaseTogglableFlag 163 boolean defaultValue, in BaseTogglableFlag() argument 166 this.currentValue = this.defaultValue = defaultValue; in BaseTogglableFlag() 202 boolean getFromStorage(Context context, boolean defaultValue) { in getFromStorage() argument 208 return getOverridenDefaultValue(defaultValue); in getDefaultValue() 224 + "defaultValue=" + defaultValue + ", " in toString() 225 + "overriddenDefaultValue=" + getOverridenDefaultValue(defaultValue) + ", " in toString()
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VisualVoicemailSmsFilterConfig.java | 160 private int getInt(String key, int defaultValue) { in getInt() argument 161 return mPrefs.getInt(makeKey(key), defaultValue); in getInt() 164 private String getString(String key, String defaultValue) { in getString() argument 165 return mPrefs.getString(makeKey(key), defaultValue); in getString() 168 private boolean getBoolean(String key, boolean defaultValue) { in getBoolean() argument 169 return mPrefs.getBoolean(makeKey(key), defaultValue); in getBoolean() 172 private List<String> getStringSet(String key, List<String> defaultValue) { in getStringSet() argument 175 return defaultValue; in getStringSet()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | DebugSettingsFragment.java | 153 private void setupKeyPreviewAnimationScale(final String prefKey, final float defaultValue) { in setupKeyPreviewAnimationScale() argument 184 Settings.readKeyPreviewAnimationScale(prefs, key, defaultValue)); in setupKeyPreviewAnimationScale() 189 return getPercentageFromValue(defaultValue); in setupKeyPreviewAnimationScale() 205 private void setupKeyPreviewAnimationDuration(final String prefKey, final int defaultValue) { in setupKeyPreviewAnimationDuration() argument 225 return Settings.readKeyPreviewAnimationDuration(prefs, key, defaultValue); in setupKeyPreviewAnimationDuration() 230 return defaultValue; in setupKeyPreviewAnimationDuration() 243 private void setupKeyboardHeight(final String prefKey, final float defaultValue) { in setupKeyboardHeight() argument 271 return getPercentageFromValue(Settings.readKeyboardHeight(prefs, defaultValue)); in setupKeyboardHeight() 276 return getPercentageFromValue(defaultValue); in setupKeyboardHeight()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseDatabaseHelperUpgradeTest.java | 58 public TableColumn(String name, String type, boolean notnull, String defaultValue) { in TableColumn() argument 62 this.dflt_value = defaultValue; in TableColumn() 104 String defaultValue) { in assertHasColumn() argument 117 if (defaultValue == null) { in assertHasColumn() 122 } else if (!defaultValue.equals(column.dflt_value)) { in assertHasColumn() 124 + " defaultValue:" + column.dflt_value + ", " + defaultValue + " expected"); in assertHasColumn() 288 String defaultValue) { in createOneColumnTable() argument 290 table.addColumn(new TableColumn(name, type, notnull, defaultValue)); in createOneColumnTable()
|
/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
D | SharedPrefConfigProvider.java | 110 public String getString(String key, String defaultValue) { in getString() argument 113 () -> sharedPreferences.getString(PREF_PREFIX + key, defaultValue)); in getString() 117 public long getLong(String key, long defaultValue) { in getLong() argument 119 return StrictModeUtils.bypass(() -> sharedPreferences.getLong(PREF_PREFIX + key, defaultValue)); in getLong() 123 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean() argument 126 () -> sharedPreferences.getBoolean(PREF_PREFIX + key, defaultValue)); in getBoolean()
|
/packages/apps/TV/common/src/com/android/tv/common/ |
D | BooleanSystemProperty.java | 47 public BooleanSystemProperty(String key, boolean defaultValue) { in BooleanSystemProperty() argument 48 mDefaultValue = defaultValue; in BooleanSystemProperty() 66 private static boolean getBoolean(String key, boolean defaultValue) { in getBoolean() argument 70 return (boolean) get.invoke(null, key, defaultValue); in getBoolean() 74 return defaultValue; in getBoolean()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_read_write_utils.cpp | 203 const bool defaultValue) { in readBoolAttributeValue() argument 204 const int intDefaultValue = defaultValue ? 1 : 0; in readBoolAttributeValue() 211 const int defaultValue) { in readIntAttributeValue() argument 214 return readIntAttributeValueInner(headerAttributes, &keyVector, defaultValue); in readIntAttributeValue() 219 const int defaultValue) { in readIntAttributeValueInner() argument 230 return defaultValue; in readIntAttributeValueInner() 238 return defaultValue; in readIntAttributeValueInner()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParser.java | 437 private int getIntExtraFromLongName(Intent intent, String longName, int defaultValue) { in getIntExtraFromLongName() argument 439 return intent.getIntExtra(longName, defaultValue); in getIntExtraFromLongName() 443 return intent.getIntExtra(shortName, defaultValue); in getIntExtraFromLongName() 445 return defaultValue; in getIntExtraFromLongName() 449 Intent intent, String longName, boolean defaultValue) { in getBooleanExtraFromLongName() argument 451 return intent.getBooleanExtra(longName, defaultValue); in getBooleanExtraFromLongName() 455 return intent.getBooleanExtra(shortName, defaultValue); in getBooleanExtraFromLongName() 457 return defaultValue; in getBooleanExtraFromLongName() 460 private long getParcelableExtraFromLongName(Intent intent, String longName, long defaultValue) { in getParcelableExtraFromLongName() argument 462 return intent.getLongExtra(longName, defaultValue); in getParcelableExtraFromLongName() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
D | PropertyFeature.java | 29 public static PropertyFeature create(String key, boolean defaultValue) { in create() argument 30 return new PropertyFeature(key, defaultValue); in create() 41 private PropertyFeature(String key, boolean defaultValue) { in PropertyFeature() argument 52 mProperty = new BooleanSystemProperty(key, defaultValue); in PropertyFeature()
|