Home
last modified time | relevance | path

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

123456

/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.java149 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local
150 if (connection != null) { in handleNewRingingConnection()
151 Call call = connection.getCall(); in handleNewRingingConnection()
153 if (connection.getAddress() != null) { in handleNewRingingConnection()
155 .checkIncomingCall(connection.getAddress())) { in handleNewRingingConnection()
159 connection.hangup(); in handleNewRingingConnection()
172 sendIncomingCallIntent(connection); in handleNewRingingConnection()
182 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local
183 if (connection != null) { in handleCdmaCallWaiting()
184 String number = connection.getAddress(); in handleCdmaCallWaiting()
[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 …]
DTelephonyConnectionService.java121 Connection connection) {
123 .addExistingConnection(phoneAccountHandle, connection);
127 Connection connection, Conference conference) {
129 .addExistingConnection(phoneAccountHandle, connection, conference);
132 public void addConnectionToConferenceController(TelephonyConnection connection) {
133 TelephonyConnectionService.this.addConnectionToConferenceController(connection);
478 public void onConferenceMembershipChanged(Connection connection) {
479 mHoldTracker.updateHoldCapability(connection.getPhoneAccountHandle());
556 TelephonyConnection connection = (TelephonyConnection)conn; in prepareConference() local
559 mTelephonyConnectionServiceProxy, connection, in prepareConference()
[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.java99 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection() local
100 if (connection != null) { in onCreateIncomingConnection()
101 connection.onAdded(); in onCreateIncomingConnection()
102 return connection; in onCreateIncomingConnection()
110 HfpClientConnection connection = buildConnection(null, address); in onCreateOutgoingConnection() local
111 if (connection != null) { in onCreateOutgoingConnection()
112 connection.onAdded(); in onCreateOutgoingConnection()
114 return connection; in onCreateOutgoingConnection()
123 for (HfpClientConnection connection : mConnections.values()) { in onAudioStateChange()
124 connection.setExtras(mScoState); in onAudioStateChange()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
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 …]
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.java45 public void onStateChanged(RemoteConnection connection, int state) {
51 RemoteConnection connection, DisconnectCause disconnectCause) {
57 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {
62 public void onConnectionCapabilitiesChanged(RemoteConnection connection,
68 public void onConnectionPropertiesChanged(RemoteConnection connection,
74 public void onPostDialWait(RemoteConnection connection, String remainingDigits) {
79 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {
84 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {
89 public void onVideoStateChanged(RemoteConnection connection, int videoState) {
91 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.java90 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in isDeviceSupported() local
91 if (connection == null) { in isDeviceSupported()
96 return connection.isDeviceSupported(device) in isDeviceSupported()
110 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in canSwitchDeviceToAoap() local
111 if (connection == null) { in canSwitchDeviceToAoap()
116 return connection.canSwitchDeviceToAoap(device) in canSwitchDeviceToAoap()
126 AoapServiceConnection connection; in getConnectionOrNull() local
128 connection = mConnections.get(name); in getConnectionOrNull()
129 if (connection != null) { in getConnectionOrNull()
130 postponeServiceDisconnection(connection); in getConnectionOrNull()
[all …]
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureTransfer.java238 HttpURLConnection connection = in prepareInitialPost() local
240 connection.setRequestMethod("POST"); in prepareInitialPost()
241 connection.setInstanceFollowRedirects(false); in prepareInitialPost()
242 connection.setConnectTimeout(HTTP_TIMEOUT_MILLIS); in prepareInitialPost()
243 connection.setReadTimeout(HTTP_TIMEOUT_MILLIS); in prepareInitialPost()
244 connection.setRequestProperty("User-Agent", getUserAgent()); in prepareInitialPost()
245 return connection; in prepareInitialPost()
257 HttpURLConnection connection = in prepareImageDownloadRequest() local
259 connection.setRequestMethod("GET"); in prepareImageDownloadRequest()
260 connection.setConnectTimeout(HTTP_TIMEOUT_MILLIS); in prepareImageDownloadRequest()
[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/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/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/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 …]

123456