Home | History | Annotate | Download | only in media

Lines Matching defs:connection

49         // that connection open. There is no good way to perform this method.
57 HttpURLConnection connection = null;
60 connection = (HttpURLConnection) url.openConnection();
61 connection.connect();
62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {
63 return ContentType.IMAGE_GIF.equalsIgnoreCase(connection.getContentType());
74 if (connection != null) {
75 connection.disconnect();
88 HttpURLConnection connection = null;
91 connection = (HttpURLConnection) url.openConnection();
92 connection.setDoInput(true);
93 connection.connect();
94 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {
95 bitmap = BitmapFactory.decodeStream(connection.getInputStream());
114 if (connection != null) {
115 connection.disconnect();