HomeSort by relevance Sort by last modified time
    Searched defs:connection (Results 51 - 75 of 897) sorted by null

1 23 4 5 6 7 8 91011>>

  /packages/apps/Dialer/java/com/android/dialer/simulator/impl/
SimulatorConnectionService.java 22 import android.telecom.Connection;
39 /** Simple connection provider to create phone calls. This is useful for emulators. */
73 public Connection onCreateOutgoingConnection(
86 SimulatorConnection connection = new SimulatorConnection(this, request); local
88 simulatorConnectionsBank.add(connection);
89 connection.setAddress(
94 connection.setDialing();
101 listener.onNewOutgoingConnection(connection);
104 connection.setAddress(request.getAddress(), 1);
105 Bundle extras = connection.getExtras()
129 SimulatorConnection connection = new SimulatorConnection(this, request); local
    [all...]
SimulatorVideoCall.java 23 import android.telecom.Connection;
67 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL
68 | Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL;
96 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) {
97 if (connection.getExtras().getBoolean(connectionTag)) {
98 LogUtil.i("SimulatorVideoCall.onNewOutgoingConnection", "connection created");
99 handleNewConnection(connection);
100 // Telecom will force the connection to switch to Dialing when we return it. Wait until after
102 ThreadUtil.postOnUiThread(() -> connection.setActive());
107 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) {
    [all...]
SimulatorConference.java 22 import android.telecom.Connection;
33 * conference object and add it to the connection service. All operations such as hold and DTMF are
54 Connection.CAPABILITY_MUTE
55 | Connection.CAPABILITY_SUPPORT_HOLD
56 | Connection.CAPABILITY_HOLD
57 | Connection.CAPABILITY_MANAGE_CONFERENCE);
65 Connection.CAPABILITY_MUTE
66 | Connection.CAPABILITY_SUPPORT_HOLD
67 | Connection.CAPABILITY_HOLD
68 | Connection.CAPABILITY_MANAGE_CONFERENCE)
    [all...]
SimulatorVideoProvider.java 23 import android.telecom.Connection;
35 final class SimulatorVideoProvider extends Connection.VideoProvider {
37 @NonNull private final SimulatorConnection connection; field in class:SimulatorVideoProvider
42 SimulatorVideoProvider(@NonNull Context context, @NonNull SimulatorConnection connection) {
44 this.connection = Assert.isNotNull(connection);
100 connection.onEvent(
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipConnectionService.java 30 import android.telecom.Connection;
66 public Connection onCreateOutgoingConnection(
74 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause(
81 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause(
82 DisconnectCause.OUTGOING_FAILURE, "Did not match service connection"));
85 final SipConnection connection = new SipConnection(); local
86 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED);
87 connection.setInitializing();
88 connection.onAddedToCallService();
93 connection.setDisconnected(new android.telecom.DisconnectCause
    [all...]
  /packages/services/Telephony/src/com/android/services/telephony/
TelephonyConference.java 20 import android.telecom.Connection;
40 Connection.CAPABILITY_SUPPORT_HOLD |
41 Connection.CAPABILITY_HOLD |
42 Connection.CAPABILITY_MUTE |
43 Connection.CAPABILITY_MANAGE_CONFERENCE);
49 * Invoked when the Conference and all it's {@link Connection}s should be disconnected.
53 for (Connection connection : getConnections()) {
54 if (disconnectCall(connection)) {
61 * Disconnect the underlying Telephony Call for a connection
113 final TelephonyConnection connection = getFirstConnection(); local
124 final TelephonyConnection connection = getFirstConnection(); local
132 final TelephonyConnection connection = getFirstConnection(); local
140 final TelephonyConnection connection = getFirstConnection(); local
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
FramedStream.java 50 * available bytes in {@code connection.bytesLeftInWriteWindow}.
56 private final FramedConnection connection; field in class:FramedStream
76 FramedStream(int id, FramedConnection connection, boolean outFinished, boolean inFinished,
78 if (connection == null) throw new NullPointerException("connection == null");
81 this.connection = connection;
83 connection.peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE);
85 connection.okHttpSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE));
121 return connection.client == streamIsClient
    [all...]
  /frameworks/base/services/core/java/com/android/server/tv/
TvRemoteProviderProxy.java 37 * Maintains a connection to a tv remote provider service.
64 // Connection state
67 private Connection mActiveConnection;
186 Connection connection = new Connection(provider); local
187 if (connection.register()) {
189 mActiveConnection = connection;
212 private void onConnectionReady(Connection connection) {
576 Connection connection = mConnectionRef.get(); local
584 Connection connection = mConnectionRef.get(); local
592 Connection connection = mConnectionRef.get(); local
600 Connection connection = mConnectionRef.get(); local
608 Connection connection = mConnectionRef.get(); local
616 Connection connection = mConnectionRef.get(); local
625 Connection connection = mConnectionRef.get(); local
633 Connection connection = mConnectionRef.get(); local
641 Connection connection = mConnectionRef.get(); local
    [all...]
  /cts/tests/tests/telecom/src/android/telecom/cts/
RttOperationsTest.java 21 import android.telecom.Connection;
63 final MockConnection connection = verifyConnectionForOutgoingCall(); local
67 verifyRttEnabled(call, connection);
77 final MockConnection connection = verifyConnectionForIncomingCall(); local
81 verifyRttEnabled(call, connection);
90 final MockConnection connection = verifyConnectionForOutgoingCall(); local
96 connection.getInvokeCounter(MockConnection.ON_START_RTT);
100 connection.setRttTextStream((Connection.RttTextStream) startRttCounter.getArgs(0)[0]);
101 connection.setConnectionProperties
114 final MockConnection connection = verifyConnectionForOutgoingCall(); local
138 final MockConnection connection = verifyConnectionForOutgoingCall(); local
161 final MockConnection connection = verifyConnectionForOutgoingCall(); local
185 final MockConnection connection = verifyConnectionForOutgoingCall(); local
206 final MockConnection connection = verifyConnectionForOutgoingCall(); local
    [all...]
BaseRemoteTelecomTest.java 26 import android.telecom.Connection;
62 // Setup the primary connection service first
72 // Generate a vanilla mock connection service, if not provided.
99 //Telecom doesn't unbind the remote connection service at the end of all calls today.
105 // Assuming only 1 connection present
113 fail("No outgoing call connection requested by Telecom");
119 assertThat("Telecom should create outgoing connection for remote outgoing call",
123 MockConnection connection = remoteConnectionService.outgoingConnections.get(connectionIndex); local
124 return connection;
128 // Assuming only 1 connection presen
146 MockConnection connection = remoteConnectionService.incomingConnections.get(connectionIndex); local
158 MockConnection connection = remoteConnectionService.outgoingConnections.get(connectionIndex); local
    [all...]
  /cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
AccessoryTestCompanion.java 120 UsbDeviceConnection connection = mUsbManager.openDevice(mDevice); local
125 testName = nextTest(connection, in, out, true);
133 int numTransferred = connection.bulkTransfer(in, buffer, 32, 0);
136 numTransferred = connection.bulkTransfer(out, buffer, 32, 0);
145 int numTransferred = connection.bulkTransfer(in, buffer, 32, 0);
147 numTransferred = connection.bulkTransfer(in, buffer, 16, 32, 0);
150 numTransferred = connection.bulkTransfer(out, buffer, 32, 0);
158 int numTransferred = connection.bulkTransfer(in, buffer, 32, 0);
161 numTransferred = connection.bulkTransfer(out, buffer, 16, 0);
163 numTransferred = connection.bulkTransfer(out, buffer, 16, 16, 0)
270 UsbDeviceConnection connection = mUsbManager.openDevice(device); local
    [all...]
  /cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
TestUtils.java 96 fail("Connection to " + host + ":" + port + " succeeded");
110 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); local
112 connection.getInputStream();
113 fail("Connection to " + host + ":" + port + " succeeded");
121 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); local
122 connection.getInputStream();
142 fail("Connection to " + host + ":" + port + " succeeded");
  /external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
HttpsURLConnectionTest.java 50 HttpsURLConnection connection = local
53 assertSame(originalHostnameVerifier, connection.getHostnameVerifier());
55 connection.disconnect();
61 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection();
63 assertSame(anotherVerifier, connection.getHostnameVerifier());
65 connection.disconnect();
69 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection();
71 assertSame(originalHostnameVerifier, connection.getHostnameVerifier());
73 connection.disconnect();
88 HttpsURLConnection connection local
    [all...]
  /external/oauth/core/src/main/java/net/oauth/client/
URLConnectionClient.java 36 * they do things like connection pooling. They also support reading the body
50 final URLConnection connection = url.openConnection(); local
51 connection.setDoInput(true);
52 if (connection instanceof HttpURLConnection) {
53 HttpURLConnection http = (HttpURLConnection) connection;
65 for (Map.Entry<String, List<String>> header : connection
77 && connection instanceof HttpURLConnection) {
80 connection.setRequestProperty(key, header.getValue());
89 ((HttpURLConnection) connection)
92 connection.setDoOutput(true)
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DisconnectTest.java 81 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local
82 disconnectLater(connection, 500);
84 connection.setDoOutput(true);
85 connection.setFixedLengthStreamingMode(requestBodySize);
86 OutputStream requestBody = connection.getOutputStream();
93 fail("Expected connection to be closed");
97 connection.disconnect();
108 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local
109 disconnectLater(connection, 500);
111 InputStream responseBody = connection.getInputStream()
    [all...]
ThreadInterruptTest.java 85 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local
86 connection.setDoOutput(true);
87 connection.setFixedLengthStreamingMode(requestBodySize);
88 OutputStream requestBody = connection.getOutputStream();
99 connection.disconnect();
112 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); local
113 InputStream responseBody = connection.getInputStream();
122 connection.disconnect();
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
AsyncHttpURLConnection.java 64 HttpURLConnection connection = local
70 connection.setRequestMethod(method);
71 connection.setUseCaches(false);
72 connection.setDoInput(true);
73 connection.setConnectTimeout(HTTP_TIMEOUT_MS);
74 connection.setReadTimeout(HTTP_TIMEOUT_MS);
76 connection.addRequestProperty("origin", HTTP_ORIGIN);
80 connection.setDoOutput(true);
81 connection.setFixedLengthStreamingMode(postData.length);
84 connection.setRequestProperty("Content-Type", "text/plain; charset=utf-8")
    [all...]
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
URLFetcher.java 53 * Retry {@code retry} times if the connection failed or timed out for any reason.
97 HttpURLConnection connection = null; local
99 connection = (HttpURLConnection) url.openConnection();
100 connection.setInstanceFollowRedirects(true);
101 connection.setConnectTimeout(connectionTimeoutMillis);
102 connection.setReadTimeout(connectionTimeoutMillis);
103 connection.setUseCaches(true);
104 connection.setInstanceFollowRedirects(false);
105 connection.addRequestProperty("Cache-Control", "max-stale=60");
107 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK)
    [all...]
  /frameworks/base/telecomm/java/android/telecom/
RemoteConnectionService.java 40 * Remote connection service which other connection services can use to place calls on their behalf.
60 RemoteConnection connection =
62 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
63 mPendingConnections.remove(connection);
64 // Unconditionally initialize the connection ...
65 connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
66 connection.setConnectionProperties(parcel.getConnectionProperties());
68 || parcel.getState() != Connection.STATE_DISCONNECTED)
527 RemoteConnection connection = local
    [all...]
  /frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
TestUtils.java 41 fail("Expected connection to " + host + ":" + port + " to fail.");
55 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local
56 connection.setSSLSocketFactory(context.getSocketFactory());
58 connection.getInputStream();
59 fail("Connection to " + host + ":" + port + " expected to fail");
68 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); local
69 connection.setSSLSocketFactory(context.getSocketFactory());
70 connection.getInputStream();
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsExternalCallTrackerTest.java 29 import com.android.internal.telephony.Connection;
78 ArgumentCaptor<Connection> connectionArgumentCaptor = ArgumentCaptor.forClass(
79 Connection.class);
83 Connection connection = connectionArgumentCaptor.getValue(); local
84 assert(connection instanceof ImsExternalConnection);
92 ImsExternalConnection connection = (ImsExternalConnection) local
98 assertEquals(connection.getState(), Call.State.DISCONNECTED);
  /libcore/luni/src/test/java/libcore/java/net/
OldCookieHandlerTest.java 69 URLConnection connection = server.getUrl("/path/foo").openConnection(); local
70 connection.getContent();
  /test/suite_harness/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...]
  /external/autotest/site_utils/
dump_to_cloudsql.py 45 connected: Whether we currently hold a live DB connection.
74 """Closes the current database connection."""
81 """Creates a new database connection."""
95 """Connects to the Cloud SQL database and returns the connection.
98 A MySQLdb compatible database connection to the Cloud SQL instance.
120 """Connects to the local MySQL database and returns the connection.
123 A MySQLdb database connection to the local MySQL database.
224 # Handle interrupts and connection failures.
271 connection = CloudSQLConnectionFactory(args.remote) variable
273 connection = LocalSQLConnectionFactory(args.remote, args.user variable
    [all...]
  /external/libbrillo/brillo/http/
http_transport_curl_unittest.cc 69 auto connection = transport_->CreateConnection("http://foo.bar/get", local
75 EXPECT_NE(nullptr, connection.get());
78 connection.reset();
87 auto connection = transport_->CreateConnection( local
89 EXPECT_NE(nullptr, connection.get());
92 connection.reset();
101 auto connection = transport_->CreateConnection( local
103 EXPECT_NE(nullptr, connection.get());
106 connection.reset();
117 auto connection = transport_->CreateConnection local
137 auto connection = transport_->CreateConnection( local
155 auto connection = transport_->CreateConnection( local
202 auto connection = transport_->CreateConnection( local
303 auto connection = transport_->CreateConnection( local
    [all...]

Completed in 680 milliseconds

1 23 4 5 6 7 8 91011>>