/external/guava/guava-tests/test/com/google/common/io/ |
D | ByteSourceTest.java | 167 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 …]
|
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 | SourceSinkFactories.java | 159 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 {
|
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 | ByteSourceTester.java | 47 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> { 96 private ByteSource source; 160 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 { 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 …]
|
D | FileBackedOutputStream.java | 45 private final ByteSource source; 97 source = new ByteSource() { in FileBackedOutputStream() 112 source = new ByteSource() { in FileBackedOutputStream() 127 public ByteSource asByteSource() { in asByteSource()
|
D | MultiInputStream.java | 36 private Iterator<? extends ByteSource> it; 45 Iterator<? extends ByteSource> it) throws IOException { in MultiInputStream()
|
D | Resources.java | 55 public static ByteSource asByteSource(URL url) { in asByteSource() 62 private static final class UrlByteSource extends ByteSource {
|
D | Files.java | 111 public static ByteSource asByteSource(File file) { in asByteSource() 115 private static final class FileByteSource extends ByteSource {
|
D | BaseEncoding.java | 271 public final ByteSource decodingSource(final CharSource encodedSource) { 273 return new ByteSource() {
|
/external/protobuf/src/google/protobuf/stubs/ |
D | bytestream.h | 106 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_;
|
D | bytestream.cc | 40 void ByteSource::CopyTo(ByteSink* sink, size_t n) { in CopyTo() 159 LimitByteSource::LimitByteSource(ByteSource *source, size_t limit) in LimitByteSource()
|
D | bytestream_unittest.cc | 48 class MockByteSource : public ByteSource {
|
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
D | CaliperConfigLoader.java | 25 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/ |
D | Util.java | 23 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/ |
D | SQLiteLibraryLoader.java | 6 import com.google.common.io.ByteSource; 65 private ByteSource getLibraryByteSource() { in getLibraryByteSource()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_escaping.h | 80 static void Escape(strings::ByteSource* input, strings::ByteSink* output);
|
D | json_escaping.cc | 358 void JsonEscaping::Escape(strings::ByteSource* input, in Escape()
|
/external/protobuf/js/binary/ |
D | constants.js | 83 jspb.ByteSource;
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | ArbitraryInstances.java | 72 import com.google.common.io.ByteSource; 232 .put(ByteSource.class, ByteSource.empty())
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | ArbitraryInstancesTest.java | 57 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/ |
D | PPCISelLowering.cpp | 4250 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()
|