Home
last modified time | relevance | path

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

/external/guava/android/guava/src/com/google/common/io/
DByteSource.java138 Optional<Long> sizeIfKnown = sizeIfKnown(); in isEmpty() local
139 if (sizeIfKnown.isPresent()) { in isEmpty()
140 return sizeIfKnown.get() == 0L; in isEmpty()
168 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource
192 Optional<Long> sizeIfKnown = sizeIfKnown(); in size() local
193 if (sizeIfKnown.isPresent()) { in size()
194 return sizeIfKnown.get(); in size()
283 Optional<Long> size = sizeIfKnown(); in read()
544 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource.SlicedByteSource
545 Optional<Long> optionalUnslicedSize = ByteSource.this.sizeIfKnown(); in sizeIfKnown()
[all …]
DFiles.java134 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in Files.FileByteSource
/external/guava/guava/src/com/google/common/io/
DByteSource.java138 Optional<Long> sizeIfKnown = sizeIfKnown(); in isEmpty() local
139 if (sizeIfKnown.isPresent()) { in isEmpty()
140 return sizeIfKnown.get() == 0L; in isEmpty()
168 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource
192 Optional<Long> sizeIfKnown = sizeIfKnown(); in size() local
193 if (sizeIfKnown.isPresent()) { in size()
194 return sizeIfKnown.get(); in size()
283 Optional<Long> size = sizeIfKnown(); in read()
544 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource.SlicedByteSource
545 Optional<Long> optionalUnslicedSize = ByteSource.this.sizeIfKnown(); in sizeIfKnown()
[all …]
DMoreFiles.java124 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in MoreFiles.PathByteSource
382 long len1 = source1.sizeIfKnown().or(0L);
383 long len2 = source2.sizeIfKnown().or(0L);
DFiles.java134 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in Files.FileByteSource
/external/guava/android/guava-tests/test/com/google/common/io/
DByteSourceTester.java177 Optional<Long> sizeIfKnown = source.sizeIfKnown(); in testSizeIfKnown() local
178 if (sizeIfKnown.isPresent()) { in testSizeIfKnown()
179 assertEquals(expected.length, (long) sizeIfKnown.get()); in testSizeIfKnown()
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java177 Optional<Long> sizeIfKnown = source.sizeIfKnown(); in testSizeIfKnown() local
178 if (sizeIfKnown.isPresent()) { in testSizeIfKnown()
179 assertEquals(expected.length, (long) sizeIfKnown.get()); in testSizeIfKnown()
DMoreFilesTest.java137 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofDirectory()
156 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofSymlinkToDirectory()
175 assertEquals(10L, (long) source.sizeIfKnown().get()); in testByteSource_size_ofSymlinkToRegularFile()
189 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofSymlinkToRegularFile_nofollowLinks()
/external/guava/android/guava-tests/benchmark/com/google/common/io/
DByteSourceAsCharSourceReadBenchmark.java58 Optional<Long> size = byteSource.sizeIfKnown(); in read()
/external/guava/guava-tests/benchmark/com/google/common/io/
DByteSourceAsCharSourceReadBenchmark.java58 Optional<Long> size = byteSource.sizeIfKnown(); in read()