/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/android/content/res/ |
D | BridgeTypedArray.java | 228 public boolean getBoolean(int index, boolean defValue) { in getBoolean() argument 230 return s == null ? defValue : XmlUtils.convertValueToBoolean(s, defValue); in getBoolean() 243 public int getInt(int index, int defValue) { in getInt() argument 246 return convertValueToInt(s, defValue); in getInt() 253 return defValue; in getInt() 264 public float getFloat(int index, float defValue) { in getFloat() argument 276 return defValue; in getFloat() 292 public int getColor(int index, int defValue) { in getColor() argument 294 return defValue; in getColor() 298 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 | 267 String getString(String key, @Nullable String defValue); in getString() argument 300 int getInt(String key, int defValue); in getInt() argument 314 long getLong(String key, long defValue); in getLong() argument 328 float getFloat(String key, float defValue); in getFloat() argument 342 boolean getBoolean(String key, boolean defValue); in getBoolean() argument
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeSharedPreferences.java | 37 public String getString(String key, String defValue) { in getString() argument 47 public int getInt(String key, int defValue) { in getInt() argument 52 public long getLong(String key, long defValue) { in getLong() argument 57 public float getFloat(String key, float defValue) { in getFloat() argument 62 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 285 public String getString(String key, @Nullable String defValue) { in getString() argument 289 return v != null ? v : defValue; in getString() 304 public int getInt(String key, int defValue) { in getInt() argument 308 return v != null ? v : defValue; in getInt() 312 public long getLong(String key, long defValue) { in getLong() argument 316 return v != null ? v : defValue; in getLong() 320 public float getFloat(String key, float defValue) { in getFloat() argument 324 return v != null ? v : defValue; in getFloat() 328 public boolean getBoolean(String key, boolean defValue) { in getBoolean() argument 332 return v != null ? v : defValue; in getBoolean()
|
D | NotificationChannel.java | 923 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() argument 925 return tryParseInt(val, defValue); in safeInt() 928 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument 929 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt() 933 return defValue; in tryParseInt() 937 private static boolean safeBool(XmlPullParser parser, String att, boolean defValue) { in safeBool() argument 939 if (TextUtils.isEmpty(value)) return defValue; in safeBool() 943 private static long[] safeLongArray(XmlPullParser parser, String att, long[] defValue) { in safeLongArray() argument 945 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 | 2078 public static int zenModeFromInterruptionFilter(int interruptionFilter, int defValue) { in zenModeFromInterruptionFilter() argument 2084 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 | 469 private static int tryParseInt(String value, int defValue) { in tryParseInt() argument 470 if (TextUtils.isEmpty(value)) return defValue; in tryParseInt() 474 return defValue; in tryParseInt() 478 private static long tryParseLong(String value, long defValue) { in tryParseLong() argument 479 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 483 return defValue; in tryParseLong() 487 private static Long tryParseLong(String value, Long defValue) { in tryParseLong() argument 488 if (TextUtils.isEmpty(value)) return defValue; in tryParseLong() 492 return defValue; in tryParseLong() 876 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 | 931 private void appendUnless(boolean defValue, int prop, StringBuilder builder) { in appendUnless() argument 933 if (DEBUG_CONCISE_TOSTRING && value == defValue) return; in appendUnless()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 337 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt() argument 339 return (value == null) ? defValue : Integer.parseInt(value); in getAttributeInt()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | BasePermission.java | 520 private static int readInt(XmlPullParser parser, String ns, String name, int defValue) { in readInt() argument 524 return defValue; in readInt() 533 return defValue; in readInt()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 2325 boolean defValue, Context context) { in getBooleanSubscriptionProperty() argument 2334 return defValue; in getBooleanSubscriptionProperty() 2345 public static int getIntegerSubscriptionProperty(int subId, String propKey, int defValue, in getIntegerSubscriptionProperty() argument 2355 return defValue; in getIntegerSubscriptionProperty() 2366 public static long getLongSubscriptionProperty(int subId, String propKey, long defValue, in getLongSubscriptionProperty() argument 2376 return defValue; in getLongSubscriptionProperty()
|
/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/services/usage/java/com/android/server/usage/ |
D | AppIdleHistory.java | 587 private long getLongValue(XmlPullParser parser, String attrName, long defValue) { in getLongValue() argument 589 if (value == null) return defValue; in getLongValue()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 447 int getSelectedZen(int defValue) { in getSelectedZen() argument 449 return zen != null ? (Integer) zen : defValue; in getSelectedZen()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 3490 private static <T> void appendUnless(T defValue, StringBuilder sb, String key, T value) { in appendUnless() argument 3491 if (DEBUG_CONCISE_TOSTRING && Objects.equals(defValue, value)) return; in appendUnless()
|