/frameworks/base/services/print/java/com/android/server/print/ |
D | RemotePrintService.java | 117 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 …]
|
D | UserState.java | 326 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 …]
|
D | RemotePrintSpooler.java | 368 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()
|
D | PrintManagerService.java | 243 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/ |
D | CustomPrinterIconCache.java | 66 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()
|
D | PrintSpoolerService.java | 316 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/ |
D | PrinterDiscoverySession.java | 408 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 …]
|
D | PrintService.java | 417 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 …]
|
D | IPrintService.aidl | 37 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
|
D | CustomPrinterIconCallback.java | 42 CustomPrinterIconCallback(@NonNull PrinterId printerId, @NonNull IPrintServiceClient observer) { in CustomPrinterIconCallback() argument 43 mPrinterId = printerId; in CustomPrinterIconCallback()
|
D | IPrintServiceClient.aidl | 74 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon); in onCustomPrinterIconLoaded() argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 83 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()
|
D | FusedPrintersProvider.java | 462 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 …]
|
D | PrintActivity.java | 2336 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()
|
D | SelectPrinterActivity.java | 323 PrinterId printerId = item.getIntent().getParcelableExtra(EXTRA_PRINTER_ID); in onContextItemSelected() local 324 mPrinterRegistry.forgetFavoritePrinter(printerId); in onContextItemSelected()
|
/frameworks/base/core/java/android/print/ |
D | IPrintManager.aidl | 138 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
|
D | PrinterInfo.java | 96 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()
|
D | PrinterDiscoverySession.java | 107 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()
|
D | IPrintSpooler.aidl | 81 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon, in onCustomPrinterIconLoaded() argument 93 void getCustomPrinterIcon(in PrinterId printerId, in getCustomPrinterIcon() argument
|
D | PrintJobInfo.java | 320 public void setPrinterId(@NonNull PrinterId printerId) { in setPrinterId() argument 321 mPrinterId = printerId; in setPrinterId()
|
D | PrinterCapabilitiesInfo.java | 457 public Builder(@NonNull PrinterId printerId) { in Builder() argument 458 if (printerId == null) { in Builder()
|
D | PrintManager.java | 398 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/ |
D | WorkflowTest.java | 108 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/ |
D | DumpUtils.java | 57 @NonNull PrinterId printerId) { in writePrinterId() argument 60 printerId.getServiceName()); in writePrinterId() 61 proto.write("local_id", PrinterIdProto.LOCAL_ID, printerId.getLocalId()); in writePrinterId()
|