/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PersistentConnectionTest.java | 121 final MyConnection conn = new MyConnection(TAG, context, handler, userId, cn, in testAll() local 127 assertFalse(conn.isBound()); in testAll() 128 assertFalse(conn.isConnected()); in testAll() 129 assertFalse(conn.isRebindScheduled()); in testAll() 130 assertEquals(5000, conn.getNextBackoffMsForTest()); in testAll() 131 assertNull(conn.getServiceBinder()); in testAll() 138 conn.bind(); in testAll() 140 assertTrue(conn.isBound()); in testAll() 141 assertTrue(conn.shouldBeBoundForTest()); in testAll() 142 assertFalse(conn.isConnected()); in testAll() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | VoiceCallSessionStats.java | 154 for (Connection conn : connections) { in onRilAcceptCall() 155 addCall(conn); in onRilAcceptCall() 160 public synchronized void onRilDial(Connection conn) { in onRilDial() argument 161 addCall(conn); in onRilDial() 168 for (Connection conn : connections) { in onRilCallListChanged() 169 int id = getConnectionId(conn); in onRilCallListChanged() 172 if (conn.getDisconnectCause() == DisconnectCause.NOT_DISCONNECTED) { in onRilCallListChanged() 173 addCall(conn); in onRilCallListChanged() 174 checkCallSetup(conn, mCallProtos.get(id)); in onRilCallListChanged() 181 checkCallSetup(conn, proto); in onRilCallListChanged() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaCall.java | 76 public void attach(Connection conn, DriverCall dc) { in attach() argument 77 addConnection(conn); in attach() 83 public void attachFake(Connection conn, State state) { in attachFake() argument 84 addConnection(conn); in attachFake() 92 public boolean connectionDisconnected(GsmCdmaConnection conn) { in connectionDisconnected() argument 114 public void detach(GsmCdmaConnection conn) { in detach() argument 115 removeConnection(conn); in detach() 122 /*package*/ boolean update (GsmCdmaConnection conn, DriverCall dc) { in update() argument 157 for (Connection conn : getConnections()) { in onHangupLocal() 158 ((GsmCdmaConnection) conn).onHangupLocal(); in onHangupLocal()
|
D | GsmCdmaCallTracker.java | 269 for (Connection conn : connCopy) { in fakeHoldForegroundBeforeDial() 270 GsmCdmaConnection gsmCdmaConn = (GsmCdmaConnection) conn; in fakeHoldForegroundBeforeDial() 859 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls() local 874 if (conn != null || dc != null) { in handlePollCalls() 879 conn+", dc=" + dc); in handlePollCalls() 881 if (conn == null && dc != null) { in handlePollCalls() 970 } else if (conn != null && dc == null) { in handlePollCalls() 974 mDroppedDuringPoll.add(conn); in handlePollCalls() 1008 } else if (conn != null && dc != null && !conn.compareTo(dc) && isPhoneTypeGsm()) { in handlePollCalls() 1012 mDroppedDuringPoll.add(conn); in handlePollCalls() [all …]
|
D | Call.java | 163 public void removeConnection(Connection conn) { in removeConnection() argument 165 mConnections.remove(conn); in removeConnection() 174 public void addConnection(Connection conn) { in addConnection() argument 176 mConnections.add(conn); in addConnection() 349 for (Connection conn : getConnections()) { 350 if (conn.getState() == State.DISCONNECTED) { 351 removeConnection(conn);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTracker.java | 227 ImsPhoneConnection conn = new ImsPhoneConnection(mPhone, imsCall, in onIncomingCall() local 240 conn.setActiveCallDisconnectedOnAnswer(answeringWillDisconnect); in onIncomingCall() 243 conn.setAllowAddCallDuringVideoCall(mAllowAddCallDuringVideoCall); in onIncomingCall() 244 conn.setAllowHoldingVideoCall(mAllowHoldingVideoCall); in onIncomingCall() 256 conn.getState()); in onIncomingCall() 258 conn.setDisconnectCause(cause); in onIncomingCall() 267 addConnection(conn); in onIncomingCall() 269 setVideoCallProvider(conn, imsCall); in onIncomingCall() 273 mPhone.getVoiceCallSessionStats().onImsCallReceived(conn); in onIncomingCall() 276 mPhone.notifyUnknownConnection(conn); in onIncomingCall() [all …]
|
D | ImsPhoneCall.java | 85 for (Connection conn : connections) { in dispose() 86 conn.onDisconnect(DisconnectCause.LOST_SIGNAL); in dispose() 144 for (Connection conn : connections) { in toString() 145 sb.append(conn); in toString() 167 public void attach(Connection conn) { in attach() argument 169 Rlog.v(LOG_TAG, "attach : " + mCallContext + " conn = " + conn); in attach() 172 addConnection(conn); in attach() 178 public void attach(Connection conn, State state) { in attach() argument 183 this.attach(conn); in attach() 188 public void attachFake(Connection conn, State state) { in attachFake() argument [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaHTTPConnection.cpp | 85 JNIEnv *env, jobject thiz, const sp<JMediaHTTPConnection> &conn) { in setObject() argument 89 if (conn != NULL) { in setObject() 90 conn->incStrong(thiz); in setObject() 95 env->SetLongField(thiz, gFields.context, (jlong)conn.get()); in setObject() 117 sp<JMediaHTTPConnection> conn = new JMediaHTTPConnection(env, thiz); in android_media_MediaHTTPConnection_native_setup() local 119 setObject(env, thiz, conn); in android_media_MediaHTTPConnection_native_setup() 129 sp<JMediaHTTPConnection> conn = getObject(env, thiz); in android_media_MediaHTTPConnection_native_getIMemory() local 131 return javaObjectForIBinder(env, IInterface::asBinder(conn->getIMemory())); in android_media_MediaHTTPConnection_native_getIMemory() 136 sp<JMediaHTTPConnection> conn = getObject(env, thiz); in android_media_MediaHTTPConnection_native_readAt() local 141 jbyteArray byteArrayObj = conn->getByteArrayObj(); in android_media_MediaHTTPConnection_native_readAt() [all …]
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingService.java | 349 final AppServiceConnection conn = mConnections.get(i); in findConnectionLock() local 350 if ((conn.getUserId() == userId) && (conn.getFinder() == target)) { in findConnectionLock() 351 return conn; in findConnectionLock() 404 final AppServiceConnection conn = in bindServicesLocked() local 407 mConnections.add(conn); in bindServicesLocked() 408 conn.bind(); in bindServicesLocked() 415 final AppServiceConnection conn = mConnections.get(i); in unbindServicesLocked() local 416 if ((conn.getUserId() != userId) in unbindServicesLocked() 417 || (target != null && conn.getFinder() != target)) { in unbindServicesLocked() 422 + " " + conn.getFinder().getAppDescription() in unbindServicesLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ContentProviderHelper.java | 151 ContentProviderConnection conn = null; in getContentProviderImpl() local 243 conn = incProviderCountLocked(r, cpr, token, callingUid, callingPackage, in getContentProviderImpl() 276 boolean lastRef = decProviderCountLocked(conn, cpr, token, stable, in getContentProviderImpl() 285 conn = null; in getContentProviderImpl() 495 conn = incProviderCountLocked(r, cpr, token, callingUid, callingPackage, callingTag, in getContentProviderImpl() 497 if (conn != null) { in getContentProviderImpl() 498 conn.waiting = true; in getContentProviderImpl() 522 if (conn != null) { in getContentProviderImpl() 523 conn.waiting = true; in getContentProviderImpl() 535 return cpr.newHolder(conn, false); in getContentProviderImpl() [all …]
|
D | ContentProviderRecord.java | 89 public ContentProviderHolder newHolder(ContentProviderConnection conn, boolean local) { in newHolder() argument 93 holder.connection = conn; in newHolder() 102 final ContentProviderConnection conn = connections.get(iconn); in setProcess() local 104 conn.startAssociationIfNeeded(); in setProcess() 106 conn.stopAssociation(); in setProcess() 193 final ContentProviderConnection conn = connections.get(i); in onProviderPublishStatusLocked() local 194 if (conn.waiting && conn.client != null) { in onProviderPublishStatusLocked() 195 final ProcessRecord client = conn.client; in onProviderPublishStatusLocked() 218 newHolder(status ? conn : null, false), in onProviderPublishStatusLocked() 219 info.authority, conn.mExpectedUserId, status); in onProviderPublishStatusLocked() [all …]
|
D | ProcessProviderRecord.java | 142 final ContentProviderConnection conn = mConProviders.get(i); in onCleanupApplicationRecordLocked() local 143 conn.provider.connections.remove(conn); in onCleanupApplicationRecordLocked() 144 mService.stopAssociationLocked(mApp.uid, mApp.processName, conn.provider.uid, in onCleanupApplicationRecordLocked() 145 conn.provider.appInfo.longVersionCode, conn.provider.name, in onCleanupApplicationRecordLocked() 146 conn.provider.info.processName); in onCleanupApplicationRecordLocked()
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | SipDelegateConnectionAidlWrapper.java | 175 ISipDelegate conn = getSipDelegateBinder(); in sendMessage() local 176 if (conn == null) { in sendMessage() 181 conn.sendMessage(sipMessage, configVersion); in sendMessage() 191 ISipDelegate conn = getSipDelegateBinder(); in notifyMessageReceived() local 192 if (conn == null) { in notifyMessageReceived() 195 conn.notifyMessageReceived(viaTransactionId); in notifyMessageReceived() 204 ISipDelegate conn = getSipDelegateBinder(); in notifyMessageReceiveError() local 205 if (conn == null) { in notifyMessageReceiveError() 208 conn.notifyMessageReceiveError(viaTransactionId, reason); in notifyMessageReceiveError() 217 ISipDelegate conn = getSipDelegateBinder(); in cleanupSession() local [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContext.java | 233 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() argument 234 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindService() 235 if (checkMocks(service.getComponent(), conn)) return true; in bindService() 236 return super.bindService(service, conn, flags); in bindService() 243 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() argument 245 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindServiceAsUser() 246 if (checkMocks(service.getComponent(), conn)) return true; in bindServiceAsUser() 247 return super.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser() 254 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() argument 256 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindServiceAsUser() [all …]
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | AoapInterface.java | 95 public static int getProtocol(UsbDeviceConnection conn) { in getProtocol() argument 97 int len = conn.controlTransfer( in getProtocol() 106 public static void sendString(UsbDeviceConnection conn, int index, String string) { in sendString() argument 108 int len = conn.controlTransfer( in sendString() 119 public static void sendAoapStart(UsbDeviceConnection conn) { in sendAoapStart() argument 120 int len = conn.controlTransfer( in sendAoapStart()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | SinkActivity.java | 176 UsbDeviceConnection conn = mUsbManager.openDevice(device); in connect() local 177 if (conn == null) { in connect() 183 if (!conn.claimInterface(iface, true)) { in connect() 192 int protocolVersion = getProtocol(conn); in connect() 226 mAccessoryConnection = conn; in connect() 228 mTransport = new UsbAccessoryBulkTransport(mLogger, conn, bulkIn, bulkOut); in connect() 241 int protocolVersion = getProtocol(conn); in connect() 249 sendString(conn, UsbAccessoryConstants.ACCESSORY_STRING_MANUFACTURER, MANUFACTURER); in connect() 250 sendString(conn, UsbAccessoryConstants.ACCESSORY_STRING_MODEL, MODEL); in connect() 251 sendString(conn, UsbAccessoryConstants.ACCESSORY_STRING_DESCRIPTION, DESCRIPTION); in connect() [all …]
|
/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/ |
D | SimpleService.java | 87 final ServiceConnection conn = new ServiceConnection() { in bindToService() local 102 if (getApplicationContext().bindService(intent, conn, BIND_AUTO_CREATE | flags)) { in bindToService() 103 mServiceConnections.put(targetPkg, conn); in bindToService() 113 final ServiceConnection conn = mServiceConnections.remove(targetPkg); in unbindService() local 114 if (conn != null) { in unbindService() 115 getApplicationContext().unbindService(conn); in unbindService()
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
D | BandwidthEnforcementTestService.java | 98 final HttpURLConnection conn = (HttpURLConnection) new URL("http://www.google.com/") in testUrlConnection() local 101 conn.connect(); in testUrlConnection() 103 new InputStreamReader(conn.getInputStream())); in testUrlConnection() 108 conn.disconnect(); in testUrlConnection() 122 final HttpURLConnection conn = (HttpURLConnection) new URL("http://ipv6.google.com/") in testUrlConnectionv6() local 125 conn.connect(); in testUrlConnectionv6() 127 new InputStreamReader(conn.getInputStream())); in testUrlConnectionv6() 132 conn.disconnect(); in testUrlConnectionv6()
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | FrameworkPerfActivity.java | 251 void dispatchCurOp(TestConnection conn) { in dispatchCurOp() argument 252 if (mCurConnection != conn) { in dispatchCurOp() 253 Log.w(TAG, "Dispatching on invalid connection: " + conn); in dispatchCurOp() 285 conn.mService.send(msg); in dispatchCurOp() 327 final TestConnection conn = mCurConnection; in disconnect() local 328 if (conn != null) { in disconnect() 332 Log.i(TAG, "Unbinding " + conn, here); in disconnect() 335 unbindService(conn); in disconnect() 338 if (conn.mLinked) { in disconnect() 341 conn.mService.send(msg); in disconnect() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputBinding.java | 58 public InputBinding(InputConnection conn, IBinder connToken, in InputBinding() argument 60 mConnection = conn; in InputBinding() 73 public InputBinding(InputConnection conn, InputBinding binding) { in InputBinding() argument 74 mConnection = conn; in InputBinding()
|
/frameworks/av/media/libmediaplayerservice/datasource/ |
D | PlayerServiceDataSourceFactory.cpp | 48 sp<MediaHTTPConnection> conn = httpService->makeHTTPConnection(); in CreateMediaHTTP() local 49 if (conn == NULL) { in CreateMediaHTTP() 53 return new PlayerServiceMediaHTTP(conn); in CreateMediaHTTP()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceAdminServiceController.java | 142 final DevicePolicyServiceConnection conn = in startServiceForOwner() local 145 mConnections.put(userId, conn); in startServiceForOwner() 146 conn.bind(); in startServiceForOwner() 169 final DevicePolicyServiceConnection conn = mConnections.get(userId); in disconnectServiceOnUserLocked() local 170 if (conn != null) { in disconnectServiceOnUserLocked() 175 conn.unbind(); in disconnectServiceOnUserLocked()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsAdapterTest.java | 90 assertNotNull(mContext.conn.get()); in onRemoteAdapterConnected_after_metadata_loaded() 198 ServiceConnection conn = mContext.conn.get(); in serviceDisconnected_before_getView() local 200 conn.onServiceDisconnected(null); in serviceDisconnected_before_getView() 243 public final LockedValue<ServiceConnection> conn = new LockedValue<>(); field in RemoteViewsAdapterTest.TestContext 252 public void unbindService(ServiceConnection conn) { in unbindService() argument 266 ServiceConnection conn, Handler handler, int flags) { in getServiceDispatcher() argument 267 this.conn.set(conn); in getServiceDispatcher() 279 ServiceConnection connection = conn.get(); in sendConnect()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 267 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in downloadUrl() local 268 conn.setReadTimeout(10000 /* milliseconds */); in downloadUrl() 269 conn.setConnectTimeout(15000 /* milliseconds */); in downloadUrl() 270 conn.setRequestMethod("GET"); in downloadUrl() 271 conn.setDoInput(true); in downloadUrl() 273 conn.connect(); in downloadUrl() 274 InputStream stream = conn.getInputStream(); in downloadUrl()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 232 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu() 242 if (bindService(intent, conn, Context.BIND_AUTO_CREATE)) { in onCreateOptionsMenu() 243 mConnections.add(conn); in onCreateOptionsMenu() 261 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu() 276 Log.i(TAG, "Binding new service: " + conn); in onCreateOptionsMenu() 277 if (bindService(intent, conn, Context.BIND_AUTO_CREATE)) { in onCreateOptionsMenu() 278 mIsolatedConnection = conn; in onCreateOptionsMenu() 334 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu() 344 if (bindServiceAsUser(intent, conn, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM)) { in onCreateOptionsMenu() 345 mConnections.add(conn); in onCreateOptionsMenu() [all …]
|