Searched defs:connection (Results 1 - 25 of 39) sorted by relevance

12

/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java39 public UsbAccessoryBulkTransport(Logger logger, UsbDeviceConnection connection, argument
42 mConnection = connection;
/frameworks/base/core/java/android/net/http/
H A DCertificateChainValidator.java71 * @param sslSocket The secure connection socket
76 HttpsConnection connection, SSLSocket sslSocket, String domain)
92 // update the SSL certificate associated with the connection
93 if (connection != null) {
95 connection.setCertificate(
75 doHandshakeAndValidateServerCertificates( HttpsConnection connection, SSLSocket sslSocket, String domain) argument
H A DIdleCache.java63 * Caches connection, if there is room.
64 * @return true if connection cached
67 HttpHost host, Connection connection) {
81 entry.mConnection = connection;
66 cacheConnection( HttpHost host, Connection connection) argument
H A DRequest.java76 // This will be used to set the Range field if we retry a connection. This
156 * @param connection Request served by this connection
158 void setConnection(Connection connection) { argument
159 mConnection = connection;
363 * call. Does not close connection--use close() below for that.
512 HttpsConnection connection = (HttpsConnection)(mConnection);
513 if (connection != null) {
514 connection.restartConnection(proceed);
H A DRequestQueue.java64 /* default simultaneous connection count */
68 * This class maintains active connection threads
151 Connection connection = mThreads[i].mConnection;
152 if (connection != null) connection.setCanPersist(false);
164 Connection connection = ct.mConnection;
165 if (connection != null && connection.mHost.equals(host)) {
183 public boolean recycleConnection(Connection connection) { argument
184 return mIdleCache.cacheConnection(connection
544 recycleConnection(Connection connection) argument
[all...]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DProxyServer.java60 private Socket connection; field in class:ProxyServer.ProxyConnection
62 private ProxyConnection(Socket connection) { argument
63 this.connection = connection;
69 String requestLine = getLine(connection.getInputStream());
71 connection.close();
76 connection.close();
103 connection.close();
127 while (getLine(connection.getInputStream()).length() != 0);
129 sendLine(connection, HTTP_O
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java130 IAccessibilityInteractionConnection connection) {
129 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp37 SensorEventQueue::SensorEventQueue(const sp<ISensorEventConnection>& connection) argument
38 : mSensorEventConnection(connection), mRecBuffer(NULL), mAvailable(0), mConsumed(0) {
H A DSensorManager.cpp136 sp<ISensorEventConnection> connection = local
138 if (connection == NULL) {
140 ALOGE("createEventQueue: connection is NULL. SensorService died.");
143 queue = new SensorEventQueue(connection);
/frameworks/volley/src/com/android/volley/toolbox/
H A DHurlStack.java102 HttpURLConnection connection = openConnection(parsedUrl, request);
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
133 entityFromConnection(HttpURLConnection connection) argument
179 setConnectionParametersForRequest(HttpURLConnection connection, Request<?> request) argument
221 addBodyIfExists(HttpURLConnection connection, Request<?> request) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTPSession.cpp52 AString connection; local
53 if (!mDesc->findAttribute(i, "c=", &connection)) {
54 // No per-stream connection information, try global fallback.
55 if (!mDesc->findAttribute(0, "c=", &connection)) {
56 ALOGE("Unable to find connection attribute.");
60 if (!(connection == "IN IP4 127.0.0.1")) {
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java61 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { argument
63 return native_init(connection, endpoint.getAddress(), endpoint.getAttributes(),
177 private native boolean native_init(UsbDeviceConnection connection, int ep_address, argument
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) argument
38 return (struct usb_device*)env->GetIntField(connection, field_context);
/frameworks/base/core/java/android/app/
H A DUiAutomation.java154 * operations on the provided connection.
157 * @param connection The connection for performing privileged operations.
161 public UiAutomation(Looper looper, IUiAutomationConnection connection) { argument
165 if (connection == null) {
168 mUiAutomationConnection = connection;
278 final IAccessibilityServiceConnection connection;
281 connection = AccessibilityInteractionClient.getInstance()
285 if (connection != null) {
287 return connection
[all...]
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetManager.java767 * @param connection The callback interface to be notified when a connection is made or lost.
771 public void bindRemoteViewsService(int appWidgetId, Intent intent, IBinder connection, argument
774 sService.bindRemoteViewsService(appWidgetId, intent, connection,
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityManager.java461 * Adds an accessibility interaction connection interface for a given window.
462 * @param windowToken The window token to which a connection is added.
463 * @param connection The connection.
468 IAccessibilityInteractionConnection connection) {
470 return mService.addAccessibilityInteractionConnection(windowToken, connection, mUserId);
472 Log.e(LOG_TAG, "Error while adding an accessibility interaction connection. ", re);
478 * Removed an accessibility interaction connection interface for a given window.
479 * @param windowToken The window token to which a connection is removed.
487 Log.e(LOG_TAG, "Error while removing an accessibility interaction connection
467 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
[all...]
H A DAccessibilityInteractionClient.java104 // The connection cache is shared between all interrogating threads.
108 // The connection cache is shared between all interrogating threads since
160 * @param connectionId The id of a connection for interacting with the system.
172 * @param connectionId The id of a connection for interacting with the system.
188 IAccessibilityServiceConnection connection = getConnection(connectionId);
189 if (connection != null) {
198 final boolean success = connection.findAccessibilityNodeInfoByAccessibilityId(
212 Log.w(LOG_TAG, "No connection for connection id: " + connectionId);
229 * @param connectionId The id of a connection fo
670 addConnection(int connectionId, IAccessibilityServiceConnection connection) argument
[all...]
/frameworks/base/media/java/android/mtp/
H A DMtpDevice.java28 * device and objects stored on it, as well as open the connection and transfer data.
52 * The connection will be closed when you call {@link #close()}
53 * The connection will also be closed if this method fails.
55 * @param connection an open {@link android.hardware.usb.UsbDeviceConnection} for the device
58 public boolean open(UsbDeviceConnection connection) { argument
59 boolean result = native_open(mDevice.getDeviceName(), connection.getFileDescriptor());
61 connection.close();
/frameworks/base/services/java/com/android/server/
H A DAppWidgetService.java175 public void bindRemoteViewsService(int appWidgetId, Intent intent, IBinder connection, argument
177 getImplForUser(userId).bindRemoteViewsService(appWidgetId, intent, connection);
H A DTextServicesManagerService.java477 final InternalServiceConnection connection = new InternalServiceConnection(
484 if (!bindCurrentSpellCheckerService(serviceIntent, connection, Context.BIND_AUTO_CREATE)) {
489 connection, tsListener, locale, scListener, uid, bundle);
718 public SpellCheckerBindGroup(InternalServiceConnection connection, argument
721 mInternalConnection = connection;
H A DWallpaperManagerService.java194 WallpaperConnection connection; field in class:WallpaperManagerService.WallpaperData
233 if (mWallpaper.connection == this) {
251 if (mWallpaper.connection == this) {
297 if (mWallpaper.connection == this) {
670 if (wallpaper.connection != null) {
671 if (wallpaper.connection.mEngine != null) {
673 wallpaper.connection.mEngine.setDesiredSize(
678 } else if (wallpaper.connection.mService != null) {
682 wallpaper.connection.mDimensionsChanged = true;
739 if (wallpaper.connection !
[all...]
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp62 const sp<EventThread::Connection>& connection) {
64 mDisplayEventConnections.add(connection);
70 const wp<EventThread::Connection>& connection) {
72 mDisplayEventConnections.remove(connection);
76 const sp<EventThread::Connection>& connection) {
80 if (connection->count != new_count) {
81 connection->count = new_count;
88 const sp<EventThread::Connection>& connection) {
90 if (connection->count < 0) {
91 connection
61 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument
69 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument
75 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument
87 requestNextVsync( const sp<EventThread::Connection>& connection) argument
335 sp<Connection> connection = local
[all...]
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityService.java470 IAccessibilityServiceConnection connection =
472 if (connection != null) {
474 return connection.performGlobalAction(action);
493 IAccessibilityServiceConnection connection =
495 if (connection != null) {
497 return connection.getServiceInfo();
524 IAccessibilityServiceConnection connection =
526 if (mInfo != null && connection != null) {
528 connection.setServiceInfo(mInfo);
606 public void setConnection(IAccessibilityServiceConnection connection, in argument
[all...]
/frameworks/base/services/java/com/android/server/media/
H A DRemoteDisplayProviderProxy.java40 * Maintains a connection to a particular remote display provider service.
230 Connection connection = new Connection(provider);
231 if (connection.register()) {
232 mActiveConnection = connection;
252 private void onConnectionReady(Connection connection) { argument
253 if (mActiveConnection == connection) {
265 private void onConnectionDied(Connection connection) { argument
266 if (mActiveConnection == connection) {
268 Slog.d(TAG, this + ": Service connection died");
274 private void onDisplayStateChanged(Connection connection, RemoteDisplayStat argument
427 ProviderCallback(Connection connection) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java39 * 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 mus
363 releaseConnection(SQLiteConnection connection) argument
392 recycleConnectionLocked(SQLiteConnection connection, AcquiredConnectionStatus status) argument
421 shouldYieldConnection(SQLiteConnection connection, int connectionFlags) argument
526 closeConnectionAndLogExceptionsLocked(SQLiteConnection connection) argument
906 finishAcquireConnectionLocked(SQLiteConnection connection, int connectionFlags) argument
[all...]

Completed in 490 milliseconds

12