Searched refs:ByteSource (Results 1 – 14 of 14) sorted by relevance
/external/guava/guava-tests/test/com/google/common/io/ |
D | ByteSourceTest.java | 167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII.name())); in testHash() 177 ByteSource equalSource = new TestByteSource(bytes); in testContentEquals() 181 ByteSource fewerBytes = new TestByteSource(newPreFilledByteArray(bytes.length / 2)); in testContentEquals() 186 ByteSource oneByteOff = new TestByteSource(copy); in testContentEquals() 232 ByteSource source = new TestByteSource(newPreFilledByteArray(input)); in assertCorrectSlice() 233 ByteSource slice = source.slice(offset, length); in assertCorrectSlice() 282 ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3}); in testConcat() 283 ByteSource b2 = ByteSource.wrap(new byte[0]); in testConcat() 284 ByteSource b3 = ByteSource.wrap(new byte[] {4, 5}); in testConcat() 289 ByteSource.concat(ImmutableList.of(b1, b2, b3)).read()); in testConcat() [all …]
|
D | MultiInputStreamTest.java | 49 final ByteSource source = newByteSource(0, 50); in testOnlyOneOpen() 51 ByteSource checker = new ByteSource() { in testOnlyOneOpen() 65 byte[] result = ByteSource.concat(checker, checker, checker).read(); in testOnlyOneOpen() 70 List<ByteSource> sources = Lists.newArrayList(); in joinHelper() 76 ByteSource joined = ByteSource.concat(sources); in joinHelper() 81 ByteSource source = newByteSource(0, 10); in testReadSingleByte() 82 ByteSource joined = ByteSource.concat(source, source); in testReadSingleByte() 97 Collections.singleton(new ByteSource() { in testSkip() 114 private static ByteSource newByteSource(final int start, final int size) { in newByteSource() 115 return new ByteSource() { in newByteSource()
|
D | FileBackedOutputStreamTest.java | 81 ByteSource source = out.asByteSource(); in testThreshold() 88 assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); in testThreshold() 130 ByteSource source = out.asByteSource(); in testWriteErrorAfterClose() 151 ByteSource source = out.asByteSource(); in testReset()
|
D | SourceSinkFactories.java | 173 public ByteSource createSource(byte[] bytes) throws IOException { 210 public ByteSource createSource(byte[] bytes) throws IOException { 211 return ByteSource.wrap(bytes); 244 public ByteSource createSource(byte[] bytes) throws IOException { 245 return ByteSource.empty(); 285 public ByteSource createSource(byte[] bytes) throws IOException { 422 public ByteSource createSource(byte[] bytes) throws IOException {
|
D | ByteSourceTester.java | 48 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> { 106 private ByteSource source; 170 assertTrue(source.contentEquals(new ByteSource() { in testContentEquals()
|
D | SourceSinkFactory.java | 81 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {
|
D | TestByteSource.java | 33 public final class TestByteSource extends ByteSource implements TestStreamSupplier {
|
/external/guava/guava/src/com/google/common/io/ |
D | ByteSource.java | 59 public abstract class ByteSource implements InputSupplier<InputStream> { class 66 protected ByteSource() {} in ByteSource() method in ByteSource 126 public ByteSource slice(long offset, long length) { in slice() 323 public boolean contentEquals(ByteSource other) throws IOException { in contentEquals() 360 public static ByteSource concat(Iterable<? extends ByteSource> sources) { in concat() 382 public static ByteSource concat(Iterator<? extends ByteSource> sources) { in concat() 398 public static ByteSource concat(ByteSource... sources) { in concat() 408 public static ByteSource wrap(byte[] b) { in wrap() 417 public static ByteSource empty() { in empty() 435 return new InputStreamReader(ByteSource.this.openStream(), charset); in openStream() [all …]
|
D | FileBackedOutputStream.java | 45 private final ByteSource source; 97 source = new ByteSource() { in FileBackedOutputStream() 112 source = new ByteSource() { in FileBackedOutputStream() 140 public ByteSource asByteSource() { in asByteSource()
|
D | ByteStreams.java | 71 return asInputSupplier(ByteSource.wrap(b)); in newInputStreamSupplier() 88 return asInputSupplier(ByteSource.wrap(b).slice(off, len)); in newInputStreamSupplier() 99 public static ByteSource asByteSource(byte[] b) { in asByteSource() 100 return ByteSource.wrap(b); in asByteSource() 1027 Iterable<ByteSource> sources = Iterables.transform(suppliers, 1028 new Function<InputSupplier<? extends InputStream>, ByteSource>() { 1030 public ByteSource apply(InputSupplier<? extends InputStream> input) { 1034 return asInputSupplier(ByteSource.concat(sources)); 1066 public static ByteSource asByteSource( 1069 return new ByteSource() { [all …]
|
D | Resources.java | 70 public static ByteSource asByteSource(URL url) { in asByteSource() 77 private static final class UrlByteSource extends ByteSource {
|
D | BaseEncoding.java | 311 public final ByteSource decodingSource(final CharSource encodedSource) { 313 return new ByteSource() {
|
D | Files.java | 113 public static ByteSource asByteSource(File file) { in asByteSource() 117 private static final class FileByteSource extends ByteSource {
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 6998 unsigned ByteSource = PermMask[i*4+j]; in LowerVECTOR_SHUFFLE() local 6999 if ((ByteSource & 3) != j) { in LowerVECTOR_SHUFFLE() 7005 EltNo = ByteSource/4; in LowerVECTOR_SHUFFLE() 7006 } else if (EltNo != ByteSource/4) { in LowerVECTOR_SHUFFLE()
|