Home
last modified time | relevance | path

Searched refs:DiscoveredPrinter (Results 1 – 22 of 22) sorted by relevance

/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DSavedDiscovery.java50 private final List<DiscoveredPrinter> mSavedPrinters;
61 boolean addSavedPrinter(DiscoveredPrinter printer) { in addSavedPrinter()
63 DiscoveredPrinter old = find(printerUri); in addSavedPrinter()
79 private DiscoveredPrinter find(Uri printerUri) { in find()
80 for (DiscoveredPrinter printer : mSavedPrinters) { in find()
93 for (DiscoveredPrinter printer : mSavedPrinters) { in removeSavedPrinter()
106 public List<DiscoveredPrinter> getSavedPrinters() { in getSavedPrinters()
113 private List<DiscoveredPrinter> load() { in load()
114 List<DiscoveredPrinter> printers = new ArrayList<>(); in load()
126 printers.add(new DiscoveredPrinter(reader)); in load()
[all …]
DDiscovery.java48 private final Map<Uri, DiscoveredPrinter> mPrinters = new HashMap<>();
69 for (DiscoveredPrinter printer : new ArrayList<>(mPrinters.values())) { in start()
145 void printerFound(DiscoveredPrinter printer) { in printerFound()
146 DiscoveredPrinter current = mPrinters.get(printer.getUri()); in printerFound()
161 DiscoveredPrinter printer = mPrinters.remove(printerUri); in printerLost()
180 public Collection<DiscoveredPrinter> getPrinters() { in getPrinters()
187 public DiscoveredPrinter getPrinter(Uri uri) { in getPrinter()
203 public Collection<DiscoveredPrinter> getSavedPrinters() { in getSavedPrinters()
204 List<DiscoveredPrinter> printers = new ArrayList<>(); in getSavedPrinters()
229 void onPrinterFound(DiscoveredPrinter printer); in onPrinterFound()
[all …]
DMultiDiscovery.java46 public void onPrinterFound(DiscoveredPrinter printer) { in MultiDiscovery()
51 public void onPrinterLost(DiscoveredPrinter printer) { in MultiDiscovery()
53 DiscoveredPrinter remaining = merged(printer.getUri()); in MultiDiscovery()
67 private DiscoveredPrinter merged(Uri printerUri) { in merged()
68 DiscoveredPrinter combined = null; in merged()
71 DiscoveredPrinter discovered = discovery.getPrinter(printerUri); in merged()
84 combined = new DiscoveredPrinter(discovered.uuid, discovered.name, allPaths, in merged()
DP2pDiscovery.java43 public static DiscoveredPrinter toPrinter(WifiP2pDevice device) { in toPrinter()
49 return new DiscoveredPrinter(path, deviceName, path, null); in toPrinter()
96 DiscoveredPrinter printer = toPrinter(peer); in onPeerFound()
100 for (DiscoveredPrinter saved : getSavedPrinters()) { in onPeerFound()
109 DiscoveredPrinter printer = toPrinter(peer); in onPeerLost()
115 public void addValidPrinter(DiscoveredPrinter printer) { in addValidPrinter()
DDiscoveredPrinter.java34 public class DiscoveredPrinter { class
61 public DiscoveredPrinter(Uri uuid, String name, List<Uri> paths, String location) { in DiscoveredPrinter() method in DiscoveredPrinter
77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() method in DiscoveredPrinter
82 public DiscoveredPrinter(JsonReader reader) throws IOException { in DiscoveredPrinter() method in DiscoveredPrinter
167 if (!(obj instanceof DiscoveredPrinter)) { in equals()
170 DiscoveredPrinter other = (DiscoveredPrinter) obj; in equals()
DDelayedDiscovery.java39 private final Map<Uri, DiscoveredPrinter> mPending = new HashMap<>();
54 public void onPrinterFound(DiscoveredPrinter printer) { in DelayedDiscovery()
60 DiscoveredPrinter old = mPending.put(printer.getUri(), printer); in DelayedDiscovery()
63 DiscoveredPrinter pending = mPending.remove(printer.getUri()); in DelayedDiscovery()
73 public void onPrinterLost(DiscoveredPrinter printer) { in DelayedDiscovery()
DManualDiscovery.java65 for (DiscoveredPrinter printer : getSavedPrinters()) { in onStart()
146 void onFound(DiscoveredPrinter printer, boolean supported); in onFound()
184 mCapabilitiesCache.request(new DiscoveredPrinter(null, "", uri, null), in CapabilitiesFinder()
212 DiscoveredPrinter resolvedPrinter = new DiscoveredPrinter(uuid, name, printerPath, in handleCapabilities()
DMdnsDiscovery.java84 private static DiscoveredPrinter toNetworkPrinter(NsdServiceInfo info) { in toNetworkPrinter()
119 return new DiscoveredPrinter(uuidUri, info.getServiceName(), path, location); in toNetworkPrinter()
207 for (DiscoveredPrinter printer : getPrinters()) { in onServiceLost()
239 DiscoveredPrinter printer = toNetworkPrinter(info); in onServiceResolved()
DConnectionListener.java26 void onConnectionComplete(DiscoveredPrinter printer); in onConnectionComplete()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DPrinterPreference.java24 import com.android.bips.discovery.DiscoveredPrinter;
28 private DiscoveredPrinter mPrinter;
32 DiscoveredPrinter printer, boolean adding) { in PrinterPreference()
40 void updatePrinter(DiscoveredPrinter printer) { in updatePrinter()
53 DiscoveredPrinter getPrinter() { in getPrinter()
DMoreOptionsActivity.java35 import com.android.bips.discovery.DiscoveredPrinter;
53 DiscoveredPrinter mPrinter;
123 public void onPrinterFound(DiscoveredPrinter printer) { in onPrinterFound()
149 public void onPrinterLost(DiscoveredPrinter printer) { in onPrinterLost()
DFindP2pPrintersFragment.java34 import com.android.bips.discovery.DiscoveredPrinter;
109 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerFound()
112 for (DiscoveredPrinter prior : mPrintService.getP2pDiscovery().getSavedPrinters()) { in onPeerFound()
141 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerLost()
DAddPrintersFragment.java36 import com.android.bips.discovery.DiscoveredPrinter;
189 for (DiscoveredPrinter printer : mPrintService.getDiscovery().getSavedPrinters()) { in updateSavedPrinters()
207 private void showRemovalDialog(DiscoveredPrinter printer) { in showRemovalDialog()
DAddP2pPrinterDialog.java29 import com.android.bips.discovery.DiscoveredPrinter;
70 public void onConnectionComplete(DiscoveredPrinter printer) { in onConnectionComplete()
DAddManualPrinterDialog.java40 import com.android.bips.discovery.DiscoveredPrinter;
149 public void onFound(DiscoveredPrinter printer, boolean supported) { in onFound()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pPrinterConnection.java26 import com.android.bips.discovery.DiscoveredPrinter;
50 private DiscoveredPrinter mPrinter;
70 public P2pPrinterConnection(BuiltInPrintService service, DiscoveredPrinter printer, in P2pPrinterConnection()
159 public void onPrinterFound(DiscoveredPrinter printer) { in onPrinterFound()
181 private void onCapabilities(DiscoveredPrinter printer, LocalPrinterCapabilities capabilities) { in onCapabilities()
192 DiscoveredPrinter p2pPrinter = new DiscoveredPrinter(printer.uuid, printer.name, in onCapabilities()
199 public void onPrinterLost(DiscoveredPrinter printer) { in onPrinterLost()
DP2pUtils.java22 import com.android.bips.discovery.DiscoveredPrinter;
77 public static boolean isP2p(DiscoveredPrinter printer) { in isP2p()
85 DiscoveredPrinter printer) { in isOnConnectedInterface()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrinter.java29 import com.android.bips.discovery.DiscoveredPrinter;
55 private DiscoveredPrinter mDiscoveredPrinter;
59 DiscoveredPrinter discoveredPrinter) { in LocalPrinter()
107 DiscoveredPrinter printer = mPrintService.getDiscovery() in createPrinterInfo()
159 void found(DiscoveredPrinter printer) { in found()
202 public void onConnectionComplete(DiscoveredPrinter printer) { in startTracking()
DLocalPrintJob.java27 import com.android.bips.discovery.DiscoveredPrinter;
163 public void onPrinterFound(DiscoveredPrinter printer) { in onPrinterFound()
200 public void onPrinterLost(DiscoveredPrinter printer) { in onPrinterLost()
205 public void onConnectionComplete(DiscoveredPrinter printer) { in onConnectionComplete()
DLocalDiscoverySession.java30 import com.android.bips.discovery.DiscoveredPrinter;
149 public void onPrinterFound(DiscoveredPrinter discoveredPrinter) { in onPrinterFound()
170 public void onPrinterLost(DiscoveredPrinter lostPrinter) { in onPrinterLost()
DBuiltInPrintService.java41 import com.android.bips.discovery.DiscoveredPrinter;
263 public String getDescription(DiscoveredPrinter printer) { in getDescription()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java30 import com.android.bips.discovery.DiscoveredPrinter;
140 public void request(DiscoveredPrinter printer, boolean highPriority, in request()
174 public LocalPrinterCapabilities get(DiscoveredPrinter printer) { in get()
243 final DiscoveredPrinter mPrinter;
249 Request(DiscoveredPrinter printer, long timeout) { in Request()
267 DiscoveredPrinter printer = mPrinter; in accept()