/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/ |
CacheAdapter.java | 56 HttpURLConnection connection = JavaApiConverter.createJavaUrlConnectionForCachePut(response); local 57 final java.net.CacheRequest request = delegate.put(uri, connection);
|
/external/python/cpython3/Modules/_sqlite/ |
cursor.h | 29 #include "connection.h" 35 pysqlite_Connection* connection; member in struct:__anon33355
|
/external/skia/tools/skiaserve/ |
Request.h | 33 MHD_Connection* connection; member in struct:UploadContext
|
/external/skqp/tools/skiaserve/ |
Request.h | 33 MHD_Connection* connection; member in struct:UploadContext
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
ImsServiceControllerStaticCompat.java | 49 public boolean startBindToService(Intent intent, ImsServiceConnection connection, int flags) { 58 connection.onServiceConnected(new ComponentName(mContext,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
JarURLConnectionTest.java | 101 JarURLConnection connection = null; local 102 connection = (JarURLConnection) url.openConnection(); 104 connection.connect(); 111 connection.getJarFile(); 163 JarURLConnection connection = (JarURLConnection) url.openConnection(); local 164 connection.setUseCaches(false); 165 InputStream in = connection.getInputStream(); 166 JarFile jarFile1 = connection.getJarFile(); 167 JarEntry jarEntry1 = connection.getJarEntry(); 172 JarFile jarFile2 = connection.getJarFile() [all...] |
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
HandoverActivity.java | 45 final SelfManagedConnection connection = SelfManagedCallList.getInstance() local 49 if (connection != null) { 50 connection.setConnectionActive(); 61 if (connection != null) { 62 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED); 63 connection.destroy();
|
IncomingSelfManagedCallActivity.java | 46 final SelfManagedConnection connection = SelfManagedCallList.getInstance() local 50 if (connection != null) { 51 connection.setConnectionActive(); 57 if (connection != null) { 58 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED); 59 connection.destroy();
|
SelfManagedConnectionService.java | 21 import android.telecom.Connection; 44 public Connection onCreateOutgoingConnection( 52 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, 80 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming) { 81 SelfManagedConnection connection = new SelfManagedConnection(mCallList, local 83 connection.setListener(mCallList.getConnectionListener()); 84 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); 85 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); 86 connection.setAudioModeIsVoip(true) [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
ConnectionServiceTest.java | 26 import android.telecom.Connection; 33 * Test some additional {@link ConnectionService} and {@link Connection} APIs not already covered 59 // Add second connection (add existing connection) 60 final MockConnection connection = new MockConnection(); local 61 connection.setOnHold(); 62 CtsConnectionService.addExistingConnectionToTelecom(TEST_PHONE_ACCOUNT_HANDLE, connection); 77 // Add second connection (add existing connection) 78 final MockConnection connection = new MockConnection() local 102 final MockConnection connection = new MockConnection(); local 121 MockConnection connection = verifyConnectionForOutgoingCall(); local 204 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); local [all...] |
SelfManagedConnectionServiceTest.java | 23 import android.telecom.Connection; 100 * It should be possible to register self-managed Connection Services which suppor the TEL, SIP, 176 * but is also registered as a connection manager is not permitted. 178 * A self-managed {@link android.telecom.PhoneAccount} cannot also be a connection manager. 205 "connection managers, or SIM accounts.", se.getMessage()); 212 * Tests ability to add a new self-managed incoming connection. 233 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); local 236 connection.getOnShowIncomingUiInvokeCounter().waitForCount(1); 237 setActiveAndVerify(connection); 243 setDisconnectedAndVerify(connection); 257 Connection connection = verifyConnectionForIncomingCall(); local 302 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); local 330 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 385 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 408 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 426 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 455 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 484 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); local [all...] |
/developers/build/prebuilts/gradle/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/ |
NetworkFragment.java | 215 * Given a URL, sets up a connection and gets the HTTP response body from the server. 221 HttpsURLConnection connection = null; local 224 connection = (HttpsURLConnection) url.openConnection(); 226 connection.setReadTimeout(3000); 227 // Timeout for connection.connect() arbitrarily set to 3000ms. 228 connection.setConnectTimeout(3000); 230 connection.setRequestMethod("GET"); 233 connection.setDoInput(true); 235 connection.connect(); 237 int responseCode = connection.getResponseCode() [all...] |
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/ |
NetworkFragment.java | 215 * Given a URL, sets up a connection and gets the HTTP response body from the server. 221 HttpsURLConnection connection = null; local 224 connection = (HttpsURLConnection) url.openConnection(); 226 connection.setReadTimeout(3000); 227 // Timeout for connection.connect() arbitrarily set to 3000ms. 228 connection.setConnectTimeout(3000); 230 connection.setRequestMethod("GET"); 233 connection.setDoInput(true); 235 connection.connect(); 237 int responseCode = connection.getResponseCode() [all...] |
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
NetworkFragment.java | 215 * Given a URL, sets up a connection and gets the HTTP response body from the server. 221 HttpsURLConnection connection = null; local 224 connection = (HttpsURLConnection) url.openConnection(); 226 connection.setReadTimeout(3000); 227 // Timeout for connection.connect() arbitrarily set to 3000ms. 228 connection.setConnectTimeout(3000); 230 connection.setRequestMethod("GET"); 233 connection.setDoInput(true); 235 connection.connect(); 237 int responseCode = connection.getResponseCode() [all...] |
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
TcpConnectionTest.java | 58 final TcpConnection connection = new TcpConnection( local 60 connection.init(); 61 connection.run();
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
URLConnectionTest.java | 110 private HttpURLConnection connection; field in class:URLConnectionTest 135 connection = client.open(server.getUrl("/")); 136 connection.addRequestProperty("D", "e"); 137 connection.addRequestProperty("D", "f"); 138 assertEquals("f", connection.getRequestProperty("D")); 139 assertEquals("f", connection.getRequestProperty("d")); 140 Map<String, List<String>> requestHeaders = connection.getRequestProperties(); 154 connection.setRequestProperty(null, "j"); 159 connection.addRequestProperty(null, "k"); 163 connection.setRequestProperty("NullValue", null) 403 HttpURLConnection connection = client.open(url); local 1120 URLConnection connection = client.open(server.getUrl("\/")); local 1134 URLConnection connection = client.open(server.getUrl("\/")); local 1149 HttpURLConnection connection = client.open(server.getUrl("\/")); local 1159 URLConnection connection = client.open(server.getUrl("\/")); local 1179 URLConnection connection = client.open(server.getUrl("\/")); local 1194 URLConnection connection = client.open(server.getUrl("\/")); local 1223 URLConnection connection = client.open(server.getUrl("\/")); local 1294 HttpURLConnection connection = client.open(server.getUrl("\/")); local [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
EventReporter.java | 82 HttpURLConnection connection = null; local 95 connection = null; 97 //Set up the initial connection 98 connection = (HttpURLConnection)serverAddress.openConnection(); 100 connection.setRequestMethod("GET"); 101 connection.setDoOutput(true); 102 connection.setReadTimeout(0); 104 connection.connect(); 105 final int response = connection.getResponseCode(); 106 DebugLog.d("Report Event", event.eventType + " " + response + ":" + connection.getURL().toString()) [all...] |
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
WifiDownloadReceiver.java | 104 HttpURLConnection connection = null; local 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.disconnect() [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsHttpClient.java | 119 HttpURLConnection connection = null; local 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, mmsConfig) [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.java | 66 private static final String HEADER_CONNECTION = "Connection"; 123 HttpURLConnection connection = null; local 132 // Now get the connection 133 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); 134 connection.setDoInput(true); 135 connection.setConnectTimeout( 139 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); 141 connection.setRequestProperty( 146 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); 153 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl) [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
NetworkUtilities.java | 237 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); local 238 connection.connect(); 241 final Bitmap avatar = BitmapFactory.decodeStream(connection.getInputStream(), 258 connection.disconnect();
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
HttpURLConnectionTest.java | 101 // this connection was closed, create new one: 129 * Selector will return the proxy, only if the connection 184 * method will be used for connection to the server 193 HttpURLConnection connection = (HttpURLConnection) url local 197 connection.setConnectTimeout(2000); 198 connection.setReadTimeout(2000); 209 connection.connect(); 215 assertTrue("Connection does not use proxy", connection.usingProxy()); 224 * will be used for connection to the serve 240 HttpURLConnection connection = local 286 HttpURLConnection connection = local [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
CallExtrasTest.java | 22 import android.telecom.Connection; 43 * Tests the {@link Connection} and {@link Call} extras functionality. 69 * Tests setting extras on the connection side and ensuring they are propagated through to 86 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 87 connection.putExtras(extras); 96 * Tests setting extras on the connection side and ensuring they are propagated through to 108 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 109 connection.putExtra(EXTRA_KEY_BOOL, true) 130 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 152 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 176 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 206 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 243 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 289 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local 311 Connection connection = mConnectionServiceFixtureA.mLatestConnection; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/ |
cursor.h | 29 #include "connection.h"
35 pysqlite_Connection* connection;
member in struct:__anon4707
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TestHelper_Driver1.java | 20 import java.sql.Connection; 76 public Connection connect(String url, Properties info) throws SQLException { 88 // It all checks out - so return a connection 89 Connection connection = new TestHelper_Connection1(); local 90 return connection;
|