Lines Matching refs:PrinterId
21 import android.print.PrinterId;
64 private final Map<PrinterId, LocalPrinter> mPrinters = new HashMap<>();
65 private final Set<PrinterId> mPriorityIds = new HashSet<>();
66 private final Set<PrinterId> mTrackingIds = new HashSet<>();
67 private final List<PrinterId> mKnownGood = new ArrayList<>();
93 public void onStartPrinterDiscovery(List<PrinterId> priorityList) {
129 public void onValidatePrinters(List<PrinterId> printerIds) {
134 public void onStartPrinterStateTracking(final PrinterId printerId) {
135 if (DEBUG) Log.d(TAG, "onStartPrinterStateTracking() " + printerId);
136 LocalPrinter localPrinter = mPrinters.get(printerId);
137 mTrackingIds.add(printerId);
147 public void onStopPrinterStateTracking(PrinterId printerId) {
148 if (DEBUG) Log.d(TAG, "onStopPrinterStateTracking() " + printerId.getLocalId());
149 mTrackingIds.remove(printerId);
169 final PrinterId printerId = discoveredPrinter.getId(mPrintService);
170 LocalPrinter localPrinter = mPrinters.get(printerId);
173 mPrinters.put(printerId, localPrinter);
185 PrinterId printerId = lostPrinter.getId(mPrintService);
186 if (printerId.getLocalId().startsWith("ipp")) {
191 LocalPrinter localPrinter = mPrinters.get(printerId);
237 * Return true if the {@link PrinterId} corresponds to a high-priority printer
239 boolean isPriority(PrinterId printerId) {
240 return mPriorityIds.contains(printerId) || mTrackingIds.contains(printerId);
244 * Return true if the {@link PrinterId} corresponds to a known printer
246 boolean isKnown(PrinterId printerId) {
247 return mPrinters.containsKey(printerId);
318 ArrayList<PrinterId> printersToRemove = new ArrayList<>();
387 List<PrinterId> idsToRemove = new ArrayList<>();