/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CreateConnectionResponse.java | 25 * A callback for providing the result of creating a connection. 29 void handleCreateConnectionSuccess(CallIdMapper idMapper, ParcelableConnection connection); argument
|
H A D | CreateConnectionProcessor.java | 39 * call. In either case, this class cycles through a set of connection services until: 40 * - a connection service returns a newly created connection in which case the call is displayed 42 * - a connection service cancels the process, in which case the call is aborted 49 // The PhoneAccount describing the target connection service which we will 52 // The PhoneAccount which we will tell the target connection service to use 200 Log.i(this, "Found no connection service for attempt %s", attempt); 276 // If there exists a registered connection manager then use it. 290 // plain PSTN connection services are listed, and nothing else. 323 // Next, add the connection manage 366 handleCreateConnectionSuccess( CallIdMapper idMapper, ParcelableConnection connection) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
H A D | BlockingHttpClient.java | 54 public BlockingHttpClient(HttpURLConnection connection) { argument 55 mConnection = connection;
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | GsmConnection.java | 25 GsmConnection(Connection connection, String telecomCallId) { argument 26 super(connection, telecomCallId); 34 * @return The cloned connection.
|
H A D | CdmaConferenceController.java | 89 /** The CDMA conference connection object. */ 92 void add(final CdmaConnection connection) { argument 93 if (!mCdmaConnections.isEmpty() && connection.isOutgoing()) { 94 // There already exists a connection, so this will probably result in a conference once 95 // it is added. For outgoing connections which are added while another connection 100 connection.forceAsDialing(true); 111 connection.forceAsDialing(false); 112 addInternal(connection); 119 // This is the first connection, or it is incoming, so let it flow through. 120 addInternal(connection); 124 addInternal(CdmaConnection connection) argument 130 remove(CdmaConnection connection) argument [all...] |
H A D | ImsConferenceController.java | 55 * Ims conference controller connection listener. Used to respond to changes in state of the 72 public void onDestroyed(Connection connection) { 73 remove(connection); 102 * @param connectionService The current connection service. 109 * Adds a new connection to the IMS conference controller. 111 * @param connection 113 void add(TelephonyConnection connection) { argument 114 // Note: Wrap in Log.VERBOSE to avoid calling connection.toString if we are not going to be 117 Log.v(this, "add connection %s", connection); 130 remove(Connection connection) argument 269 isMemberOfPeerConference(Connection connection) argument 314 startConference(TelephonyConnection connection) argument [all...] |
H A D | CdmaConference.java | 70 public void onSeparate(Connection connection) { argument 102 final CdmaConnection connection = getFirstConnection(); 103 if (connection != null) { 104 connection.onPlayDtmfTone(c); 106 Log.w(this, "No CDMA connection found while trying to play dtmf tone."); 112 final CdmaConnection connection = getFirstConnection(); 113 if (connection != null) { 114 connection.onStopDtmfTone(); 116 Log.w(this, "No CDMA connection found while trying to stop dtmf tone."); 138 private Call getMultipartyCallForConnection(Connection connection) { argument 186 getOriginalConnection(Connection connection) argument [all...] |
H A D | PstnIncomingCallNotifier.java | 58 /** New ringing connection event code. */ 133 Connection connection = (Connection) asyncResult.result; 134 if (connection != null) { 135 Call call = connection.getCall(); 139 sendIncomingCallIntent(connection); 149 Connection connection = call.getLatestConnection(); 150 if (connection != null) { 151 String number = connection.getAddress(); 153 sendIncomingCallIntent(connection); 165 Connection connection 183 addNewUnknownCall(Connection connection) argument 226 sendIncomingCallIntent(Connection connection) argument [all...] |
H A D | TelephonyConference.java | 50 for (Connection connection : getConnections()) { 51 if (disconnectCall(connection)) { 58 * Disconnect the underlying Telephony Call for a connection. 60 * @param connection The connection. 63 private boolean disconnectCall(Connection connection) { argument 64 Call call = getMultipartyCallForConnection(connection, "onDisconnect"); 80 * @param connection The connection to separate. 83 public void onSeparate(Connection connection) { argument 94 onMerge(Connection connection) argument 144 onConnectionAdded(Connection connection) argument 179 getMultipartyCallForConnection(Connection connection, String tag) argument 191 getOriginalConnection( Connection connection) argument [all...] |
H A D | TelephonyConferenceController.java | 50 Log.v(this, "onStateChange triggered in Conf Controller : connection = "+ c 62 public void onDestroyed(Connection connection) { 63 remove(connection); 77 /** The TelephonyConference connection object. */ 85 void add(TelephonyConnection connection) { argument 86 mTelephonyConnections.add(connection); 87 connection.addConnectionListener(mConnectionListener); 91 void remove(Connection connection) { argument 92 connection.removeConnectionListener(mConnectionListener); 93 mTelephonyConnections.remove(connection); 106 participatesInFullConference(Connection connection) argument [all...] |
H A D | CdmaConnection.java | 64 * {@code True} if the CDMA connection should allow mute. 77 Connection connection, 82 super(connection, telecomCallId); 86 mIsCallWaiting = connection != null && connection.getState() == Call.State.WAITING; 114 Connection connection = getOriginalConnection(); 115 if (connection != null) { 116 switch (connection.getState()) { 144 * @return The cloned connection. 291 * Called when ECM mode is exited; set the connection t 76 CdmaConnection( Connection connection, EmergencyTonePlayer emergencyTonePlayer, boolean allowMute, boolean isOutgoing, String telecomCallId) argument [all...] |
H A D | ImsConference.java | 52 * An IMS conference call consists of a conference host connection and potentially a list of 53 * conference participants. The conference host connection represents the radio connection to the 54 * IMS conference server. Since it is not a connection to any one individual, it is not represented 56 * connection via a conference event package. Conference participant connections do not represent 61 * connection and is responsible for managing the conference participant connections which represent 74 * @param connection The participant which was destroyed. 77 public void onDestroyed(Connection connection) { 79 (ConferenceParticipantConnection) connection; 87 * Listener used to respond to changes to the underlying radio connection fo 405 onSeparate(android.telecom.Connection connection) argument 416 onMerge(android.telecom.Connection connection) argument 480 onConnectionAdded(android.telecom.Connection connection) argument [all...] |
H A D | TelephonyConnectionService.java | 297 final TelephonyConnection connection = 300 if (connection == null) { 306 connection.setAddress(handle, PhoneConstants.PRESENTATION_ALLOWED); 307 connection.setInitializing(); 308 connection.setVideoState(request.getVideoState()); 318 if (connection.getState() == Connection.STATE_DISCONNECTED) { 319 // If the connection has already been disconnected, do nothing. 321 connection.setInitialized(); 322 placeOutgoingConnection(connection, phone, request); 325 connection 505 placeOutgoingConnection( TelephonyConnection connection, Phone phone, ConnectionRequest request) argument 684 removeConnection(Connection connection) argument 698 addConnectionToConferenceController(TelephonyConnection connection) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
H A D | HfpClientConference.java | 57 public void onMerge(Connection connection) { argument 58 Log.d(TAG, "onMerge " + connection); 59 addConnection(connection); 63 public void onSeparate(Connection connection) { argument 64 Log.d(TAG, "onSeparate " + connection); 65 ((HfpClientConnection) connection).enterPrivateMode(); 66 removeConnection(connection); 95 public void onConnectionAdded(Connection connection) { argument 96 Log.d(TAG, "onConnectionAdded " + connection); 97 if (connection [all...] |
/packages/services/Telephony/src/com/android/phone/ |
H A D | CallGatewayManager.java | 39 * proper number to dial. It also saves an association between the connection object and the gateway 100 * This function sets the current mapping from connection to gatewayInfo. 101 * @param connection The connection object for the placed outgoing call. 104 public void setGatewayInfoForConnection(Connection connection, RawGatewayInfo gatewayInfo) { argument 106 mMap.put(connection, gatewayInfo); 108 mMap.remove(connection); 115 public void clearGatewayData(Connection connection) { argument 116 setGatewayInfoForConnection(connection, EMPTY_INFO); 120 * If the parameter matches the connection objec 124 getGatewayInfo(Connection connection) argument [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
H A D | MmsHttpClient.java | 119 HttpURLConnection connection = null; 126 // Now get the connection 127 connection = (HttpURLConnection) url.openConnection(proxy); 128 connection.setDoInput(true); 129 connection.setConnectTimeout( 134 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); 136 connection.setRequestProperty( 140 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); 147 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); 150 addExtraHeaders(connection, mmsConfi 346 addExtraHeaders(HttpURLConnection connection, Bundle mmsConfig) argument [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
H A D | MmsHttpClient.java | 117 HttpURLConnection connection = null; 126 // Now get the connection 127 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); 128 connection.setDoInput(true); 129 connection.setConnectTimeout( 133 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); 135 connection.setRequestProperty( 140 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); 147 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); 150 addExtraHeaders(connection, mmsConfi 343 addExtraHeaders(HttpURLConnection connection, Bundle mmsConfig, int subId) argument [all...] |
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | TestConnectionService.java | 106 public void onSeparate(Connection connection) { argument 107 if (getConnections().contains(connection)) { 108 connection.setConference(null); 109 removeConnection(connection); 110 connection.removeConnectionListener(mConnectionListener); 134 /** Used to cleanup camera and media when done with connection. */ 312 final TestConnection connection = new TestConnection(false /* isIncoming */); 313 setAddress(connection, handle); 316 // use a remote connection service. 327 connection 423 addVideoProvider(TestConnection connection) argument 432 activateCall(TestConnection connection) argument 441 destroyCall(TestConnection connection) argument 458 addCall(TestConnection connection) argument 478 setAddress(Connection connection, Uri address) argument [all...] |
H A D | TestVideoProvider.java | 77 public TestVideoProvider(Context context, TestConnection connection) { argument 78 mConnection = connection; 187 log("Requested connection data usage");
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
H A D | SipConnection.java | 62 void initialize(com.android.internal.telephony.Connection connection) { argument 63 if (VERBOSE) log("init SipConnection, connection: " + connection); 64 mOriginalConnection = connection; 293 * Updates the handle on this connection based on the original connection.
|
/packages/services/Telephony/src/com/android/phone/common/mail/store/ |
H A D | ImapFolder.java | 103 // Make sure the connection is valid. 115 // Return the connection to the pool, if exists. 139 // Don't cache this connection, so we're forced to try connecting/login again 790 private MessagingException ioExceptionHandler(ImapConnection connection, IOException ioe) { argument 792 connection.close(); 793 if (connection == mConnection) { 794 mConnection = null; // To prevent close() from returning the connection to the pool.
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
H A D | ImapFolder.java | 106 // Make sure the connection is valid. 118 // Return the connection to the pool, if exists. 142 // Don't cache this connection, so we're forced to try connecting/login again 186 * so we must get the connection ourselves if it's not there. We are specifically 189 ImapConnection connection = null; 192 connection = mStore.getConnection(); 194 connection = mConnection; 198 connection.executeSimpleCommand(String.format(Locale.US, 212 throw ioExceptionHandler(connection, ioe); 215 connection 1267 ioExceptionHandler(ImapConnection connection, IOException ioe) argument [all...] |
H A D | ImapStore.java | 419 // TODO: There is nothing that ever closes this connection. Trouble is, it's not exactly 422 ImapConnection connection = getConnection(); 425 // Establish a connection to the IMAP server; if necessary 427 connection.executeSimpleCommand(ImapConstants.NOOP); 432 List<ImapResponse> responses = connection.executeSimpleCommand(imapCommand); 469 connection.close(); 472 // We do NOT want this connection pooled, or we will continue to send NOOP and SELECT 474 connection.destroyResponses(); 475 connection = null; 478 if (connection ! 579 poolConnection(ImapConnection connection) argument [all...] |
/packages/apps/Nfc/nci/jni/ |
H A D | PeerToPeer.cpp | 127 ** Description: Find a PeerToPeer object by connection handle. 154 ** Description: Find a PeerToPeer object by connection handle. 205 ** Description: Let a server start listening for peer's connection request. 524 ** Description: Create a P2pClient object for a new out-bound connection. 586 ** Description: Free resources related to a connection. 597 // If the connection is a for a client, delete the client itself 611 // If the connection is for a server, just delete the connection 630 ** Description: Establish a connection-oriented connection t 1687 sp<NfaConn> connection = allocateConnection(connJniHandle); local [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | ComponentContextFixture.java | 125 ServiceConnection connection, 129 return bindService(serviceIntent, connection, flags); 135 ServiceConnection connection, 137 if (mServiceByServiceConnection.containsKey(connection)) { 138 throw new RuntimeException("ServiceConnection already bound: " + connection); 145 mServiceByServiceConnection.put(connection, service); 146 connection.onServiceConnected(serviceIntent.getComponent(), service.asBinder()); 152 ServiceConnection connection) { 153 IInterface service = mServiceByServiceConnection.remove(connection); 155 throw new RuntimeException("ServiceConnection not found: " + connection); 123 bindServiceAsUser( Intent serviceIntent, ServiceConnection connection, int flags, UserHandle userHandle) argument 133 bindService( Intent serviceIntent, ServiceConnection connection, int flags) argument 151 unbindService( ServiceConnection connection) argument [all...] |