/frameworks/base/core/java/android/printservice/ |
D | PrinterDiscoverySession.java | 24 import android.print.PrinterId; 90 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = 91 new ArrayMap<PrinterId, PrinterInfo>(); 93 private final List<PrinterId> mTrackedPrinters = 94 new ArrayList<PrinterId>(); 96 private ArrayMap<PrinterId, PrinterInfo> mLastSentPrinters; 201 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in addPrinters() 230 public final void removePrinters(@NonNull List<PrinterId> printerIds) { in removePrinters() 241 List<PrinterId> removedPrinterIds = new ArrayList<PrinterId>(); in removePrinters() 244 PrinterId removedPrinterId = printerIds.get(i); in removePrinters() [all …]
|
D | PrintService.java | 33 import android.print.PrinterId; 373 public @NonNull final PrinterId generatePrinterId(String localId) { in generatePrinterId() 376 return new PrinterId(new ComponentName(getPackageName(), in generatePrinterId() 400 public void startPrinterDiscovery(List<PrinterId> priorityList) { in onBind() 411 public void validatePrinters(List<PrinterId> printerIds) { in onBind() 417 public void startPrinterStateTracking(PrinterId printerId) { in onBind() 423 public void requestCustomPrinterIcon(PrinterId printerId) { in onBind() 429 public void stopPrinterStateTracking(PrinterId printerId) { in onBind() 510 List<PrinterId> priorityList = (ArrayList<PrinterId>) message.obj; 531 List<PrinterId> printerIds = (List<PrinterId>) message.obj; [all …]
|
D | IPrintService.aidl | 19 import android.print.PrinterId; 34 void startPrinterDiscovery(in List<PrinterId> priorityList); in startPrinterDiscovery() 36 void validatePrinters(in List<PrinterId> printerIds); in validatePrinters() 37 void startPrinterStateTracking(in PrinterId printerId); in startPrinterStateTracking() 45 void requestCustomPrinterIcon(in PrinterId printerId); in requestCustomPrinterIcon() 47 void stopPrinterStateTracking(in PrinterId printerId); in stopPrinterStateTracking()
|
D | CustomPrinterIconCallback.java | 23 import android.print.PrinterId; 32 private final @NonNull PrinterId mPrinterId; 42 CustomPrinterIconCallback(@NonNull PrinterId printerId, @NonNull IPrintServiceClient observer) { in CustomPrinterIconCallback()
|
D | IPrintServiceClient.aidl | 22 import android.print.PrinterId; 74 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon); in onCustomPrinterIconLoaded()
|
/frameworks/base/core/java/android/print/ |
D | PrinterId.java | 30 public final class PrinterId implements Parcelable { class 44 public PrinterId(@NonNull ComponentName serviceName, @NonNull String localId) { in PrinterId() method in PrinterId 49 private PrinterId(@NonNull Parcel parcel) { in PrinterId() method in PrinterId 98 PrinterId other = (PrinterId) object; in equals() 127 public static final @android.annotation.NonNull Parcelable.Creator<PrinterId> CREATOR = 128 new Creator<PrinterId>() { 130 public PrinterId createFromParcel(Parcel parcel) { 131 return new PrinterId(parcel); 135 public PrinterId[] newArray(int size) { 136 return new PrinterId[size];
|
D | PrinterDiscoverySession.java | 46 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = 47 new LinkedHashMap<PrinterId, PrinterInfo>(); 77 public final void startPrinterDiscovery(@Nullable List<PrinterId> priorityList) { in startPrinterDiscovery() 107 public final void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() 119 public final void stopPrinterStateTracking(@NonNull PrinterId printerId) { in stopPrinterStateTracking() 131 public final void validatePrinters(List<PrinterId> printerIds) { in validatePrinters() 215 ArrayMap<PrinterId, PrinterInfo> addedPrintersMap = in handlePrintersAdded() 216 new ArrayMap<PrinterId, PrinterInfo>(); in handlePrintersAdded() 224 for (PrinterId oldPrinterId : mPrinters.keySet()) { in handlePrintersAdded() 238 private void handlePrintersRemoved(List<PrinterId> printerIds) { in handlePrintersRemoved() [all …]
|
D | IPrintManager.aidl | 28 import android.print.PrinterId; 126 in List<PrinterId> priorityList, int userId); in startPrinterDiscovery() 128 void validatePrinters(in List<PrinterId> printerIds, int userId); in validatePrinters() 129 void startPrinterStateTracking(in PrinterId printerId, int userId); in startPrinterStateTracking() 141 Icon getCustomPrinterIcon(in PrinterId printerId, int userId); in getCustomPrinterIcon() 143 void stopPrinterStateTracking(in PrinterId printerId, int userId); in stopPrinterStateTracking()
|
D | PrinterInfo.java | 74 private final @NonNull PrinterId mId; 96 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status, in PrinterInfo() 116 public @NonNull PrinterId getId() { in getId() 238 private static @NonNull PrinterId checkPrinterId(PrinterId printerId) { in checkPrinterId() 273 mId = checkPrinterId((PrinterId) parcel.readParcelable(null)); in PrinterInfo() 404 private @NonNull PrinterId mPrinterId; 423 public Builder(@NonNull PrinterId printerId, @NonNull String name, @Status int status) { in Builder()
|
D | IPrintSpooler.aidl | 24 import android.print.PrinterId; 81 void onCustomPrinterIconLoaded(in PrinterId printerId, in Icon icon, in onCustomPrinterIconLoaded() 93 void getCustomPrinterIcon(in PrinterId printerId, in getCustomPrinterIcon()
|
D | PrinterId.aidl | 19 parcelable PrinterId;
|
D | IPrinterDiscoveryObserver.aidl | 19 import android.print.PrinterId;
|
D | IPrintSpoolerCallbacks.aidl | 21 import android.print.PrinterId;
|
D | PrintJobInfo.java | 161 private PrinterId mPrinterId; 309 public @Nullable PrinterId getPrinterId() { in getPrinterId() 320 public void setPrinterId(@NonNull PrinterId printerId) { in setPrinterId()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | RemotePrintService.java | 43 import android.print.PrinterId; 100 private List<PrinterId> mDiscoveryPriorityList; 103 private List<PrinterId> mTrackedPrinterList; 107 public void onPrintersRemoved(List<PrinterId> printerIds); in onPrintersRemoved() 117 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon); in onCustomPrinterIconLoaded() 328 public void startPrinterDiscovery(List<PrinterId> priorityList) { in startPrinterDiscovery() 333 private void handleStartPrinterDiscovery(final List<PrinterId> priorityList) { in handleStartPrinterDiscovery() 335 mDiscoveryPriorityList = new ArrayList<PrinterId>(); in handleStartPrinterDiscovery() 391 public void validatePrinters(List<PrinterId> printerIds) { in validatePrinters() 396 private void handleValidatePrinters(final List<PrinterId> printerIds) { in handleValidatePrinters() [all …]
|
D | UserState.java | 60 import android.print.PrinterId; 326 public @Nullable Icon getCustomPrinterIcon(@NonNull PrinterId printerId) { in getCustomPrinterIcon() 349 PrinterId printerId = printJobInfo.getPrinterId(); in cancelPrintJob() 482 @Nullable List<PrinterId> printerIds) { in startPrinterDiscovery() 509 public void validatePrinters(@NonNull List<PrinterId> printerIds) { in validatePrinters() 525 public void startPrinterStateTracking(@NonNull PrinterId printerId) { in startPrinterStateTracking() 541 public void stopPrinterStateTracking(PrinterId printerId) { in stopPrinterStateTracking() 735 public void onPrintersRemoved(List<PrinterId> printerIds) { in onPrintersRemoved() 751 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon) { in onCustomPrinterIconLoaded() 1257 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = [all …]
|
D | RemotePrintSpooler.java | 41 import android.print.PrinterId; 368 public final void onCustomPrinterIconLoaded(@NonNull PrinterId printerId, in onCustomPrinterIconLoaded() 401 public final @Nullable Icon getCustomPrinterIcon(@NonNull PrinterId printerId) { in getCustomPrinterIcon() 818 public Void onCustomPrinterIconLoaded(IPrintSpooler target, PrinterId printerId, in onCustomPrinterIconLoaded() 860 public Icon getCustomPrinterIcon(IPrintSpooler target, PrinterId printerId) in getCustomPrinterIcon()
|
D | PrintManagerService.java | 56 import android.print.PrinterId; 242 public Icon getCustomPrinterIcon(PrinterId printerId, int userId) { in getCustomPrinterIcon() 438 List<PrinterId> priorityList, int userId) { in startPrinterDiscovery() 484 public void validatePrinters(List<PrinterId> printerIds, int userId) { in validatePrinters() 505 public void startPrinterStateTracking(PrinterId printerId, int userId) { in startPrinterStateTracking() 526 public void stopPrinterStateTracking(PrinterId printerId, int userId) { in stopPrinterStateTracking()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | CustomPrinterIconCache.java | 22 import android.print.PrinterId; 66 private @Nullable File getIconFileName(@NonNull PrinterId printerId) { in getIconFileName() 91 public synchronized @Nullable Icon getIcon(@NonNull PrinterId printerId) { in getIcon() 140 public synchronized void onCustomPrinterIconLoaded(@NonNull PrinterId printerId, in onCustomPrinterIconLoaded()
|
D | PrintSpoolerService.java | 54 import android.print.PrinterId; 316 PrinterId printerId = printJob.getPrinterId(); in getPrintJobInfos() 584 PrinterId printerId = printJob.getPrinterId(); in setPrintJobState() 800 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon) { in onCustomPrinterIconLoaded() 813 public Icon getCustomPrinterIcon(PrinterId printerId) { in getCustomPrinterIcon() 969 PrinterId printerId = printJob.getPrinterId(); in doWriteStateLocked() 1218 printJob.setPrinterId(new PrinterId(service, localId)); in parsePrintJobLocked() 1558 public void onCustomPrinterIconLoaded(PrinterId printerId, Icon icon, in onCustomPrinterIconLoaded() 1569 public void getCustomPrinterIcon(PrinterId printerId, IPrintSpoolerCallbacks callbacks, in getCustomPrinterIcon()
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | IPrintManagerParametersTest.java | 70 private PrinterId mGoodPrinterId; 231 private PrinterId getBadPrinterId() { 232 return new PrinterId(getActivity().getComponentName(), "dummy printer"); 574 final List<PrinterId> goodPrinters = new ArrayList<>(); 577 final List<PrinterId> badPrinters = new ArrayList<>(); 580 final List<PrinterId> emptyPrinters = new ArrayList<>(); 582 final List<PrinterId> nullPrinters = new ArrayList<>(); 633 final List<PrinterId> goodPrinters = new ArrayList<>(); 636 final List<PrinterId> badPrinters = new ArrayList<>(); 639 final List<PrinterId> emptyPrinters = new ArrayList<>(); [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 27 import android.print.PrinterId; 83 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() 90 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() 98 public void setTrackedPrinter(@Nullable PrinterId printerId) { in setTrackedPrinter()
|
D | FusedPrintersProvider.java | 40 import android.print.PrinterId; 111 private PrinterId mTrackedPrinter; 154 Map<PrinterId, PrinterInfo> updatedPrinters) { in updateAndAddPrinter() argument 172 private void computeAndDeliverResult(Map<PrinterId, PrinterInfo> discoveredPrinters, in computeAndDeliverResult() argument 179 HashSet<PrinterId> alreadyAddedPrinter = new HashSet<>(MAX_FAVORITE_PRINTER_COUNT); in computeAndDeliverResult() 318 List<PrinterId> printerIds = new ArrayList<>(favoriteCount); in loadInternal() 346 Map<PrinterId, PrinterInfo> printersMap = new LinkedHashMap<>(); in updatePrinters() 457 public void setTrackedPrinter(@Nullable PrinterId printerId) { in setTrackedPrinter() 473 public boolean isFavoritePrinter(PrinterId printerId) { in isFavoritePrinter() 484 public void forgetFavoritePrinter(PrinterId printerId) { in forgetFavoritePrinter() [all …]
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
D | WorkflowTest.java | 30 import android.print.PrinterId; 108 PrinterId printerId = session.getService().generatePrinterId(name); in addPrinter() 176 .add(((PrinterId) inv2.getArguments()[0]).getLocalId()); in setMockPrintServiceCallbacks() 183 .remove(((PrinterId) inv2.getArguments()[0]).getLocalId()); in setMockPrintServiceCallbacks()
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 29 import android.print.PrinterId; 57 @NonNull PrinterId printerId) { in writePrinterId() 301 PrinterId printer = printJobInfo.getPrinterId(); in writePrintJobInfo()
|