/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() {
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
ExternalServiceTest.java | 42 private Connection mConnection = new Connection(); 49 if (mConnection.service != null) 50 getContext().unbindService(mConnection); 58 getContext().bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 69 getContext().bindService(intent, mConnection, 82 getContext().bindService(intent, mConnection, 95 getContext().bindService(intent, mConnection, 108 getContext().bindService(intent, mConnection, 120 getContext().bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 133 assertTrue(getContext().bindService(intent, mConnection, [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/ |
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() {
|
BluetoothPbapClient.java | 65 synchronized (mConnection) { 68 mContext.unbindService(mConnection); 74 synchronized (mConnection) { 115 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 147 synchronized (mConnection) { 151 mContext.unbindService(mConnection); 286 private final ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothSap.java | 98 synchronized (mConnection) { 101 mContext.unbindService(mConnection); 107 synchronized (mConnection) { 144 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 177 synchronized (mConnection) { 181 mContext.unbindService(mConnection); 393 private ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothPan.java | 147 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 167 synchronized (mConnection) { 171 mContext.unbindService(mConnection); 205 synchronized (mConnection) { 208 mContext.unbindService(mConnection); 368 private final ServiceConnection mConnection = new ServiceConnection() {
|
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); 481 private final ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothAvrcpController.java | 135 synchronized (mConnection) { 138 mContext.unbindService(mConnection); 144 synchronized (mConnection) { 183 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 202 synchronized (mConnection) { 206 mContext.unbindService(mConnection); 382 private final ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothHealth.java | 106 synchronized (mConnection) { 109 mContext.unbindService(mConnection); 115 synchronized (mConnection) { 490 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 509 synchronized (mConnection) { 513 mContext.unbindService(mConnection); 522 private final ServiceConnection mConnection = new ServiceConnection() {
|
BluetoothMap.java | 61 synchronized (mConnection) { 64 mContext.unbindService(mConnection); 70 synchronized (mConnection) { 107 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, 139 synchronized (mConnection) { 143 mContext.unbindService(mConnection); 371 private final ServiceConnection mConnection = new ServiceConnection() {
|
/frameworks/base/core/java/android/speech/ |
SpeechRecognizer.java | 117 private Connection mConnection; 182 mConnection = null; 267 if (mConnection == null) { // first time connection 268 mConnection = new Connection(); 287 if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) { 289 mConnection = null; 407 if (mConnection != null) { 408 mContext.unbindService(mConnection); 412 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() {
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
CrossProfileWidgetPrimaryUserTest.java | 58 private Connection mConnection; 67 mConnection = new Connection(); 68 getContext().bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 69 mConnection.waitForService();
|
/frameworks/base/media/java/android/media/ |
MediaScannerConnection.java | 185 MediaScannerConnection mConnection; 207 mConnection.disconnect(); 211 mConnection.scanFile(mPaths[mNextPath], mimeType); 237 client.mConnection = connection;
|
/frameworks/base/services/print/java/com/android/server/print/ |
RemotePrintServiceRecommendationService.java | 57 private @NonNull final Connection mConnection; 136 mConnection = new Connection(callbacks); 142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, 171 mContext.unbindService(mConnection);
|
/external/apache-http/android/src/android/net/http/ |
Request.java | 52 private Connection mConnection; 154 mConnection = connection; 219 mConnection.getHttpContext()); 289 buf = mConnection.getBuf(); 347 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(), 373 if (mConnection != null) { 374 mConnection.cancel(); 507 HttpsConnection connection = (HttpsConnection)(mConnection); 515 * This should not be called before the mConnection is set.
|
RequestHandle.java | 48 private Connection mConnection; 88 mConnection = conn; 292 if (mConnection != null) { 293 mConnection.processRequests(mRequest); 463 // mConnection is non-null if and only if the requests are synchronous. 464 if (mConnection != null) { 469 mConnection = newHandle.mConnection;
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
RegisteredMediaRouteProvider.java | 322 private Connection mConnection; 331 mConnection = connection; 347 if (mConnection != null) { 348 mConnection.releaseRouteController(mControllerId); 349 mConnection = null; 362 if (mConnection != null) { 363 mConnection.selectRoute(mControllerId); 375 if (mConnection != null) { 376 mConnection.unselectRoute(mControllerId, reason); 382 if (mConnection != null) [all...] |
/packages/services/Telephony/src/com/android/phone/common/mail/store/ |
ImapFolder.java | 67 private ImapConnection mConnection; 89 if (mConnection != null) { 90 mConnection.destroyResponses(); 100 mConnection = mStore.getConnection(); 114 throw ioExceptionHandler(mConnection, ioe); 120 mConnection = null; 131 return mExists && mConnection != null; 148 mConnection = null; 180 final String[] result = getSearchUids(mConnection.executeSimpleCommand(command)); 190 throw ioExceptionHandler(mConnection, ioe) [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
PacManager.java | 80 private ServiceConnection mConnection; 268 if ((mProxyConnection != null) && (mConnection != null)) { 273 mConnection = new ServiceConnection() { 305 mContext.bindService(intent, mConnection, 348 if (mConnection != null) { 349 mContext.unbindService(mConnection); 350 mConnection = null;
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
CallScreeningServiceFilter.java | 146 private ServiceConnection mConnection; 191 if (mConnection != null) { 193 mContext.unbindService(mConnection); 194 mConnection = null; 242 mConnection = connection;
|