Lines Matching refs:icon
50 * Create a new icon cache.
60 * Return the file name to be used for the icon of a printer
64 * @return The file to be used for the icon of the printer
77 Log.e(LOG_TAG, "Could not compute custom printer icon file name", e);
85 * Get the {@link Icon} to be used as a custom icon for the printer. If not available request
86 * the icon to be loaded.
88 * @param printerId the printer the icon belongs to
89 * @return the {@link Icon} if already available or null if icon is not loaded yet
92 Icon icon;
97 icon = Icon.createFromStream(is);
99 icon = null;
100 Log.e(LOG_TAG, "Could not read icon from " + iconFile, e);
106 icon = null;
109 return icon;
135 * Handle that a custom icon for a printer was loaded
137 * @param printerId the id of the printer the icon belongs to
138 * @param icon the icon that was loaded
141 @Nullable Icon icon) {
149 icon.writeToStream(os);
151 Log.e(LOG_TAG, "Could not write icon for " + printerId + " to storage", e);