Home
last modified time | relevance | path

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

/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintService.java117 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon); in onCustomPrinterIconLoaded() argument
417 public void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() argument
419 RemotePrintService::handleStartPrinterStateTracking, this, printerId)); in startPrinterStateTracking()
428 public void requestCustomPrinterIcon(@NonNull PrinterId printerId) { in requestCustomPrinterIcon() argument
430 RemotePrintService::handleRequestCustomPrinterIcon, this, printerId)); in requestCustomPrinterIcon()
439 private void handleRequestCustomPrinterIcon(@NonNull PrinterId printerId) { in handleRequestCustomPrinterIcon() argument
442 mPendingCommands.add(() -> handleRequestCustomPrinterIcon(printerId)); in handleRequestCustomPrinterIcon()
449 mPrintService.requestCustomPrinterIcon(printerId); in handleRequestCustomPrinterIcon()
451 Slog.e(LOG_TAG, "Error requesting icon for " + printerId, re); in handleRequestCustomPrinterIcon()
456 private void handleStartPrinterStateTracking(final @NonNull PrinterId printerId) { in handleStartPrinterStateTracking() argument
[all …]
DUserState.java326 public @Nullable Icon getCustomPrinterIcon(@NonNull PrinterId printerId) { in getCustomPrinterIcon() argument
327 Icon icon = mSpooler.getCustomPrinterIcon(printerId); in getCustomPrinterIcon()
330 RemotePrintService service = mActiveServices.get(printerId.getServiceName()); in getCustomPrinterIcon()
332 service.requestCustomPrinterIcon(printerId); in getCustomPrinterIcon()
349 PrinterId printerId = printJobInfo.getPrinterId(); in cancelPrintJob() local
351 if (printerId != null) { in cancelPrintJob()
352 ComponentName printServiceName = printerId.getServiceName(); in cancelPrintJob()
534 public void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() argument
546 mPrinterDiscoverySession.startPrinterStateTrackingLocked(printerId); in startPrinterStateTracking()
550 public void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() argument
[all …]
DRemotePrintSpooler.java368 public final void onCustomPrinterIconLoaded(@NonNull PrinterId printerId, in onCustomPrinterIconLoaded() argument
377 printerId, icon); in onCustomPrinterIconLoaded() local
401 public final @Nullable Icon getCustomPrinterIcon(@NonNull PrinterId printerId) { in getCustomPrinterIcon() argument
409 printerId); in getCustomPrinterIcon()
818 public Void onCustomPrinterIconLoaded(IPrintSpooler target, PrinterId printerId, in onCustomPrinterIconLoaded() argument
821 target.onCustomPrinterIconLoaded(printerId, icon, mCallback, sequence); in onCustomPrinterIconLoaded()
860 public Icon getCustomPrinterIcon(IPrintSpooler target, PrinterId printerId) in getCustomPrinterIcon() argument
863 target.getCustomPrinterIcon(printerId, mCallback, sequence); in getCustomPrinterIcon()
DPrintManagerService.java243 public Icon getCustomPrinterIcon(PrinterId printerId, int userId) { in getCustomPrinterIcon() argument
244 Objects.requireNonNull(printerId); in getCustomPrinterIcon()
257 return userState.getCustomPrinterIcon(printerId); in getCustomPrinterIcon()
533 public void startPrinterStateTracking(PrinterId printerId, int userId) { in startPrinterStateTracking() argument
534 Objects.requireNonNull(printerId); in startPrinterStateTracking()
547 userState.startPrinterStateTracking(printerId); in startPrinterStateTracking()
554 public void stopPrinterStateTracking(PrinterId printerId, int userId) { in stopPrinterStateTracking() argument
555 Objects.requireNonNull(printerId); in stopPrinterStateTracking()
568 userState.stopPrinterStateTracking(printerId); in stopPrinterStateTracking()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DCustomPrinterIconCache.java66 private @Nullable File getIconFileName(@NonNull PrinterId printerId) { in getIconFileName() argument
67 StringBuffer sb = new StringBuffer(printerId.getServiceName().getPackageName()); in getIconFileName()
73 (printerId.getServiceName().getClassName() + ":" + printerId.getLocalId()) in getIconFileName()
91 public synchronized @Nullable Icon getIcon(@NonNull PrinterId printerId) { in getIcon() argument
94 File iconFile = getIconFileName(printerId); in getIcon()
140 public synchronized void onCustomPrinterIconLoaded(@NonNull PrinterId printerId, in onCustomPrinterIconLoaded() argument
142 File iconFile = getIconFileName(printerId); in onCustomPrinterIconLoaded()
151 Log.e(LOG_TAG, "Could not write icon for " + printerId + " to storage", e); in onCustomPrinterIconLoaded()
DPrintSpoolerService.java316 PrinterId printerId = printJob.getPrinterId(); in getPrintJobInfos() local
318 || (printerId != null in getPrintJobInfos()
319 && componentName.equals(printerId.getServiceName()))); in getPrintJobInfos()
584 PrinterId printerId = printJob.getPrinterId(); in setPrintJobState() local
585 if (printerId != null) { in setPrintJobState()
586 ComponentName service = printerId.getServiceName(); in setPrintJobState()
800 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon) { in onCustomPrinterIconLoaded() argument
801 mCustomIconCache.onCustomPrinterIconLoaded(printerId, icon); in onCustomPrinterIconLoaded()
813 public Icon getCustomPrinterIcon(PrinterId printerId) { in getCustomPrinterIcon() argument
814 return mCustomIconCache.getIcon(printerId); in getCustomPrinterIcon()
[all …]
/frameworks/base/core/java/android/printservice/
DPrinterDiscoverySession.java408 public abstract void onStartPrinterStateTracking(@NonNull PrinterId printerId); in onStartPrinterStateTracking() argument
421 public void onRequestCustomPrinterIcon(@NonNull PrinterId printerId, in onRequestCustomPrinterIcon() argument
435 public abstract void onStopPrinterStateTracking(@NonNull PrinterId printerId); in onStopPrinterStateTracking() argument
521 void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() argument
523 && !mTrackedPrinters.contains(printerId)) { in startPrinterStateTracking()
524 mTrackedPrinters.add(printerId); in startPrinterStateTracking()
525 onStartPrinterStateTracking(printerId); in startPrinterStateTracking()
535 void requestCustomPrinterIcon(@NonNull PrinterId printerId) { in requestCustomPrinterIcon() argument
537 CustomPrinterIconCallback callback = new CustomPrinterIconCallback(printerId, in requestCustomPrinterIcon()
539 onRequestCustomPrinterIcon(printerId, new CancellationSignal(), callback); in requestCustomPrinterIcon()
[all …]
DPrintService.java417 public void startPrinterStateTracking(PrinterId printerId) { in onBind() argument
419 printerId).sendToTarget(); in onBind()
423 public void requestCustomPrinterIcon(PrinterId printerId) { in onBind() argument
425 printerId).sendToTarget(); in onBind()
429 public void stopPrinterStateTracking(PrinterId printerId) { in onBind() argument
431 printerId).sendToTarget(); in onBind()
542 PrinterId printerId = (PrinterId) message.obj;
543 mDiscoverySession.startPrinterStateTracking(printerId);
553 PrinterId printerId = (PrinterId) message.obj;
554 mDiscoverySession.requestCustomPrinterIcon(printerId);
[all …]
DIPrintService.aidl37 void startPrinterStateTracking(in PrinterId printerId); in startPrinterStateTracking() argument
45 void requestCustomPrinterIcon(in PrinterId printerId); in requestCustomPrinterIcon() argument
47 void stopPrinterStateTracking(in PrinterId printerId); in stopPrinterStateTracking() argument
DCustomPrinterIconCallback.java42 CustomPrinterIconCallback(@NonNull PrinterId printerId, @NonNull IPrintServiceClient observer) { in CustomPrinterIconCallback() argument
43 mPrinterId = printerId; in CustomPrinterIconCallback()
DIPrintServiceClient.aidl74 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon); in onCustomPrinterIconLoaded() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrinterRegistry.java83 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() argument
86 provider.forgetFavoritePrinter(printerId); in forgetFavoritePrinter()
90 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() argument
93 return provider.isFavoritePrinter(printerId); in isFavoritePrinter()
98 public void setTrackedPrinter(@Nullable PrinterId printerId) { in setTrackedPrinter() argument
101 provider.setTrackedPrinter(printerId); in setTrackedPrinter()
DFusedPrintersProvider.java462 public void setTrackedPrinter(@Nullable PrinterId printerId) { in setTrackedPrinter() argument
466 if (mTrackedPrinter.equals(printerId)) { in setTrackedPrinter()
471 mTrackedPrinter = printerId; in setTrackedPrinter()
472 if (printerId != null) { in setTrackedPrinter()
473 mDiscoverySession.startPrinterStateTracking(printerId); in setTrackedPrinter()
478 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() argument
482 if (favoritePritner.getId().equals(printerId)) { in isFavoritePrinter()
489 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() argument
496 if (!mFavoritePrinters.get(i).first.getId().equals(printerId)) { in forgetFavoritePrinter()
502 mPersistenceManager.removeHistoricalPrinterAndWritePrinterHistory(printerId); in forgetFavoritePrinter()
[all …]
DPrintActivity.java2336 public int getPrinterIndex(PrinterId printerId) { in getPrinterIndex() argument
2339 if (printerHolder != null && printerHolder.printer.getId().equals(printerId)) { in getPrinterIndex()
2596 public PrinterHolder getPrinterHolder(PrinterId printerId) { in getPrinterHolder() argument
2602 if (printerId.equals(printerHolder.printer.getId())) { in getPrinterHolder()
2617 public boolean pruneRemovedPrinter(PrinterId printerId) { in pruneRemovedPrinter() argument
2622 if (printerHolder.printer.getId().equals(printerId) && printerHolder.removed) { in pruneRemovedPrinter()
2642 PrinterId printerId = new PrinterId(getComponentName(), "PDF printer"); in createFakePdfPrinter() local
2645 new PrinterCapabilitiesInfo.Builder(printerId); in createFakePdfPrinter()
2658 return new PrinterInfo.Builder(printerId, getString(R.string.save_as_pdf), in createFakePdfPrinter()
DSelectPrinterActivity.java323 PrinterId printerId = item.getIntent().getParcelableExtra(EXTRA_PRINTER_ID); in onContextItemSelected() local
324 mPrinterRegistry.forgetFavoritePrinter(printerId); in onContextItemSelected()
/frameworks/base/core/java/android/print/
DIPrintManager.aidl138 void startPrinterStateTracking(in PrinterId printerId, int userId); in startPrinterStateTracking() argument
150 Icon getCustomPrinterIcon(in PrinterId printerId, int userId); in getCustomPrinterIcon() argument
152 void stopPrinterStateTracking(in PrinterId printerId, int userId); in stopPrinterStateTracking() argument
DPrinterInfo.java96 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status, in PrinterInfo() argument
100 mId = printerId; in PrinterInfo()
238 private static @NonNull PrinterId checkPrinterId(PrinterId printerId) { in checkPrinterId() argument
239 return Preconditions.checkNotNull(printerId, "printerId cannot be null."); in checkPrinterId()
423 public Builder(@NonNull PrinterId printerId, @NonNull String name, @Status int status) { in Builder() argument
424 mPrinterId = checkPrinterId(printerId); in Builder()
DPrinterDiscoverySession.java107 public final void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() argument
113 mPrintManager.startPrinterStateTracking(printerId, mUserId); in startPrinterStateTracking()
119 public final void stopPrinterStateTracking(@NonNull PrinterId printerId) { in stopPrinterStateTracking() argument
125 mPrintManager.stopPrinterStateTracking(printerId, mUserId); in stopPrinterStateTracking()
DIPrintSpooler.aidl81 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon, in onCustomPrinterIconLoaded() argument
93 void getCustomPrinterIcon(in PrinterId printerId, in getCustomPrinterIcon() argument
DPrintJobInfo.java320 public void setPrinterId(@NonNull PrinterId printerId) { in setPrinterId() argument
321 mPrinterId = printerId; in setPrinterId()
DPrinterCapabilitiesInfo.java457 public Builder(@NonNull PrinterId printerId) { in Builder() argument
458 if (printerId == null) { in Builder()
DPrintManager.java398 public Icon getCustomPrinterIcon(PrinterId printerId) { in getCustomPrinterIcon() argument
404 return mService.getCustomPrinterIcon(printerId, mUserId); in getCustomPrinterIcon()
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DWorkflowTest.java108 PrinterId printerId = session.getService().generatePrinterId(name); in addPrinter() local
112 new PrinterCapabilitiesInfo.Builder(printerId); in addPrinter()
123 printerInfo = new PrinterInfo.Builder(printerId, name, in addPrinter()
126 printerInfo = (new PrinterInfo.Builder(printerId, name, in addPrinter()
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java57 @NonNull PrinterId printerId) { in writePrinterId() argument
60 printerId.getServiceName()); in writePrinterId()
61 proto.write("local_id", PrinterIdProto.LOCAL_ID, printerId.getLocalId()); in writePrinterId()