Home
last modified time | relevance | path

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

/external/downloader/src/test/java/com/google/android/downloader/
DSimpleFileDownloadDestinationTest.java46 assertThat(downloadDestination.numExistingBytes()).isEqualTo(0); in numExistingBytes_fileDoesNotExist()
55 assertThat(downloadDestination.numExistingBytes()).isEqualTo(0); in numExistingBytes_fileEmpty()
65 assertThat(downloadDestination.numExistingBytes()).isEqualTo(targetFile.length()); in numExistingBytes_fileNonEmpty()
DProtoFileDownloadDestinationTest.java46 assertThat(downloadDestination.numExistingBytes()).isEqualTo(0); in numExistingBytes_fileDoesNotExist()
55 assertThat(downloadDestination.numExistingBytes()).isEqualTo(0); in numExistingBytes_fileEmpty()
65 assertThat(downloadDestination.numExistingBytes()).isEqualTo(targetFile.length()); in numExistingBytes_fileNonEmpty()
DDownloaderTest.java156 assertThat(destination.numExistingBytes()).isEqualTo(11); in downloadOneFile()
/external/downloader/src/main/java/com/google/android/downloader/
DDownloadDestination.java33 long numExistingBytes() throws IOException; in numExistingBytes() method
DDownloader.java627 long numExistingBytes = request.destination().numExistingBytes(); in runRequest() local
628 if (numExistingBytes > 0) { in runRequest()
630 "Existing bytes found. numExistingBytes=%d, uri=%s", numExistingBytes, request.uri()); in runRequest()
631 urlRequestBuilder.addHeader(HttpHeaders.RANGE, "bytes=" + numExistingBytes + "-"); in runRequest()
DProtoFileDownloadDestination.java44 public long numExistingBytes() throws IOException { in numExistingBytes() method in ProtoFileDownloadDestination
DSimpleFileDownloadDestination.java48 public long numExistingBytes() throws IOException { in numExistingBytes() method in SimpleFileDownloadDestination