/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 | 248 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument 250 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue); in getBoolean() 263 public int getInt(int index, int defValue) { in getInt() argument 266 return convertValueToInt(s, defValue); in getInt() 273 return defValue; in getInt() 284 public float getFloat(int index, float defValue) { in getFloat() argument 296 return defValue; in getFloat() 312 public int getColor(int index, int defValue) { in getColor() argument 314 return defValue; in getColor() 318 return defValue; in getColor() [all …]
|
/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/core/java/android/content/res/ |
D | TypedArray.java | 377 public boolean getBoolean(@StyleableRes int index, boolean defValue) { in getBoolean() argument 386 return defValue; in getBoolean() 395 return XmlUtils.convertValueToBoolean(v.coerceToString(), defValue); in getBoolean() 416 public int getInt(@StyleableRes int index, int defValue) { in getInt() argument 425 return defValue; in getInt() 434 return XmlUtils.convertValueToInt(v.coerceToString(), defValue); in getInt() 453 public float getFloat(@StyleableRes int index, float defValue) { in getFloat() argument 462 return defValue; in getFloat() 502 public int getColor(@StyleableRes int index, @ColorInt int defValue) { in getColor() argument 513 return defValue; in getColor() [all …]
|
/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/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 | 1110 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() argument 1112 return tryParseInt(val, defValue); in safeInt() 1115 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument 1116 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt() 1120 return defValue; in tryParseInt() 1124 private static boolean safeBool(XmlPullParser parser, String att, boolean defValue) { in safeBool() argument 1126 if (TextUtils.isEmpty(value)) return defValue; in safeBool() 1130 private static long[] safeLongArray(XmlPullParser parser, String att, long[] defValue) { in safeLongArray() argument 1132 if (TextUtils.isEmpty(attributeValue)) return defValue; in safeLongArray()
|
D | NotificationChannelGroup.java | 236 private static boolean safeBool(XmlPullParser parser, String att, boolean defValue) { in safeBool() argument 238 if (TextUtils.isEmpty(value)) return defValue; in safeBool()
|
D | NotificationManager.java | 2337 public static int zenModeFromInterruptionFilter(int interruptionFilter, int defValue) { in zenModeFromInterruptionFilter() argument 2343 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/core/java/android/service/notification/ |
D | ZenModeConfig.java | 489 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument 490 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt() 494 return defValue; in tryParseInt() 498 private static long tryParseLong(String value, long defValue) { in tryParseLong() argument 499 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 503 return defValue; in tryParseLong() 507 private static Long tryParseLong(String value, Long defValue) { in tryParseLong() argument 508 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 512 return defValue; in tryParseLong() 901 private static boolean safeBoolean(XmlPullParser parser, String att, boolean defValue) { in safeBoolean() argument [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 907 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction() argument 909 if (value == null) return defValue; in getDimensionOrFraction() 911 return a.getDimensionPixelOffset(index, defValue); in getDimensionOrFraction() 914 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction() 916 return defValue; in getDimensionOrFraction()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityRecord.java | 956 private void appendUnless(boolean defValue, int prop, StringBuilder builder) { in appendUnless() argument 958 if (DEBUG_CONCISE_TOSTRING && value == defValue) return; in appendUnless()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | BasePermission.java | 519 private static int readInt(XmlPullParser parser, String ns, String name, int defValue) { in readInt() argument 523 return defValue; in readInt() 532 return defValue; in readInt()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 2364 boolean defValue, Context context) { in getBooleanSubscriptionProperty() argument 2373 return defValue; in getBooleanSubscriptionProperty() 2384 public static int getIntegerSubscriptionProperty(int subId, String propKey, int defValue, in getIntegerSubscriptionProperty() argument 2394 return defValue; in getIntegerSubscriptionProperty() 2405 public static long getLongSubscriptionProperty(int subId, String propKey, long defValue, in getLongSubscriptionProperty() argument 2415 return defValue; in getLongSubscriptionProperty()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 379 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument 381 return (value == null) ? defValue : Integer.parseInt(value); in getAttributeInt()
|
/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/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachine.java | 886 protected int getGlobalSetting(String key, int defValue) { in getGlobalSetting() argument 887 return Settings.Global.getInt(mContext.getContentResolver(), key, defValue); in getGlobalSetting()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 672 private long getLongValue(XmlPullParser parser, String attrName, long defValue) { in getLongValue() argument 674 if (value == null) return defValue; in getLongValue()
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutInfo.java | 619 private CharSequence getResourceString(Resources res, int resId, CharSequence defValue) { in getResourceString() argument 624 return defValue; in getResourceString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 451 int getSelectedZen(int defValue) { in getSelectedZen() argument 453 return zen != null ? (Integer) zen : defValue; in getSelectedZen()
|