Home
last modified time | relevance | path

Searched refs:safeInt (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
DChannelImpressions.java179 mDismissals = safeInt(parser, ATT_DISMISSALS, 0); in populateFromXml()
180 mStreak = safeInt(parser, ATT_STREAK, 0); in populateFromXml()
181 mViews = safeInt(parser, ATT_VIEWS, 0); in populateFromXml()
196 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() method in ChannelImpressions
/frameworks/base/core/java/android/app/
DNotificationChannel.java627 != safeInt(parser, ATT_PRIORITY, Notification.PRIORITY_DEFAULT)); in populateFromXml()
628 setLockscreenVisibility(safeInt(parser, ATT_VISIBILITY, DEFAULT_VISIBILITY)); in populateFromXml()
634 setLightColor(safeInt(parser, ATT_LIGHT_COLOR, DEFAULT_LIGHT_COLOR)); in populateFromXml()
640 lockFields(safeInt(parser, ATT_USER_LOCKED, 0)); in populateFromXml()
807 int usage = safeInt(parser, ATT_USAGE, AudioAttributes.USAGE_NOTIFICATION); in safeAudioAttributes()
808 int contentType = safeInt(parser, ATT_CONTENT_TYPE, in safeAudioAttributes()
810 int flags = safeInt(parser, ATT_FLAGS, 0); in safeAudioAttributes()
823 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() method in NotificationChannel
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java459 rt.version = safeInt(parser, ZEN_ATT_VERSION, XML_VERSION); in readXml()
460 rt.user = safeInt(parser, ZEN_ATT_USER, rt.user); in readXml()
478 final int from = safeInt(parser, ALLOW_ATT_FROM, -1); in readXml()
479 final int callsFrom = safeInt(parser, ALLOW_ATT_CALLS_FROM, -1); in readXml()
480 final int messagesFrom = safeInt(parser, ALLOW_ATT_MESSAGES_FROM, -1); in readXml()
519 rt.suppressedVisualEffects = safeInt(parser, DISALLOW_ATT_VISUAL_EFFECTS, in readXml()
644 final int icon = safeInt(parser, CONDITION_ATT_ICON, -1); in readConditionXml()
645 final int state = safeInt(parser, CONDITION_ATT_STATE, -1); in readConditionXml()
646 final int flags = safeInt(parser, CONDITION_ATT_FLAGS, -1); in readConditionXml()
693 private static int safeInt(XmlPullParser parser, String att, int defValue) { in safeInt() method in ZenModeConfig