Lines Matching refs:iconId
98 int iconId = ICON_UNDEFINED;
103 ATTR_ID_TO_ICON_ID.put(attrId, iconId); in ATTR_ID_TO_ICON_ID.put() argument
105 sNameToIdsMap.put(name, iconId); in sNameToIdsMap.put() argument
106 ICON_NAMES[iconId] = name;
107 iconId++;
118 final Integer iconId = ATTR_ID_TO_ICON_ID.get(attrId); in loadIcons() local
119 mIcons[iconId] = icon; in loadIcons()
120 mIconResourceIds[iconId] = keyboardAttrs.getResourceId(attrId, 0); in loadIcons()
129 private static boolean isValidIconId(final int iconId) { in isValidIconId() argument
130 return iconId >= 0 && iconId < ICON_NAMES.length; in isValidIconId()
134 public static String getIconName(final int iconId) { in getIconName() argument
135 return isValidIconId(iconId) ? ICON_NAMES[iconId] : "unknown<" + iconId + ">"; in getIconName()
139 Integer iconId = sNameToIdsMap.get(name); in getIconId() local
140 if (iconId != null) { in getIconId()
141 return iconId; in getIconId()
147 final int iconId = getIconId(name); in getIconResourceId() local
148 if (isValidIconId(iconId)) { in getIconResourceId()
149 return mIconResourceIds[iconId]; in getIconResourceId()
155 public Drawable getIconDrawable(final int iconId) { in getIconDrawable() argument
156 if (isValidIconId(iconId)) { in getIconDrawable()
157 return mIcons[iconId]; in getIconDrawable()
159 throw new RuntimeException("unknown icon id: " + getIconName(iconId)); in getIconDrawable()