/external/libmicrohttpd/doc/examples/ |
responseheaders.c | 23 answer_to_connection (void *cls, struct MHD_Connection *connection, 52 MHD_queue_response (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, 64 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
|
tlsauthentication.c | 119 ask_for_authentication (struct MHD_Connection *connection, const char *realm) 146 ret = MHD_queue_response (connection, MHD_HTTP_UNAUTHORIZED, response); 154 is_authenticated (struct MHD_Connection *connection, 163 MHD_lookup_connection_value (connection, MHD_HEADER_KIND, 193 secret_page (struct MHD_Connection *connection) 205 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 213 answer_to_connection (void *cls, struct MHD_Connection *connection, 222 *con_cls = connection; 226 if (!is_authenticated (connection, USER, PASSWORD)) 227 return ask_for_authentication (connection, REALM) [all...] |
/external/libmicrohttpd/src/examples/ |
querystring_example.c | 33 struct MHD_Connection *connection, 55 val = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "q"); 67 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
|
refuse_post_example.c | 38 struct MHD_Connection *connection, 63 MHD_queue_response (connection, MHD_HTTP_SERVICE_UNAVAILABLE, 74 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/ |
NullDatabaseMapTest.java | 10 import java.sql.Connection; 42 Connection connection = null; local 47 connection = DatabaseConfig.getMemoryConnection(); 49 //since the connection should not actually be made 56 Assert.assertTrue(connection == null);
|
/frameworks/base/core/java/android/app/ |
ContentProviderHolder.java | 34 public IBinder connection; field in class:ContentProviderHolder 54 dest.writeStrongBinder(connection); 75 connection = source.readStrongBinder();
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
BootUsbScanner.java | 21 UsbDeviceConnection connection = UsbUtil.openConnection(manager, device); local 23 if (AoapInterface.isSupported(connection)) { 27 connection.close();
|
/packages/services/Telephony/src/com/android/services/telephony/ |
TelephonyConnectionService.java | 27 import android.telecom.Connection; 79 public Collection<Connection> getAllConnections() { 91 public void removeConnection(Connection connection) { 92 TelephonyConnectionService.this.removeConnection(connection); 96 Connection connection) { 98 .addExistingConnection(phoneAccountHandle, connection); 102 Connection connection, Conference conference) 590 final TelephonyConnection connection = local 651 Connection connection = local 720 com.android.internal.telephony.Connection connection = local 771 TelephonyConnection connection = local [all...] |
/frameworks/support/media-compat/java/android/support/v4/media/ |
MediaBrowserServiceCompat.java | 195 ConnectionRecord connection = iter.next(); 197 connection.callbacks.onConnect(connection.root.getRootId(), token, 198 connection.root.getExtras()); 200 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); 214 ConnectionRecord connection = mConnections.get(binder); 216 connection.subscriptions.get(parentId); 221 performLoadChildren(parentId, connection, callback.second); 288 ConnectionRecord connection = mConnections.get(binder) [all...] |
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
ResponseCacheTest.java | 199 HttpURLConnection connection = openConnection(url); local 200 assertEquals(responseCode, connection.getResponseCode()); 203 readAscii(connection); 270 // OpenJDK 6 fails on this line, complaining that the connection isn't open yet 302 HttpURLConnection connection = openConnection(server.getUrl("/")); local 303 assertEquals("ABC", readAscii(connection)); 305 connection = openConnection(server.getUrl("/")); // cached! 306 assertEquals("ABC", readAscii(connection)); 329 // an unrelated request should reuse the pooled connection 488 URLConnection connection = openConnection(server.getUrl("/")) local 513 URLConnection connection = openConnection(server.getUrl("\/")); local 539 URLConnection connection = openConnection(url); local 567 URLConnection connection = openConnection(server.getUrl("\/")); local 987 URLConnection connection = openConnection(server.getUrl("\/")); local 1002 URLConnection connection = openConnection(server.getUrl("\/")); local 1017 URLConnection connection = openConnection(server.getUrl("\/")); local 1053 URLConnection connection = openConnection(server.getUrl("\/")); local 1061 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1073 URLConnection connection = openConnection(server.getUrl("\/")); local 1085 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1095 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1110 URLConnection connection = openConnection(url); local 1125 URLConnection connection = openConnection(url); local 1161 HttpURLConnection connection = openConnection(url); local 1207 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1222 URLConnection connection = openConnection(url); local 1631 URLConnection connection = openConnection(server.getUrl("\/")); local 1647 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1660 HttpURLConnection connection = openConnection(server.getUrl("\/")); local 1668 URLConnection connection = openConnection(server.getUrl("\/")); local 1680 HttpURLConnection connection = openConnection(server.getUrl("\/")); local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/ |
cursor.c | 81 pysqlite_Connection* connection;
local 83 if (!PyArg_ParseTuple(args, "O!", &pysqlite_ConnectionType, &connection))
88 Py_INCREF(connection);
89 self->connection = connection;
114 if (!pysqlite_check_thread(self->connection)) {
118 if (!pysqlite_connection_register_cursor(connection, (PyObject*)self)) {
137 Py_XDECREF(self->connection);
179 if (!self->connection->detect_types) {
189 if (self->connection->detect_types & PARSE_COLNAMES) { [all...] |
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipConnectionService.java | 30 import android.telecom.Connection; 65 public Connection onCreateOutgoingConnection( 73 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( 80 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( 81 DisconnectCause.OUTGOING_FAILURE, "Did not match service connection")); 84 final SipConnection connection = new SipConnection(); local 85 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); 86 connection.setInitializing(); 87 connection.onAddedToCallService(); 92 connection.setDisconnected(new android.telecom.DisconnectCause [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) 514 RemoteConnection connection = local [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
RegisteredMediaRouteProvider.java | 70 * Maintains a connection to a particular media route provider service. 83 private Connection mActiveConnection; 132 Connection connection = new Connection(messenger); local 133 if (connection.register()) { 134 mActiveConnection = connection; 156 return "Service connection " + mComponentName.flattenToShortString(); 271 void onConnectionReady(Connection connection) { 673 Connection connection = mConnectionRef.get(); local [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
MockConference.java | 21 import android.telecom.Connection; 46 // a is the primary connection, so inherit the properties from it. 55 for (Connection c : getConnections()) { 66 public void onSeparate(Connection connection) { 67 super.onSeparate(connection); 68 if (getConnections().contains(connection)) { 69 removeConnection(connection); 72 mRemoteConference.separate(((MockConnection)connection).getRemoteConnection()); 79 // Let's just change the connection display name for testing that onMerge was invoked [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/ |
ClassScanner.java | 50 final URLConnection connection = url.openConnection(); local 52 if (connection instanceof JarURLConnection) { 53 loadClassFromJar((JarURLConnection) connection, packageName, 97 private void loadClassFromJar(JarURLConnection connection, String packageName, 99 final JarFile jarFile = connection.getJarFile();
|
/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...] |
/frameworks/base/services/core/java/com/android/server/media/ |
RemoteDisplayProviderProxy.java | 39 * Maintains a connection to a particular remote display provider service. 52 // Connection state 55 private Connection mActiveConnection; 230 Connection connection = new Connection(provider); local 231 if (connection.register()) { 232 mActiveConnection = connection; 252 private void onConnectionReady(Connection connection) { 437 Connection connection = mConnectionRef.get(); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
ContextMap.java | 46 * Connection class helps map connection IDs to device addresses. 48 class Connection { 54 Connection(int connId, String address,int appId) { 149 Set<Connection> mConnections = new HashSet<Connection>(); 222 * Add a new connection for a given application ID. 228 mConnections.add(new Connection(connId, address, id)); 234 * Remove a connection with the given ID. 238 Iterator<Connection> i = mConnections.iterator() 240 Connection connection = i.next(); local 255 Connection connection = i.next(); local 349 Connection connection = i.next(); local 361 Connection connection = ii.next(); local 378 Connection connection = i.next(); local 391 Connection connection = i.next(); local 401 Connection connection = i.next(); local [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
ImapStore.java | 419 // TODO: There is nothing that ever closes this connection. Trouble is, it's not exactly 422 ImapConnection connection = getConnection(); local 425 // Establish a connection to the IMAP server; if necessary 427 connection.executeSimpleCommand(ImapConstants.NOOP); 432 List<ImapResponse> responses = connection.executeSimpleCommand(imapCommand); 469 connection.close(); 472 // We do NOT want this connection pooled, or we will continue to send NOOP and SELECT 474 connection.destroyResponses(); 475 connection = null; 478 if (connection != null) 493 ImapConnection connection = new ImapConnection(this); local 555 ImapConnection connection; local 690 ImapConnection connection; local [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.java | 65 private static final String HEADER_CONNECTION = "Connection"; 120 HttpURLConnection connection = null; local 129 // Now get the connection 130 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); 131 connection.setDoInput(true); 132 connection.setConnectTimeout( 136 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); 138 connection.setRequestProperty( 143 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); 150 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl) [all...] |
/external/libbrillo/brillo/http/ |
http_transport_curl.cc | 31 // This is a class that stores connection data on particular CURL socket 79 // The socket file descriptor for the connection. 88 // connection. 93 // We store a connection here to make sure the object is alive for 95 std::shared_ptr<Connection> connection; member in struct:brillo::http::curl::Transport::AsyncRequestData 116 std::shared_ptr<http::Connection> Transport::CreateConnection( 123 std::shared_ptr<http::Connection> connection; local 129 return connection; 423 Connection* connection = nullptr; local [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
AccessibilityInteractionClient.java | 156 * @param connectionId The id of a connection for interacting with the system. 168 * @param connectionId The id of a connection for interacting with the system. 176 IAccessibilityServiceConnection connection = getConnection(connectionId); local 177 if (connection != null) { 190 window = connection.getWindow(accessibilityWindowId); 198 Log.w(LOG_TAG, "No connection for connection id: " + connectionId); 210 * @param connectionId The id of a connection for interacting with the system. 215 IAccessibilityServiceConnection connection = getConnection(connectionId); local 216 if (connection != null) 269 IAccessibilityServiceConnection connection = getConnection(connectionId); local 332 IAccessibilityServiceConnection connection = getConnection(connectionId); local 380 IAccessibilityServiceConnection connection = getConnection(connectionId); local 427 IAccessibilityServiceConnection connection = getConnection(connectionId); local 471 IAccessibilityServiceConnection connection = getConnection(connectionId); local 514 IAccessibilityServiceConnection connection = getConnection(connectionId); local [all...] |