/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | PrinterHashMap.java | 30 private final ArrayMap<String, NsdServiceInfo> mPrinters = new ArrayMap<>(); field in PrinterHashMap 51 return mPrinters.put(getKey(device), device); in addPrinter() 62 return mPrinters.remove(getKey(device)); in removePrinter() 69 int numPrinters = mPrinters.size(); in getPrinterAddresses() 72 printerAddressess.add(mPrinters.valueAt(i).getHost()); in getPrinterAddresses() 82 mPrinters.clear(); in clear() 89 return mPrinters.isEmpty(); in isEmpty()
|
D | MDNSFilteredDiscovery.java | 59 private final @NonNull PrinterHashMap mPrinters; field in MDNSFilteredDiscovery 99 mPrinters = new PrinterHashMap(); in MDNSFilteredDiscovery() 111 mCallback.onChanged(mPrinters.getPrinterAddresses()); in onChanged() 161 mPrinters.clear(); in onDiscoveryStopped() 179 NsdServiceInfo old = mPrinters.addPrinter(serviceInfo); in onServiceFound() 191 NsdServiceInfo oldAddress = mPrinters.removePrinter(serviceInfo); in onServiceLost()
|
/frameworks/base/core/java/android/printservice/ |
D | PrinterDiscoverySession.java | 90 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession 115 if (!mPrinters.isEmpty()) { in setObserver() 148 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 181 PrinterInfo oldPrinter = mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters() 201 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in addPrinters() 208 if (mPrinters.get(addedPrinter.getId()) == null) { in addPrinters() 209 mPrinters.put(addedPrinter.getId(), addedPrinter); in addPrinters() 245 if (mPrinters.remove(removedPrinterId) != null) { in removePrinters() 262 mLastSentPrinters = new ArrayMap<PrinterId, PrinterInfo>(mPrinters); in removePrinters() 269 mPrinters.remove(removedPrinterId); in removePrinters() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrinterDiscoverySession.java | 46 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = field in PrinterDiscoverySession 155 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 194 mPrinters.clear(); in destroyNoCheck() 204 if (mPrinters.isEmpty()) { in handlePrintersAdded() 208 mPrinters.put(printer.getId(), printer); in handlePrintersAdded() 224 for (PrinterId oldPrinterId : mPrinters.keySet()) { in handlePrintersAdded() 227 mPrinters.put(oldPrinterId, updatedPrinter); in handlePrintersAdded() 232 mPrinters.putAll(addedPrintersMap); in handlePrintersAdded() 246 if (mPrinters.remove(removedPrinterId) != null) { in handlePrintersRemoved()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/ |
D | RemotePrintServicePlugin.java | 50 private @NonNull List<InetAddress> mPrinters; field in RemotePrintServicePlugin 73 mPrinters = Collections.emptyList(); in RemotePrintServicePlugin() 127 return mPrinters; in getPrinters() 136 mPrinters = Collections.emptyList(); in onChanged() 138 mPrinters = Preconditions.checkCollectionElementsNotNull(discoveredPrinters, in onChanged()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 40 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in PrinterRegistry 73 return mPrinters; in getPrinters() 122 mPrinters.clear(); 133 mPrinters.clear(); 134 mPrinters.addAll(printers);
|
D | SelectPrinterActivity.java | 496 private final List<PrinterInfo> mPrinters = new ArrayList<>(); field in SelectPrinterActivity.DestinationAdapter 508 return mPrinters; in getPrinters() 516 mPrinters.clear(); in DestinationAdapter() 517 mPrinters.addAll(printers); in DestinationAdapter() 530 mPrinters.clear(); in DestinationAdapter() 550 final int printerCount = mPrinters.size(); in getFilter() 552 PrinterInfo printer = mPrinters.get(i); in getFilter() 575 mFilteredPrinters.addAll(mPrinters); in getFilter() 598 return mPrinters.size();
|
D | FusedPrintersProvider.java | 102 private final List<PrinterInfo> mPrinters = field in FusedPrintersProvider 222 final int printerCount = mPrinters.size(); in computeAndDeliverResult() 224 PrinterInfo printer = mPrinters.get(i); in computeAndDeliverResult() 236 mPrinters.clear(); in computeAndDeliverResult() 237 mPrinters.addAll(printers); in computeAndDeliverResult() 272 deliverResult(new ArrayList<>(mPrinters)); in onStartLoading() 338 if (mPrintersUpdatedBefore && mPrinters.equals(printers) in updatePrinters() 391 mPrinters.clear(); in onReset()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | UserState.java | 1257 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = field in UserState.PrinterDiscoverySessionMediator 1289 if (!mPrinters.isEmpty()) { in addObserverLocked() 1292 this, observer, new ArrayList<>(mPrinters.values()))); in addObserverLocked() 1476 PrinterInfo oldPrinter = mPrinters.put(printer.getId(), printer); in onPrintersAddedLocked() 1503 if (mPrinters.remove(removedPrinterId) != null) { in onPrintersRemovedLocked() 1546 PrinterInfo printer = mPrinters.get(printerId); in onCustomPrinterIconLoadedLocked() 1550 mPrinters.put(printerId, newPrinter); in onCustomPrinterIconLoadedLocked() 1617 final int printerCount = mPrinters.size(); in dumpLocked() 1619 PrinterInfo printer = mPrinters.valueAt(i); in dumpLocked() 1627 if (mPrinters.isEmpty()) { in removePrintersForServiceLocked() [all …]
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 54948 Landroid/print/PrinterDiscoverySession;->mPrinters:Ljava/util/LinkedHashMap; 55242 Landroid/printservice/PrinterDiscoverySession;->mPrinters:Landroid/util/ArrayMap;
|