HomeSort by relevance Sort by last modified time
    Searched full:bytestring (Results 1 - 25 of 363) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
SegmentSharingTest.java 34 ByteString snapshot = new Buffer().snapshot();
35 assertEquivalent(snapshot, ByteString.EMPTY);
39 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot();
40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot());
41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot());
42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs));
46 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot()
    [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...]
  /system/connectivity/dhcp_client/
dhcp_options_writer.cc 30 using shill::ByteString;
42 int DHCPOptionsWriter::WriteUInt8Option(ByteString* buffer,
46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code),
48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value),
55 int DHCPOptionsWriter::WriteUInt16Option(ByteString* buffer,
60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code),
62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net),
69 int DHCPOptionsWriter::WriteUInt32Option(ByteString* buffer
    [all...]
dhcp_options_writer.h 34 int WriteUInt8Option(shill::ByteString* buffer,
37 int WriteUInt16Option(shill::ByteString* buffer,
40 int WriteUInt32Option(shill::ByteString* buffer,
43 int WriteUInt8ListOption(shill::ByteString* buffer,
46 int WriteUInt16ListOption(shill::ByteString* buffer,
49 int WriteUInt32ListOption(shill::ByteString* buffer,
52 int WriteUInt32PairListOption(shill::ByteString* buffer,
55 int WriteBoolOption(shill::ByteString* buffer,
58 int WriteStringOption(shill::ByteString* buffer,
61 int WriteByteArrayOption(shill::ByteString* buffer
    [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...]
IsValidUtf8Test.java 40 * Tests cases for {@link ByteString#isValidUtf8()}. This includes three
135 private ByteString toByteString(int... bytes) {
136 return ByteString.copyFrom(toByteArray(bytes));
143 ByteString lit = ByteString.copyFrom(realBytes);
144 ByteString sub = lit.substring(0, bytes.length);
147 ByteString[] ropes = {
148 RopeByteString.newInstanceForTest(ByteString.EMPTY, lit),
149 RopeByteString.newInstanceForTest(ByteString.EMPTY, sub),
150 RopeByteString.newInstanceForTest(lit, ByteString.EMPTY)
    [all...]
LazyStringArrayListTest.java 49 private static ByteString BYTE_STRING_A = ByteString.copyFromUtf8("A");
50 private static ByteString BYTE_STRING_B = ByteString.copyFromUtf8("B");
51 private static ByteString BYTE_STRING_C = ByteString.copyFromUtf8("C");
71 List<ByteString> byteStringList = list.asByteStringList();
95 List<ByteString> byteStringList = list.asByteStringList();
110 // from the ByteString
122 // ByteString needs to be computed from string for both a and
    [all...]
RopeByteStringTest.java 52 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(referenceBytes).iterator();
71 // Build up a big ByteString from smaller pieces to force a rebalance
72 ByteString concatenated = ByteString.EMPTY;
74 concatenated = concatenated.concat(ByteString.copyFrom(testBytes, i * pieceSize, pieceSize));
81 ByteString testString = ByteString.copyFrom(testBytes);
93 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString);
98 ByteString unicode = ByteString.EMPTY
    [all...]
RopeByteStringSubstringTest.java 48 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(sourceBytes).iterator();
49 ByteString sourceString = iter.next();
71 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString);
76 ByteString unicode = ByteString.EMPTY;
92 ByteString flatString = ByteString.copyFromUtf8(testString);
  /system/connectivity/shill/net/
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...]
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_unittest.cc 56 ByteString bs1(0);
65 ByteString bs1(kTest1, sizeof(kTest1));
77 // Build a ByteString (different to bs1), verify that the new ByteString
79 ByteString bs2(kTest2, sizeof(kTest2));
88 // Build _another_ ByteString (different to bs1 and bs2), verify that the
89 // new ByteString looks as expected, verify that it's different to bs1 and
91 ByteString bs3(kTest3, sizeof(kTest3));
102 ByteString bs6(kTest1, sizeof(kTest1));
107 ByteString bs4(string(kTest4), false)
    [all...]
nl80211_attribute_unittest.cc 21 EXPECT_FALSE(empty_attribute.InitFromValue(ByteString()));
24 ByteString u8_value(&kU8Value, 1);
32 ByteString u32_value = ByteString::CreateFromCPUUInt32(kU32Value);
netlink_attribute_unittest.cc 41 // An empty ByteString should yield an empty string.
42 EXPECT_TRUE(attr.InitFromValue(ByteString()));
47 // An un-terminated ByteString should yield a terminated string.
48 ByteString unterminated(std::string("hello"), false);
55 // A terminated ByteString should also work correctly.
56 ByteString terminated(std::string("hello"), true);
64 terminated.Append(ByteString(3));
  /system/connectivity/shill/
arp_packet.h 32 const ByteString& local_mac, const ByteString& remote_mac);
36 bool Parse(const ByteString& packet);
39 bool FormatRequest(ByteString* packet) const;
55 const ByteString& local_mac_address() const { return local_mac_address_; }
56 void set_local_mac_address(const ByteString& address) {
60 const ByteString& remote_mac_address() const { return remote_mac_address_; }
61 void set_remote_mac_address(const ByteString& address) {
80 ByteString local_mac_address_;
81 ByteString remote_mac_address_
    [all...]
arp_packet_unittest.cc 73 ByteString mac_address0_;
74 ByteString mac_address1_;
75 ByteString inserted_byte_;
103 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
114 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
125 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
136 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
147 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
159 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4));
170 ByteString arp_bytes(kArpReplyV6, arraysize(kArpReplyV6))
    [all...]
connection_info_unittest.cc 66 ByteString(kIPAddress1, sizeof(kIPAddress1))),
69 ByteString(kIPAddress2, sizeof(kIPAddress2))),
72 ByteString(kIPAddress3, sizeof(kIPAddress3))),
75 ByteString(kIPAddress4, sizeof(kIPAddress4))),
87 ByteString(kIPAddress1, sizeof(kIPAddress1))),
90 ByteString(kIPAddress2, sizeof(kIPAddress2))),
93 ByteString(kIPAddress3, sizeof(kIPAddress3))),
96 ByteString(kIPAddress4, sizeof(kIPAddress4))),
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
WebSocketReaderTest.java 26 import okio.ByteString;
50 data.write(ByteString.decodeHex("0a00")); // Empty ping.
60 data.write(ByteString.decodeHex("9a00")); // Empty ping, flag 1 set.
68 data.write(ByteString.decodeHex("aa00")); // Empty ping, flag 2 set.
76 data.write(ByteString.decodeHex("ca00")); // Empty ping, flag 3 set.
86 data.write(ByteString.decodeHex("8100"));
96 data.write(ByteString.decodeHex("8180"));
106 data.write(ByteString.decodeHex("8a7e007e"));
116 data.write(ByteString.decodeHex("810548656c6c6f")); // Hello
122 data.write(ByteString.decodeHex("818537fa213d7f9f4d5158")); // Hell
    [all...]
  /external/boringssl/src/crypto/bytestring/
CMakeLists.txt 4 bytestring
  /external/conscrypt/src/test/java/org/conscrypt/
SSLParametersImplTest.java 29 String byteString = Byte.toString(b);
33 assertEquals(byteString, "RSA", keyType);
36 assertEquals(byteString, "DH_RSA", keyType);
39 assertEquals(byteString, "EC", keyType);
42 assertEquals(byteString, "EC_RSA", keyType);
45 assertEquals(byteString, "EC_EC", keyType);
48 assertNull(byteString, keyType);
  /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/pdfium/xfa/src/fxbarcode/oned/
BC_OnedUPCAReader.cpp 45 CFX_ByteString bytestring = local
48 CFX_ByteString temp = MaybeReturnResult(bytestring, e);
57 CFX_ByteString bytestring = local
60 CFX_ByteString temp = MaybeReturnResult(bytestring, e);
65 CFX_ByteString bytestring = m_ean13Reader->Decode(image, e); local
67 CFX_ByteString temp = MaybeReturnResult(bytestring, e);
74 CFX_ByteString bytestring = m_ean13Reader->Decode(image, hints, e); local
76 CFX_ByteString temp = MaybeReturnResult(bytestring, e);
  /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...]
LazyStringArrayList.java 43 * element is one of String, ByteString, or byte[]. It caches the last one
91 } else if (o instanceof ByteString) {
92 ByteString bs = (ByteString) o;
146 public boolean addAllByteString(Collection<? extends ByteString> values) {
173 public void add(ByteString element) {
185 public ByteString getByteString(int index) {
187 ByteString b = asByteString(o);
205 public void set(int index, ByteString s) {
218 } else if (o instanceof ByteString) {
    [all...]

Completed in 1063 milliseconds

1 2 3 4 5 6 7 8 91011>>