Home
last modified time | relevance | path

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

/external/downloader/src/main/java/com/google/android/downloader/
DDownloadMetadata.java45 public static DownloadMetadata create(String contentTag, long lastModifiedTimeSeconds) { in create() argument
46 return new AutoValue_DownloadMetadata(contentTag, lastModifiedTimeSeconds); in create()
DDownloader.java634 String contentTag = destinationMetadata.getContentTag(); in runRequest() local
636 if (!contentTag.isEmpty()) { in runRequest()
637 urlRequestBuilder.addHeader(HttpHeaders.IF_RANGE, contentTag); in runRequest()
811 String contentTag = parseResponseContentTag(response); in parseResponseMetadata() local
813 return DownloadMetadata.create(contentTag, lastModifiedTimeSeconds); in parseResponseMetadata()
/external/downloader/src/test/java/com/google/android/downloader/
DSimpleFileDownloadDestinationTest.java156 String contentTag = "content_tag_abc"; in openByteChannel_metadata() local
159 .openByteChannel(0L, DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)) in openByteChannel_metadata()
163 assertThat(metadata).isEqualTo(DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)); in openByteChannel_metadata()
DProtoFileDownloadDestinationTest.java156 String contentTag = "content_tag_abc"; in openByteChannel_metadata() local
159 .openByteChannel(0L, DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)) in openByteChannel_metadata()
163 assertThat(metadata).isEqualTo(DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)); in openByteChannel_metadata()
DDownloaderTest.java129 String contentTag = "content_tag_abc"; in downloadOneFile() local
137 .setHeader(HttpHeaders.ETAG, contentTag) in downloadOneFile()
158 assertThat(metadata).isEqualTo(DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)); in downloadOneFile()
224 String contentTag = "content_tag_abc"; in downloadOneFile_existingContent_withEtag() local
225 destination.openByteChannel(0L, DownloadMetadata.create(contentTag, 0L)).close(); in downloadOneFile_existingContent_withEtag()
242 assertThat(recordedRequest.getHeader(HttpHeaders.IF_RANGE)).isEqualTo(contentTag); in downloadOneFile_existingContent_withEtag()