Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 335) 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.java173 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local
174 if (connection != null) { in handleNewRingingConnection()
175 Call call = connection.getCall(); in handleNewRingingConnection()
177 if (connection.getAddress() != null) { in handleNewRingingConnection()
179 .checkIncomingCall(connection.getAddress(), getNetworkCountryIso())) { in handleNewRingingConnection()
183 connection.hangup(); in handleNewRingingConnection()
196 sendIncomingCallIntent(connection); in handleNewRingingConnection()
206 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local
207 if (connection != null) { in handleCdmaCallWaiting()
208 String number = connection.getAddress(); in handleCdmaCallWaiting()
[all …]
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dvcp.py45 self.connection = None
63 self.connection = self.host.ConnectLE(own_address_type=RANDOM, public=pts_addr).connection
66 self.security.Secure(connection=self.connection, le=LE_LEVEL3)
69 self.vcp.WaitConnect(connection=self.connection)
104 self.gatt.ClearCache(connection=self.connection)
122 connection=self.connection, handle=int(handle, base=16))
162 self.vcp.SetDeviceVolume(connection=self.connection, volume=42)
168 self.vcp.SetDeviceVolume(connection=self.connection, volume=42)
171 self.vcp.SetVolumeOffset(connection=self.connection, offset=42)
174 self.vcp.SetGainSetting(connection=self.connection, gainSetting=42)
[all …]
Dhfp.py46 self.connection = None
56 self.connection = self.host.WaitConnection(address=pts_addr).connection
88 if not self.connection:
89 self.connection = self.host.Connect(address=pts_addr).connection
92 self.hfp.EnableSlcAsHandsfree(connection=self.connection)
94 self.hfp.EnableSlc(connection=self.connection)
118 self.connection = self.host.Connect(address=pts_addr).connection
133 self.connection = self.host.Connect(address=pts_addr).connection
147 self.hfp.DisableSlcAsHandsfree(connection=self.connection)
149 self.hfp.DisableSlc(connection=self.connection)
[all …]
Dgatt.py70 self.connection = None
96 self.connection = self.host.ConnectLE(own_address_type=RANDOM, public=pts_addr).connection
98 self.gatt.ClearCache(connection=self.connection)
111 assert self.connection is not None
112 self.host.Disconnect(connection=self.connection)
113 self.connection = None
135 assert self.connection is not None
136 self.gatt.ExchangeMTU(mtu=512, connection=self.connection)
148 assert self.connection is not None
152 self.gatt.WriteAttFromHandle(connection=self.connection,\
[all …]
Dhap.py61 self.connection = None
80 assert self.connection is not None
81 self.gatt.ExchangeMTU(mtu=512, connection=self.connection)
90 assert self.connection is not None
100 self.hap.WritePresetName(connection=self.connection, index=int(index), name=preset_name)
110 assert self.connection is not None
115 responseMessage = self.hap.GetAllPresetRecords(connection=self.connection)
151 assert self.connection is not None
157 responseMessage = self.hap.GetPresetRecord(connection=self.connection, index=int(index))
183 self.hap.SetActivePreset(connection=self.connection, index=int(index))
[all …]
Davrcp.py38 connection: Optional[Connection] = None variable in AVRCPProxy
64 self.connection = self.host.WaitConnection(address=pts_addr).connection
67 self.source = self.a2dp.WaitSource(connection=self.connection).source
72 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/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/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/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 …]
Dsdp_test.py82 assert_is_not_none(ref_dut_res.connection)
83 assert_is_not_none(dut_ref_res.connection)
84 ref_dut, dut_ref = ref_dut_res.connection, dut_ref_res.connection
89 connection = self.ref.device.lookup_connection(connection_handle) # type: ignore
93 sdp_client = SdpClient(connection) # type: ignore
99 await self.ref.aio.host.Disconnect(connection=ref_dut)
111 assert_is_not_none(ref_dut_res.connection)
112 assert_is_not_none(dut_ref_res.connection)
113 ref_dut, dut_ref = ref_dut_res.connection, dut_ref_res.connection
118 connection = self.ref.device.lookup_connection(connection_handle) # type: ignore
[all …]
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dgatt.py77 def on_connection(self, connection: BumbleConnection) -> None:
78 self.peers[connection.handle] = Peer(connection) # type: ignore[no-untyped-call]
80 def on_disconnection(self, connection: BumbleConnection) -> None:
81 del self.peers[connection.handle]
85 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
88 connection = self.device.lookup_connection(connection_handle)
89 assert connection
90 peer = self.peers[connection.handle]
99 connection_handle = int.from_bytes(request.connection.cookie.value, 'big')
102 connection = self.device.lookup_connection(connection_handle)
[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 …]

12345678910>>...14