Home
last modified time | relevance | path

Searched refs:mPrinters (Results 1 – 3 of 3) sorted by relevance

/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscovery.java48 private final Map<Uri, DiscoveredPrinter> mPrinters = new HashMap<>(); field in Discovery
65 if (!mPrinters.isEmpty()) { in start()
69 for (DiscoveredPrinter printer : new ArrayList<>(mPrinters.values())) { in start()
127 mPrinters.clear(); in stop()
146 DiscoveredPrinter current = mPrinters.get(printer.getUri()); in printerFound()
151 mPrinters.put(printer.getUri(), printer); in printerFound()
161 DiscoveredPrinter printer = mPrinters.remove(printerUri); in printerLost()
172 for (Uri uri: new ArrayList<>(mPrinters.keySet())) { in allPrintersLost()
181 return mPrinters.values(); in getPrinters()
188 return mPrinters.get(uri); in getPrinter()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySession.java52 private final Map<PrinterId, LocalPrinter> mPrinters = new HashMap<>(); field in LocalDiscoverySession
82 for (LocalPrinter printer : mPrinters.values()) { in onStartPrinterDiscovery()
119 LocalPrinter localPrinter = mPrinters.get(printerId); in onStartPrinterStateTracking()
132 LocalPrinter localPrinter = mPrinters.get(printerId); in onStopPrinterStateTracking()
157 LocalPrinter localPrinter = mPrinters.computeIfAbsent(printerId, in onPrinterFound()
176 LocalPrinter localPrinter = mPrinters.get(printerId); in onPrinterLost()
187 if (mExpirePrinters == null && !mPrinters.isEmpty()) { in monitorExpiredPrinters()
193 for (LocalPrinter localPrinter : mPrinters.values()) { in monitorExpiredPrinters()
203 mPrinters.remove(id); in monitorExpiredPrinters()
257 return mPrinters.containsKey(printerId); in isKnown()
[all …]
/packages/apps/Settings/src/com/android/settings/print/
DPrintServiceSettingsFragment.java420 private final List<PrinterInfo> mPrinters = new ArrayList<PrinterInfo>(); field in PrintServiceSettingsFragment.PrintersAdapter
432 mPrinters.clear(); in disable()
436 return mPrinters.size(); in getUnfilteredCount()
451 final int printerCount = mPrinters.size(); in getFilter()
453 PrinterInfo printer = mPrinters.get(i); in getFilter()
472 mFilteredPrinters.addAll(mPrinters); in getFilter()
602 mPrinters.clear();
607 mPrinters.add(printer);
611 mFilteredPrinters.addAll(mPrinters);
622 mPrinters.clear();
[all …]