Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java233 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local
239 getContext().bindService(service, conn, 0); in bindExpectResult()
253 getContext().unbindService(conn); in bindExpectResult()
266 getContext().unbindService(conn); in bindExpectResult()
268 conn = new TestConnection(true, true); in bindExpectResult()
272 conn.setMonitor(true); in bindExpectResult()
274 getContext().bindService(service, conn, 0); in bindExpectResult()
283 getContext().unbindService(conn); in bindExpectResult()
291 conn.setMonitor(false); in bindExpectResult()
296 getContext().unbindService(conn); in bindExpectResult()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmCallTracker.java161 GsmConnection conn = (GsmConnection)connCopy.get(i); in fakeHoldForegroundBeforeDial() local
163 conn.fakeHoldBeforeDial(); in fakeHoldForegroundBeforeDial()
433 GsmConnection conn = connections[i]; in handlePollCalls() local
448 conn+", dc=" + dc); in handlePollCalls()
450 if (conn == null && dc != null) { in handlePollCalls()
503 } else if (conn != null && dc == null) { in handlePollCalls()
506 droppedDuringPoll.add(conn); in handlePollCalls()
510 } else if (conn != null && dc != null && !conn.compareTo(dc)) { in handlePollCalls()
514 droppedDuringPoll.add(conn); in handlePollCalls()
521 } else if (conn != null && dc != null) { /* implicit conn.compareTo(dc) */ in handlePollCalls()
[all …]
DGsmCall.java98 attach(Connection conn, DriverCall dc) { in attach() argument
99 connections.add(conn); in attach()
105 attachFake(Connection conn, State state) { in attachFake() argument
106 connections.add(conn); in attachFake()
115 connectionDisconnected(GsmConnection conn) { in connectionDisconnected() argument
138 detach(GsmConnection conn) { in detach() argument
139 connections.remove(conn); in detach()
147 update (GsmConnection conn, DriverCall dc) { in update() argument
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaCallTracker.java173 CdmaConnection conn = (CdmaConnection)connCopy.get(i); in fakeHoldForegroundBeforeDial() local
175 conn.fakeHoldBeforeDial(); in fakeHoldForegroundBeforeDial()
497 CdmaConnection conn = connections[i]; in handlePollCalls() local
512 conn+", dc=" + dc); in handlePollCalls()
514 if (conn == null && dc != null) { in handlePollCalls()
558 } else if (conn != null && dc == null) { in handlePollCalls()
590 } else if (conn != null && dc != null) { /* implicit conn.compareTo(dc) */ in handlePollCalls()
592 if (conn.isIncoming != dc.isMT) { in handlePollCalls()
595 droppedDuringPoll.add(conn); in handlePollCalls()
611 changed = conn.update(dc); in handlePollCalls()
[all …]
DCdmaCall.java102 attach(Connection conn, DriverCall dc) { in attach() argument
103 connections.add(conn); in attach()
109 attachFake(Connection conn, State state) { in attachFake() argument
110 connections.add(conn); in attachFake()
119 connectionDisconnected(CdmaConnection conn) { in connectionDisconnected() argument
142 detach(CdmaConnection conn) { in detach() argument
143 connections.remove(conn); in detach()
151 update (CdmaConnection conn, DriverCall dc) { in update() argument
DCdmaDataConnectionTracker.java282 for (DataConnection conn : mDataConnections.values()) { in cleanUpConnection()
283 if(conn != null) { in cleanUpConnection()
285 mDataConnectionAsyncChannels.get(conn.getDataConnectionId()); in cleanUpConnection()
288 conn.tearDown(reason, obtainMessage(EVENT_DISCONNECT_DONE, in cleanUpConnection()
289 conn.getDataConnectionId(), 0, reason)); in cleanUpConnection()
321 CdmaDataConnection conn = findFreeDataConnection(); in setupData() local
323 if (conn == null) { in setupData()
329 mPendingDataConnection = conn; in setupData()
347 conn.bringUp(msg, mActiveApn); in setupData()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java95 final HttpURLConnection conn = (HttpURLConnection) new URL("http://www.google.com/") in testUrlConnection() local
98 conn.connect(); in testUrlConnection()
100 new InputStreamReader(conn.getInputStream())); in testUrlConnection()
105 conn.disconnect(); in testUrlConnection()
119 final HttpURLConnection conn = (HttpURLConnection) new URL("http://ipv6.google.com/") in testUrlConnectionv6() local
122 conn.connect(); in testUrlConnectionv6()
124 new InputStreamReader(conn.getInputStream())); in testUrlConnectionv6()
129 conn.disconnect(); in testUrlConnectionv6()
/frameworks/base/core/jni/
Dandroid_server_BluetoothEventLoop.cpp177 nat->conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err); in initializeNativeDataNative()
182 dbus_connection_set_exit_on_disconnect(nat->conn, FALSE); in initializeNativeDataNative()
202 static DBusHandlerResult event_filter(DBusConnection *conn, DBusMessage *msg,
204 DBusHandlerResult agent_event_filter(DBusConnection *conn,
231 if (nat != NULL && nat->conn != NULL) { in setUpEventLoop()
239 dbus_connection_unregister_object_path (nat->conn, agent_path); in setUpEventLoop()
244 if (!dbus_connection_add_filter(nat->conn, event_filter, nat, NULL)){ in setUpEventLoop()
249 dbus_bus_add_match(nat->conn, in setUpEventLoop()
256 dbus_bus_add_match(nat->conn, in setUpEventLoop()
263 dbus_bus_add_match(nat->conn, in setUpEventLoop()
[all …]
Dandroid_server_BluetoothA2dpService.cpp46 DBusConnection *conn; member
78 nat->conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err); in initNative()
84 dbus_connection_set_exit_on_disconnect(nat->conn, FALSE); in initNative()
93 dbus_connection_close(nat->conn); in cleanupNative()
112 nat->conn, -1, c_path, in getSinkPropertiesNative()
142 bool ret = dbus_func_args_async(env, nat->conn, -1, onConnectSinkResult, context_path, in connectSinkNative()
160 bool ret = dbus_func_args_async(env, nat->conn, -1, NULL, NULL, nat, in disconnectSinkNative()
177 bool ret = dbus_func_args_async(env, nat->conn, -1, NULL, NULL, nat, in suspendSinkNative()
193 bool ret = dbus_func_args_async(env, nat->conn, -1, NULL, NULL, nat, in resumeSinkNative()
209 bool ret = dbus_func_args_async(env, nat->conn, -1, NULL, NULL, nat, in avrcpVolumeUpNative()
[all …]
Dandroid_server_BluetoothService.cpp68 DBusConnection *conn; member
74 extern DBusHandlerResult agent_event_filter(DBusConnection *conn,
91 if (nat == NULL || nat->conn == NULL) { in get_native_data()
125 nat->conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err); in initializeNativeDataNative()
131 dbus_connection_set_exit_on_disconnect(nat->conn, FALSE); in initializeNativeDataNative()
163 if (!dbus_connection_register_object_path(nat->conn, device_agent_path, in setupNativeDataNative()
181 dbus_connection_unregister_object_path (nat->conn, device_agent_path); in tearDownNativeDataNative()
240 reply = dbus_connection_send_with_reply_and_block(nat->conn, msg, -1, &err); in startDiscoveryNative()
285 reply = dbus_connection_send_with_reply_and_block(nat->conn, msg, -1, &err); in stopDiscoveryNative()
317 DBusMessage *reply = dbus_func_args(env, nat->conn, in readAdapterOutOfBandDataNative()
[all …]
Dandroid_bluetooth_common.h71 DBusConnection *conn; member
103 DBusConnection *conn,
115 DBusConnection *conn,
123 DBusConnection *conn,
132 DBusConnection *conn,
141 DBusConnection *conn,
Dandroid_bluetooth_common.cpp140 DBusConnection *conn, in dbus_func_args_async_valist() argument
182 reply = dbus_connection_send_with_reply(conn, msg, in dbus_func_args_async_valist()
199 DBusConnection *conn, in dbus_func_args_async() argument
213 ret = dbus_func_args_async_valist(env, conn, in dbus_func_args_async()
229 DBusConnection *conn, in dbus_func_args_timeout_valist() argument
262 reply = dbus_connection_send_with_reply_and_block(conn, msg, timeout_ms, err); in dbus_func_args_timeout_valist()
276 DBusConnection *conn, in dbus_func_args_timeout() argument
286 ret = dbus_func_args_timeout_valist(env, conn, timeout_ms, NULL, in dbus_func_args_timeout()
294 DBusConnection *conn, in dbus_func_args() argument
303 ret = dbus_func_args_timeout_valist(env, conn, -1, NULL, in dbus_func_args()
[all …]
/frameworks/base/services/java/com/android/server/am/
DConnectionRecord.java30 final IServiceConnection conn; // The client connection. field in ConnectionRecord
42 pw.println(prefix + "conn=" + conn.asBinder() in dump()
51 conn = _conn; in ConnectionRecord()
70 sb.append(Integer.toHexString(System.identityHashCode(conn.asBinder()))); in toString()
/frameworks/base/core/java/android/view/inputmethod/
DInputBinding.java59 public InputBinding(InputConnection conn, IBinder connToken, in InputBinding() argument
61 mConnection = conn; in InputBinding()
74 public InputBinding(InputConnection conn, InputBinding binding) { in InputBinding() argument
75 mConnection = conn; in InputBinding()
/frameworks/base/core/java/android/net/http/
DHttpConnection.java56 AndroidHttpClientConnection conn = new AndroidHttpClientConnection(); in openConnection() local
60 conn.bind(sock, params); in openConnection()
61 return conn; in openConnection()
DAndroidHttpClient.java36 import org.apache.http.conn.ClientConnectionManager;
37 import org.apache.http.conn.scheme.PlainSocketFactory;
38 import org.apache.http.conn.scheme.Scheme;
39 import org.apache.http.conn.scheme.SchemeRegistry;
42 import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DFsUtils.java29 import org.apache.http.conn.ClientConnectionManager;
30 import org.apache.http.conn.scheme.PlainSocketFactory;
31 import org.apache.http.conn.scheme.Scheme;
32 import org.apache.http.conn.scheme.SchemeRegistry;
33 import org.apache.http.conn.ssl.SSLSocketFactory;
35 import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
/frameworks/base/telephony/java/com/android/internal/telephony/sip/
DSipPhone.java515 SipConnection conn = (SipConnection) c; in merge() local
516 add(conn); in merge()
517 if (conn.getState() == Call.State.HOLDING) { in merge()
518 conn.unhold(audioGroup); in merge()
524 private void add(SipConnection conn) { in add() argument
525 SipCall call = conn.getCall(); in add()
527 if (call != null) call.connections.remove(conn); in add()
529 connections.add(conn); in add()
530 conn.changeOwner(this); in add()
576 void onConnectionStateChanged(SipConnection conn) { in onConnectionStateChanged() argument
[all …]
/frameworks/base/tests/CoreTests/android/core/
DTestHttpClient.java98 final HttpClientConnection conn) throws HttpException, IOException { in execute() argument
101 this.context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn); in execute()
105 HttpResponse response = this.httpexecutor.execute(request, conn, this.context); in execute()
/frameworks/base/core/java/android/net/
DProxy.java45 import org.apache.http.conn.routing.HttpRoute;
46 import org.apache.http.conn.routing.HttpRoutePlanner;
47 import org.apache.http.conn.scheme.SchemeRegistry;
50 import org.apache.http.impl.conn.ProxySelectorRoutePlanner;
282 extends org.apache.http.impl.conn.ProxySelectorRoutePlanner {
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java35 import org.apache.http.conn.params.ConnRoutePNames;
36 import org.apache.http.conn.params.ConnRouteParams;
37 import org.apache.http.conn.scheme.Scheme;
38 import org.apache.http.conn.ssl.AllowAllHostnameVerifier;
39 import org.apache.http.conn.ssl.SSLSocketFactory;
/frameworks/base/
Dpreloaded-classes2093 org.apache.http.conn.BasicManagedEntity
2094 org.apache.http.conn.ClientConnectionManager
2095 org.apache.http.conn.ClientConnectionOperator
2096 org.apache.http.conn.ClientConnectionRequest
2097 org.apache.http.conn.ConnectionKeepAliveStrategy
2098 org.apache.http.conn.ConnectionReleaseTrigger
2099 org.apache.http.conn.EofSensorInputStream
2100 org.apache.http.conn.EofSensorWatcher
2101 org.apache.http.conn.ManagedClientConnection
2102 org.apache.http.conn.OperatedClientConnection
[all …]
/frameworks/base/services/java/com/android/server/
DWallpaperManagerService.java659 void attachServiceLocked(WallpaperConnection conn) { in attachServiceLocked() argument
661 conn.mService.attach(conn, conn.mToken, in attachServiceLocked()
948 WallpaperConnection conn = mWallpaperConnection; in dump() local
950 pw.print(conn); pw.println(":"); in dump()
951 pw.print(" mInfo.component="); pw.println(conn.mInfo.getComponent()); in dump()
952 pw.print(" mToken="); pw.println(conn.mToken); in dump()
953 pw.print(" mService="); pw.println(conn.mService); in dump()
954 pw.print(" mEngine="); pw.println(conn.mEngine); in dump()
DAppWidgetService.java513 ServiceConnectionProxy conn = null; in bindRemoteViewsService() local
517 conn = (ServiceConnectionProxy) mBoundRemoteViewsServices.get(key); in bindRemoteViewsService()
518 conn.disconnect(); in bindRemoteViewsService()
519 mContext.unbindService(conn); in bindRemoteViewsService()
527 conn = new ServiceConnectionProxy(key, connection); in bindRemoteViewsService()
528 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE); in bindRemoteViewsService()
529 mBoundRemoteViewsServices.put(key, conn); in bindRemoteViewsService()
558 ServiceConnectionProxy conn = in unbindRemoteViewsService() local
560 conn.disconnect(); in unbindRemoteViewsService()
561 mContext.unbindService(conn); in unbindRemoteViewsService()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DClientTest.java146 private ServiceConnection conn = new ServiceConnection() { field in ClientTest
163 this.bindService(new Intent(IWapPushManager.class.getName()), conn, in onStart()
171 this.unbindService(conn); in onDestroy()

123