Home
last modified time | relevance | path

Searched defs:defValue (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java31 public static int parseInt(@Nullable String value, int defValue) { in parseInt()
36 public static int parseIntWithBase(@Nullable String value, int base, int defValue) { in parseIntWithBase()
48 public static long parseLong(@Nullable String value, long defValue) { in parseLong()
53 public static long parseLongWithBase(@Nullable String value, int base, long defValue) { in parseLongWithBase()
65 public static float parseFloat(@Nullable String value, float defValue) { in parseFloat()
77 public static double parseDouble(@Nullable String value, double defValue) { in parseDouble()
89 public static boolean parseBoolean(@Nullable String value, boolean defValue) { in parseBoolean()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java37 public String getString(String key, String defValue) { in getString()
47 public int getInt(String key, int defValue) { in getInt()
52 public long getLong(String key, long defValue) { in getLong()
57 public float getFloat(String key, float defValue) { in getFloat()
62 public boolean getBoolean(String key, boolean defValue) { in getBoolean()
/frameworks/base/core/java/android/preference/
DPreferenceDataStore.java138 default String getString(String key, @Nullable String defValue) { in getString()
161 default int getInt(String key, int defValue) { in getInt()
172 default long getLong(String key, long defValue) { in getLong()
183 default float getFloat(String key, float defValue) { in getFloat()
194 default boolean getBoolean(String key, boolean defValue) { in getBoolean()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java228 public boolean getBoolean(int index, boolean defValue) { in getBoolean()
243 public int getInt(int index, int defValue) { in getInt()
264 public float getFloat(int index, float defValue) { in getFloat()
292 public int getColor(int index, int defValue) { in getColor()
338 public int getInteger(int index, int defValue) { in getInteger()
359 public float getDimension(int index, float defValue) { in getDimension()
399 public int getDimensionPixelOffset(int index, int defValue) { in getDimensionPixelOffset()
422 public int getDimensionPixelSize(int index, int defValue) { in getDimensionPixelSize()
470 public int getLayoutDimension(int index, int defValue) { in getLayoutDimension()
520 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction()
[all …]
/frameworks/base/core/java/android/content/
DSharedPreferences.java267 String getString(String key, @Nullable String defValue); in getString()
300 int getInt(String key, int defValue); in getInt()
314 long getLong(String key, long defValue); in getLong()
328 float getFloat(String key, float defValue); in getFloat()
342 boolean getBoolean(String key, boolean defValue); in getBoolean()
/frameworks/base/core/java/android/content/res/
DTypedArray.java377 public boolean getBoolean(@StyleableRes int index, boolean defValue) { in getBoolean()
416 public int getInt(@StyleableRes int index, int defValue) { in getInt()
453 public float getFloat(@StyleableRes int index, float defValue) { in getFloat()
502 public int getColor(@StyleableRes int index, @ColorInt int defValue) { in getColor()
620 public int getInteger(@StyleableRes int index, int defValue) { in getInteger()
668 public float getDimension(@StyleableRes int index, float defValue) { in getDimension()
716 public int getDimensionPixelOffset(@StyleableRes int index, int defValue) { in getDimensionPixelOffset()
765 public int getDimensionPixelSize(@StyleableRes int index, int defValue) { in getDimensionPixelSize()
848 public int getLayoutDimension(@StyleableRes int index, int defValue) { in getLayoutDimension()
884 public float getFraction(@StyleableRes int index, int base, int pbase, float defValue) { in getFraction()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DSharedPreferencesLogger.java56 public String getString(String key, @Nullable String defValue) { in getString()
66 public int getInt(String key, int defValue) { in getInt()
71 public long getLong(String key, long defValue) { in getLong()
76 public float getFloat(String key, float defValue) { in getFloat()
81 public boolean getBoolean(String key, boolean defValue) { in getBoolean()
/frameworks/base/tools/aapt/
DAaptXml.cpp49 int32_t defValue, String8* outError) { in getIntegerAttributeAtIndex()
140 const char* attr, int32_t defValue, String8* outError) { in getIntegerAttribute()
148 int32_t getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, in getIntegerAttribute()
158 uint32_t attrRes, int32_t defValue, String8* outError) { in getResolvedIntegerAttribute()
/frameworks/base/core/tests/systemproperties/src/android/os/
DSystemPropertiesTest.java84 private static void testInt(String setVal, int defValue, int expected) { in testInt()
90 private static void testLong(String setVal, long defValue, long expected) { in testLong()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java285 public String getString(String key, @Nullable String defValue) { in getString()
304 public int getInt(String key, int defValue) { in getInt()
312 public long getLong(String key, long defValue) { in getLong()
320 public float getFloat(String key, float defValue) { in getFloat()
328 public boolean getBoolean(String key, boolean defValue) { in getBoolean()
DNotificationChannel.java923 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt()
928 private static int tryParseInt(String value, int defValue) { in tryParseInt()
937 private static boolean safeBool(XmlPullParser parser, String att, boolean defValue) { in safeBool()
943 private static long[] safeLongArray(XmlPullParser parser, String att, long[] defValue) { in safeLongArray()
DNotificationChannelGroup.java236 private static boolean safeBool(XmlPullParser parser, String att, boolean defValue) { in safeBool()
DNotificationManager.java2078 public static int zenModeFromInterruptionFilter(int interruptionFilter, int defValue) { in zenModeFromInterruptionFilter()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java134 public int getGlobalSetting(String key, int defValue) { in getGlobalSetting()
156 protected int getGlobalSetting(String key, int defValue) { in getGlobalSetting()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java469 private static int tryParseInt(String value, int defValue) { in tryParseInt()
478 private static long tryParseLong(String value, long defValue) { in tryParseLong()
487 private static Long tryParseLong(String value, Long defValue) { in tryParseLong()
876 private static boolean safeBoolean(XmlPullParser parser, String att, boolean defValue) { in safeBoolean()
881 private static boolean safeBoolean(String val, boolean defValue) { in safeBoolean()
886 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt()
903 private static long safeLong(XmlPullParser parser, String att, long defValue) { in safeLong()
1558 private static int tryParseZenMode(String value, int defValue) { in tryParseZenMode()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java337 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java2325 boolean defValue, Context context) { in getBooleanSubscriptionProperty()
2345 public static int getIntegerSubscriptionProperty(int subId, String propKey, int defValue, in getIntegerSubscriptionProperty()
2366 public static long getLongSubscriptionProperty(int subId, String propKey, long defValue, in getLongSubscriptionProperty()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java520 private static int readInt(XmlPullParser parser, String ns, String name, int defValue) { in readInt()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java886 protected int getGlobalSetting(String key, int defValue) { in getGlobalSetting()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java931 private void appendUnless(boolean defValue, int prop, StringBuilder builder) { in appendUnless()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java907 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java587 private long getLongValue(XmlPullParser parser, String attrName, long defValue) { in getLongValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java447 int getSelectedZen(int defValue) { in getSelectedZen()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java590 private CharSequence getResourceString(Resources res, int resId, CharSequence defValue) { in getResourceString()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java2999 private int getAttributeInt(XmlPullParser parser, String name, int defValue) { in getAttributeInt()

12