Home
last modified time | relevance | path

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

/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintService.java399 public void startPrinterStateTracking(PrinterId printerId) { in startPrinterStateTracking() argument
401 printerId).sendToTarget(); in startPrinterStateTracking()
404 private void handleStartPrinterStateTracking(final PrinterId printerId) { in handleStartPrinterStateTracking() argument
410 mTrackedPrinterList.add(printerId); in handleStartPrinterStateTracking()
416 handleStartPrinterStateTracking(printerId); in handleStartPrinterStateTracking()
424 mPrintService.startPrinterStateTracking(printerId); in handleStartPrinterStateTracking()
431 public void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() argument
433 printerId).sendToTarget(); in stopPrinterStateTracking()
436 private void handleStopPrinterStateTracking(final PrinterId printerId) { in handleStopPrinterStateTracking() argument
439 if (mTrackedPrinterList == null || !mTrackedPrinterList.remove(printerId)) { in handleStopPrinterStateTracking()
[all …]
DUserState.java418 public void startPrinterStateTracking(PrinterId printerId) { in startPrinterStateTracking() argument
430 mPrinterDiscoverySession.startPrinterStateTrackingLocked(printerId); in startPrinterStateTracking()
434 public void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() argument
446 mPrinterDiscoverySession.stopPrinterStateTrackingLocked(printerId); in stopPrinterStateTracking()
1074 PrinterId printerId = iterator.next(); in validatePrintersLocked() local
1076 updateList.add(printerId); in validatePrintersLocked()
1077 serviceName = printerId.getServiceName(); in validatePrintersLocked()
1079 } else if (printerId.getServiceName().equals(serviceName)) { in validatePrintersLocked()
1080 updateList.add(printerId); in validatePrintersLocked()
1097 public final void startPrinterStateTrackingLocked(PrinterId printerId) { in startPrinterStateTrackingLocked() argument
[all …]
DPrintManagerService.java363 public void startPrinterStateTracking(PrinterId printerId, int userId) { in startPrinterStateTracking() argument
375 userState.startPrinterStateTracking(printerId); in startPrinterStateTracking()
382 public void stopPrinterStateTracking(PrinterId printerId, int userId) { in stopPrinterStateTracking() argument
394 userState.stopPrinterStateTracking(printerId); in stopPrinterStateTracking()
/frameworks/base/core/java/android/printservice/
DPrinterDiscoverySession.java406 public abstract void onStartPrinterStateTracking(PrinterId printerId); in onStartPrinterStateTracking() argument
417 public abstract void onStopPrinterStateTracking(PrinterId printerId); in onStopPrinterStateTracking() argument
503 void startPrinterStateTracking(PrinterId printerId) { in startPrinterStateTracking() argument
505 && !mTrackedPrinters.contains(printerId)) { in startPrinterStateTracking()
506 mTrackedPrinters.add(printerId); in startPrinterStateTracking()
507 onStartPrinterStateTracking(printerId); in startPrinterStateTracking()
511 void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() argument
513 && mTrackedPrinters.remove(printerId)) { in stopPrinterStateTracking()
514 onStopPrinterStateTracking(printerId); in stopPrinterStateTracking()
DPrintService.java376 public void startPrinterStateTracking(PrinterId printerId) { in onBind() argument
378 printerId).sendToTarget(); in onBind()
382 public void stopPrinterStateTracking(PrinterId printerId) { in onBind() argument
384 printerId).sendToTarget(); in onBind()
494 PrinterId printerId = (PrinterId) message.obj;
495 mDiscoverySession.startPrinterStateTracking(printerId);
505 PrinterId printerId = (PrinterId) message.obj;
506 mDiscoverySession.stopPrinterStateTracking(printerId);
DIPrintService.aidl37 void startPrinterStateTracking(in PrinterId printerId); in startPrinterStateTracking() argument
38 void stopPrinterStateTracking(in PrinterId printerId); in stopPrinterStateTracking() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrinterRegistry.java77 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() argument
80 provider.forgetFavoritePrinter(printerId); in forgetFavoritePrinter()
84 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() argument
87 return provider.isFavoritePrinter(printerId); in isFavoritePrinter()
92 public void setTrackedPrinter(PrinterId printerId) { in setTrackedPrinter() argument
95 provider.setTrackedPrinter(printerId); in setTrackedPrinter()
DFusedPrintersProvider.java277 public void setTrackedPrinter(PrinterId printerId) { in setTrackedPrinter() argument
281 if (mTrackedPrinter.equals(printerId)) { in setTrackedPrinter()
286 mTrackedPrinter = printerId; in setTrackedPrinter()
287 if (printerId != null) { in setTrackedPrinter()
288 mDiscoverySession.startPrinterStateTracking(printerId); in setTrackedPrinter()
293 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() argument
297 if (favoritePritner.getId().equals(printerId)) { in isFavoritePrinter()
304 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() argument
311 if (favoritePrinter.getId().equals(printerId)) { in forgetFavoritePrinter()
322 mPersistenceManager.removeHistoricalPrinterAndWritePrinterHistory(printerId); in forgetFavoritePrinter()
[all …]
DSelectPrinterActivity.java217 PrinterId printerId = item.getIntent().getParcelableExtra(EXTRA_PRINTER_ID); in onContextItemSelected() local
218 onPrinterSelected(printerId); in onContextItemSelected()
222 PrinterId printerId = item.getIntent().getParcelableExtra(EXTRA_PRINTER_ID); in onContextItemSelected() local
223 mPrinterRegistry.forgetFavoritePrinter(printerId); in onContextItemSelected()
253 private void onPrinterSelected(PrinterId printerId) { in onPrinterSelected() argument
255 intent.putExtra(INTENT_EXTRA_PRINTER_ID, printerId); in onPrinterSelected()
DPrintActivity.java642 PrinterId printerId = data.getParcelableExtra(INTENT_EXTRA_PRINTER_ID); in onSelectPrinterActivityResult() local
643 if (printerId != null) { in onSelectPrinterActivityResult()
644 mDestinationSpinnerAdapter.ensurePrinterInVisibleAdapterPosition(printerId); in onSelectPrinterActivityResult()
645 final int index = mDestinationSpinnerAdapter.getPrinterIndex(printerId); in onSelectPrinterActivityResult()
653 PrinterId printerId = mCurrentPrinter.getId(); in onSelectPrinterActivityResult() local
654 final int index = mDestinationSpinnerAdapter.getPrinterIndex(printerId); in onSelectPrinterActivityResult()
1769 public int getPrinterIndex(PrinterId printerId) { in getPrinterIndex() argument
1773 && printerHolder.printer.getId().equals(printerId)) { in getPrinterIndex()
1780 public void ensurePrinterInVisibleAdapterPosition(PrinterId printerId) { in ensurePrinterInVisibleAdapterPosition() argument
1784 if (printerHolder.printer.getId().equals(printerId)) { in ensurePrinterInVisibleAdapterPosition()
[all …]
/frameworks/base/core/java/android/print/
DPrinterDiscoverySession.java105 public final void startPrinterStateTracking(PrinterId printerId) { in startPrinterStateTracking() argument
111 mPrintManager.startPrinterStateTracking(printerId, mUserId); in startPrinterStateTracking()
117 public final void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() argument
123 mPrintManager.stopPrinterStateTracking(printerId, mUserId); in stopPrinterStateTracking()
DIPrintManager.aidl55 void startPrinterStateTracking(in PrinterId printerId, int userId); in startPrinterStateTracking() argument
56 void stopPrinterStateTracking(in PrinterId printerId, int userId); in stopPrinterStateTracking() argument
DPrinterInfo.java231 public Builder(PrinterId printerId, String name, int status) { in Builder() argument
232 if (printerId == null) { in Builder()
242 mPrototype.mId = printerId; in Builder()
DPrintJobInfo.java274 public void setPrinterId(PrinterId printerId) { in setPrinterId() argument
275 mPrinterId = printerId; in setPrinterId()
DPrinterCapabilitiesInfo.java384 public Builder(PrinterId printerId) { in Builder() argument
385 if (printerId == null) { in Builder()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java262 PrinterId printerId = printJob.getPrinterId(); in getPrintJobInfos() local
264 || (printerId != null in getPrintJobInfos()
265 && componentName.equals(printerId.getServiceName()))); in getPrintJobInfos()
503 PrinterId printerId = printJob.getPrinterId(); in setPrintJobState() local
504 if (printerId != null) { in setPrintJobState()
505 ComponentName service = printerId.getServiceName(); in setPrintJobState()
797 PrinterId printerId = printJob.getPrinterId(); in doWriteStateLocked() local
798 if (printerId != null) { in doWriteStateLocked()
800 serializer.attribute(null, ATTR_LOCAL_ID, printerId.getLocalId()); in doWriteStateLocked()
801 serializer.attribute(null, ATTR_SERVICE_NAME, printerId.getServiceName() in doWriteStateLocked()