Home
last modified time | relevance | path

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

/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/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/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/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/services/Telephony/src/com/android/phone/common/mail/store/
DImapFolder.java72 private ImapConnection mConnection; field in ImapFolder
94 if (mConnection != null) { in destroyResponses()
95 mConnection.destroyResponses(); in destroyResponses()
106 mConnection.executeSimpleCommand(ImapConstants.NOOP); in open()
110 ioExceptionHandler(mConnection, ioe); in open()
120 mConnection = mStore.getConnection(); in open()
134 throw ioExceptionHandler(mConnection, ioe); in open()
140 mConnection = null; in open()
151 return mExists && mConnection != null; in isOpen()
169 mConnection = null; in close()
[all …]
DImapStore.java42 private ImapConnection mConnection; field in ImapStore
158 if (mConnection != null) { in closeConnection()
159 mConnection.close(); in closeConnection()
160 mConnection = null; in closeConnection()
165 if (mConnection == null) { in getConnection()
166 mConnection = new ImapConnection(this); in getConnection()
168 return mConnection; in getConnection()
/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/apps/TV/tests/unit/src/com/android/tv/
DBaseMainActivityTestCase.java41 protected final TestInputControlConnection mConnection = new TestInputControlConnection(); field in BaseMainActivityTestCase
56 .bindService(TestInputControlUtils.createIntent(), mConnection, in setUp() local
62 if (mConnection.isBound()) { in tearDown()
63 getInstrumentation().getContext().unbindService(mConnection); in tearDown()
127 mConnection.updateChannelState(channel, data); in updateThenTune()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DLiveChannelsTestCase.java41 protected final TestInputControlConnection mConnection = new TestInputControlConnection(); field in LiveChannelsTestCase
53 context.bindService(TestInputControlUtils.createIntent(), mConnection, in setUp() local
64 if (mConnection.isBound()) { in tearDown()
65 getInstrumentation().getContext().unbindService(mConnection); in tearDown()
98 mConnection.updateChannelState(channel, data); in updateThenTune()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DCallScreeningServiceFilter.java146 private ServiceConnection mConnection; field in CallScreeningServiceFilter
191 if (mConnection != null) { in finishCallScreening()
193 mContext.unbindService(mConnection); in finishCallScreening()
194 mConnection = null; in finishCallScreening()
242 mConnection = connection; in bindService()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardService.java72 final MediaScannerConnection mConnection; field in VCardService.CustomMediaScannerConnectionClient
76 mConnection = new MediaScannerConnection(VCardService.this, this); in CustomMediaScannerConnectionClient()
81 mConnection.connect(); in start()
87 mConnection.scanFile(mPath, null); in onMediaScannerConnected()
93 mConnection.disconnect(); in onScanCompleted()
DImportVCardActivity.java106 private ImportRequestConnection mConnection; field in ImportVCardActivity
210 if (mConnection == null) { in run()
271 mConnection.sendImportRequest(requests); in run()
287 unbindService(mConnection); in run()
733 mConnection = new ImportRequestConnection(); in startVCardService()
740 mConnection, Context.BIND_AUTO_CREATE); in startVCardService()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java63 private final ServiceConnection mConnection = new ServiceConnection() { field in CarProjectionService
126 mContext.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_IMPORTANT, userHandle); in bindToService()
136 mContext.unbindService(mConnection); in unbindServiceIfBound()
/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.java143 EmergencyCallbackModeService.class), mConnection, Context.BIND_AUTO_CREATE);
164 unbindService(mConnection);
337 private ServiceConnection mConnection = new ServiceConnection() { field in EmergencyCallbackModeExitDialog
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java230 if (mContext.bindServiceAsUser(bindIntent, mConnection, in bindServiceIfNeededLocked()
243 mContext.unbindService(mConnection); in unbindServiceIfNeededLocked()
260 private ServiceConnection mConnection = new ServiceConnection() { field in HostNfcFEmulationManager
DHostEmulationManager.java297 if (mContext.bindServiceAsUser(aidIntent, mConnection, in bindServiceIfNeededLocked()
362 mContext.unbindService(mConnection); in unbindServiceIfNeededLocked()
433 private ServiceConnection mConnection = new ServiceConnection() { field in HostEmulationManager
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java968 private MediaScannerConnection mConnection; field in BluetoothOppService.MediaScannerNotifier
980 mConnection = new MediaScannerConnection(mContext, this); in MediaScannerNotifier()
982 mConnection.connect(); in MediaScannerNotifier()
987 mConnection.scanFile(mInfo.mFilename, mInfo.mMimetype); in onMediaScannerConnected()
1015 mConnection.disconnect(); in onScanCompleted()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.java109 private final ServiceConnection mConnection = new ServiceConnection() { field in AlarmActivity
499 bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in bindAlarmService()
509 unbindService(mConnection); in unbindAlarmService()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java207 private ServiceConnection mConnection = new ServiceConnection() { field in FilterShowActivity
242 mConnection, Context.BIND_AUTO_CREATE); in doBindService()
249 unbindService(mConnection); in doUnbindService()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLatinIME.java919 if (!mInputLogic.mConnection.resetCachesUponCursorMoveAndReturnSuccess( in onStartInputViewInternal()
934 mInputLogic.mConnection.tryFixLyingCursorPosition(); in onStartInputViewInternal()
1642 if (code == Constants.CODE_DELETE && !mInputLogic.mConnection.canDeleteCharacters()) { in hapticAndAudioFeedback()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java227 if (intent.getComponent() == null || !context.bindService(intent, mConnection, 0)) { in HeadsetStateMachine()
275 synchronized (mConnection) { in cleanup()
278 mService.unbindService(mConnection); in cleanup()
2062 private ServiceConnection mConnection = new ServiceConnection() { field in HeadsetStateMachine