HomeSort by relevance Sort by last modified time
    Searched defs:ByteString (Results 1 - 25 of 28) sorted by null

1 2

  /system/connectivity/shill/net/
byte_string.h 30 class SHILL_EXPORT ByteString {
32 ByteString() {}
33 ByteString(const ByteString& b);
35 explicit ByteString(const std::vector<unsigned char>& data) : data_(data) {}
37 explicit ByteString(size_t length) : data_(length) {}
39 ByteString(const unsigned char* data, size_t length)
42 ByteString(const char* data, size_t length)
45 ByteString(const signed char* data, size_t length)
48 ByteString(const std::string& data, bool copy_terminator
    [all...]
byte_string.cc 32 ByteString::ByteString(const ByteString& b) {
36 ByteString& ByteString::operator=(const ByteString& b) {
41 unsigned char* ByteString::GetData() {
45 const unsigned char* ByteString::GetConstData() const {
49 size_t ByteString::GetLength() const {
53 ByteString ByteString::GetSubstring(size_t offset, size_t length) const
    [all...]
  /packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
VehicleNetworkTestUtil.java 20 import com.google.protobuf.ByteString;
33 builder.setBytesValue(ByteString.copyFrom(new byte[1]));
  /external/okhttp/okio/okio/src/test/java/okio/
ByteStringTest.java 39 ByteString byteString = ByteString.of(bytes, 2, 9);
42 assertEquals("llo, Worl", byteString.utf8());
46 ByteString byteString = ByteString.decodeHex("ab12");
47 assertEquals(-85, byteString.getByte(0));
48 assertEquals(18, byteString.getByte(1));
52 ByteString byteString = ByteString.decodeHex("ab12")
    [all...]
Utf8Test.java 120 buffer.write(ByteString.decodeHex("f888808080"));
132 buffer.write(ByteString.decodeHex("df20"));
141 buffer.write(ByteString.decodeHex("f4908080"));
148 buffer.write(ByteString.decodeHex("eda080"));
151 buffer.write(ByteString.decodeHex("edbfbf"));
159 buffer.write(ByteString.decodeHex("c080"));
200 assertEquals(buffer.readByteString(), ByteString.decodeHex(hex));
204 Buffer buffer = new Buffer().write(ByteString.decodeHex(hex));
212 ByteString expectedUtf8 = ByteString.decodeHex(hex)
    [all...]
BufferedSourceTest.java 374 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259"
381 ByteString.decodeHex("0000007600000259000002c80000006c000000e40000007300000259"
475 assertEquals(-1, source.indexOf(ByteString.encodeUtf8("flop")));
478 assertEquals(5, source.indexOf(ByteString.encodeUtf8("flop")));
483 assertEquals(3, source.indexOf(ByteString.encodeUtf8("hi hi hey")));
487 assertEquals(-1, source.indexOf(ByteString.encodeUtf8("flop"), 1));
490 assertEquals(10, source.indexOf(ByteString.encodeUtf8("flop"), 1));
495 assertEquals(6, source.indexOf(ByteString.encodeUtf8("hi hi hey"), 1));
500 source.indexOf(ByteString.of());
506 source.indexOf(ByteString.encodeUtf8("hi"), -1)
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
Header.java 3 import okio.ByteString;
8 public static final ByteString RESPONSE_STATUS = ByteString.encodeUtf8(":status");
9 public static final ByteString TARGET_METHOD = ByteString.encodeUtf8(":method");
10 public static final ByteString TARGET_PATH = ByteString.encodeUtf8(":path");
11 public static final ByteString TARGET_SCHEME = ByteString.encodeUtf8(":scheme");
12 public static final ByteString TARGET_AUTHORITY = ByteString.encodeUtf8(":authority"); // HTTP/
    [all...]
  /external/protobuf/java/src/test/java/com/google/protobuf/
ByteStringTest.java 33 import com.google.protobuf.ByteString.Output;
52 * Test methods with implementations in {@link ByteString}, plus do some top-level "integration"
92 ByteString substring = ByteString.copyFrom(bytes).substring(500);
99 ByteString byteString = ByteString.copyFrom(bytes, 500, 200);
101 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
106 ByteString byteString = ByteString.copyFrom(bytes)
    [all...]
CodedInputStreamTest.java 399 builder.setOptionalBytes(ByteString.copyFrom(blob));
403 // directly from a ByteString, so that CodedInputStream uses buffered
418 ByteString.Output rawOutput = ByteString.newOutput();
458 ByteString data64 = makeRecursiveMessage(64).toByteString();
459 ByteString data65 = makeRecursiveMessage(65).toByteString();
556 ByteString.Output rawOutput = ByteString.newOutput();
576 ByteString.Output rawOutput = ByteString.newOutput()
    [all...]
  /external/okhttp/okio/okio/src/main/java/okio/
ByteString.java 46 public class ByteString implements Serializable, Comparable<ByteString> {
51 /** A singleton empty {@code ByteString}. */
52 public static final ByteString EMPTY = ByteString.of();
58 ByteString(byte[] data) {
65 public static ByteString of(byte... data) {
67 return new ByteString(data.clone());
74 public static ByteString of(byte[] data, int offset, int byteCount) {
80 return new ByteString(copy)
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 51 * Like {@link String}, the contents of a {@link ByteString} can never be
60 public abstract class ByteString implements Iterable<Byte> {
64 * this, we just copy their bytes on {@link #concat(ByteString)}.
71 * When copying an InputStream into a ByteString with .readFrom(),
79 * Empty {@code ByteString}.
81 public static final ByteString EMPTY = new LiteralByteString(new byte[0]);
84 ByteString() {}
99 * Return a {@link ByteString.ByteIterator} over the bytes in the ByteString.
139 // ByteString -> substrin
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Cache.java 42 import okio.ByteString;
628 bytes.write(ByteString.decodeBase64(line));
644 String line = ByteString.of(bytes).base64();
  /prebuilts/tools/common/m2/repository/com/android/tools/external/libprotobuf-java-lite/2.3.0/
libprotobuf-java-lite-2.3.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.6.0/
okio-1.6.0.jar 
  /external/google-tv-pairing-protocol/java/jar/
protobuf-java-2.2.0-lite.jar 
  /prebuilts/tools/common/m2/repository/com/google/protobuf/protobuf-java/2.5.0/
protobuf-java-2.5.0.jar 
  /prebuilts/tools/common/m2/repository/com/google/protobuf/protobuf-java/2.6.1/
protobuf-java-2.6.1.jar 
  /prebuilts/tools/common/offline-m2/com/google/protobuf/protobuf-java/2.5.0/
protobuf-java-2.5.0.jar 
  /prebuilts/tools/common/offline-m2/com/google/protobuf/protobuf-java/2.6.1/
protobuf-java-2.6.1.jar 
  /prebuilts/tools/common/m2/repository/com/google/protobuf/protobuf-java/3.0.0-beta-2/
protobuf-java-3.0.0-beta-2.jar 
  /prebuilts/tools/common/m2/repository/org/jetbrains/kotlin/kotlin-compiler/0.12.613/
kotlin-compiler-0.12.613.jar 
  /prebuilts/tools/common/m2/repository/org/jetbrains/kotlin/kotlin-compiler-embeddable/0.13.1513/
kotlin-compiler-embeddable-0.13.1513.jar 
  /prebuilts/tools/common/m2/repository/org/jetbrains/kotlin/kotlin-compiler-embeddable/0.13.1514/
kotlin-compiler-embeddable-0.13.1514.jar 
  /prebuilts/tools/common/m2/repository/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.0/
kotlin-compiler-embeddable-1.0.0.jar 
  /prebuilts/tools/common/m2/repository/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.0-beta-1103/
kotlin-compiler-embeddable-1.0.0-beta-1103.jar 

Completed in 291 milliseconds

1 2