Searched refs:mPrinters (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/printservice/ |
D | PrinterDiscoverySession.java | 88 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession 113 if (!mPrinters.isEmpty()) { in setObserver() 146 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 179 PrinterInfo oldPrinter = mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters() 199 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in addPrinters() 206 if (mPrinters.get(addedPrinter.getId()) == null) { in addPrinters() 207 mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters() 243 if (mPrinters.remove(removedPrinterId) != null) { in removePrinters() 260 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in removePrinters() 267 mPrinters.remove(removedPrinterId); in removePrinters() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrinterDiscoverySession.java | 44 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession 153 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 192 mPrinters.clear(); in destroyNoCheck() 202 if (mPrinters.isEmpty()) { in handlePrintersAdded() 206 mPrinters.put(printer.getId(), printer); in handlePrintersAdded() 222 for (PrinterId oldPrinterId : mPrinters.keySet()) { in handlePrintersAdded() 225 mPrinters.put(oldPrinterId, updatedPrinter); in handlePrintersAdded() 230 mPrinters.putAll(addedPrintersMap); in handlePrintersAdded() 244 if (mPrinters.remove(removedPrinterId) != null) { in handlePrintersRemoved()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 39 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in PrinterRegistry 67 return mPrinters; in getPrinters() 117 mPrinters.clear(); 132 mPrinters.clear(); 133 mPrinters.addAll(printers);
|
D | FusedPrintersProvider.java | 73 private final List<PrinterInfo> mPrinters = field in FusedPrintersProvider 114 final int printerCount = mPrinters.size(); in computeAndDeliverResult() 116 PrinterInfo printer = mPrinters.get(i); in computeAndDeliverResult() 128 mPrinters.clear(); in computeAndDeliverResult() 129 mPrinters.addAll(printers); in computeAndDeliverResult() 147 if (!mPrinters.isEmpty()) { in onStartLoading() 148 deliverResult(new ArrayList<>(mPrinters)); in onStartLoading() 208 if (mPrintersUpdatedBefore && mPrinters.equals(printers) in updatePrinters() 259 mPrinters.clear(); in onReset() 314 newFavoritePrinters.addAll(mPrinters); in forgetFavoritePrinter()
|
D | SelectPrinterActivity.java | 417 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in SelectPrinterActivity.DestinationAdapter 428 mPrinters.clear(); in DestinationAdapter() 429 mPrinters.addAll(printers); in DestinationAdapter() 442 mPrinters.clear(); in DestinationAdapter() 462 final int printerCount = mPrinters.size(); in getFilter() 464 PrinterInfo printer = mPrinters.get(i); in getFilter() 484 mFilteredPrinters.addAll(mPrinters); in getFilter() 501 return mPrinters.size();
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | UserState.java | 951 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in UserState.PrinterDiscoverySessionMediator 988 if (!mPrinters.isEmpty()) { in addObserverLocked() 989 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(mPrinters.values()); in addObserverLocked() 1196 PrinterInfo oldPrinter = mPrinters.put(printer.getId(), printer); in onPrintersAddedLocked() 1222 if (mPrinters.remove(removedPrinterId) != null) { in onPrintersRemovedLocked() 1314 final int pritnerCount = mPrinters.size(); in dump() 1316 PrinterInfo printer = mPrinters.valueAt(i); in dump() 1324 if (mPrinters.isEmpty()) { in removePrintersForServiceLocked() 1329 final int printerCount = mPrinters.size(); in removePrintersForServiceLocked() 1331 PrinterId printerId = mPrinters.keyAt(i); in removePrintersForServiceLocked() [all …]
|