/frameworks/base/core/java/com/android/internal/util/ |
D | ParseUtils.java | 31 public static int parseInt(@Nullable String value, int defValue) { in parseInt() argument 32 return parseIntWithBase(value, 10, defValue); in parseInt() 36 public static int parseIntWithBase(@Nullable String value, int base, int defValue) { in parseIntWithBase() argument 38 return defValue; in parseIntWithBase() 43 return defValue; in parseIntWithBase() 48 public static long parseLong(@Nullable String value, long defValue) { in parseLong() argument 49 return parseLongWithBase(value, 10, defValue); in parseLong() 53 public static long parseLongWithBase(@Nullable String value, int base, long defValue) { in parseLongWithBase() argument 55 return defValue; in parseLongWithBase() 60 return defValue; in parseLongWithBase() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceDataStore.java | 138 default String getString(String key, @Nullable String defValue) { in getString() argument 139 return defValue; in getString() 161 default int getInt(String key, int defValue) { in getInt() argument 162 return defValue; in getInt() 172 default long getLong(String key, long defValue) { in getLong() argument 173 return defValue; in getLong() 183 default float getFloat(String key, float defValue) { in getFloat() argument 184 return defValue; in getFloat() 194 default boolean getBoolean(String key, boolean defValue) { in getBoolean() argument 195 return defValue; in getBoolean()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeSharedPreferences.java | 37 public String getString(String key, String defValue) { in getString() argument 38 return defValue; in getString() 47 public int getInt(String key, int defValue) { in getInt() argument 48 return defValue; in getInt() 52 public long getLong(String key, long defValue) { in getLong() argument 53 return defValue; in getLong() 57 public float getFloat(String key, float defValue) { in getFloat() argument 58 return defValue; in getFloat() 62 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument 63 return defValue; in getBoolean()
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 251 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument 253 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue); in getBoolean() 266 public int getInt(int index, int defValue) { in getInt() argument 269 return convertValueToInt(s, defValue); in getInt() 281 return defValue; in getInt() 292 public float getFloat(int index, float defValue) { in getFloat() argument 304 return defValue; in getFloat() 320 public int getColor(int index, int defValue) { in getColor() argument 322 return defValue; in getColor() 326 return defValue; in getColor() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/ |
D | FakeSharedPreferences.kt | 39 override fun getString(key: String, defValue: String?): String? { in <lambda>() 40 return data.getOrDefault(key, defValue) as? String? in <lambda>() 47 override fun getInt(key: String, defValue: Int): Int { in <lambda>() 48 return data.getOrDefault(key, defValue) as Int in <lambda>() 51 override fun getLong(key: String, defValue: Long): Long { in <lambda>() 52 return data.getOrDefault(key, defValue) as Long in <lambda>() 55 override fun getFloat(key: String, defValue: Float): Float { in <lambda>() 56 return data.getOrDefault(key, defValue) as Float in <lambda>() 59 override fun getBoolean(key: String, defValue: Boolean): Boolean { in <lambda>() 60 return data.getOrDefault(key, defValue) as Boolean in <lambda>()
|
/frameworks/base/tools/aapt/ |
D | AaptXml.cpp | 49 int32_t defValue, String8* outError) { in getIntegerAttributeAtIndex() argument 55 return defValue; in getIntegerAttributeAtIndex() 63 return defValue; in getIntegerAttributeAtIndex() 140 const char* attr, int32_t defValue, String8* outError) { in getIntegerAttribute() argument 143 return defValue; in getIntegerAttribute() 145 return getIntegerAttributeAtIndex(tree, idx, defValue, outError); in getIntegerAttribute() 148 int32_t getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, in getIntegerAttribute() argument 152 return defValue; in getIntegerAttribute() 154 return getIntegerAttributeAtIndex(tree, idx, defValue, outError); in getIntegerAttribute() 158 uint32_t attrRes, int32_t defValue, String8* outError) { in getResolvedIntegerAttribute() argument [all …]
|
D | AaptXml.h | 54 const char* attr, int32_t defValue = -1, android::String8* outError = NULL); 72 int32_t defValue = -1, android::String8* outError = NULL); 90 const android::ResXMLTree& tree, uint32_t attrRes, int32_t defValue = -1,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
D | SharedPreferencesLogger.java | 56 public String getString(String key, @Nullable String defValue) { in getString() argument 57 return defValue; in getString() 66 public int getInt(String key, int defValue) { in getInt() argument 67 return defValue; in getInt() 71 public long getLong(String key, long defValue) { in getLong() argument 72 return defValue; in getLong() 76 public float getFloat(String key, float defValue) { in getFloat() argument 77 return defValue; in getFloat() 81 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument 82 return defValue; in getBoolean()
|
/frameworks/base/core/java/android/content/ |
D | SharedPreferences.java | 270 String getString(String key, @Nullable String defValue); in getString() argument 303 int getInt(String key, int defValue); in getInt() argument 317 long getLong(String key, long defValue); in getLong() argument 331 float getFloat(String key, float defValue); in getFloat() argument 345 boolean getBoolean(String key, boolean defValue); in getBoolean() argument
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 378 public boolean getBoolean(@StyleableRes int index, boolean defValue) { in getBoolean() argument 387 return defValue; in getBoolean() 396 return XmlUtils.convertValueToBoolean(v.coerceToString(), defValue); in getBoolean() 417 public int getInt(@StyleableRes int index, int defValue) { in getInt() argument 426 return defValue; in getInt() 435 return XmlUtils.convertValueToInt(v.coerceToString(), defValue); in getInt() 454 public float getFloat(@StyleableRes int index, float defValue) { in getFloat() argument 463 return defValue; in getFloat() 503 public int getColor(@StyleableRes int index, @ColorInt int defValue) { in getColor() argument 514 return defValue; in getColor() [all …]
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 299 public String getString(String key, @Nullable String defValue) { in getString() argument 303 return v != null ? v : defValue; in getString() 318 public int getInt(String key, int defValue) { in getInt() argument 322 return v != null ? v : defValue; in getInt() 326 public long getLong(String key, long defValue) { in getLong() argument 330 return v != null ? v : defValue; in getLong() 334 public float getFloat(String key, float defValue) { in getFloat() argument 338 return v != null ? v : defValue; in getFloat() 342 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument 346 return v != null ? v : defValue; in getBoolean()
|
D | NotificationChannel.java | 1177 private static int safeInt(TypedXmlPullParser parser, String att, int defValue) { in safeInt() argument 1178 return parser.getAttributeInt(null, att, defValue); in safeInt() 1181 private static boolean safeBool(TypedXmlPullParser parser, String att, boolean defValue) { in safeBool() argument 1182 return parser.getAttributeBoolean(null, att, defValue); in safeBool() 1185 private static long[] safeLongArray(TypedXmlPullParser parser, String att, long[] defValue) { in safeLongArray() argument 1187 if (TextUtils.isEmpty(attributeValue)) return defValue; in safeLongArray()
|
D | NotificationManager.java | 2635 public static int zenModeFromInterruptionFilter(int interruptionFilter, int defValue) { in zenModeFromInterruptionFilter() argument 2641 default: return defValue; in zenModeFromInterruptionFilter()
|
/frameworks/base/core/tests/systemproperties/src/android/os/ |
D | SystemPropertiesTest.java | 84 private static void testInt(String setVal, int defValue, int expected) { in testInt() argument 86 int value = SystemProperties.getInt(KEY, defValue); in testInt() 90 private static void testLong(String setVal, long defValue, long expected) { in testLong() argument 92 long value = SystemProperties.getLong(KEY, defValue); in testLong()
|
/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | PersistentSystemFontConfig.java | 122 private static long parseLongAttribute(TypedXmlPullParser parser, String attr, long defValue) { in parseLongAttribute() argument 125 return defValue; in parseLongAttribute() 130 return defValue; in parseLongAttribute()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | GraphicsUtils.java | 139 public static float getFloat(Context context, int attr, float defValue) { in getFloat() argument 141 float value = ta.getFloat(0, defValue); in getFloat()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 502 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument 503 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt() 507 return defValue; in tryParseInt() 511 private static long tryParseLong(String value, long defValue) { in tryParseLong() argument 512 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 516 return defValue; in tryParseLong() 520 private static Long tryParseLong(String value, Long defValue) { in tryParseLong() argument 521 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 525 return defValue; in tryParseLong() 935 private static boolean safeBoolean(TypedXmlPullParser parser, String att, boolean defValue) { in safeBoolean() argument [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 908 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction() argument 910 if (value == null) return defValue; in getDimensionOrFraction() 912 return a.getDimensionPixelOffset(index, defValue); in getDimensionOrFraction() 915 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction() 917 return defValue; in getDimensionOrFraction()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityRecord.java | 961 private void appendUnless(boolean defValue, int prop, StringBuilder builder) { in appendUnless() argument 963 if (DEBUG_CONCISE_TOSTRING && value == defValue) return; in appendUnless()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 376 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument 378 return (value == null) ? defValue : Integer.parseInt(value); in getAttributeInt()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 839 private long getLongValue(XmlPullParser parser, String attrName, long defValue) { in getLongValue() argument 841 if (value == null) return defValue; in getLongValue() 845 private int getIntValue(XmlPullParser parser, String attrName, int defValue) { in getIntValue() argument 847 if (value == null) return defValue; in getIntValue()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 134 public int getGlobalSetting(String key, int defValue) { in getGlobalSetting() argument 135 return mPersistedState.global.getOrDefault(key, defValue); in getGlobalSetting() 156 protected int getGlobalSetting(String key, int defValue) { in getGlobalSetting() argument 157 return mDevice.getGlobalSetting(key, defValue); in getGlobalSetting()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 2674 boolean defValue, Context context) { in getBooleanSubscriptionProperty() argument 2683 return defValue; in getBooleanSubscriptionProperty() 2694 public static int getIntegerSubscriptionProperty(int subId, String propKey, int defValue, in getIntegerSubscriptionProperty() argument 2704 return defValue; in getIntegerSubscriptionProperty() 2715 public static long getLongSubscriptionProperty(int subId, String propKey, long defValue, in getLongSubscriptionProperty() argument 2725 return defValue; in getLongSubscriptionProperty()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 318 public static int getColorAttrDefaultColor(Context context, int attr, @ColorInt int defValue) { in getColorAttrDefaultColor() argument 320 @ColorInt int colorAccent = ta.getColor(0, defValue); in getColorAttrDefaultColor()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachine.java | 914 protected int getGlobalSetting(String key, int defValue) { in getGlobalSetting() argument 915 return Settings.Global.getInt(mContext.getContentResolver(), key, defValue); in getGlobalSetting()
|