Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/app/
DRemoteService.java562 ServiceConnection conn = new MyServiceConnection();
563 if (bindService(mBindIntent, conn, Context.BIND_AUTO_CREATE)) {
564 mCurConnection = conn;
575 ServiceConnection conn = new MyServiceConnection();
576 if (bindService(mBindIntent, conn,
578 mCurConnection = conn;
589 ServiceConnection conn = new MyServiceConnection();
591 conn, Context.BIND_AUTO_CREATE | Context.BIND_ABOVE_CLIENT)) {
592 mCurConnection = conn;
603 ServiceConnection conn = new MyServiceConnection();
[all …]
/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/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java232 URLConnection conn = new URL(iconUri.toString()).openConnection(); in fetchFavicon() local
233 conn.connect(); in fetchFavicon()
234 is = conn.getInputStream(); in fetchFavicon()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java245 URLConnection conn = new URL(iconUri.toString()).openConnection(); in fetchFavicon() local
246 conn.connect(); in fetchFavicon()
247 is = conn.getInputStream(); in fetchFavicon()
/development/apps/Development/src/com/android/development/
DConnectivity.java781 HttpURLConnection conn = null; in onHttpRequest()
790 conn = (HttpURLConnection) httpsUrl.openConnection(Proxy.NO_PROXY); in onHttpRequest()
791 in = new InputStreamReader(conn.getInputStream()); in onHttpRequest()
800 conn = (HttpURLConnection) network.openConnection(httpsUrl, in onHttpRequest()
802 in = new InputStreamReader(conn.getInputStream()); in onHttpRequest()
814 if (conn != null) conn.disconnect(); in onHttpRequest()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java28 import org.apache.http.conn.params.ConnManagerParams;