/frameworks/base/core/java/android/net/http/ |
ConnectionThread.java | 45 Connection mConnection; 111 mConnection = mConnectionManager.getConnection(mContext, 113 mConnection.processRequests(request); 114 if (mConnection.getCanPersist()) { 115 if (!mConnectionManager.recycleConnection(mConnection)) { 116 mConnection.closeConnection(); 119 mConnection.closeConnection(); 121 mConnection = null; 134 String con = mConnection == null ? "" : mConnection.toString() [all...] |
IdleCache.java | 34 Connection mConnection; 81 entry.mConnection = connection; 105 ret = entry.mConnection; 107 entry.mConnection = null; 122 entry.mConnection.closeConnection(); 123 entry.mConnection = null; 136 entry.mConnection.closeConnection(); 137 entry.mConnection = null;
|
Request.java | 57 private Connection mConnection; 159 mConnection = connection; 224 mConnection.getHttpContext()); 294 buf = mConnection.getBuf(); 352 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(), 378 if (mConnection != null) { 379 mConnection.cancel(); 512 HttpsConnection connection = (HttpsConnection)(mConnection); 520 * This should not be called before the mConnection is set. 525 mConnection.mContext.getText [all...] |
RequestHandle.java | 52 private Connection mConnection; 92 mConnection = conn; 288 if (mConnection != null) { 289 mConnection.processRequests(mRequest); 451 // mConnection is non-null if and only if the requests are synchronous. 452 if (mConnection != null) { 457 mConnection = newHandle.mConnection;
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
BaseInputConnectionTest.java | 47 private BaseInputConnection mConnection; 61 mConnection = new BaseInputConnection(mView, true); 67 assertFalse(mConnection.beginBatchEdit()); 68 assertFalse(mConnection.endBatchEdit()); 73 assertFalse(mConnection.commitCompletion(new CompletionInfo(completionId, 76 assertNull(mConnection.getExtractedText(new ExtractedTextRequest(), 0)); 82 assertTrue(mConnection.performEditorAction(actionCode)); 83 assertFalse(mConnection.performContextMenuAction(actionId)); 84 assertFalse(mConnection.performPrivateCommand(action, new Bundle())); 119 final Editable text = mConnection.getEditable() [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputBinding.java | 34 final InputConnection mConnection; 61 mConnection = conn; 75 mConnection = conn; 82 mConnection = null; 92 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; 57 mConnection = new ChatConnection(mUpdateHandler); 66 if(mConnection.getLocalPort() > -1) { 67 mNsdHelper.registerService(mConnection.getLocalPort()); 81 mConnection.connectToServer(service.getHost(), 93 mConnection.sendMessage(messageString); 122 mConnection.tearDown();
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
ServiceProxy.java | 53 private final ServiceConnection mConnection = new ProxyConnection(); 119 mContext.unbindService(mConnection); 126 synchronized(mConnection) { 130 mConnection.notify(); 157 return mContext.bindService(mIntent, mConnection, Context.BIND_AUTO_CREATE); 161 synchronized (mConnection) { 167 mConnection.wait(mTimeout * 1000L);
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
BordeauxManagerService.java | 56 mConnection, Context.BIND_AUTO_CREATE); 63 if (mStarted && mConnection != null) { 64 context.unbindService(mConnection); 109 static private ServiceConnection mConnection = new ServiceConnection() {
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ImapFolder.java | 72 private ImapConnection mConnection; 86 if (mConnection != null) { 87 mConnection.destroyResponses(); 100 mConnection.executeSimpleCommand(ImapConstants.NOOP); 104 ioExceptionHandler(mConnection, ioe); 114 mConnection = mStore.getConnection(); 128 throw ioExceptionHandler(mConnection, ioe); 134 mConnection = null; 147 return mExists && mConnection != null; 160 mStore.poolConnection(mConnection); [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
BaseHandler.java | 57 private EmulatorConnection mConnection;
97 if (msg != null && mConnection != null && !msg.equals(EVENT_QUEUE_END)) {
98 mConnection.sendNotification(msg);
141 return mConnection;
162 mConnection = connection;
173 mConnection = null;
|
/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);
|
BinderThreadPriorityTest.java | 38 private ServiceConnection mConnection = new ServiceConnection() { 65 mConnection, Context.BIND_AUTO_CREATE); 93 getContext().unbindService(mConnection);
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothPbap.java | 117 if (!context.bindService(new Intent(IBluetoothPbap.class.getName()), mConnection, 0)) { 137 if (mConnection != null) { 138 mContext.unbindService(mConnection); 139 mConnection = null; 238 private ServiceConnection mConnection = new ServiceConnection() {
|
/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/speech/ |
SpeechRecognizer.java | 111 private Connection mConnection; 176 mConnection = null; 261 if (mConnection == null) { // first time connection 262 mConnection = new Connection(); 281 if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) { 283 mConnection = null; 393 if (mConnection != null) { 394 mContext.unbindService(mConnection); 398 mConnection = null;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LocalServiceActivities.java | 96 private ServiceConnection mConnection = new ServiceConnection() { 127 LocalService.class), mConnection, Context.BIND_AUTO_CREATE); 134 unbindService(mConnection);
|
IsolatedService.java | 128 mActivity.unbindService(mConnection); 149 mConnection, Context.BIND_AUTO_CREATE)) { 156 mActivity.unbindService(mConnection); 164 private ServiceConnection mConnection = new ServiceConnection() {
|
MessengerServiceActivities.java | 65 private ServiceConnection mConnection = new ServiceConnection() { 117 MessengerService.class), mConnection, Context.BIND_AUTO_CREATE); 139 unbindService(mConnection);
|
/frameworks/base/media/java/android/media/ |
MediaScannerConnection.java | 182 MediaScannerConnection mConnection; 204 mConnection.disconnect(); 208 mConnection.scanFile(mPaths[mNextPath], mimeType); 234 client.mConnection = connection;
|
/frameworks/base/services/java/com/android/server/connectivity/ |
Vpn.java | 71 private Connection mConnection; 123 if (mConnection != null) { 125 mConnection.mService.transact(IBinder.LAST_CALL_TRANSACTION, 130 mContext.unbindService(mConnection); 131 mConnection = null; 222 if (mConnection != null) { 223 mContext.unbindService(mConnection); 228 mConnection = connection; 279 if (mConnection != null) { 280 mContext.unbindService(mConnection); [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
AsyncChannel.java | 184 private AsyncChannelConnection mConnection; 220 mConnection = new AsyncChannelConnection(); 237 boolean result = srcContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 437 mConnection = null; 444 if ((mConnection != null) && (mSrcContext != null)) { 445 mSrcContext.unbindService(mConnection);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
WifiConnectionTest.java | 91 WifiInfo mConnection = mAct.mWifiManager.getConnectionInfo(); 92 assertNotNull(mConnection);
|
/cts/tests/tests/os/src/android/os/cts/ |
MessengerTest.java | 94 private ServiceConnection mConnection = new ServiceConnection() { 112 getContext().bindService(new Intent(mContext, MessengerService.class), mConnection, 124 getContext().unbindService(mConnection);
|