/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; 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);
|
/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 | 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...] |
/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); 65 if (mStarted && mConnection != null) { 66 context.unbindService(mConnection); 138 static private ServiceConnection mConnection = new ServiceConnection() {
|
/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() {
|
BluetoothInputDevice.java | 196 synchronized (mConnection) { 199 mContext.unbindService(mConnection); 205 synchronized (mConnection) { 209 if (!mContext.bindService(new Intent(IBluetoothInputDevice.class.getName()), mConnection, 0)) { 241 mConnection, 0)) { 257 synchronized (mConnection) { 261 mContext.unbindService(mConnection); 455 private ServiceConnection mConnection = new ServiceConnection() {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinIME.java | 153 private RichInputConnection mConnection = new RichInputConnection(this); 560 mConnection.beginBatchEdit(); 562 mConnection.finishComposingText(); 563 mConnection.endBatchEdit(); 724 mConnection.resetCachesUponCursorMove(editorInfo.initialSelStart); [all...] |
/frameworks/base/services/java/com/android/server/ |
BluetoothManagerService.java | 270 synchronized(mConnection) { 305 synchronized(mConnection) { 382 synchronized (mConnection) { 386 if (!mConnection.isGetNameAddressOnly()) { 397 mContext.unbindService(mConnection); 423 if (!mConnection.isGetNameAddressOnly()) { 441 if (!mConnection.isGetNameAddressOnly()) { 464 synchronized(mConnection) { 488 synchronized(mConnection) { 530 private BluetoothServiceConnection mConnection = new BluetoothServiceConnection() [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;
|