Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java2313 private final List<PrinterHolder> mPrinterHolders = new ArrayList<>(); field in PrintActivity.DestinationAdapter
2327 addPrinters(mPrinterHolders, mPrinterRegistry.getPrinters()); in DestinationAdapter()
2348 final int printerCount = mPrinterHolders.size(); in ensurePrinterInVisibleAdapterPosition()
2351 PrinterHolder printerHolder = mPrinterHolders.get(i); in ensurePrinterInVisibleAdapterPosition()
2362 mPrinterHolders.set(i, mPrinterHolders.get(lastPrinterIndex)); in ensurePrinterInVisibleAdapterPosition()
2363 mPrinterHolders.set(lastPrinterIndex, printerHolder); in ensurePrinterInVisibleAdapterPosition()
2372 mPrinterHolders.add(Math.max(0, getCount() - 3), printerHolder); in ensurePrinterInVisibleAdapterPosition()
2382 return Math.min(mPrinterHolders.size() + 2, DEST_ADAPTER_MAX_ITEM_COUNT); in getCount()
2400 if (mPrinterHolders.isEmpty()) { in getItem()
2406 return mPrinterHolders.get(position); in getItem()
[all …]