Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/printservice/
DPrinterDiscoverySession.java90 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession
115 if (!mPrinters.isEmpty()) { in setObserver()
148 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters()
181 PrinterInfo oldPrinter = mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters()
201 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in addPrinters()
208 if (mPrinters.get(addedPrinter.getId()) == null) { in addPrinters()
209 mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters()
245 if (mPrinters.remove(removedPrinterId) != null) { in removePrinters()
262 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in removePrinters()
269 mPrinters.remove(removedPrinterId); in removePrinters()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DMDNSFilteredDiscovery.java59 private final @NonNull HashSet<InetAddress> mPrinters; field in MDNSFilteredDiscovery
99 mPrinters = new HashSet<>(); in MDNSFilteredDiscovery()
116 mCallback.onChanged(new ArrayList<>(mPrinters)); in start()
154 mPrinters.clear(); in onDiscoveryStopped()
171 boolean added = mPrinters.add(serviceInfo.getHost()); in onServiceFound()
173 mCallback.onChanged(new ArrayList<>(mPrinters)); in onServiceFound()
195 boolean removed = mPrinters.remove(serviceInfo.getHost()); in onServiceLost()
198 mCallback.onChanged(new ArrayList<>(mPrinters)); in onServiceLost()
/frameworks/base/core/java/android/print/
DPrinterDiscoverySession.java46 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession
155 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters()
194 mPrinters.clear(); in destroyNoCheck()
204 if (mPrinters.isEmpty()) { in handlePrintersAdded()
208 mPrinters.put(printer.getId(), printer); in handlePrintersAdded()
224 for (PrinterId oldPrinterId : mPrinters.keySet()) { in handlePrintersAdded()
227 mPrinters.put(oldPrinterId, updatedPrinter); in handlePrintersAdded()
232 mPrinters.putAll(addedPrintersMap); in handlePrintersAdded()
246 if (mPrinters.remove(removedPrinterId) != null) { in handlePrintersRemoved()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRemotePrintServicePlugin.java50 private @NonNull List<InetAddress> mPrinters; field in RemotePrintServicePlugin
73 mPrinters = Collections.emptyList(); in RemotePrintServicePlugin()
127 return mPrinters; in getPrinters()
136 mPrinters = Collections.emptyList(); in onChanged()
138 mPrinters = Preconditions.checkCollectionElementsNotNull(discoveredPrinters, in onChanged()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrinterRegistry.java40 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in PrinterRegistry
73 return mPrinters; in getPrinters()
122 mPrinters.clear();
133 mPrinters.clear();
134 mPrinters.addAll(printers);
DSelectPrinterActivity.java491 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in SelectPrinterActivity.DestinationAdapter
503 return mPrinters; in getPrinters()
511 mPrinters.clear(); in DestinationAdapter()
512 mPrinters.addAll(printers); in DestinationAdapter()
525 mPrinters.clear(); in DestinationAdapter()
545 final int printerCount = mPrinters.size(); in getFilter()
547 PrinterInfo printer = mPrinters.get(i); in getFilter()
570 mFilteredPrinters.addAll(mPrinters); in getFilter()
593 return mPrinters.size();
DFusedPrintersProvider.java102 private final List<PrinterInfo> mPrinters = field in FusedPrintersProvider
222 final int printerCount = mPrinters.size(); in computeAndDeliverResult()
224 PrinterInfo printer = mPrinters.get(i); in computeAndDeliverResult()
236 mPrinters.clear(); in computeAndDeliverResult()
237 mPrinters.addAll(printers); in computeAndDeliverResult()
272 deliverResult(new ArrayList<>(mPrinters)); in onStartLoading()
338 if (mPrintersUpdatedBefore && mPrinters.equals(printers) in updatePrinters()
391 mPrinters.clear(); in onReset()
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java1252 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in UserState.PrinterDiscoverySessionMediator
1289 if (!mPrinters.isEmpty()) { in addObserverLocked()
1290 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(mPrinters.values()); in addObserverLocked()
1499 PrinterInfo oldPrinter = mPrinters.put(printer.getId(), printer); in onPrintersAddedLocked()
1525 if (mPrinters.remove(removedPrinterId) != null) { in onPrintersRemovedLocked()
1567 PrinterInfo printer = mPrinters.get(printerId); in onCustomPrinterIconLoadedLocked()
1571 mPrinters.put(printerId, newPrinter); in onCustomPrinterIconLoadedLocked()
1647 final int pritnerCount = mPrinters.size(); in dump()
1649 PrinterInfo printer = mPrinters.valueAt(i); in dump()
1657 if (mPrinters.isEmpty()) { in removePrintersForServiceLocked()
[all …]