Lines Matching refs:printerId

313      * @param printerId the id of the printer the icon should be loaded for
318 public @Nullable Icon getCustomPrinterIcon(@NonNull PrinterId printerId) {
319 Icon icon = mSpooler.getCustomPrinterIcon(printerId);
322 RemotePrintService service = mActiveServices.get(printerId.getServiceName());
324 service.requestCustomPrinterIcon(printerId);
341 PrinterId printerId = printJobInfo.getPrinterId();
343 if (printerId != null) {
344 ComponentName printServiceName = printerId.getServiceName();
514 public void startPrinterStateTracking(@NonNull PrinterId printerId) {
526 mPrinterDiscoverySession.startPrinterStateTrackingLocked(printerId);
530 public void stopPrinterStateTracking(PrinterId printerId) {
542 mPrinterDiscoverySession.stopPrinterStateTrackingLocked(printerId);
733 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon) {
734 mSpooler.onCustomPrinterIconLoaded(printerId, icon);
743 mPrinterDiscoverySession.onCustomPrinterIconLoadedLocked(printerId);
1352 PrinterId printerId = iterator.next();
1353 if (printerId != null) {
1355 updateList.add(printerId);
1356 serviceName = printerId.getServiceName();
1358 } else if (printerId.getServiceName().equals(serviceName)) {
1359 updateList.add(printerId);
1377 public final void startPrinterStateTrackingLocked(@NonNull PrinterId printerId) {
1386 final boolean containedPrinterId = mStateTrackedPrinters.contains(printerId);
1388 mStateTrackedPrinters.add(printerId);
1394 RemotePrintService service = mActiveServices.get(printerId.getServiceName());
1401 args.arg2 = printerId;
1407 public final void stopPrinterStateTrackingLocked(PrinterId printerId) {
1417 if (!mStateTrackedPrinters.remove(printerId)) {
1421 RemotePrintService service = mActiveServices.get(printerId.getServiceName());
1428 args.arg2 = printerId;
1447 PrinterId printerId = mStateTrackedPrinters.get(i);
1448 stopPrinterStateTracking(printerId);
1532 * @param printerId the id of the printer the icon belongs to
1535 public void onCustomPrinterIconLoadedLocked(PrinterId printerId) {
1544 PrinterInfo printer = mPrinters.get(printerId);
1548 mPrinters.put(printerId, newPrinter);
1580 PrinterId printerId = mStateTrackedPrinters.get(i);
1581 if (printerId.getServiceName().equals(service.getComponentName())) {
1584 args.arg2 = printerId;
1642 PrinterId printerId = mPrinters.keyAt(i);
1643 if (printerId.getServiceName().equals(serviceName)) {
1647 removedPrinterIds.add(printerId);
1721 @NonNull PrinterId printerId) {
1722 service.startPrinterStateTracking(printerId);
1726 PrinterId printerId) {
1727 service.stopPrinterStateTracking(printerId);
1855 PrinterId printerId = (PrinterId) args.arg2;
1857 handleStartPrinterStateTracking(service, printerId);
1863 PrinterId printerId = (PrinterId) args.arg2;
1865 handleStopPrinterStateTracking(service, printerId);