Lines Matching defs:icon
108 public boolean set(StatusBarIcon icon) {
110 && streq(mIcon.iconPackage, icon.iconPackage)
111 && mIcon.iconId == icon.iconId;
113 && mIcon.iconLevel == icon.iconLevel;
115 && mIcon.visible == icon.visible;
117 && mIcon.number == icon.number;
118 mIcon = icon.clone();
119 setContentDescription(icon.contentDescription);
121 Drawable drawable = getIcon(icon);
123 Slog.w(TAG, "No icon for slot " + mSlot);
129 setImageLevel(icon.iconLevel);
133 if (icon.number > 0 && mContext.getResources().getBoolean(
147 setVisibility(icon.visible ? VISIBLE : GONE);
152 private Drawable getIcon(StatusBarIcon icon) {
153 return getIcon(getContext(), icon);
157 * Returns the right icon to use for this item, respecting the iconId and
164 public static Drawable getIcon(Context context, StatusBarIcon icon) {
167 if (icon.iconPackage != null) {
169 int userId = icon.user.getIdentifier();
174 .getResourcesForApplicationAsUser(icon.iconPackage, userId);
176 Slog.e(TAG, "Icon package not found: " + icon.iconPackage);
183 if (icon.iconId == 0) {
188 return r.getDrawable(icon.iconId);
191 + (icon.iconPackage != null ? icon.iconId : "<system>")
192 + ": " + Integer.toHexString(icon.iconId));
232 Log.d("View", debugIndent(depth) + "icon=" + mIcon);
278 return "StatusBarIconView(slot=" + mSlot + " icon=" + mIcon