Home
last modified time | relevance | path

Searched refs:mPrintService (Results 1 – 10 of 10) sorted by relevance

/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java61 private final BuiltInPrintService mPrintService; field in LocalPrintJob
77 mPrintService = printService; in LocalPrintJob()
80 mCertificateStore = mPrintService.getCertificateStore(); in LocalPrintJob()
103 mPrintService.lockWifi(); in start()
107 mDiscoveryTimeout = mPrintService.delay(DISCOVERY_TIMEOUT, () -> { in start()
110 finish(false, mPrintService.getString(R.string.printer_offline)); in start()
114 mPrintService.getDiscovery().start(this); in start()
157 if (!printer.getId(mPrintService).equals(mPrintJob.getInfo().getPrinterId())) { in onPrinterFound()
165 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
169 if (P2pUtils.isOnConnectedInterface(mPrintService, printer) && mConnection == null) { in onPrinterFound()
[all …]
DLocalPrinter.java48 private final BuiltInPrintService mPrintService; field in LocalPrinter
60 mPrintService = printService; in LocalPrinter()
94 .setDescription(mPrintService.getDescription(mDiscoveredPrinter)) in createPrinterInfo()
107 DiscoveredPrinter printer = mPrintService.getDiscovery() in createPrinterInfo()
118 .setDescription(mPrintService.getDescription(mDiscoveredPrinter)) in createPrinterInfo()
125 mCapabilities.buildCapabilities(mPrintService, capabilitiesBuilder); in createPrinterInfo()
165 LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache() in found()
175 mPrintService.getCapabilitiesCache().request(mDiscoveredPrinter, in found()
199 || P2pUtils.isOnConnectedInterface(mPrintService, mDiscoveredPrinter)) { in startTracking()
213 Toast.makeText(mPrintService, R.string.connect_hint_text, in startTracking()
[all …]
DLocalDiscoverySession.java51 private final BuiltInPrintService mPrintService; field in LocalDiscoverySession
72 mPrintService = service; in LocalDiscoverySession()
73 mPrintManager = mPrintService.getSystemService(PrintManager.class); in LocalDiscoverySession()
87 mPrintService.getDiscovery().start(this); in onStartPrinterDiscovery()
99 mPrintService.getDiscovery().stop(this); in onStopPrinterDiscovery()
101 PrintManager printManager = mPrintService.getSystemService(PrintManager.class); in onStopPrinterDiscovery()
156 PrinterId printerId = discoveredPrinter.getId(mPrintService); in onPrinterFound()
158 id -> new LocalPrinter(mPrintService, this, discoveredPrinter)); in onPrinterFound()
173 mPrintService.getCapabilitiesCache().remove(lostPrinter.path); in onPrinterLost()
175 PrinterId printerId = lostPrinter.getId(mPrintService); in onPrinterLost()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DFindP2pPrintersFragment.java48 private BuiltInPrintService mPrintService; field in FindP2pPrintersFragment
74 mPrintService.getP2pMonitor().stopDiscover(mPeerDiscoveryListener); in onStop()
78 mPrintService = null; in onStop()
84 mPrintService = BuiltInPrintService.getInstance(); in onServiceConnected()
85 if (mPrintService == null) { in onServiceConnected()
91 mPrintService.getP2pMonitor().discover(mPeerDiscoveryListener); in onServiceConnected()
97 mPrintService = null; in onServiceDisconnected()
105 if (mPrintService == null) { in onPeerFound()
112 for (DiscoveredPrinter prior : mPrintService.getP2pDiscovery().getSavedPrinters()) { in onPeerFound()
123 pref = new PrinterPreference(getContext(), mPrintService, printer, true); in onPeerFound()
[all …]
DAddPrintersFragment.java58 private BuiltInPrintService mPrintService; field in AddPrintersFragment
135 mPrintService = BuiltInPrintService.getInstance(); in onServiceConnected()
139 mPrintService.getManualDiscovery()); in onServiceConnected()
169 mPrintService = null; in onServiceDisconnected()
173 int savedCount = mPrintService == null ? 0 : mPrintService.getDiscovery() in updateSavedPrinters()
189 for (DiscoveredPrinter printer : mPrintService.getDiscovery().getSavedPrinters()) { in updateSavedPrinters()
195 PrinterPreference pref = new PrinterPreference(getContext(), mPrintService, in updateSavedPrinters()
210 message = mPrintService.getString(R.string.connects_via_wifi_direct); in showRemovalDialog()
212 message = mPrintService.getString(R.string.connects_via_network, printer.path); in showRemovalDialog()
219 mPrintService.getDiscovery().removeSavedPrinter(printer.path); in showRemovalDialog()
DMoreOptionsActivity.java48 private BuiltInPrintService mPrintService; field in MoreOptionsActivity
96 if (mPrintService != null) { in onStop()
97 mPrintService.getDiscovery().stop(this); in onStop()
104 mPrintService = BuiltInPrintService.getInstance(); in onServiceConnected()
105 mPrintService.getDiscovery().start(this); in onServiceConnected()
110 mPrintService = null; in onServiceDisconnected()
128 mPrintService.getDiscovery().stop(this); in onPrinterFound()
DAddP2pPrinterDialog.java37 private final BuiltInPrintService mPrintService; field in AddP2pPrinterDialog
45 mPrintService = printService; in AddP2pPrinterDialog()
66 mValidating = new P2pPrinterConnection(mPrintService, mPeer, this); in onCreate()
73 mPrintService.getMainHandler().post(() -> { in onConnectionComplete()
75 mPrintService.getP2pDiscovery().addValidPrinter(printer); in onConnectionComplete()
DMoreOptionsFragment.java118 item.mPrintService = mPackageManager.getPackageInfo(packageName, 0); in onPrintServiceRecommendationsChanged()
120 item.mPrintService = null; in onPrintServiceRecommendationsChanged()
162 PackageInfo mPrintService; field in MoreOptionsFragment.RecommendationItem
173 if (mPrintService != null) { in updatePreference()
193 mPrintService.packageName)); in updateEnabler()
DPrinterPreference.java27 private final BuiltInPrintService mPrintService; field in PrinterPreference
34 mPrintService = printService; in PrinterPreference()
49 setSummary(mPrintService.getDescription(printer)); in updatePrinter()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscovery.java46 private final BuiltInPrintService mPrintService; field in Discovery
54 mPrintService = printService; in Discovery()
99 return mPrintService; in getPrintService()