Searched refs:lastModifiedTimeSeconds (Results 1 – 6 of 6) sorted by relevance
/external/downloader/src/main/java/com/google/android/downloader/ |
D | DownloadMetadata.java | 45 public static DownloadMetadata create(String contentTag, long lastModifiedTimeSeconds) { in create() argument 46 return new AutoValue_DownloadMetadata(contentTag, lastModifiedTimeSeconds); in create()
|
D | SimpleFileDownloadDestination.java | 87 long lastModifiedTimeSeconds = inputStream.readLong(); in readMetadataFromBytes() local 88 checkState(lastModifiedTimeSeconds >= 0); in readMetadataFromBytes() 89 return DownloadMetadata.create(etag, lastModifiedTimeSeconds); in readMetadataFromBytes()
|
D | Downloader.java | 635 long lastModifiedTimeSeconds = destinationMetadata.getLastModifiedTimeSeconds(); in runRequest() local 638 } else if (lastModifiedTimeSeconds > 0) { in runRequest() 640 HttpHeaders.IF_RANGE, formatRfc1123Date(lastModifiedTimeSeconds)); in runRequest() 812 long lastModifiedTimeSeconds = parseResponseModifiedTime(response); in parseResponseMetadata() local 813 return DownloadMetadata.create(contentTag, lastModifiedTimeSeconds); in parseResponseMetadata()
|
/external/downloader/src/test/java/com/google/android/downloader/ |
D | SimpleFileDownloadDestinationTest.java | 157 long lastModifiedTimeSeconds = 12345; 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()
|
D | ProtoFileDownloadDestinationTest.java | 157 long lastModifiedTimeSeconds = 12345; 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()
|
D | DownloaderTest.java | 130 long lastModifiedTimeSeconds = 123456789; in downloadOneFile() local 143 .format(Instant.ofEpochSecond(lastModifiedTimeSeconds)))); in downloadOneFile() 158 assertThat(metadata).isEqualTo(DownloadMetadata.create(contentTag, lastModifiedTimeSeconds)); in downloadOneFile()
|