Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/app/
DRemoteService.java550 ServiceConnection conn = new MyServiceConnection();
552 conn, Context.BIND_AUTO_CREATE)) {
553 mCurConnection = conn;
564 ServiceConnection conn = new MyServiceConnection();
566 conn, Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND)) {
567 mCurConnection = conn;
578 ServiceConnection conn = new MyServiceConnection();
580 conn, Context.BIND_AUTO_CREATE | Context.BIND_ABOVE_CLIENT)) {
581 mCurConnection = conn;
592 ServiceConnection conn = new MyServiceConnection();
[all …]
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DMainActivity.java143 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in downloadUrl() local
144 conn.setReadTimeout(10000 /* milliseconds */); in downloadUrl()
145 conn.setConnectTimeout(15000 /* milliseconds */); in downloadUrl()
146 conn.setRequestMethod("GET"); in downloadUrl()
147 conn.setDoInput(true); in downloadUrl()
149 conn.connect(); in downloadUrl()
150 InputStream stream = conn.getInputStream(); in downloadUrl()
/development/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java267 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in downloadUrl() local
268 conn.setReadTimeout(10000 /* milliseconds */); in downloadUrl()
269 conn.setConnectTimeout(15000 /* milliseconds */); in downloadUrl()
270 conn.setRequestMethod("GET"); in downloadUrl()
271 conn.setDoInput(true); in downloadUrl()
273 conn.connect(); in downloadUrl()
274 InputStream stream = conn.getInputStream(); in downloadUrl()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java297 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in downloadUrl() local
298 conn.setReadTimeout(NET_READ_TIMEOUT_MILLIS /* milliseconds */); in downloadUrl()
299 conn.setConnectTimeout(NET_CONNECT_TIMEOUT_MILLIS /* milliseconds */); in downloadUrl()
300 conn.setRequestMethod("GET"); in downloadUrl()
301 conn.setDoInput(true); in downloadUrl()
303 conn.connect(); in downloadUrl()
304 return conn.getInputStream(); in downloadUrl()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java28 import org.apache.http.conn.params.ConnManagerParams;
/development/apps/Development/src/com/android/development/
DConnectivity.java78 import org.apache.http.conn.params.ConnRouteParams;