Home
last modified time | relevance | path

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

/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java106 final HttpResponse resp; in authenticate() local
122 resp = getHttpClient().execute(post); in authenticate()
124 if (resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { in authenticate()
125 InputStream istream = (resp.getEntity() != null) ? resp.getEntity().getContent() in authenticate()
136 Log.e(TAG, "Error authenticating" + resp.getStatusLine()); in authenticate()
192 final HttpResponse resp = getHttpClient().execute(post); in syncContacts() local
193 final String response = EntityUtils.toString(resp.getEntity()); in syncContacts()
194 if (resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { in syncContacts()
208 if (resp.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) { in syncContacts()
212 Log.e(TAG, "Server error in sending dirty contacts: " + resp.getStatusLine()); in syncContacts()