/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalPrintJob.java | 61 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 …]
|
D | LocalPrinter.java | 44 private final BuiltInPrintService mPrintService; field in LocalPrinter 56 mPrintService = printService; in LocalPrinter() 90 .setDescription(mPrintService.getDescription(mDiscoveredPrinter)); in createPrinterInfo() 102 DiscoveredPrinter printer = mPrintService.getDiscovery() in createPrinterInfo() 113 .setDescription(mPrintService.getDescription(mDiscoveredPrinter)); in createPrinterInfo() 119 mCapabilities.buildCapabilities(mPrintService, capabilitiesBuilder); in createPrinterInfo() 159 LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache() in found() 169 mPrintService.getCapabilitiesCache().request(mDiscoveredPrinter, in found() 193 || P2pUtils.isOnConnectedInterface(mPrintService, mDiscoveredPrinter)) { in startTracking() 207 Toast.makeText(mPrintService, R.string.connect_hint_text, in startTracking() [all …]
|
D | LocalDiscoverySession.java | 51 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/ |
D | FindP2pPrintersFragment.java | 48 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 …]
|
D | AddPrintersFragment.java | 57 private BuiltInPrintService mPrintService; field in AddPrintersFragment 134 mPrintService = BuiltInPrintService.getInstance(); in onServiceConnected() 138 mPrintService.getManualDiscovery()); in onServiceConnected() 166 mPrintService = null; in onServiceDisconnected() 170 int savedCount = mPrintService == null ? 0 : mPrintService.getDiscovery() in updateSavedPrinters() 186 for (DiscoveredPrinter printer : mPrintService.getDiscovery().getSavedPrinters()) { in updateSavedPrinters() 192 PrinterPreference pref = new PrinterPreference(getContext(), mPrintService, in updateSavedPrinters() 207 message = mPrintService.getString(R.string.connects_via_wifi_direct); in showRemovalDialog() 209 message = mPrintService.getString(R.string.connects_via_network, printer.path); in showRemovalDialog() 216 mPrintService.getDiscovery().removeSavedPrinter(printer.path); in showRemovalDialog()
|
D | MoreOptionsActivity.java | 44 private BuiltInPrintService mPrintService; field in MoreOptionsActivity 82 if (mPrintService != null) { in onStop() 83 mPrintService.getDiscovery().stop(this); in onStop() 90 mPrintService = BuiltInPrintService.getInstance(); in onServiceConnected() 91 mPrintService.getDiscovery().start(this); in onServiceConnected() 96 mPrintService = null; in onServiceDisconnected() 114 mPrintService.getDiscovery().stop(this); in onPrinterFound()
|
D | AddP2pPrinterDialog.java | 37 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()
|
D | MoreOptionsFragment.java | 118 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()
|
D | PrinterPreference.java | 27 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/ |
D | Discovery.java | 46 private final BuiltInPrintService mPrintService; field in Discovery 54 mPrintService = printService; in Discovery() 99 return mPrintService; in getPrintService()
|