Home
last modified time | relevance | path

Searched refs:mPrinters (Results 1 – 4 of 4) 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.java419 private final List<PrinterInfo> mPrinters = new ArrayList<PrinterInfo>(); field in PrintServiceSettingsFragment.PrintersAdapter
431 mPrinters.clear(); in disable()
435 return mPrinters.size(); in getUnfilteredCount()
450 final int printerCount = mPrinters.size(); in getFilter()
452 PrinterInfo printer = mPrinters.get(i); in getFilter()
471 mFilteredPrinters.addAll(mPrinters); in getFilter()
601 mPrinters.clear();
606 mPrinters.add(printer);
610 mFilteredPrinters.addAll(mPrinters);
621 mPrinters.clear();
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/
DPrintServiceSettingsFragment.java419 private final List<PrinterInfo> mPrinters = new ArrayList<PrinterInfo>(); field in PrintServiceSettingsFragment.PrintersAdapter
431 mPrinters.clear(); in disable()
435 return mPrinters.size(); in getUnfilteredCount()
450 final int printerCount = mPrinters.size(); in getFilter()
452 PrinterInfo printer = mPrinters.get(i); in getFilter()
471 mFilteredPrinters.addAll(mPrinters); in getFilter()
601 mPrinters.clear();
606 mPrinters.add(printer);
610 mFilteredPrinters.addAll(mPrinters);
621 mPrinters.clear();
[all …]