Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPersistentConnectionTest.java121 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/
DVoiceCallSessionStats.java190 for (Connection conn : connections) { in onRilAcceptCall()
191 acceptCall(conn); in onRilAcceptCall()
196 public synchronized void onRilDial(Connection conn) { in onRilDial() argument
197 addCall(conn); in onRilDial()
204 for (Connection conn : connections) { in onRilCallListChanged()
205 int id = getConnectionId(conn); in onRilCallListChanged()
208 if (conn.getDisconnectCause() == DisconnectCause.NOT_DISCONNECTED) { in onRilCallListChanged()
209 addCall(conn); in onRilCallListChanged()
210 checkCallSetup(conn, mCallProtos.get(id)); in onRilCallListChanged()
220 checkCallSetup(conn, proto); in onRilCallListChanged()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCall.java76 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()
DGsmCdmaCallTracker.java278 for (Connection conn : connCopy) { in fakeHoldForegroundBeforeDial()
279 GsmCdmaConnection gsmCdmaConn = (GsmCdmaConnection) conn; in fakeHoldForegroundBeforeDial()
880 GsmCdmaConnection conn = mConnections[i]; in handlePollCalls() local
895 if (conn != null || dc != null) { in handlePollCalls()
900 conn+", dc=" + dc); in handlePollCalls()
902 if (conn == null && dc != null) { in handlePollCalls()
993 } else if (conn != null && dc == null) { in handlePollCalls()
997 mDroppedDuringPoll.add(conn); in handlePollCalls()
1031 } else if (conn != null && dc != null && !conn.compareTo(dc) && isPhoneTypeGsm()) { in handlePollCalls()
1035 mDroppedDuringPoll.add(conn); in handlePollCalls()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionParameterizedTest.kt135 private fun TestScope.startCollection(conn: DemoMobileConnectionRepository): Job { in TestScope()
137 launch { conn.cdmaLevel.collect {} } in TestScope()
138 launch { conn.primaryLevel.collect {} } in TestScope()
139 launch { conn.dataActivityDirection.collect {} } in TestScope()
140 launch { conn.carrierNetworkChangeActive.collect {} } in TestScope()
141 launch { conn.isRoaming.collect {} } in TestScope()
142 launch { conn.networkName.collect {} } in TestScope()
143 launch { conn.carrierName.collect {} } in TestScope()
144 launch { conn.isEmergencyOnly.collect {} } in TestScope()
145 launch { conn.dataConnectionState.collect {} } in TestScope()
[all …]
DDemoMobileConnectionsRepositoryTest.kt544 private fun TestScope.startCollection(conn: DemoMobileConnectionRepository): Job { in <lambda>()
546 launch { conn.cdmaLevel.collect {} } in <lambda>()
547 launch { conn.primaryLevel.collect {} } in <lambda>()
548 launch { conn.dataActivityDirection.collect {} } in <lambda>()
549 launch { conn.carrierNetworkChangeActive.collect {} } in <lambda>()
550 launch { conn.isRoaming.collect {} } in <lambda>()
551 launch { conn.networkName.collect {} } in <lambda>()
552 launch { conn.carrierName.collect {} } in <lambda>()
553 launch { conn.isEmergencyOnly.collect {} } in <lambda>()
554 launch { conn.dataConnectionState.collect {} } in <lambda>()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/
DDomainSelectionControllerTest.java116 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in setUp()
117 return mMockContext.bindService(service, conn, flags); in setUp()
121 public void unbindService(ServiceConnection conn) { in setUp()
122 mMockContext.unbindService(conn); in setUp()
185 ServiceConnection conn = bindAndConnectService(); in testBindServiceAndConnectedDisconnectedUnbind() local
187 conn.onServiceDisconnected(mTestComponentName); in testBindServiceAndConnectedDisconnectedUnbind()
193 verify(mMockContext).unbindService(eq(conn)); in testBindServiceAndConnectedDisconnectedUnbind()
203 ServiceConnection conn = bindAndConnectService(); in testBindServiceBindUnbind() local
207 verify(mMockContext).unbindService(eq(conn)); in testBindServiceBindUnbind()
216 ServiceConnection conn = bindAndConnectService(); in testBindServiceAndBinderDied() local
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaHTTPConnection.cpp85 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/
DAppBindingService.java349 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/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java303 ImsPhoneConnection conn = new ImsPhoneConnection(mPhone, imsCall, in processIncomingCall() local
319 conn.setActiveCallDisconnectedOnAnswer(answeringWillDisconnect); in processIncomingCall()
322 conn.setAllowAddCallDuringVideoCall(mAllowAddCallDuringVideoCall); in processIncomingCall()
323 conn.setAllowHoldingVideoCall(mAllowHoldingVideoCall); in processIncomingCall()
335 conn.getState()); in processIncomingCall()
337 conn.setDisconnectCause(cause); in processIncomingCall()
348 + System.identityHashCode(conn)); in processIncomingCall()
350 addConnection(conn); in processIncomingCall()
352 setVideoCallProvider(conn, imsCall); in processIncomingCall()
356 mPhone.getVoiceCallSessionStats().onImsCallReceived(conn); in processIncomingCall()
[all …]
DImsPhoneCall.java87 for (Connection conn : connections) { in dispose()
88 conn.onDisconnect(DisconnectCause.LOST_SIGNAL); in dispose()
146 for (Connection conn : connections) { in toString()
147 sb.append(conn); in toString()
169 public void attach(Connection conn) { in attach() argument
171 Rlog.v(LOG_TAG, "attach : " + mCallContext + " conn = " + conn); in attach()
174 addConnection(conn); in attach()
180 public void attach(Connection conn, State state) { in attach() argument
185 this.attach(conn); in attach()
190 public void attachFake(Connection conn, State state) { in attachFake() argument
[all …]
/frameworks/base/telephony/java/android/telephony/ims/aidl/
DSipDelegateConnectionAidlWrapper.java175 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/services/core/java/com/android/server/am/
DContentProviderHelper.java176 ContentProviderConnection conn = null; in getContentProviderImpl() local
320 conn = incProviderCountLocked(r, cpr, token, callingUid, callingPackage, in getContentProviderImpl()
355 boolean lastRef = decProviderCountLocked(conn, cpr, token, stable, in getContentProviderImpl()
364 conn = null; in getContentProviderImpl()
608 conn = incProviderCountLocked(r, cpr, token, callingUid, callingPackage, callingTag, in getContentProviderImpl()
610 if (conn != null) { in getContentProviderImpl()
611 conn.waiting = true; in getContentProviderImpl()
635 if (conn != null) { in getContentProviderImpl()
636 conn.waiting = true; in getContentProviderImpl()
648 return cpr.newHolder(conn, false); in getContentProviderImpl()
[all …]
DContentProviderRecord.java89 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 …]
DProcessProviderRecord.java142 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/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DAoapInterface.java95 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/testables/src/android/testing/
DTestableContext.java286 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() argument
287 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindService()
288 if (checkMocks(service, conn)) return true; in bindService()
289 return super.bindService(service, conn, flags); in bindService()
296 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() argument
298 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindServiceAsUser()
299 if (checkMocks(service, conn)) return true; in bindServiceAsUser()
300 return super.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
307 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() argument
309 if (mService != null) mService.getLeakInfo(conn).addAllocation(new Throwable()); in bindServiceAsUser()
[all …]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java176 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/native/libs/binder/rust/rpcbinder/src/server/
Dtrusty.rs127 let mut conn = RpcServerConnection { ctx: std::ptr::null_mut() }; in on_connect() localVariable
133 &mut conn.ctx, in on_connect()
139 Ok(ConnectResult::Accept(conn)) in on_connect()
145 conn: &Self::Connection, in on_message()
150 let rc = unsafe { binder_rpc_server_bindgen::ARpcServerTrusty_handleMessage(conn.ctx) }; in on_message()
158 fn on_disconnect(&self, conn: &Self::Connection) { in on_disconnect()
159 unsafe { binder_rpc_server_bindgen::ARpcServerTrusty_handleDisconnect(conn.ctx) }; in on_disconnect()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java98 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/
DFrameworkPerfActivity.java251 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/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
DSimpleService.java95 final ServiceConnection conn = new ServiceConnection() { in bindToService() local
110 if (getApplicationContext().bindService(intent, conn, BIND_AUTO_CREATE | flags)) { in bindToService()
111 mServiceConnections.put(targetPkg, conn); in bindToService()
121 final ServiceConnection conn = mServiceConnections.remove(targetPkg); in unbindService() local
122 if (conn != null) { in unbindService()
123 getApplicationContext().unbindService(conn); in unbindService()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DCloseShadeRightAfterClickTestB339290820.kt176 conn: ServiceConnection, in bindServiceAsUser()
180 executor.execute { super.bindServiceAsUser(service, conn, flags, user) } in bindServiceAsUser()
186 conn: ServiceConnection, in bindServiceAsUser()
190 executor.execute { super.bindServiceAsUser(service, conn, flags, user) } in bindServiceAsUser()
196 conn: ServiceConnection?, in bindServiceAsUser()
201 executor.execute { super.bindServiceAsUser(service, conn, flags, handler, user) } in bindServiceAsUser()
207 conn: ServiceConnection, in bindServiceAsUser()
212 executor.execute { super.bindServiceAsUser(service, conn, flags, handler, user) } in bindServiceAsUser()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDeviceAdminServiceController.java147 final DevicePolicyServiceConnection conn = in startServiceForAdmin() local
153 mConnections.get(userId).put(packageName, conn); in startServiceForAdmin()
154 conn.bind(); in startServiceForAdmin()
193 final DevicePolicyServiceConnection conn = mConnections.contains(userId) in disconnectServiceOnUserLocked() local
195 if (conn != null) { in disconnectServiceOnUserLocked()
202 conn.unbind(); in disconnectServiceOnUserLocked()
216 DevicePolicyServiceConnection conn = mConnections.get(userId).get(packageName); in disconnectServiceOnUserLocked() local
224 conn.unbind(); in disconnectServiceOnUserLocked()
/frameworks/base/core/java/android/view/inputmethod/
DInputBinding.java60 public InputBinding(InputConnection conn, IBinder connToken, in InputBinding() argument
62 mConnection = conn; in InputBinding()
75 public InputBinding(InputConnection conn, InputBinding binding) { in InputBinding() argument
76 mConnection = conn; in InputBinding()

12345