Home
last modified time | relevance | path

Searched refs:ByteSource (Results 1 – 25 of 27) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTest.java167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII)); 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 …]
DMultiInputStreamTest.java49 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()
DSourceSinkFactories.java159 public ByteSource createSource(byte[] bytes) throws IOException {
196 public ByteSource createSource(byte[] bytes) throws IOException {
197 return ByteSource.wrap(bytes);
230 public ByteSource createSource(byte[] bytes) throws IOException {
231 return ByteSource.empty();
271 public ByteSource createSource(byte[] bytes) throws IOException {
408 public ByteSource createSource(byte[] bytes) throws IOException {
DFileBackedOutputStreamTest.java81 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()
DByteSourceTester.java47 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> {
96 private ByteSource source;
160 assertTrue(source.contentEquals(new ByteSource() { in testContentEquals()
DSourceSinkFactory.java81 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {
DTestByteSource.java33 public final class TestByteSource extends ByteSource implements TestStreamSupplier {
/external/guava/guava/src/com/google/common/io/
DByteSource.java59 public abstract class ByteSource { class
66 protected ByteSource() {} in ByteSource() method in ByteSource
111 public ByteSource slice(long offset, long length) { in slice()
308 public boolean contentEquals(ByteSource other) throws IOException { in contentEquals()
345 public static ByteSource concat(Iterable<? extends ByteSource> sources) { in concat()
367 public static ByteSource concat(Iterator<? extends ByteSource> sources) { in concat()
383 public static ByteSource concat(ByteSource... sources) { in concat()
393 public static ByteSource wrap(byte[] b) { in wrap()
402 public static ByteSource empty() { in empty()
420 return new InputStreamReader(ByteSource.this.openStream(), charset); in openStream()
[all …]
DFileBackedOutputStream.java45 private final ByteSource source;
97 source = new ByteSource() { in FileBackedOutputStream()
112 source = new ByteSource() { in FileBackedOutputStream()
127 public ByteSource asByteSource() { in asByteSource()
DMultiInputStream.java36 private Iterator<? extends ByteSource> it;
45 Iterator<? extends ByteSource> it) throws IOException { in MultiInputStream()
DResources.java55 public static ByteSource asByteSource(URL url) { in asByteSource()
62 private static final class UrlByteSource extends ByteSource {
DFiles.java111 public static ByteSource asByteSource(File file) { in asByteSource()
115 private static final class FileByteSource extends ByteSource {
DBaseEncoding.java271 public final ByteSource decodingSource(final CharSource encodedSource) {
273 return new ByteSource() {
/external/protobuf/src/google/protobuf/stubs/
Dbytestream.h106 class LIBPROTOBUF_EXPORT ByteSource {
108 ByteSource() {} in ByteSource() function
109 virtual ~ByteSource() {} in ~ByteSource()
144 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ByteSource);
295 class LIBPROTOBUF_EXPORT ArrayByteSource : public ByteSource {
326 class LIBPROTOBUF_EXPORT LimitByteSource : public ByteSource {
329 LimitByteSource(ByteSource* source, size_t limit);
340 ByteSource* source_;
Dbytestream.cc40 void ByteSource::CopyTo(ByteSink* sink, size_t n) { in CopyTo()
159 LimitByteSource::LimitByteSource(ByteSource *source, size_t limit) in LimitByteSource()
Dbytestream_unittest.cc48 class MockByteSource : public ByteSource {
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DCaliperConfigLoader.java25 import com.google.common.io.ByteSource;
67 ByteSource supplier = Util.resourceSupplier(CaliperConfig.class, "default-config.properties"); in loadOrCreate()
89 private static void tryCopyIfNeeded(ByteSource supplier, File rcFile) { in tryCopyIfNeeded()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DUtil.java23 import com.google.common.io.ByteSource;
69 public static ImmutableMap<String, String> loadProperties(ByteSource is) throws IOException { in loadProperties()
81 public static ByteSource resourceSupplier(final Class<?> c, final String name) { in resourceSupplier()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/util/
DSQLiteLibraryLoader.java6 import com.google.common.io.ByteSource;
65 private ByteSource getLibraryByteSource() { in getLibraryByteSource()
/external/protobuf/src/google/protobuf/util/internal/
Djson_escaping.h80 static void Escape(strings::ByteSource* input, strings::ByteSink* output);
Djson_escaping.cc358 void JsonEscaping::Escape(strings::ByteSource* input, in Escape()
/external/protobuf/js/binary/
Dconstants.js83 jspb.ByteSource;
/external/guava/guava-testlib/src/com/google/common/testing/
DArbitraryInstances.java72 import com.google.common.io.ByteSource;
232 .put(ByteSource.class, ByteSource.empty())
/external/guava/guava-testlib/test/com/google/common/testing/
DArbitraryInstancesTest.java57 import com.google.common.io.ByteSource;
335 assertEquals(ByteSource.empty(), ArbitraryInstances.get(ByteSource.class)); in testGet_io()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCISelLowering.cpp4250 unsigned ByteSource = PermMask[i*4+j]; in LowerVECTOR_SHUFFLE() local
4251 if ((ByteSource & 3) != j) { in LowerVECTOR_SHUFFLE()
4257 EltNo = ByteSource/4; in LowerVECTOR_SHUFFLE()
4258 } else if (EltNo != ByteSource/4) { in LowerVECTOR_SHUFFLE()

12