Lines Matching defs:offset
166 private void seekTo(long offset) throws IOException {
195 if (offset > 0) {
197 "Range", "bytes=" + offset + "-");
283 if (offset > 0 && response != HttpURLConnection.HTTP_PARTIAL) {
292 mCurrentOffset = offset;
304 public int readAt(long offset, int size) {
305 return native_readAt(offset, size);
308 private int readAt(long offset, byte[] data, int size) {
315 if (offset != mCurrentOffset) {
316 seekTo(offset);
330 Log.d(TAG, "readAt " + offset + " / " + size + " => " + n);
335 Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
338 Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
342 Log.d(TAG, "readAt " + offset + " / " + size + " => -1");
348 Log.d(TAG, "readAt " + offset + " / " + size + " => -1");
395 private native final int native_readAt(long offset, int size);