Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java539 private List<Pair<PrinterInfo, Location>> mHistoricalPrinters = new ArrayList<>(); field in FusedPrintersProvider.PersistenceManager
639 final int printerCount = mHistoricalPrinters.size(); in updateHistoricalPrinterIfNeeded()
641 PrinterInfo historicalPrinter = mHistoricalPrinters.get(i).first; in updateHistoricalPrinterIfNeeded()
653 mHistoricalPrinters.set(i, new Pair<PrinterInfo, Location>(printer, in updateHistoricalPrinterIfNeeded()
654 mHistoricalPrinters.get(i).second)); in updateHistoricalPrinterIfNeeded()
670 if (mHistoricalPrinters.size() >= MAX_HISTORY_LENGTH) { in addPrinterAndWritePrinterHistory()
671 mHistoricalPrinters.remove(0); in addPrinterAndWritePrinterHistory()
679 mHistoricalPrinters.add(new Pair<PrinterInfo, Location>(printer, location)); in addPrinterAndWritePrinterHistory()
686 final int printerCount = mHistoricalPrinters.size(); in removeHistoricalPrinterAndWritePrinterHistory()
688 PrinterInfo historicalPrinter = mHistoricalPrinters.get(i).first; in removeHistoricalPrinterAndWritePrinterHistory()
[all …]