Lines Matching refs:printer
163 public void onPrinterFound(DiscoveredPrinter printer) { in onPrinterFound() argument
167 if (!printer.getId(mPrintService).equals(mPrintJob.getInfo().getPrinterId())) { in onPrinterFound()
171 if (DEBUG) Log.d(TAG, "onPrinterFound() " + printer.name + " state=" + mState); in onPrinterFound()
173 if (P2pUtils.isP2p(printer)) { in onPrinterFound()
175 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
179 if (P2pUtils.isOnConnectedInterface(mPrintService, printer) && mConnection == null) { in onPrinterFound()
181 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
187 mPath = printer.path; in onPrinterFound()
189 for (Uri path : printer.paths) { in onPrinterFound()
196 mPrintService.getCapabilitiesCache().request(printer, true, this); in onPrinterFound()
200 public void onPrinterLost(DiscoveredPrinter printer) { in onPrinterLost() argument
205 public void onConnectionComplete(DiscoveredPrinter printer) { in onConnectionComplete() argument
211 if (printer == null) { in onConnectionComplete()