Home
last modified time | relevance | path

Searched refs:mConnection (Results 1 – 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java93 public final RichInputConnection mConnection; field in InputLogic
125 mConnection = new RichInputConnection(latinIME); in InputLogic()
142 mConnection.onStartInput(); in startInput()
159 mConnection.tryFixLyingCursorPosition(); in startInput()
168 mConnection.requestCursorUpdates(true /* enableMonitor */, in startInput()
191 mConnection.beginBatchEdit(); in onOrientationChange()
196 mConnection.endBatchEdit(); in onOrientationChange()
205 mConnection.finishComposingText(); in finishInput()
240 mConnection.beginBatchEdit(); in onTextInput()
251 mConnection.commitText(text, 1); in onTextInput()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pMonitor.java37 private P2pConnectionProcedure mConnection; field in P2pMonitor
117 if (mConnection != null && !peer.deviceAddress.equals(mConnection.getPeer() in connect()
119 if (mConnection.getListenerCount() == 1) { in connect()
121 mConnection.close(); in connect()
122 mConnection = null; in connect()
131 if (mConnection == null) { in connect()
133 mConnection = new P2pConnectionProcedure(mService, mP2pManager, peer, in connect()
150 mConnection.addListener(listener); in connect()
158 if (mConnection == null || !mConnection.hasListener(listener)) { in stopConnect()
162 if (DEBUG) Log.d(TAG, "stopConnect " + toString(mConnection.getPeer())); in stopConnect()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java81 private ImapConnection mConnection; field in ImapFolder
95 if (mConnection != null) { in destroyResponses()
96 mConnection.destroyResponses(); in destroyResponses()
109 mConnection.executeSimpleCommand(ImapConstants.NOOP); in open()
113 ioExceptionHandler(mConnection, ioe); in open()
123 mConnection = mStore.getConnection(); in open()
137 throw ioExceptionHandler(mConnection, ioe); in open()
143 mConnection = null; in open()
156 return mExists && mConnection != null; in isOpen()
169 mStore.poolConnection(mConnection); in close()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java48 private final MediaScannerConnection mConnection; field in DownloadScanner
75 mConnection = new MediaScannerConnection(context, this); in DownloadScanner()
100 synchronized (mConnection) { in hasPendingScans()
124 synchronized (mConnection) { in requestScan()
127 if (mConnection.isConnected()) { in requestScan()
128 req.exec(mConnection); in requestScan()
130 mConnection.connect(); in requestScan()
136 mConnection.disconnect(); in shutdown()
141 synchronized (mConnection) { in onMediaScannerConnected()
143 req.exec(mConnection); in onMediaScannerConnected()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DBlockingHttpClient.java38 private final HttpURLConnection mConnection; field in BlockingHttpClient
55 mConnection = connection; in BlockingHttpClient()
67 Log.d(TAG, "execute: " + mConnection.getURL()); in execute()
74 OutputStream out = new BufferedOutputStream(mConnection.getOutputStream()); in execute()
80 final int responseCode = mConnection.getResponseCode(); in execute()
83 + mConnection.getResponseMessage()); in execute()
85 throw new AuthException(mConnection.getResponseMessage()); in execute()
92 return responseProcessor.onSuccess(mConnection.getInputStream()); in execute()
94 mConnection.disconnect(); in execute()
/packages/services/Telephony/src/com/android/phone/vvm/
DRemoteVvmTaskManager.java77 private RemoteServiceConnection mConnection; field in RemoteVvmTaskManager
303 mConnection = null; in onServiceDisconnected()
351 if (mConnection == null) { in send()
352 mConnection = new RemoteServiceConnection(); in send()
354 mConnection.enqueue(message); in send()
356 if (!mConnection.isConnected()) { in send()
360 bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in send()
365 if (mConnection == null) { in checkReference()
369 unbindService(mConnection); in checkReference()
370 mConnection = null; in checkReference()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DServiceProxy.java56 private final ServiceConnection mConnection = new ProxyConnection(); field in ServiceProxy
124 mContext.unbindService(mConnection); in onServiceConnected()
137 synchronized(mConnection) { in onServiceConnected()
141 mConnection.notify(); in onServiceConnected()
181 return mContext.bindService(mIntent, mConnection, Context.BIND_AUTO_CREATE); in setTask()
200 synchronized (mConnection) { in waitForCompletion()
206 mConnection.wait(mTimeout * 1000L); in waitForCompletion()
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
DObd2CollectionTask.java37 private final Obd2Connection mConnection; field in Obd2CollectionTask
72 if (!mConnection.isConnected()) { in run()
73 if (!mConnection.reconnect()) { in run()
101 mConnection = new Obd2Connection(bluetoothConnection); in Obd2CollectionTask()
102 mLiveFrameGenerator = new Obd2LiveFrameGenerator(mConnection); in Obd2CollectionTask()
103 mFreezeFrameGenerator = new Obd2FreezeFrameGenerator(mConnection); in Obd2CollectionTask()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2Connection.java50 private final UnderlyingTransport mConnection; field in Obd2Connection
56 mConnection = Objects.requireNonNull(connection); in Obd2Connection()
61 return mConnection.getAddress(); in getAddress()
74 if (!mConnection.reconnect()) return false; in reconnect()
80 return mConnection.isConnected(); in isConnected()
120 InputStream in = Objects.requireNonNull(mConnection.getInputStream()); in runImpl()
121 OutputStream out = Objects.requireNonNull(mConnection.getOutputStream()); in runImpl()
DObd2FreezeFrameGenerator.java34 private final Obd2Connection mConnection; field in Obd2FreezeFrameGenerator
42 mConnection = connection; in Obd2FreezeFrameGenerator()
121 List<String> currentDtcs = mConnection.getDiagnosticTroubleCodes(); in generate()
134 Optional<Integer> result = command.run(mConnection); in generate()
156 Optional<Float> result = command.run(mConnection); in generate()
DObd2LiveFrameGenerator.java33 private final Obd2Connection mConnection; field in Obd2LiveFrameGenerator
39 mConnection = connection; in Obd2LiveFrameGenerator()
82 Optional<Integer> result = command.run(mConnection); in generate()
103 Optional<Float> result = command.run(mConnection); in generate()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java45 protected final TestInputControlConnection mConnection = new TestInputControlConnection(); field in BaseMainActivityTestCase
57 mConnection, in setUp() local
63 if (mConnection.isBound()) { in tearDown()
64 getInstrumentation().getTargetContext().unbindService(mConnection); in tearDown()
122 mConnection.updateChannelState(channel, data); in updateThenTune()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DCallScreeningServiceFilter.java191 private ServiceConnection mConnection; field in CallScreeningServiceFilter
234 mConnection = new CallScreeningServiceConnection(); in startCallScreeningFilter()
238 mConnection)) { in startCallScreeningFilter()
249 if (mConnection != null) { in finishCallScreening()
252 mContext.unbindService(mConnection); in finishCallScreening()
256 mConnection = null; in finishCallScreening()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java68 private P2pPrinterConnection mConnection; field in LocalPrintJob
164 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
168 if (P2pUtils.isOnConnectedInterface(mPrintService, printer) && mConnection == null) { in onPrinterFound()
170 mConnection = new P2pPrinterConnection(mPrintService, printer, this); in onPrinterFound()
341 if (mConnection != null) { in finish()
342 mConnection.close(); in finish()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DLiveChannelsTestController.java49 private final TestInputControlConnection mConnection = new TestInputControlConnection(); field in LiveChannelsTestController
94 TestInputControlUtils.createIntent(), mConnection, Context.BIND_AUTO_CREATE); in before() local
104 if (mConnection.isBound()) { in after()
105 mInstrumentation.getContext().unbindService(mConnection); in after()
128 mConnection.updateChannelState(channel, data); in updateThenTune()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DVCardService.java63 final MediaScannerConnection mConnection; field in VCardService.CustomMediaScannerConnectionClient
67 mConnection = new MediaScannerConnection(VCardService.this, this); in CustomMediaScannerConnectionClient()
72 mConnection.connect(); in start()
78 mConnection.scanFile(mPath, null); in onMediaScannerConnected()
84 mConnection.disconnect(); in onScanCompleted()
DImportVCardActivity.java107 private ImportRequestConnection mConnection; field in ImportVCardActivity
211 if (mConnection == null) { in run()
275 mConnection.sendImportRequest(requests); in run()
294 unbindService(mConnection); in run()
775 mConnection = new ImportRequestConnection(); in startVCardService()
782 mConnection, Context.BIND_AUTO_CREATE); in startVCardService()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorServiceClient.java32 SimulatorServiceConnection mConnection = new SimulatorServiceConnection(); in connectionService() local
33 context.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in connectionService()
34 mConnection.bindToClient(this); in connectionService()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessor.java69 private ServiceConnection mConnection; field in CallRedirectionProcessor.CallRedirectionAttempt
89 mConnection = connection; in process()
117 if (mConnection != null) { in finishCallRedirection()
119 mContext.unbindService(mConnection); in finishCallRedirection()
120 mConnection = null; in finishCallRedirection()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java68 private ServiceConnection mConnection = new ServiceConnection() { field in PdfRender
84 context.bindService(mIntent, mConnection, Context.BIND_AUTO_CREATE); in PdfRender()
89 mContext.unbindService(mConnection); in close()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java57 private TestConnection mConnection; field in TestVideoProvider
78 mConnection = connection; in TestVideoProvider()
158 mConnection.setVideoState(requestProfile.getVideoState()); in onSendSessionModifyRequest()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java137 EmergencyCallbackModeService.class), mConnection, Context.BIND_AUTO_CREATE);
158 unbindService(mConnection);
329 private ServiceConnection mConnection = new ServiceConnection() { field in EmergencyCallbackModeExitDialog
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java235 if (mContext.bindServiceAsUser(bindIntent, mConnection, in bindServiceIfNeededLocked()
248 mContext.unbindService(mConnection); in unbindServiceIfNeededLocked()
265 private ServiceConnection mConnection = new ServiceConnection() { field in HostNfcFEmulationManager
DHostEmulationManager.java313 if (mContext.bindServiceAsUser(aidIntent, mConnection, in bindServiceIfNeededLocked()
384 mContext.unbindService(mConnection); in unbindServiceIfNeededLocked()
458 private ServiceConnection mConnection = new ServiceConnection() { field in HostEmulationManager
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java92 private ServiceConnection mConnection = new ServiceConnection() { field in BugReportActivity
152 bindService(intent, mConnection, BIND_AUTO_CREATE); in onCreate()
181 unbindService(mConnection); in onDestroy()

12