Home
last modified time | relevance | path

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

12345

/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceController.java59 public void onDestroyed(Connection connection) {
61 remove((TelephonyConnection) connection);
82 void add(TelephonyConnection connection) { in add() argument
83 if (mTelephonyConnections.contains(connection)) { in add()
85 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
88 mTelephonyConnections.add(connection); in add()
89 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add()
93 void remove(TelephonyConnection connection) { in remove() argument
94 if (!mTelephonyConnections.contains(connection)) { in remove()
97 Log.d(this, "remove - connection not tracked; connection=%s", connection); in remove()
[all …]
DImsConferenceController.java101 public void onDestroyed(Connection connection) {
102 remove(connection);
157 void add(TelephonyConnection connection) { in add() argument
160 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add()
165 if (mTelephonyConnections.contains(connection)) { in add()
167 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
174 Log.v(this, "add connection %s", connection); in add()
177 mTelephonyConnections.add(connection); in add()
178 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add()
188 void remove(Connection connection) { in remove() argument
[all …]
DTelephonyConference.java53 for (Connection connection : getConnections()) { in onDisconnect()
54 if (disconnectCall(connection)) { in onDisconnect()
66 private boolean disconnectCall(Connection connection) { in disconnectCall() argument
67 Call call = getMultipartyCallForConnection(connection, "onDisconnect"); in disconnectCall()
86 public void onSeparate(Connection connection) { in onSeparate() argument
88 getOriginalConnection(connection); in onSeparate()
113 public void onMerge(Connection connection) { in onMerge() argument
115 Phone phone = ((TelephonyConnection) connection).getPhone(); in onMerge()
129 final TelephonyConnection connection = getFirstConnection(); in onHold() local
130 if (connection != null) { in onHold()
[all …]
DPstnIncomingCallNotifier.java140 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local
141 if (connection != null) { in handleNewRingingConnection()
142 Call call = connection.getCall(); in handleNewRingingConnection()
144 if (connection.getAddress() != null) { in handleNewRingingConnection()
146 .checkIncomingCall(connection.getAddress())) { in handleNewRingingConnection()
150 connection.hangup(); in handleNewRingingConnection()
163 sendIncomingCallIntent(connection); in handleNewRingingConnection()
173 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local
174 if (connection != null) { in handleCdmaCallWaiting()
175 String number = connection.getAddress(); in handleCdmaCallWaiting()
[all …]
DTelephonyConnectionService.java114 Connection connection) {
116 .addExistingConnection(phoneAccountHandle, connection);
120 Connection connection, Conference conference) {
122 .addExistingConnection(phoneAccountHandle, connection, conference);
125 public void addConnectionToConferenceController(TelephonyConnection connection) {
126 TelephonyConnectionService.this.addConnectionToConferenceController(connection);
499 public void onConferenceMembershipChanged(Connection connection) {
500 mHoldTracker.updateHoldCapability(connection.getPhoneAccountHandle());
582 TelephonyConnection connection = (TelephonyConnection)conn; in prepareConference() local
585 mTelephonyConnectionServiceProxy, connection, in prepareConference()
[all …]
DCdmaConferenceController.java93 void add(final CdmaConnection connection) { in add() argument
94 if (mCdmaConnections.contains(connection)) { in add()
96 Log.w(this, "add - connection already tracked; connection=%s", connection); in add()
100 if (!mCdmaConnections.isEmpty() && connection.isOutgoingCall()) { in add()
107 connection.forceAsDialing(true); in add()
118 connection.forceAsDialing(false); in add()
119 addInternal(connection); in add()
137 mHandler.post(() -> addInternal(connection)); in add()
141 private void addInternal(CdmaConnection connection) { in addInternal() argument
142 mCdmaConnections.add(connection); in addInternal()
[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/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientDeviceBlock.java91 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection() local
92 if (connection != null) { in onCreateIncomingConnection()
93 connection.onAdded(); in onCreateIncomingConnection()
94 return connection; in onCreateIncomingConnection()
102 HfpClientConnection connection = buildConnection(null, address); in onCreateOutgoingConnection() local
103 if (connection != null) { in onCreateOutgoingConnection()
104 connection.onAdded(); in onCreateOutgoingConnection()
106 return connection; in onCreateOutgoingConnection()
111 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateUnknownConnection() local
113 if (connection != null) { in onCreateUnknownConnection()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java107 public void onSeparate(Connection connection) { in onSeparate() argument
108 if (getConnections().contains(connection)) { in onSeparate()
109 connection.setConference(null); in onSeparate()
110 removeConnection(connection); in onSeparate()
389 final TestConnection connection =
391 setAddress(connection, handle);
405 connection.setVideoState(originalRequest.getVideoState());
406 addVideoProvider(connection);
407 addCall(connection);
408 connection.startOutgoing();
[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 …]
DSelfManagedConnectionService.java92 SelfManagedConnection connection = new SelfManagedConnection(mCallList, in createSelfManagedConnection() local
94 connection.setListener(mCallList.getConnectionListener()); in createSelfManagedConnection()
95 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
96 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createSelfManagedConnection()
99 connection.setVideoState(request.getVideoState()); in createSelfManagedConnection()
101 connection.setCallerDisplayName(TEST_NAMES[random.nextInt(TEST_NAMES.length)], in createSelfManagedConnection()
103 connection.setExtras(request.getExtras()); in createSelfManagedConnection()
105 connection.setIsIncomingCallUiShowing(request.shouldShowIncomingCallUi()); in createSelfManagedConnection()
106 connection.setRinging(); in createSelfManagedConnection()
108 connection.setDialing(); in createSelfManagedConnection()
[all …]
DTestConnectionManager.java46 public void onStateChanged(RemoteConnection connection, int state) {
52 RemoteConnection connection, DisconnectCause disconnectCause) {
58 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {
63 public void onConnectionCapabilitiesChanged(RemoteConnection connection,
69 public void onConnectionPropertiesChanged(RemoteConnection connection,
75 public void onPostDialWait(RemoteConnection connection, String remainingDigits) {
80 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {
85 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {
90 public void onVideoStateChanged(RemoteConnection connection, int videoState) {
92 setVideoProvider(new TestManagedVideoProvider(connection.getVideoProvider()));
[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 …]
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 …]
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 …]
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 …]
DSimulatorConferenceCreator.java110 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument
114 if (!simulatorConnectionsBank.isSimulatorConnection(connection)) { in onNewIncomingConnection()
119 connection.addListener(this); in onNewIncomingConnection()
123 connection.setActive(); in onNewIncomingConnection()
124 addNextCall(getCallCount(connection), shouldReconnect(connection)); in onNewIncomingConnection()
130 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) {} in onNewOutgoingConnection() argument
161 private static int getCallCount(@NonNull Connection connection) { in getCallCount() argument
162 return connection.getExtras().getInt(EXTRA_CALL_COUNT); in getCallCount()
165 private static boolean shouldReconnect(@NonNull Connection connection) { in shouldReconnect() argument
166 return connection.getExtras().getBoolean(RECONNECT); in shouldReconnect()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapServiceManager.java92 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in isDeviceSupported() local
93 if (connection == null) { in isDeviceSupported()
98 return connection.isDeviceSupported(device) in isDeviceSupported()
112 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in canSwitchDeviceToAoap() local
113 if (connection == null) { in canSwitchDeviceToAoap()
118 return connection.canSwitchDeviceToAoap(device) in canSwitchDeviceToAoap()
128 AoapServiceConnection connection; in getConnectionOrNull() local
130 connection = mConnections.get(name); in getConnectionOrNull()
131 if (connection != null) { in getConnectionOrNull()
132 postponeServiceDisconnection(connection); in getConnectionOrNull()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java126 HttpURLConnection connection = null; in execute() local
136 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute()
137 connection.setDoInput(true); in execute()
138 connection.setConnectTimeout( in execute()
140 connection.setReadTimeout( in execute()
144 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute()
146 connection.setRequestProperty( in execute()
151 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute()
165 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute()
173 connection.setRequestProperty(HEADER_CONNECTION, HEADER_CONNECTION_CLOSE); in execute()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DNetworkUriImageRequest.java57 HttpURLConnection connection = null; in isGif() local
60 connection = (HttpURLConnection) url.openConnection(); in isGif()
61 connection.connect(); in isGif()
62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in isGif()
63 return ContentType.IMAGE_GIF.equalsIgnoreCase(connection.getContentType()); in isGif()
74 if (connection != null) { in isGif()
75 connection.disconnect(); in isGif()
88 HttpURLConnection connection = null; in loadBitmapInternal() local
91 connection = (HttpURLConnection) url.openConnection(); in loadBitmapInternal()
92 connection.setDoInput(true); in loadBitmapInternal()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java119 HttpURLConnection connection = null; in execute() local
127 connection = (HttpURLConnection) url.openConnection(proxy); in execute()
128 connection.setDoInput(true); in execute()
129 connection.setConnectTimeout( in execute()
134 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute()
136 connection.setRequestProperty( in execute()
140 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute()
147 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute()
150 addExtraHeaders(connection, mmsConfig); in execute()
157 connection.setDoOutput(true); in execute()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java121 HttpURLConnection connection = null; in getOrPost() local
127 connection = (HttpURLConnection) url.openConnection(); in getOrPost()
128 headers.apply(connection); in getOrPost()
131 connection.setDoOutput(true); in getOrPost()
132 connection.setFixedLengthStreamingMode(data.length); in getOrPost()
134 outputStream = connection.getOutputStream(); in getOrPost()
136 checkResponseCode(connection); in getOrPost()
139 checkResponseCode(connection); in getOrPost()
140 inputStream = connection.getInputStream(); in getOrPost()
145 disconnect(connection); in getOrPost()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallExtrasTest.java88 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutExtras() local
89 connection.putExtras(extras); in testCsPutExtras()
110 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutBooleanExtra() local
114 connection.putExtras(newExtras); in testCsPutBooleanExtra()
135 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutIntExtra() local
138 connection.putExtras(newExtras); in testCsPutIntExtra()
159 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutStringExtra() local
162 connection.putExtras(newExtras); in testCsPutStringExtra()
185 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsRemoveExtra() local
189 connection.putExtras(newExtras); in testCsRemoveExtra()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilder.java203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); in build() local
204 connection.setConnectTimeout(mConnectTimeoutMillis); in build()
205 connection.setReadTimeout(mReadTimeoutMillis); in build()
206 connection.setUseCaches(mUseCache); in build()
209 connection.setDoInput(true); in build()
210 connection.setDoOutput(false); in build()
213 connection.setDoInput(false); in build()
214 connection.setDoOutput(true); in build()
217 connection.setDoInput(true); in build()
218 connection.setDoOutput(true); in build()
[all …]

12345