Lines Matching refs:printer
153 public void onPrinterFound(DiscoveredPrinter printer) { in onPrinterFound() argument
157 if (!printer.getId(mPrintService).equals(mPrintJob.getInfo().getPrinterId())) { in onPrinterFound()
161 if (DEBUG) Log.d(TAG, "onPrinterFound() " + printer.name + " state=" + mState); in onPrinterFound()
163 if (P2pUtils.isP2p(printer)) { in onPrinterFound()
165 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
169 if (P2pUtils.isOnConnectedInterface(mPrintService, printer) && mConnection == null) { in onPrinterFound()
171 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
177 mPath = printer.path; in onPrinterFound()
179 for (Uri path : printer.paths) { in onPrinterFound()
186 mPrintService.getCapabilitiesCache().request(printer, true, this); in onPrinterFound()
190 public void onPrinterLost(DiscoveredPrinter printer) { in onPrinterLost() argument
195 public void onConnectionComplete(DiscoveredPrinter printer) { in onConnectionComplete() argument
201 if (printer == null) { in onConnectionComplete()