HomeSort by relevance Sort by last modified time
    Searched refs:mConnection (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
BlockingHttpClient.java 38 private final HttpURLConnection mConnection;
55 mConnection = connection;
67 Log.d(TAG, "execute: " + mConnection.getURL());
74 OutputStream out = new BufferedOutputStream(mConnection.getOutputStream());
80 final int responseCode = mConnection.getResponseCode();
83 + mConnection.getResponseMessage());
85 throw new AuthException(mConnection.getResponseMessage());
92 return responseProcessor.onSuccess(mConnection.getInputStream());
94 mConnection.disconnect();
  /external/apache-http/android/src/android/net/http/
ConnectionThread.java 40 Connection mConnection;
106 mConnection = mConnectionManager.getConnection(mContext,
108 mConnection.processRequests(request);
109 if (mConnection.getCanPersist()) {
110 if (!mConnectionManager.recycleConnection(mConnection)) {
111 mConnection.closeConnection();
114 mConnection.closeConnection();
116 mConnection = null;
129 String con = mConnection == null ? "" : mConnection.toString()
    [all...]
IdleCache.java 31 Connection mConnection;
78 entry.mConnection = connection;
102 ret = entry.mConnection;
104 entry.mConnection = null;
119 entry.mConnection.closeConnection();
120 entry.mConnection = null;
133 entry.mConnection.closeConnection();
134 entry.mConnection = null;
  /frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
UsbAccessoryBulkTransport.java 35 private UsbDeviceConnection mConnection;
42 mConnection = connection;
49 mConnection = null;
56 if (mConnection == null) {
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1);
64 if (mConnection == null) {
67 int result = mConnection.bulkTransfer(mBulkOutEndpoint,
  /cts/tests/tests/view/src/android/view/inputmethod/cts/
BaseInputConnectionTest.java 47 private BaseInputConnection mConnection;
67 mConnection = new BaseInputConnection(mView, true);
73 assertFalse(mConnection.beginBatchEdit());
74 assertFalse(mConnection.endBatchEdit());
79 assertFalse(mConnection.commitCompletion(new CompletionInfo(completionId,
82 assertNull(mConnection.getExtractedText(new ExtractedTextRequest(), 0));
88 assertTrue(mConnection.performEditorAction(actionCode));
89 assertFalse(mConnection.performContextMenuAction(actionId));
90 assertFalse(mConnection.performPrivateCommand(action, new Bundle()));
125 final Editable text = mConnection.getEditable()
    [all...]
  /frameworks/base/core/java/android/view/inputmethod/
InputBinding.java 33 final InputConnection mConnection;
60 mConnection = conn;
74 mConnection = conn;
81 mConnection = null;
91 return mConnection;
  /frameworks/base/core/java/android/database/sqlite/
SQLiteSession.java 166 private SQLiteConnection mConnection;
259 return mConnection != null;
319 mConnection.execute("BEGIN IMMEDIATE;", null,
323 mConnection.execute("BEGIN EXCLUSIVE;", null,
327 mConnection.execute("BEGIN;", null, cancellationSignal); // might throw
338 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw
399 assert mConnection != null;
437 mConnection.execute("COMMIT;", null, cancellationSignal); // might throw
439 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw
514 assert mConnection != null
    [all...]
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
NsdChatActivity.java 40 ChatConnection mConnection;
62 if(mConnection.getLocalPort() > -1) {
63 mNsdHelper.registerService(mConnection.getLocalPort());
77 mConnection.connectToServer(service.getHost(),
89 mConnection.sendMessage(messageString);
102 mConnection = new ChatConnection(mUpdateHandler);
143 mConnection.tearDown();
145 mConnection = null;
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadScanner.java 46 private final MediaScannerConnection mConnection;
66 @GuardedBy("mConnection")
71 mConnection = new MediaScannerConnection(context, this);
79 synchronized (mConnection) {
103 synchronized (mConnection) {
107 if (mConnection.isConnected()) {
108 req.exec(mConnection);
110 mConnection.connect();
116 mConnection.disconnect();
121 synchronized (mConnection) {
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
InputLogic.java 93 public final RichInputConnection mConnection;
125 mConnection = new RichInputConnection(latinIME);
142 mConnection.onStartInput();
159 mConnection.tryFixLyingCursorPosition();
168 mConnection.requestCursorUpdates(true /* enableMonitor */,
191 mConnection.beginBatchEdit();
196 mConnection.endBatchEdit();
205 mConnection.finishComposingText();
240 mConnection.beginBatchEdit();
251 mConnection.commitText(text, 1)
    [all...]
  /frameworks/base/media/java/android/media/
MediaHTTPConnection.java 52 private HttpURLConnection mConnection = null;
137 if (mConnection != null) {
140 mConnection.disconnect();
141 mConnection = null;
184 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
186 mConnection = (HttpURLConnection)url.openConnection();
188 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS);
191 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect);
195 mConnection.setRequestProperty(
201 mConnection.setRequestProperty
    [all...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/service/
ControllerService.java 76 public Connection mConnection;
159 return mConnection.isEmulatorConnected();
169 return mConnection.getChannel(name);
214 if (mConnection != null) {
215 mConnection.disconnect();
228 mConnection = new Connection(ControllerService.this);
229 mConnection.connect();
232 mConnection.registerChannel(new SensorChannel(ControllerService.this));
234 mConnection.registerChannel(new MultiTouchChannel(ControllerService.this));
  /developers/samples/android/common/src/java/com/example/android/common/midi/
MidiPortConnector.java 36 private MidiConnection mConnection;
46 if (mConnection != null) {
48 "MidiPortConnector closing connection " + mConnection);
49 mConnection.close();
50 mConnection = null;
185 mConnection = device.connectPorts(
187 if (mConnection == null) {
193 listener.onPortsConnected(mConnection);
  /packages/apps/Exchange/src/com/android/exchange/service/
AbstractSyncAdapterService.java 62 protected ServiceConnection mConnection;
69 mConnection = new ServiceConnection() {
73 synchronized (mConnection) {
75 mConnection.notify();
84 bindService(new Intent(this, EasService.class), mConnection, Context.BIND_AUTO_CREATE);
90 unbindService(mConnection);
188 synchronized(mConnection) {
192 mConnection.wait(MAX_WAIT_FOR_SERVICE_MS);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
ServiceProxy.java 56 private final ServiceConnection mConnection = new ProxyConnection();
119 // Make sure that we unbind the mConnection even on exceptions in the
124 mContext.unbindService(mConnection);
137 synchronized(mConnection) {
141 mConnection.notify();
181 return mContext.bindService(mIntent, mConnection, Context.BIND_AUTO_CREATE);
200 synchronized (mConnection) {
206 mConnection.wait(mTimeout * 1000L);
  /packages/services/Telephony/src/com/android/phone/common/mail/store/
ImapStore.java 41 private ImapConnection mConnection;
151 if (mConnection != null) {
152 mConnection.close();
153 mConnection = null;
158 if (mConnection == null) {
159 mConnection = new ImapConnection(this);
161 return mConnection;
  /cts/tests/tests/uidisolation/src/android/uidisolation/cts/
ServiceRunnerActivity.java 79 private ServiceConnection mConnection = new ServiceConnection() {
109 mConnection, Context.BIND_AUTO_CREATE);
115 unbindService(mConnection);
  /frameworks/base/core/tests/coretests/src/android/os/
MessengerTest.java 34 private ServiceConnection mConnection = new ServiceConnection() {
97 mConnection, Context.BIND_AUTO_CREATE);
111 getContext().unbindService(mConnection);
  /frameworks/ml/bordeaux/service/src/android/bordeaux/services/
BordeauxManagerService.java 58 mConnection, Context.BIND_AUTO_CREATE);
64 if (mStarted && mConnection != null) {
65 context.unbindService(mConnection);
137 static private ServiceConnection mConnection = new ServiceConnection() {
  /packages/apps/Exchange/src/com/android/exchange/eas/
EasOperation.java 157 protected EasServerConnection mConnection;
173 mConnection = connection;
195 mConnection = parentOperation.mConnection;
220 mConnection.stop(EasServerConnection.STOPPED_REASON_ABORT);
228 mConnection.stop(EasServerConnection.STOPPED_REASON_RESTART);
279 response = mConnection.executeHttpUriRequest(makeRequest(), getTimeout());
285 switch (mConnection.getStoppedReason()) {
386 mConnection.redirectHostAuth(response.getRedirectAddress());
436 if (mConnection.setProtocolVersion(protocolVersion) && accountId != Account.NOT_SAVED)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/mail/store/
ImapFolder.java 81 private ImapConnection mConnection;
95 if (mConnection != null) {
96 mConnection.destroyResponses();
109 mConnection.executeSimpleCommand(ImapConstants.NOOP);
113 ioExceptionHandler(mConnection, ioe);
123 mConnection = mStore.getConnection();
137 throw ioExceptionHandler(mConnection, ioe);
143 mConnection = null;
156 return mExists && mConnection != null;
169 mStore.poolConnection(mConnection);
    [all...]
  /development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
MissileLauncherActivity.java 48 private UsbDeviceConnection mConnection;
138 mConnection = connection;
144 mConnection = null;
154 if (mConnection != null) {
158 mConnection.controlTransfer(0x21, 0x9, 0x200, 0, message, message.length, 0);
219 request.initialize(mConnection, mEndpointIntr);
227 if (mConnection.requestWait() == request) {
  /frameworks/base/core/java/android/bluetooth/
BluetoothA2dpSink.java 136 synchronized (mConnection) {
139 mContext.unbindService(mConnection);
145 synchronized (mConnection) {
183 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
202 synchronized (mConnection) {
206 mContext.unbindService(mConnection);
398 private final ServiceConnection mConnection = new ServiceConnection() {
BluetoothAvrcpController.java 77 synchronized (mConnection) {
80 mContext.unbindService(mConnection);
86 synchronized (mConnection) {
125 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
144 synchronized (mConnection) {
148 mContext.unbindService(mConnection);
226 private final ServiceConnection mConnection = new ServiceConnection() {
BluetoothPbap.java 118 synchronized (mConnection) {
121 mContext.unbindService(mConnection);
127 synchronized (mConnection) {
163 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
195 synchronized (mConnection) {
199 mContext.unbindService(mConnection);
302 private final ServiceConnection mConnection = new ServiceConnection() {

Completed in 759 milliseconds

1 2 3 4