/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
TestConnectionService.java | 30 import android.telecom.Connection; 66 private final Connection.Listener mConnectionListener = new Connection.Listener() { 68 public void onDestroyed(Connection c) { 77 public TestConference(Connection a, Connection b) { 80 Connection.CAPABILITY_SUPPORT_HOLD | 81 Connection.CAPABILITY_HOLD | 82 Connection.CAPABILITY_MUTE | 83 Connection.CAPABILITY_MANAGE_CONFERENCE) [all...] |
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.setConnectionHeld() 126 SelfManagedConnection connection = mConnections.get(position); local [all...] |
/external/oauth/core/src/main/java/net/oauth/client/ |
URLConnectionResponse.java | 44 byte[] requestExcerpt, URLConnection connection) throws IOException { 49 this.connection = connection; 56 private final URLConnection connection; field in class:URLConnectionResponse 60 if (connection instanceof HttpURLConnection) { 61 return ((HttpURLConnection) connection).getResponseCode(); 69 return connection.getInputStream(); 79 for (int i = 0; (value = connection.getHeaderField(i)) != null; ++i) { 80 String name = connection.getHeaderFieldKey(i); 89 headers.add(new OAuth.Parameter(CONTENT_TYPE, connection [all...] |
/external/libmicrohttpd/src/microhttpd/ |
digestauth.c | 295 * @param connection The MHD connection structure 301 check_nonce_nc (struct MHD_Connection *connection, 309 mod = connection->daemon->nonce_nc_size; 327 (void) MHD_mutex_lock_ (&connection->daemon->nnc_lock); 330 strcpy(connection->daemon->nnc[off].nonce, 332 connection->daemon->nnc[off].nc = 0; 333 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock); 336 if ( (nc <= connection->daemon->nnc[off].nc) || 337 (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) [all...] |
/tools/test/connectivity/acts/framework/tests/ |
acts_test_ssh.py | 25 from acts.controllers.utils_lib.ssh import connection 41 conn = connection.SshConnection(self.settings) 52 conn = connection.SshConnection(self.settings) 63 with self.assertRaises(connection.Error): 65 conn = connection.SshConnection(bad_settings) 74 with self.assertRaises(connection.Error): 76 conn = connection.SshConnection(bad_settings)
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
HttpTransportSE.java | 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 75 * timeout for connection and Read Timeouts (milliseconds) 91 * timeout for connection and Read Timeouts (milliseconds) 128 * a list of HeaderProperties to be http header properties when establishing the connection 153 ServiceConnection connection = getServiceConnection(); local 154 System.out.println("connection:" + connection); 156 connection.setRequestProperty("User-Agent", USER_AGENT); 163 connection.setRequestProperty("SOAPAction", soapAction); 167 connection.setRequestProperty("Content-Type", CONTENT_TYPE_SOAP_XML_CHARSET_UTF_8) [all...] |
/cts/common/util/src/com/android/compatibility/common/util/ |
MultipartForm.java | 93 HttpURLConnection connection = null; local 96 connection = (HttpURLConnection) url.openConnection(); 97 connection.setInstanceFollowRedirects(false); 98 connection.setRequestMethod("POST"); 99 connection.setDoOutput(true); 100 connection.setRequestProperty("Content-Type", 104 connection.setRequestProperty("Content-Length", Integer.toString(body.length)); 106 OutputStream output = connection.getOutputStream(); 114 InputStream input = connection.getInputStream(); 117 int response = connection.getResponseCode() [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
CtsSelfManagedConnectionService.java | 21 import android.telecom.Connection; 54 void onDestroyed(SelfManagedConnection connection) { 55 mConnections.remove(connection); 84 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, 91 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, 112 mConnections.forEach(connection -> { 113 connection.setDisconnected(new DisconnectCause(DisconnectCause.LOCAL)); 114 connection.destroy(); 123 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming) { 124 SelfManagedConnection connection = new SelfManagedConnection(isIncoming local [all...] |
ConnectionServiceTest.java | 23 import android.telecom.Connection; 51 // Add second connection (add existing connection) 52 final MockConnection connection = new MockConnection(); local 53 connection.setOnHold(); 54 CtsConnectionService.addExistingConnectionToTelecom(TEST_PHONE_ACCOUNT_HANDLE, connection); 69 // Add second connection (add existing connection) 70 final MockConnection connection = new MockConnection(); local 71 connection.setOnHold() 94 final MockConnection connection = new MockConnection(); local [all...] |
ExternalCallTest.java | 20 import android.telecom.Connection; 28 * Tests which verify functionality related to {@link android.telecom.Connection}s and 30 * {@link android.telecom.Connection#PROPERTY_IS_EXTERNAL_CALL} and 34 public static final int CONNECTION_PROPERTIES = Connection.PROPERTY_IS_EXTERNAL_CALL; 35 public static final int CONNECTION_CAPABILITIES = Connection.CAPABILITY_CAN_PULL_CALL; 48 public Connection onCreateOutgoingConnection( 51 Connection connection = super.onCreateOutgoingConnection( 54 mConnection = (MockConnection) connection; 55 // Modify the connection object created with local values [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...] |
/frameworks/base/telecomm/java/android/telecom/ |
RemoteConnection.java | 41 * A connection provided to a {@link ConnectionService} by another {@code ConnectionService} 57 * @param connection The {@code RemoteConnection} invoking this method. 60 public void onStateChanged(RemoteConnection connection, int state) {} 65 * @param connection The {@code RemoteConnection} invoking this method. 67 * connection. 70 RemoteConnection connection, 77 * @param connection The {@code RemoteConnection} invoking this method. 80 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} 86 * @param connection The {@code RemoteConnection} invoking this method. 90 RemoteConnection connection, 1183 final RemoteConnection connection = this; local 1204 final RemoteConnection connection = this; local 1223 final RemoteConnection connection = this; local 1241 final RemoteConnection connection = this; local 1258 final RemoteConnection connection = this; local 1281 final RemoteConnection connection = this; local 1301 final RemoteConnection connection = this; local 1317 final RemoteConnection connection = this; local 1334 final RemoteConnection connection = this; local 1351 final RemoteConnection connection = this; local 1366 final RemoteConnection connection = this; local 1381 final RemoteConnection connection = this; local 1397 final RemoteConnection connection = this; local 1413 final RemoteConnection connection = this; local 1430 final RemoteConnection connection = this; local 1447 final RemoteConnection connection = this; local 1486 final RemoteConnection connection = this; local 1500 final RemoteConnection connection = this; local 1514 final RemoteConnection connection = this; local 1524 final RemoteConnection connection = this; local 1534 final RemoteConnection connection = this; local 1544 final RemoteConnection connection = this; local [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
AbstractPoolEntry.java | 47 * A pool entry for use by connection manager implementations. 50 * The adapter is handed out to applications that obtain a connection. 51 * The pool entry stores the underlying connection and tracks the 58 * underlying connection and the established route. 76 /** The connection operator. */ 79 /** The underlying connection being pooled or used. */ 80 protected final OperatedClientConnection connection; field in class:AbstractPoolEntry 83 //@@@ currently accessed from connection manager(s) as attribute 88 /** Connection state object */ 98 * @param connOperator the Connection Operator for this entr [all...] |
/external/libmicrohttpd/doc/examples/ |
basicauthentication.c | 21 answer_to_connection (void *cls, struct MHD_Connection *connection, 36 *con_cls = connection; 40 user = MHD_basic_auth_get_username_password (connection, &pass); 52 ret = MHD_queue_basic_auth_fail_response (connection, 62 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
OkUrlFactoryTest.java | 68 HttpURLConnection connection = factory.open(server.getUrl("/")); local 69 assertResponseHeader(connection, "NETWORK 200"); 70 assertResponseBody(connection, "Isla Sorna"); 76 HttpURLConnection connection = factory.open(server.getUrl("/")); local 77 assertResponseHeader(connection, "NETWORK 404"); 78 connection.getErrorStream().close(); 148 HttpURLConnection connection = factory.open(server.getUrl("/a")); local 149 connection.setInstanceFollowRedirects(false); 150 assertResponseBody(connection, "A"); 151 assertResponseCode(connection, 302) 168 HttpURLConnection connection = factory.open(server.url("\/a").url()); local 174 HttpURLConnection connection = factory.open(server.url("\/b").url()); local [all...] |
/external/skia/tools/skiaserve/urlhandlers/ |
PostHandler.cpp | 35 int PostHandler::handle(Request* request, MHD_Connection* connection, 40 // New connection 44 uc->connection = connection; 45 uc->fPostProcessor = MHD_create_post_processor(connection, kBufferSize, 75 return SendTemplate(connection, true, "/");
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
Http2ConnectionTest.java | 67 connection(peer, HTTP_2); method 87 FramedConnection connection = connection(peer, HTTP_2); local 88 Ping ping = connection.ping(); 96 assertEquals(0x4f4b6f6b, pingFrame.payload2); // connection.ping() sets this. 115 FramedConnection connection = connection(peer, HTTP_2); 118 assertEquals(65535, connection.peerSettings.getInitialWindowSize(-1)); 130 // This stream was created *after* the connection settings were adjusted. 131 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true) [all...] |
HttpOverSpdyTest.java | 77 protected HttpURLConnection connection; field in class:HttpOverSpdyTest 100 connection = client.open(server.getUrl("/foo")); 101 assertContent("ABCDE", connection, Integer.MAX_VALUE); 102 assertEquals(200, connection.getResponseCode()); 103 assertEquals("Sweet", connection.getResponseMessage()); 114 connection = client.open(server.getUrl("/foo")); 115 assertEquals(-1, connection.getInputStream().read()); 123 connection = client.open(server.getUrl("/foo")); 124 connection.setDoOutput(true); 125 connection.setChunkedStreamingMode(0) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 88 // read/connection timeout value 138 // create url connection to be tested 140 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 141 connection.setSSLSocketFactory(ctx.getSocketFactory()); 144 executeClientRequest(connection, false /* doOutput */); 146 checkConnectionStateParameters(connection, dispatcher.getLastRequest()); 149 connection.connect(); 155 * Tests the behaviour of HTTPS connection in case of unavailability of requested resource. 171 // create url connection to be tested 173 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection() local 218 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 258 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 291 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 334 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 370 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local 409 HttpsURLConnection connection = (HttpsURLConnection) local 458 HttpsURLConnection connection = (HttpsURLConnection) local 492 HttpsURLConnection connection = (HttpsURLConnection) local 564 HttpsURLConnection connection = (HttpsURLConnection) local 600 HttpsURLConnection connection = (HttpsURLConnection) local 642 HttpsURLConnection connection = (HttpsURLConnection) local [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_tv_TvUinputBridge.cpp | 193 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), local 195 return reinterpret_cast<jlong>(connection); 199 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 200 delete connection; 204 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 206 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_SEC, timestamp / 1000L); 207 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_USEC, (timestamp % 1000L) * 1000L); 212 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 214 connection->sendEvent(EV_KEY, code, down ? 1 : 0); 222 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr) local 238 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 249 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 254 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsExternalCallTracker.java | 24 import com.android.internal.telephony.Connection; 57 * Notifies that an unknown connection has been added. 58 * @param c The new unknown connection. 60 void notifyUnknownConnection(Connection c); 85 public void onPullExternalCall(ImsExternalConnection connection) { 86 Log.d(TAG, "onPullExternalCall: connection = " + connection); 91 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState(), 92 connection.getCallId()) 310 ImsExternalConnection connection = new ImsExternalConnection(mPhone, local 327 mExternalConnections.put(connection.getCallId(), connection); local [all...] |
/cts/tests/tests/telecom3/src/android/telecom/cts/ |
SelfManagedAwareInCallServiceTest.java | 122 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 123 assertNotNull(connection); 131 connection.disconnectAndDestroy(); 146 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 147 assertNotNull(connection); 155 connection.disconnectAndDestroy(); 169 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); local 170 assertNotNull(connection); 184 // Set active from the connection side. 185 connection.setActive() [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
ShutdownTest.java | 70 fail("Connection should be closed!"); 77 HttpURLConnection connection = (HttpURLConnection) new URL("http://localhost:8092/").openConnection(); local 79 connection.addRequestProperty("Connection", "keep-alive"); 80 InputStream in = connection.getInputStream();
|
/packages/services/Telephony/src/com/android/services/telephony/ |
CdmaConference.java | 22 import android.telecom.Connection; 44 mProperties = Connection.PROPERTY_GENERIC_CONFERENCE; 49 capabilities |= Connection.CAPABILITY_MUTE; 54 * Invoked when the Conference and all it's {@link Connection}s should be disconnected. 70 public void onSeparate(Connection connection) { 91 mCapabilities &= ~Connection.CAPABILITY_MERGE_CONFERENCE; 94 mCapabilities |= Connection.CAPABILITY_SWAP_CONFERENCE; 102 final CdmaConnection connection = getFirstConnection(); local 103 if (connection != null) 112 final CdmaConnection connection = getFirstConnection(); local [all...] |
/frameworks/base/core/jni/ |
android_database_SQLiteConnection.cpp | 48 * If another connection (possibly in another process) has the database locked for 53 * have a single open connection at a time unless they are using WAL. When using 54 * WAL, a timeout could occur if one connection is busy performing an auto-checkpoint 95 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 97 connection->label.string(), sql); 102 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 104 connection->label.string(), sql, tm * 0.000001f); 109 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 110 return connection->canceled; 164 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label) local 179 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 250 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 274 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 287 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 318 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 366 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 377 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 388 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 399 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 414 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 428 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 453 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 461 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 470 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 488 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 500 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 550 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 668 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 762 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 771 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 777 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local [all...] |