Lines Matching refs:density
96 * @param density The preferred density of the icon, zero for default density. Use
97 * density DPI values from {@link DisplayMetrics}.
102 public Drawable getIcon(int density) {
106 // Get the preferred density icon from the app's resources
107 if (density != 0 && iconRes != 0) {
111 icon = resources.getDrawableForDensity(iconRes, density);
115 // Get the default density icon
166 * @param density Optional density for the icon, or 0 to use the default density. Use
171 public Drawable getBadgedIcon(int density) {
172 Drawable originalIcon = getIcon(density);