/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
|
/packages/apps/Launcher3/src/com/android/launcher3/config/ |
D | FeatureFlags.java | 294 public boolean defaultValue; field in FeatureFlags.BooleanFlag 296 public BooleanFlag(String key, boolean defaultValue) { in BooleanFlag() argument 298 this.defaultValue = defaultValue; in BooleanFlag() 302 return defaultValue; in get() 311 return src.append(key).append(", defaultValue=").append(defaultValue); in appendProps() 324 public DebugFlag(String key, boolean defaultValue, String description) { in DebugFlag() argument 325 super(key, defaultValue); in DebugFlag() 327 mCurrentValue = this.defaultValue; in DebugFlag() 340 .getBoolean(key, defaultValue); in initialize() 349 private static BooleanFlag getDebugFlag(String key, boolean defaultValue, String description) { in getDebugFlag() argument [all …]
|
D | FlagTogglerPrefUi.java | 57 if (value == flag.defaultValue) { 68 public boolean getBoolean(String key, boolean defaultValue) { 72 .getBoolean(key, flag.defaultValue); 75 return defaultValue; 94 switchPreference.setDefaultValue(flag.defaultValue); in applyTo() 108 String onWarning = flag.defaultValue ? "" : "<b>OVERRIDDEN</b><br>"; in updateSummary() 109 String offWarning = flag.defaultValue ? "<b>OVERRIDDEN</b><br>" : ""; in updateSummary() 143 return mDataStore.getBoolean(flag.key, flag.defaultValue); in getFlagStateFromSharedPrefs()
|
/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/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/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 …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SystemPropertyService.java | 22 public String get(String key, String defaultValue) { in get() argument 23 return android.os.SystemProperties.get(key, defaultValue); in get() 27 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean() argument 28 return android.os.SystemProperties.getBoolean(key, defaultValue); in getBoolean() 32 public String getString(String key, String defaultValue) { in getString() argument 33 return android.os.SystemProperties.get(key, defaultValue); in getString()
|
/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/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/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/apps/Launcher3/src/com/android/launcher3/ |
D | ResourceUtils.java | 35 public static int getDimenByName(String resName, Resources res, int defaultValue) { in getDimenByName() argument 41 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName() 46 public static boolean getBoolByName(String resName, Resources res, boolean defaultValue) { in getBoolByName() argument 52 val = defaultValue; in getBoolByName() 57 public static int getIntegerByName(String resName, Resources res, int defaultValue) { in getIntegerByName() argument 59 return resId != 0 ? res.getInteger(resId) : defaultValue; in getIntegerByName()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | DeviceFlag.java | 36 public DeviceFlag(String key, boolean defaultValue, String description) { in DeviceFlag() argument 37 super(key, getDeviceValue(key, defaultValue), description); in DeviceFlag() 38 mDefaultValueInCode = defaultValue; in DeviceFlag() 86 defaultValue = getDeviceValue(key, mDefaultValueInCode); in registerDeviceConfigChangedListener() 94 protected static boolean getDeviceValue(String key, boolean defaultValue) { in getDeviceValue() argument 95 return DeviceConfig.getBoolean(NAMESPACE_LAUNCHER, key, defaultValue); in getDeviceValue()
|
/packages/modules/StatsD/statsd/src/flags/ |
D | flags.cpp | 29 string getFlagString(const string& flagName, const string& defaultValue) { in getFlagString() argument 31 return defaultValue; in getFlagString() 33 return GetServerConfigurableFlag(STATSD_NATIVE_NAMESPACE, flagName, defaultValue); in getFlagString() 36 bool getFlagBool(const string& flagName, const string& defaultValue) { in getFlagBool() argument 37 return getFlagString(flagName, defaultValue) == "true"; in getFlagBool()
|
/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/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | KeyValueListParser.java | 226 public IntValue(String key, int defaultValue) { in IntValue() argument 228 mDefaultValue = defaultValue; in IntValue() 274 public LongValue(String key, long defaultValue) { in LongValue() argument 276 mDefaultValue = defaultValue; in LongValue() 322 public StringValue(String key, String defaultValue) { in StringValue() argument 324 mDefaultValue = defaultValue; in StringValue() 370 public FloatValue(String key, float defaultValue) { in FloatValue() argument 372 mDefaultValue = defaultValue; in FloatValue()
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructNlAttr.java | 189 public short getValueAsBe16(short defaultValue) { in getValueAsBe16() argument 192 return defaultValue; in getValueAsBe16() 203 public int getValueAsBe32(int defaultValue) { in getValueAsBe32() argument 206 return defaultValue; in getValueAsBe32() 230 public byte getValueAsByte(byte defaultValue) { in getValueAsByte() argument 233 return defaultValue; in getValueAsByte() 238 public int getValueAsInt(int defaultValue) { in getValueAsInt() argument 241 return defaultValue; in getValueAsInt()
|
/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()
|