/external/clang/test/CodeGenCXX/ |
incomplete-member-function-pointer.cpp | 4 struct connection { struct 7 void (connection::*a)(fake_tuple) = &connection::bar; 9 void (connection::*b)(fake_tuple) = &connection::bar;
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
HttpsURLConnectionTest.java | 43 HttpsURLConnection connection = local 46 assertSame(originalHostnameVerifier, connection.getHostnameVerifier()); 48 connection.disconnect(); 54 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); 56 assertSame(anotherVerifier, connection.getHostnameVerifier()); 58 connection.disconnect(); 62 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); 64 assertSame(originalHostnameVerifier, connection.getHostnameVerifier()); 66 connection.disconnect(); 79 HttpsURLConnection connection local [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
TelephonyConference.java | 20 import android.telecom.Connection; 38 Connection.CAPABILITY_SUPPORT_HOLD | 39 Connection.CAPABILITY_HOLD | 40 Connection.CAPABILITY_MUTE | 41 Connection.CAPABILITY_MANAGE_CONFERENCE); 46 * Invoked when the Conference and all it's {@link Connection}s should be disconnected. 50 for (Connection connection : getConnections()) { 51 if (disconnectCall(connection)) { 58 * Disconnect the underlying Telephony Call for a connection 110 final TelephonyConnection connection = getFirstConnection(); local 121 final TelephonyConnection connection = getFirstConnection(); local 129 final TelephonyConnection connection = getFirstConnection(); local 137 final TelephonyConnection connection = getFirstConnection(); local [all...] |
CdmaConferenceController.java | 20 import android.telecom.Connection; 35 * say that we are in a conference call with {@link Connection#CAPABILITY_GENERIC_CONFERENCE}. 48 private final Connection.Listener mConnectionListener = new Connection.Listener() { 50 public void onStateChanged(Connection c, int state) { 55 public void onDisconnected(Connection c, DisconnectCause disconnectCause) { 60 public void onDestroyed(Connection c) { 86 /** The CDMA conference connection object. */ 89 void add(final CdmaConnection connection) { 90 if (!mCdmaConnections.isEmpty() && connection.isOutgoing()) [all...] |
ImsConferenceController.java | 23 import android.telecom.Connection; 53 * Ims conference controller connection listener. Used to respond to changes in state of the 56 private final Connection.Listener mConnectionListener = new Connection.Listener() { 58 public void onStateChanged(Connection c, int state) { 64 public void onDisconnected(Connection c, DisconnectCause disconnectCause) { 70 public void onDestroyed(Connection connection) { 71 remove(connection); 100 * @param connectionService The current connection service 213 Connection connection = (Connection) conferenceable; local 222 Connection connection = (Connection) conferenceable; local 283 TelephonyConnection connection = it.next(); local [all...] |
TelephonyConferenceController.java | 29 import android.telecom.Connection; 46 private final Connection.Listener mConnectionListener = new Connection.Listener() { 48 public void onStateChanged(Connection c, int state) { 54 public void onDisconnected(Connection c, DisconnectCause disconnectCause) { 59 public void onDestroyed(Connection connection) { 60 remove(connection); 73 /** The TelephonyConference connection object. */ 76 void add(TelephonyConnection connection) { [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
ConnectionTest.java | 24 import android.telecom.Connection; 41 Connection connection = createConnection(lock); local 44 assertEquals(Connection.STATE_NEW, connection.getState()); 46 connection.setInitializing(); 48 assertEquals(Connection.STATE_INITIALIZING, connection.getState()); 50 connection.setInitialized(); 52 assertEquals(Connection.STATE_NEW, connection.getState()) 88 Connection connection = Connection.createFailedConnection( local 107 Connection connection = Connection.createCanceledConnection(); local 124 Connection connection = createConnection(lock); local 139 Connection connection = createConnection(lock); local 154 Connection connection = createConnection(lock); local 171 Connection connection = createConnection(lock); local 190 Connection connection = createConnection(lock); local 204 Connection connection = createConnection(lock); local 224 Connection connection = createConnection(lock); local 240 Connection connection = createConnection(lock); local 255 Connection connection = createConnection(lock); local 297 BasicConnection connection = new BasicConnection(); local [all...] |
WiredHeadsetTest.java | 21 import android.telecom.Connection; 44 final MockConnection connection = verifyConnectionForIncomingCall(); local 48 assertConnectionState(connection, Connection.STATE_RINGING); 52 assertConnectionState(connection, Connection.STATE_ACTIVE); 61 final MockConnection connection = verifyConnectionForIncomingCall(); local 65 assertConnectionState(connection, Connection.STATE_RINGING); 69 assertConnectionState(connection, Connection.STATE_DISCONNECTED) 78 final MockConnection connection = verifyConnectionForOutgoingCall(); local 100 final MockConnection connection = verifyConnectionForOutgoingCall(); local [all...] |
MockConnectionService.java | 19 import android.telecom.Connection; 42 * the {@link MockVideoProvider} is not created immediately when the Connection is created. 54 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, 56 final MockConnection connection = new MockConnection(); local 57 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); 58 connection.setPhoneAccountHandle(connectionManagerPhoneAccount); 60 connection.createMockVideoProvider(); 64 connection.setVideoState(request.getVideoState()); 66 outgoingConnections.add(connection); 68 return connection; 74 final MockConnection connection = new MockConnection(); local [all...] |
ExtendedInCallServiceTest.java | 24 import android.telecom.Connection; 66 final MockConnection connection = verifyConnectionForOutgoingCall(); local 74 assertMuteState(connection, false); 79 assertMuteState(connection, true); 83 assertMuteState(connection, false); 93 final MockConnection connection = verifyConnectionForOutgoingCall(); local 109 assertAudioRoute(connection, CallAudioState.ROUTE_SPEAKER); 115 assertAudioRoute(connection, CallAudioState.ROUTE_EARPIECE); 132 final MockConnection connection = verifyConnectionForOutgoingCall(); local 139 assertDtmfString(connection, ""); 165 final MockConnection connection = verifyConnectionForOutgoingCall(); local 192 final MockConnection connection = verifyConnectionForIncomingCall(); local 213 final MockConnection connection = verifyConnectionForIncomingCall(); local 236 final MockConnection connection = verifyConnectionForIncomingCall(); local 274 final MockConnection connection = verifyConnectionForOutgoingCall(); local 362 final MockConnection connection = verifyConnectionForOutgoingCall(); local [all...] |
/external/cmockery/cmockery_0_1_2/src/example/ |
customer_database.c | 31 DatabaseConnection * const connection, 38 number_of_results = connection->query_database(connection, query_string,
|
customer_database_test.c | 24 DatabaseConnection * const connection, const char * const customer_name); 28 DatabaseConnection* const connection, const char * const query_string, 53 DatabaseConnection connection = { local 60 assert_int_equal(get_customer_id_by_name(&connection, "john doe"), 543);
|
database.h | 24 DatabaseConnection* const connection, const char * const query_string, 27 // Connection to a database.
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
HttpsServiceConnectionSE.java | 21 * HttpsServiceConnectionSE is a service connection that uses a https url connection and requires explicit setting of 41 private HttpsURLConnection connection; field in class:HttpsServiceConnectionSE 49 * @param timeout the timeout for the connection in milliseconds 54 connection = (HttpsURLConnection) new URL(HttpsTransportSE.PROTOCOL, host, port, file) 60 connection.setConnectTimeout(timeout); 61 connection.setReadTimeout(timeout); // even if we connect fine we want to time out if we cant read anything.. 62 connection.setUseCaches(false); 63 connection.setDoOutput(true); 64 connection.setDoInput(true) [all...] |
ServiceConnectionSE.java | 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 35 * Connection for J2SE environments. 39 private HttpURLConnection connection; field in class:ServiceConnectionSE 43 * @param url the url to open the connection to. 56 * @param url the url to open the connection to. 57 * @param timeout the connection and read timeout for the http connection in milliseconds 65 connection = (proxy == null) 68 connection.setUseCaches(false); 69 connection.setDoOutput(true) [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
HurlStack.java | 102 HttpURLConnection connection = openConnection(parsedUrl, request); local 104 connection.addRequestProperty(headerName, map.get(headerName)); 106 setConnectionParametersForRequest(connection, request); 109 int responseCode = connection.getResponseCode(); 112 // Signal to the caller that something was wrong with the connection. 116 connection.getResponseCode(), connection.getResponseMessage()); 118 response.setEntity(entityFromConnection(connection)); 119 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) { 130 * @param connection 162 HttpURLConnection connection = createConnection(url); local [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
HttpUrlConnectionBuilderTests.java | 66 HttpURLConnection connection = builder.build(); local 67 assertEquals(8765, connection.getConnectTimeout()); 84 HttpURLConnection connection = builder.build(); local 85 assertEquals(8765, connection.getReadTimeout()); 92 HttpURLConnection connection = builder.build(); local 93 assertEquals("some-random-value", connection.getRequestProperty("some-random-key")); 99 HttpURLConnection connection = builder.build(); local 100 assertFalse(connection.getUseCaches()); 106 HttpURLConnection connection = builder.build(); local 107 connection.setUseCaches(false) 114 HttpURLConnection connection = builder.build(); local 123 HttpURLConnection connection = builder.build(); local 132 HttpURLConnection connection = builder.build(); local 141 HttpURLConnection connection = builder.build(); local 150 HttpURLConnection connection = builder.build(); local [all...] |
/external/jetty/src/java/org/eclipse/jetty/io/ |
ConnectedEndPoint.java | 23 Connection getConnection(); 24 void setConnection(Connection connection);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
ConnectionPool.java | 34 * {@link com.squareup.okhttp.Connection}. This class implements the policy of 45 * connection alive in the pool before closing it. Default is 5 minutes. 78 private final LinkedList<Connection> connections = new LinkedList<>(); 82 * thread running per connection pool. 89 * the thread, and thus the connection pool, in memory. 124 for (Connection connection : connections) { 125 if (connection.isSpdy()) total++; 135 /** Returns a recycled connection to {@code address}, or null if no such connection exists. * 140 Connection connection = i.previous(); local 278 Connection connection = i.previous(); local 292 Connection connection = i.previous(); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
NetworkUriImageRequest.java | 49 // that connection open. There is no good way to perform this method. 57 HttpURLConnection connection = null; local 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; local 91 connection = (HttpURLConnection) url.openConnection() [all...] |
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
CacheAdapterTest.java | 73 private HttpURLConnection connection; field in class:CacheAdapterTest 81 if (connection != null) { 82 connection.disconnect(); 103 connection = new OkUrlFactory(client).open(serverUrl); 104 connection.setRequestProperty("key1", "value1"); 106 executeGet(connection); 128 connection = new OkUrlFactory(client).open(serverUrl); 129 connection.setRequestProperty("key1", "value1"); 131 executeGet(connection); 144 @Override public CacheRequest put(URI uri, URLConnection connection) throws IOException [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
HttpUrlConnectionBuilder.java | 203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); local 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.setDoOutput(true) [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteConnectionPool.java | 39 * At any given time, a connection is either owned by the pool, or it has been 41 * finished with the connection it is using, it must return the connection 47 * that the connection pool can detect when connections have been improperly 50 * The connection pool is thread-safe (but the connections themselves are not). 76 // and logging a message about the connection pool being busy. 96 // Describes what should happen to an acquired connection when it is returned to the pool. 98 // The connection should be returned to the pool as usual. 101 // The connection must be reconfigured before being returned. 104 // The connection must be closed and discarded 519 SQLiteConnection connection = local 555 final SQLiteConnection connection = mAvailableNonPrimaryConnections.get(i); local 607 SQLiteConnection connection = null; local 679 final SQLiteConnection connection = waiter.mAssignedConnection; local 794 SQLiteConnection connection = null; local 844 SQLiteConnection connection = mAvailablePrimaryConnection; local 870 SQLiteConnection connection; local 1029 final SQLiteConnection connection = entry.getKey(); local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
DisconnectTest.java | 78 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local 79 disconnectLater(connection, 500); 81 connection.setDoOutput(true); 82 connection.setFixedLengthStreamingMode(requestBodySize); 83 OutputStream requestBody = connection.getOutputStream(); 90 fail("Expected connection to be closed"); 94 connection.disconnect(); 105 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local 106 disconnectLater(connection, 500); 108 InputStream responseBody = connection.getInputStream() [all...] |
/frameworks/base/media/java/android/service/media/ |
MediaBrowserService.java | 91 * All the info about a connection. 181 final ConnectionRecord connection = new ConnectionRecord(); 182 connection.pkg = pkg; 183 connection.rootHints = rootHints; 184 connection.callbacks = callbacks; 186 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); 189 if (connection.root == null) { 200 mConnections.put(b, connection); 202 callbacks.onConnect(connection.root.getRootId(), 203 mSession, connection.root.getExtras()) [all...] |