Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySession.java117 public void onStartPrinterStateTracking(final PrinterId printerId) { in onStartPrinterStateTracking() argument
118 if (DEBUG) Log.d(TAG, "onStartPrinterStateTracking() " + printerId); in onStartPrinterStateTracking()
119 LocalPrinter localPrinter = mPrinters.get(printerId); in onStartPrinterStateTracking()
120 mTrackingIds.add(printerId); in onStartPrinterStateTracking()
130 public void onStopPrinterStateTracking(PrinterId printerId) { in onStopPrinterStateTracking() argument
131 if (DEBUG) Log.d(TAG, "onStopPrinterStateTracking() " + printerId.getLocalId()); in onStopPrinterStateTracking()
132 LocalPrinter localPrinter = mPrinters.get(printerId); in onStopPrinterStateTracking()
136 mTrackingIds.remove(printerId); in onStopPrinterStateTracking()
156 PrinterId printerId = discoveredPrinter.getId(mPrintService); in onPrinterFound() local
157 LocalPrinter localPrinter = mPrinters.computeIfAbsent(printerId, in onPrinterFound()
[all …]
DJobQueue.java40 void cancel(PrinterId printerId) { in cancel() argument
42 if (printerId.equals(job.getPrintJob().getInfo().getPrinterId())) { in cancel()
47 if (mCurrent != null && printerId.equals(mCurrent.getPrintJob().getInfo().getPrinterId())) { in cancel()
53 void restart(PrinterId printerId) { in restart() argument
54 if (mCurrent != null && printerId.equals(mCurrent.getPrintJob().getInfo().getPrinterId())) { in restart()
DLocalDiscoverySessionInfo.java127 boolean isKnownGood(PrinterId printerId) { in isKnownGood() argument
128 return mKnownGood.contains(printerId); in isKnownGood()
131 void setKnownGood(PrinterId printerId) { in setKnownGood() argument
132 mKnownGood.remove(printerId); in setKnownGood()
133 mKnownGood.add(0, printerId); in setKnownGood()
DBuiltInPrintService.java305 void notifyCertificateChange(String printerName, PrinterId printerId, String printerUuid, in notifyCertificateChange() argument
316 .putExtra(EXTRA_PRINTER_ID, printerId); in notifyCertificateChange()
329 .putExtra(EXTRA_PRINTER_ID, printerId); in notifyCertificateChange()
362 PrinterId printerId = intent.getParcelableExtra(EXTRA_PRINTER_ID); in onStartCommand() local
370 mJobQueue.restart(printerId); in onStartCommand()
374 PrinterId printerId = intent.getParcelableExtra(EXTRA_PRINTER_ID); in onStartCommand() local
375 mJobQueue.cancel(printerId); in onStartCommand()