/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...] |
/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 | 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...] |
/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...] |
/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);
|
/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));
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ImapFolder.java | 73 private ImapConnection mConnection; 87 if (mConnection != null) { 88 mConnection.destroyResponses(); 101 mConnection.executeSimpleCommand(ImapConstants.NOOP); 105 ioExceptionHandler(mConnection, ioe); 115 mConnection = mStore.getConnection(); 129 throw ioExceptionHandler(mConnection, ioe); 135 mConnection = null; 148 return mExists && mConnection != null; 161 mStore.poolConnection(mConnection); [all...] |
/frameworks/base/services/java/com/android/server/ |
BluetoothManagerService.java | 317 synchronized(mConnection) { 353 synchronized(mConnection) { 454 synchronized (mConnection) { 458 if (!mConnection.isGetNameAddressOnly()) { 469 mContext.unbindService(mConnection); 500 if (!mConnection.isGetNameAddressOnly()) { 518 if (!mConnection.isGetNameAddressOnly()) { 542 synchronized(mConnection) { 567 synchronized(mConnection) { 628 private BluetoothServiceConnection mConnection = new BluetoothServiceConnection() [all...] |
/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/base/core/java/android/bluetooth/ |
BluetoothPbap.java | 119 synchronized (mConnection) { 122 mContext.unbindService(mConnection); 128 synchronized (mConnection) { 134 mConnection, 0)) { 161 if (!context.bindService(new Intent(IBluetoothPbap.class.getName()), mConnection, 0)) { 190 synchronized (mConnection) { 194 mContext.unbindService(mConnection); 195 mConnection = null; 298 private ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothA2dp.java | 118 synchronized (mConnection) { 121 mContext.unbindService(mConnection); 127 synchronized (mConnection) { 131 if (!mContext.bindService(new Intent(IBluetoothA2dp.class.getName()), mConnection, 0)) { 160 if (!context.bindService(new Intent(IBluetoothA2dp.class.getName()), mConnection, 0)) { 176 synchronized (mConnection) { 180 mContext.unbindService(mConnection); 449 private ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothPan.java | 142 mConnection, 0)) { 150 if (mConnection != null) { 151 mContext.unbindService(mConnection); 152 mConnection = null; 174 mConnection, 0)) { 180 synchronized (mConnection) { 183 mContext.unbindService(mConnection); 337 private ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothHealth.java | 107 synchronized (mConnection) { 110 mContext.unbindService(mConnection); 116 synchronized (mConnection) { 120 if (!mContext.bindService(new Intent(IBluetoothHealth.class.getName()), mConnection, 0)) { 486 if (!context.bindService(new Intent(IBluetoothHealth.class.getName()), mConnection, 0)) { 502 synchronized (mConnection) { 506 mContext.unbindService(mConnection); 515 private ServiceConnection mConnection = new ServiceConnection() {
|
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinIME.java | 163 private final RichInputConnection mConnection = new RichInputConnection(this); 605 mConnection.beginBatchEdit(); 607 mConnection.finishComposingText(); 608 mConnection.endBatchEdit(); [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/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() {
|
/frameworks/base/media/java/android/media/ |
MediaScannerConnection.java | 182 MediaScannerConnection mConnection; 204 mConnection.disconnect(); 208 mConnection.scanFile(mPaths[mNextPath], mimeType); 234 client.mConnection = connection;
|