Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceController.java61 public void onDestroyed(Connection connection) {
63 remove((TelephonyConnection) connection);
84 void add(TelephonyConnection connection) { in add() argument
85 if (mTelephonyConnections.contains(connection)) { in add()
87 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
90 mTelephonyConnections.add(connection); in add()
91 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add()
95 void remove(TelephonyConnection connection) { in remove() argument
96 if (!mTelephonyConnections.contains(connection)) { in remove()
99 Log.d(this, "remove - connection not tracked; connection=%s", connection); in remove()
[all …]
DTelephonyConference.java54 for (Connection connection : getConnections()) { in onDisconnect()
55 if (disconnectCall(connection)) { in onDisconnect()
67 private boolean disconnectCall(Connection connection) { in disconnectCall() argument
68 Call call = getMultipartyCallForConnection(connection, "onDisconnect"); in disconnectCall()
87 public void onSeparate(Connection connection) { in onSeparate() argument
89 getOriginalConnection(connection); in onSeparate()
114 public void onMerge(Connection connection) { in onMerge() argument
116 Phone phone = ((TelephonyConnection) connection).getPhone(); in onMerge()
130 final TelephonyConnection connection = getFirstConnection(); in onHold() local
131 if (connection != null) { in onHold()
[all …]
DImsConferenceController.java110 public void onDestroyed(Connection connection) {
111 remove(connection);
166 void add(TelephonyConnection connection) { in add() argument
169 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add()
174 if (mTelephonyConnections.contains(connection)) { in add()
176 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
183 Log.v(this, "add connection %s", connection); in add()
186 mTelephonyConnections.add(connection); in add()
187 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add()
197 void remove(Connection connection) { in remove() argument
[all …]
DCdmaConferenceController.java99 void add(final CdmaConnection connection) { in add() argument
100 if (mCdmaConnections.contains(connection) || !mPendingAddConnections.add(connection)) { in add()
102 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
106 if (!mCdmaConnections.isEmpty() && connection.isOutgoingCall()) { in add()
113 connection.forceAsDialing(true); in add()
124 connection.forceAsDialing(false); in add()
125 addInternal(connection); in add()
143 mHandler.post(() -> addInternal(connection)); in add()
147 private void addInternal(CdmaConnection connection) { in addInternal() argument
148 mCdmaConnections.add(connection); in addInternal()
[all …]
DPstnIncomingCallNotifier.java157 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local
158 if (connection != null) { in handleNewRingingConnection()
159 Call call = connection.getCall(); in handleNewRingingConnection()
161 if (connection.getAddress() != null) { in handleNewRingingConnection()
163 .checkIncomingCall(connection.getAddress())) { in handleNewRingingConnection()
167 connection.hangup(); in handleNewRingingConnection()
180 sendIncomingCallIntent(connection); in handleNewRingingConnection()
190 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local
191 if (connection != null) { in handleCdmaCallWaiting()
192 String number = connection.getAddress(); in handleCdmaCallWaiting()
[all …]
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dhfp.py47 self.connection = None
57 self.connection = self.host.WaitConnection(address=pts_addr).connection
89 if not self.connection:
90 self.connection = self.host.Connect(address=pts_addr).connection
93 self.hfp.EnableSlcAsHandsfree(connection=self.connection)
95 self.hfp.EnableSlc(connection=self.connection)
119 self.connection = self.host.Connect(address=pts_addr).connection
134 self.connection = self.host.Connect(address=pts_addr).connection
148 self.hfp.DisableSlcAsHandsfree(connection=self.connection)
150 self.hfp.DisableSlc(connection=self.connection)
[all …]
Dgatt.py89 self.connection = None
115 self.connection = self.host.ConnectLE(own_address_type=RANDOM, public=pts_addr).connection
117 self.gatt.ClearCache(connection=self.connection)
130 assert self.connection is not None
131 self.host.Disconnect(connection=self.connection)
132 self.connection = None
154 assert self.connection is not None
155 self.gatt.ExchangeMTU(mtu=512, connection=self.connection)
167 assert self.connection is not None
171 self.gatt.WriteAttFromHandle(connection=self.connection,\
[all …]
Dl2cap.py36 connection: Optional[Connection] = None variable in L2CAPProxy
45 self.connection = None
85 if self.connection and test == 'L2CAP/LE/CFC/BV-02-C':
88 assert self.connection is None, f"the connection should be None for the first call"
90 self.connection = next(self.advertise).connection
103 …self.l2cap.CreateLECreditBasedChannel(connection=self.connection, psm=psm, secure=secure_connectio…
148 self.l2cap.ListenL2CAPChannel(connection=self.connection, secure=secure_connection)
150 self.l2cap.AcceptL2CAPChannel(connection=self.connection)
174 … self.l2cap.SendData(connection=self.connection, data=bytes(self.LE_DATA_PACKET_LARGE, "utf-8"))
202 connection=self.connection,
[all …]
Davrcp.py39 connection: Optional[Connection] = None variable in AVRCPProxy
65 self.connection = self.host.WaitConnection(address=pts_addr).connection
68 self.source = self.a2dp.WaitSource(connection=self.connection).source
73 self.sink = self.a2dp.WaitSink(connection=self.connection).sink
153 assert self.connection is not None
154 self.host.Disconnect(connection=self.connection)
180 self.connection = self.host.WaitConnection(address=pts_addr).connection
182 self.sink = self.a2dp.WaitSink(connection=self.connection).sink
375 self.connection = self.host.Connect(address=pts_addr).connection
377 self.source = self.a2dp.OpenSource(connection=self.connection).source
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilderTests.java71 HttpURLConnection connection = builder.build(); in testSetConnectTimeout() local
72 assertEquals(8765, connection.getConnectTimeout()); in testSetConnectTimeout()
91 HttpURLConnection connection = builder.build(); in testSetReadTimeout() local
92 assertEquals(8765, connection.getReadTimeout()); in testSetReadTimeout()
100 HttpURLConnection connection = builder.build(); in testAddHeader() local
101 assertEquals("some-random-value", connection.getRequestProperty("some-random-key")); in testAddHeader()
108 HttpURLConnection connection = builder.build(); in testSetUseCache_notSet() local
109 assertFalse(connection.getUseCaches()); in testSetUseCache_notSet()
116 HttpURLConnection connection = builder.build(); in testSetUseCache_false() local
117 connection.setUseCaches(false); in testSetUseCache_false()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/
DHttpClient.java69 HttpsURLConnection connection = createConnection(request); in request() local
72 try (OutputStream out = new DataOutputStream(connection.getOutputStream())) { in request()
94 connection.connect(); // This is to trigger SocketTimeoutException early in request()
95 return getHttpResponse(connection); in request()
98 try (InputStream in = connection.getErrorStream()) { in request()
107 connection.disconnect(); in request()
114 HttpsURLConnection connection; in createConnection() local
118 connection = (HttpsURLConnection) url.openConnection(); in createConnection()
120 connection = (HttpsURLConnection) network.openConnection(url); in createConnection()
125 connection.addRequestProperty(entry.getKey(), entry.getValue()); in createConnection()
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRttCall.java70 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument
71 if (isMyConnection(connection)) { in onNewOutgoingConnection()
73 handleNewConnection(connection); in onNewOutgoingConnection()
77 ThreadUtil.postOnUiThread(connection::setActive); in onNewOutgoingConnection()
82 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument
83 if (isMyConnection(connection)) { in onNewIncomingConnection()
85 handleNewConnection(connection); in onNewIncomingConnection()
93 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument
94 connection.addListener(this); in handleNewConnection()
95 connection.setConnectionProperties( in handleNewConnection()
[all …]
DSimulatorVideoCall.java72 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument
73 if (connection.getExtras().getBoolean(connectionTag)) { in onNewOutgoingConnection()
75 handleNewConnection(connection); in onNewOutgoingConnection()
78 ThreadUtil.postOnUiThread(() -> connection.setActive()); in onNewOutgoingConnection()
83 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument
84 if (connection.getExtras().getBoolean(connectionTag)) { in onNewIncomingConnection()
86 handleNewConnection(connection); in onNewIncomingConnection()
107 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument
108 connection.addListener(this); in handleNewConnection()
109 connection.setConnectionCapabilities( in handleNewConnection()
[all …]
DSimulatorConnectionsBankImpl.java48 public void add(Connection connection) { in add() argument
49 connectionTags.add(SimulatorSimCallManager.getConnectionTag(connection)); in add()
53 public void remove(Connection connection) { in remove() argument
54 connectionTags.remove(SimulatorSimCallManager.getConnectionTag(connection)); in remove()
71 for (Connection connection : connections) { in mergeAllConnections()
72 simulatorConference.addConnection(connection); in mergeAllConnections()
82 for (Connection connection : connections) { in disconnectAllConnections()
83 connection.setDisconnected(new DisconnectCause(DisconnectCause.LOCAL)); in disconnectAllConnections()
91 SimulatorConnection connection = SimulatorSimCallManager.findConnectionByTag(connectionTag); in updateConferenceableConnections() local
93 conferenceables.remove(connection); in updateConferenceableConnections()
[all …]
DSimulatorConnectionService.java86 SimulatorConnection connection = new SimulatorConnection(this, request); in onCreateOutgoingConnection() local
88 simulatorConnectionsBank.add(connection); in onCreateOutgoingConnection()
89 connection.setAddress( in onCreateOutgoingConnection()
94 connection.setDialing(); in onCreateOutgoingConnection()
101 listener.onNewOutgoingConnection(connection); in onCreateOutgoingConnection()
104 connection.setAddress(request.getAddress(), 1); in onCreateOutgoingConnection()
105 Bundle extras = connection.getExtras(); in onCreateOutgoingConnection()
107 connection.putExtras(extras); in onCreateOutgoingConnection()
108 simulatorConnectionsBank.add(connection); in onCreateOutgoingConnection()
109 connection.addListener(new NonSimulatorConnectionListener()); in onCreateOutgoingConnection()
[all …]
DSimulatorVoiceCall.java157 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument
158 if (isMyConnection(connection)) { in onNewOutgoingConnection()
160 handleNewConnection(connection); in onNewOutgoingConnection()
164 ThreadUtil.postOnUiThread(connection::setActive); in onNewOutgoingConnection()
169 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument
170 if (isMyConnection(connection)) { in onNewIncomingConnection()
172 handleNewConnection(connection); in onNewIncomingConnection()
180 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument
181 connection.addListener(this); in handleNewConnection()
182 connection.setConnectionCapabilities( in handleNewConnection()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHfpClientDeviceBlock.java100 HfpClientConnection connection = mConnections.get(callUuid); in onCreateIncomingConnection() local
101 if (connection != null) { in onCreateIncomingConnection()
102 connection.onAdded(); in onCreateIncomingConnection()
103 return connection; in onCreateIncomingConnection()
111 HfpClientConnection connection = buildConnection(null, address); in onCreateOutgoingConnection() local
112 if (connection != null) { in onCreateOutgoingConnection()
113 connection.onAdded(); in onCreateOutgoingConnection()
115 return connection; in onCreateOutgoingConnection()
122 for (HfpClientConnection connection : mConnections.values()) { in onAudioStateChange()
123 connection.setExtras(mScoState); in onAudioStateChange()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedConnectionService.java93 SelfManagedConnection connection = new SelfManagedConnection(mCallList, in createSelfManagedConnection() local
95 connection.setListener(mCallList.getConnectionListener()); in createSelfManagedConnection()
96 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
97 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createSelfManagedConnection()
100 connection.setVideoState(request.getVideoState()); in createSelfManagedConnection()
102 connection.setCallerDisplayName(TEST_NAMES[random.nextInt(TEST_NAMES.length)], in createSelfManagedConnection()
104 connection.setExtras(request.getExtras()); in createSelfManagedConnection()
107 connection.setIsIncomingCallUiShowing(request.shouldShowIncomingCallUi()); in createSelfManagedConnection()
108 connection.setRinging(); in createSelfManagedConnection()
110 connection.setDialing(); in createSelfManagedConnection()
[all …]
DSelfManagedCallListAdapter.java45 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
46 connection.setConnectionDisconnected(DisconnectCause.LOCAL);
47 SelfManagedCallList.getInstance().removeConnection(connection);
58 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
59 connection.setConnectionActive();
71 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
72 connection.setConnectionDisconnected(DisconnectCause.MISSED);
73 SelfManagedCallList.getInstance().removeConnection(connection);
81 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
82 connection.setConnectionHeld();
[all …]
DTestConnectionService.java106 public void onSeparate(Connection connection) { in onSeparate() argument
107 if (getConnections().contains(connection)) { in onSeparate()
108 connection.setConference(null); in onSeparate()
109 removeConnection(connection); in onSeparate()
388 final TestConnection connection =
390 setAddress(connection, handle);
404 connection.setVideoState(originalRequest.getVideoState());
405 addVideoProvider(connection);
406 addCall(connection);
407 connection.startOutgoing();
[all …]
/packages/modules/Bluetooth/android/pandora/test/
Dasha_test.py147 dut_ref, ref_dut = dut_ref_res.connection, ref_dut_res.connection
153 …async def is_device_connected(self, device: PandoraDevice, connection: Connection, timeout: float)…
155 await device.aio.host.WaitDisconnection(connection=connection, timeout=timeout)
174 def le_psm_handler(connection: Connection, data: int) -> None:
184 def read_only_properties_handler(connection: Connection, data: bytes) -> None:
194 def start_command_handler(connection: Connection, data: dict[str, int]) -> None:
204 def stop_command_handler(connection: Connection) -> None:
205 stop_future.set_result(connection)
210 …async def get_audio_data(self, ref_asha: AioAsha, connection: Connection, timeout: int) -> ByteStr…
213 captured_data = ref_asha.CaptureAudio(connection=connection, timeout=timeout)
[all …]
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dgatt.py74 def on_connection(self, connection: BumbleConnection) -> None:
75 self.peers[connection.handle] = Peer(connection) # type: ignore[no-untyped-call]
77 def on_disconnection(self, connection: BumbleConnection) -> None:
78 del self.peers[connection.handle]
82 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
85 connection = self.device.lookup_connection(connection_handle)
86 assert connection
87 peer = self.peers[connection.handle]
96 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
99 connection = self.device.lookup_connection(connection_handle)
[all …]
/packages/modules/Bluetooth/system/gd/hci/facade/
Dacl_manager_facade.cc60 for (auto& connection : acl_connections_) { in ~AclManagerFacadeService() local
61 connection.second.connection_->GetAclQueueEnd()->UnregisterDequeue(); in ~AclManagerFacadeService()
89 auto connection = acl_connections_.find(request->handle()); in Disconnect() local
90 if (connection == acl_connections_.end()) { in Disconnect()
94connection->second.connection_->Disconnect(DisconnectReason::REMOTE_USER_TERMINATED_CONNECTION); in Disconnect()
105 auto connection = acl_connections_.find(request->handle()); in AuthenticationRequested() local
106 if (connection == acl_connections_.end()) { in AuthenticationRequested()
110 connection->second.connection_->AuthenticationRequested(); in AuthenticationRequested()
116 std::map<uint16_t, Connection>::iterator connection; \
122 connection = acl_connections_.find(view.GetConnectionHandle()); \
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapServiceManager.java91 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in isDeviceSupported() local
92 if (connection == null) { in isDeviceSupported()
97 return connection.isDeviceSupported(device) in isDeviceSupported()
111 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in canSwitchDeviceToAoap() local
112 if (connection == null) { in canSwitchDeviceToAoap()
117 return connection.canSwitchDeviceToAoap(device) in canSwitchDeviceToAoap()
127 AoapServiceConnection connection; in getConnectionOrNull() local
129 connection = mConnections.get(name); in getConnectionOrNull()
130 if (connection != null) { in getConnectionOrNull()
131 postponeServiceDisconnection(connection); in getConnectionOrNull()
[all …]
/packages/modules/Bluetooth/android/pandora/server/src/
DL2cap.kt86 val connection = request.connection in listenL2CAPChannel() constant
93 connectionServerSocketMap[connection] = bluetoothServerSocket in listenL2CAPChannel()
105 val connection = request.connection in acceptL2CAPChannel() constant
106 val bluetoothServerSocket = connectionServerSocketMap[connection] in acceptL2CAPChannel()
110 connectionInStreamMap[connection] = bluetoothSocket.getInputStream()!! in acceptL2CAPChannel()
111 connectionOutStreamMap[connection] = bluetoothSocket.getOutputStream()!! in acceptL2CAPChannel()
131 val connection = request.connection in createLECreditBasedChannel() constant
132 val device = request.connection.toBluetoothDevice(bluetoothAdapter) in createLECreditBasedChannel()
143 connectionInStreamMap[connection] = bluetoothSocket.getInputStream()!! in createLECreditBasedChannel()
144 connectionOutStreamMap[connection] = bluetoothSocket.getOutputStream()!! in createLECreditBasedChannel()
[all …]

12345678910>>...14