Lines Matching refs:icon
286 public boolean set(StatusBarIcon icon) {
287 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon);
289 && mIcon.iconLevel == icon.iconLevel;
291 && mIcon.visible == icon.visible;
293 && mIcon.number == icon.number;
294 mIcon = icon.clone();
295 setContentDescription(icon.contentDescription);
302 setImageLevel(icon.iconLevel);
306 if (icon.number > 0 && getContext().getResources().getBoolean(
320 setVisibility(icon.visible && !mBlocked ? VISIBLE : GONE);
337 Log.w(TAG, "OOM while inflating " + mIcon.icon + " for slot " + mSlot);
342 Log.w(TAG, "No icon for slot " + mSlot + "; " + mIcon.icon);
353 return mIcon.icon;
356 private Drawable getIcon(StatusBarIcon icon) {
357 return getIcon(getContext(), icon);
361 * Returns the right icon to use for this item
373 Drawable icon = statusBarIcon.icon.loadDrawableAsUser(context, userId);
379 // No need to scale the icon, so return it as is.
381 return icon;
384 return new ScalingDrawableWrapper(icon, scaleFactor);
446 Log.d("View", debugIndent(depth) + "icon=" + mIcon);
492 return "StatusBarIconView(slot=" + mSlot + " icon=" + mIcon
555 * Set the static color that should be used for the drawable of this icon if it's not