/packages/apps/TV/src/com/android/tv/util/ |
H A D | NetworkUtils.java | 36 * Checks if the internet connection is available. 46 HttpURLConnection connection = null; 48 connection = (HttpURLConnection) new URL(GENERATE_204).openConnection(); 49 connection.setInstanceFollowRedirects(false); 50 connection.setDefaultUseCaches(false); 51 connection.setUseCaches(false); 52 if (connection.getResponseCode() == HttpURLConnection.HTTP_NO_CONTENT) { 58 if (connection != null) { 59 connection.disconnect();
|
/packages/services/Telephony/src/com/android/services/telephony/ |
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 | ImsConferenceController.java | 58 * Ims conference controller connection listener. Used to respond to changes in state of the 75 public void onDestroyed(Connection connection) { 76 remove(connection); 113 * @param connectionService The current connection service. 122 * Adds a new connection to the IMS conference controller. 124 * @param connection 126 void add(TelephonyConnection connection) { argument 129 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == 134 if (mTelephonyConnections.contains(connection)) { 136 Log.w(this, "add - connection alread 156 remove(Connection connection) argument 306 isMemberOfPeerConference(Connection connection) argument 350 startConference(TelephonyConnection connection) argument [all...] |
H A D | TelephonyConferenceController.java | 51 Log.v(this, "onStateChange triggered in Conf Controller : connection = "+ c 63 public void onDestroyed(Connection connection) { 64 remove(connection); 77 /** The TelephonyConference connection object. */ 85 void add(TelephonyConnection connection) { argument 86 if (mTelephonyConnections.contains(connection)) { 88 Log.w(this, "add - connection already tracked; connection=%s", connection); 91 mTelephonyConnections.add(connection); 96 remove(Connection connection) argument 117 participatesInFullConference(Connection connection) argument [all...] |
H A D | CdmaConferenceController.java | 89 /** The CDMA conference connection object. */ 92 void add(final CdmaConnection connection) { argument 93 if (mCdmaConnections.contains(connection)) { 95 Log.w(this, "add - connection already tracked; connection=%s", connection); 99 if (!mCdmaConnections.isEmpty() && connection.isOutgoing()) { 100 // There already exists a connection, so this will probably result in a conference once 101 // it is added. For outgoing connections which are added while another connection 106 connection 140 addInternal(CdmaConnection connection) argument 146 remove(CdmaConnection connection) argument [all...] |
H A D | TelephonyConnectionServiceProxy.java | 33 void removeConnection(Connection connection); argument 35 Connection connection); 37 Connection connection, Conference conference); 38 void addConnectionToConferenceController(TelephonyConnection connection); argument 34 addExistingConnection(PhoneAccountHandle phoneAccountHandle, Connection connection) argument 36 addExistingConnection(PhoneAccountHandle phoneAccountHandle, Connection connection, Conference conference) argument
|
H A D | PstnIncomingCallNotifier.java | 50 /** New ringing connection event code. */ 125 Connection connection = (Connection) asyncResult.result; 126 if (connection != null) { 127 Call call = connection.getCall(); 131 sendIncomingCallIntent(connection); 141 Connection connection = call.getLatestConnection(); 142 if (connection != null) { 143 String number = connection.getAddress(); 144 int presentation = connection.getNumberPresentation(); 152 sendIncomingCallIntent(connection); 191 addNewUnknownCall(Connection connection) argument 234 sendIncomingCallIntent(Connection 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...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
H A D | HttpUrlConnectionBuilderTests.java | 66 HttpURLConnection connection = builder.build(); 67 assertEquals(8765, connection.getConnectTimeout()); 84 HttpURLConnection connection = builder.build(); 85 assertEquals(8765, connection.getReadTimeout()); 92 HttpURLConnection connection = builder.build(); 93 assertEquals("some-random-value", connection.getRequestProperty("some-random-key")); 99 HttpURLConnection connection = builder.build(); 100 assertFalse(connection.getUseCaches()); 106 HttpURLConnection connection = builder.build(); 107 connection [all...] |
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | SelfManagedConnectionService.java | 69 SelfManagedConnection connection = new SelfManagedConnection(mCallList, 71 connection.setListener(mCallList.getConnectionListener()); 72 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); 73 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); 74 connection.setAudioModeIsVoip(true); 75 connection.setVideoState(request.getVideoState()); 77 connection.setCallerDisplayName(TEST_NAMES[random.nextInt(TEST_NAMES.length)], 79 connection.setExtras(request.getExtras()); 81 connection.setIsIncomingCallUiShowing(request.shouldShowIncomingCallUi()); 88 connection [all...] |
H A D | HandoverActivity.java | 45 final SelfManagedConnection connection = SelfManagedCallList.getInstance() 49 if (connection != null) { 50 connection.setConnectionActive(); 61 if (connection != null) { 62 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED); 63 connection.destroy();
|
H A D | IncomingSelfManagedCallActivity.java | 46 final SelfManagedConnection connection = SelfManagedCallList.getInstance() 50 if (connection != null) { 51 connection.setConnectionActive(); 57 if (connection != null) { 58 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED); 59 connection.destroy();
|
H A D | SelfManagedCallNotificationReceiver.java | 41 SelfManagedConnection connection = SelfManagedCallList.getInstance() 46 if (connection != null) { 47 connection.setConnectionActive(); 54 if (connection != null) { 55 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED); 56 connection.destroy();
|
H A D | TestConnectionService.java | 105 public void onSeparate(Connection connection) { argument 106 if (getConnections().contains(connection)) { 107 connection.setConference(null); 108 removeConnection(connection); 109 connection.removeConnectionListener(mConnectionListener); 133 /** Used to cleanup camera and media when done with connection. */ 374 final TestConnection connection = 376 setAddress(connection, handle); 379 // use a remote connection service. 390 connection 482 addVideoProvider(TestConnection connection) argument 491 activateCall(TestConnection connection) argument 500 destroyCall(TestConnection connection) argument 517 addCall(TestConnection connection) argument 537 setAddress(Connection connection, Uri address) argument [all...] |
H A D | SelfManagedCallListAdapter.java | 37 * Listener used to handle tap of the "disconnect" button for a connection. 43 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 44 connection.setConnectionDisconnected(DisconnectCause.LOCAL); 45 SelfManagedCallList.getInstance().removeConnection(connection); 50 * Listener used to handle tap of the "active" button for a connection. 56 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 57 connection.setConnectionActive(); 63 * Listener used to handle tap of the "held" button for a connection. 69 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 70 connection [all...] |
H A D | TestConnectionManager.java | 46 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 [all...] |
H A D | SelfManagedCallList.java | 74 public void onConnectionStateChanged(SelfManagedConnection connection) { 79 public void onConnectionRemoved(SelfManagedConnection connection) { 80 removeConnection(connection); 139 public void addConnection(SelfManagedConnection connection) { argument 140 Log.i(this, "addConnection %s", connection); 141 mConnections.add(connection); 143 Log.i(this, "addConnection calling onConnectionListChanged %s", connection); 148 public void removeConnection(SelfManagedConnection connection) { argument 149 Log.i(this, "removeConnection %s", connection); 150 mConnections.remove(connection); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
H A D | HfpClientConference.java | 56 public void onMerge(Connection connection) { argument 57 Log.d(TAG, "onMerge " + connection); 58 addConnection(connection); 62 public void onSeparate(Connection connection) { argument 63 Log.d(TAG, "onSeparate " + connection); 64 ((HfpClientConnection) connection).enterPrivateMode(); 65 removeConnection(connection); 89 public void onConnectionAdded(Connection connection) { argument 90 Log.d(TAG, "onConnectionAdded " + connection); 91 if (connection [all...] |
H A D | HfpClientDeviceBlock.java | 109 HfpClientConnection connection = connection = mConnections.get(call.getUUID()); 110 if (connection != null) { 111 connection.onAdded(); 113 return connection; 115 Log.e(TAG, "Call " + call + " ignored: connection does not exist"); 121 HfpClientConnection connection = buildConnection(null, address); 122 if (connection != null) { 123 connection.onAdded(); 125 return connection; [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | NetworkUriImageRequest.java | 49 // that connection open. There is no good way to perform this method. 57 HttpURLConnection connection = null; 60 connection = (HttpURLConnection) url.openConnection(); 61 connection.connect(); 62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { 63 return ContentType.IMAGE_GIF.equalsIgnoreCase(connection.getContentType()); 74 if (connection != null) { 75 connection.disconnect(); 88 HttpURLConnection connection = null; 91 connection [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
H A D | HttpUrlConnectionBuilder.java | 203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); 204 connection.setConnectTimeout(mConnectTimeoutMillis); 205 connection.setReadTimeout(mReadTimeoutMillis); 206 connection.setUseCaches(mUseCache); 209 connection.setDoInput(true); 210 connection.setDoOutput(false); 213 connection.setDoInput(false); 214 connection.setDoOutput(true); 217 connection.setDoInput(true); 218 connection [all...] |
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
H A D | UsbUtil.java | 35 UsbDeviceConnection connection = openConnection(usbManager, device); 36 if (AoapInterface.isSupported(connection)) { 39 connection.close(); 49 public static void sendAoapAccessoryStart(UsbDeviceConnection connection, String manufacturer, argument 52 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MANUFACTURER, 54 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MODEL, 56 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_DESCRIPTION, 58 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_VERSION, 60 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_URI, uri); 61 AoapInterface.sendString(connection, AoapInterfac [all...] |
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
H A D | WifiDownloadReceiver.java | 104 HttpURLConnection connection = null; 107 connection = (HttpURLConnection) url.openConnection(); 108 connection.connect(); 111 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { 112 return "Server returned HTTP " + connection.getResponseCode() 113 + " " + connection.getResponseMessage(); 117 int fileLength = connection.getContentLength(); 118 int bytesRead = downloadFile(connection); 132 if (connection != null) { 133 connection 161 downloadFile(HttpURLConnection connection) argument [all...] |
/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
|
/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...] |