HomeSort by relevance Sort by last modified time
    Searched refs:byteString (Results 1 - 25 of 29) sorted by null

1 2

  /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/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/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...]
AbstractMessageTest.java 234 ByteString bytes = builder.buildPartial().toByteString();
511 ByteString byteString = ByteString.copyFromUtf8("some text");
512 AbstractMessageLite.checkByteStringIsUtf8(byteString);
517 ByteString byteString =
518 ByteString.copyFrom(new byte[]{(byte) 0x80}); // A lone continuation byte.
520 AbstractMessageLite.checkByteStringIsUtf8(byteString);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
H2Test.java 23 String byteString = "byte_string";
24 byte[] byteData = byteString.getBytes();
SQLite_Test.java 19 String byteString = "byte_string";
20 byte[] byteData = byteString.getBytes();
  /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...]
BufferedSink.java 30 BufferedSink write(ByteString byteString) throws IOException;
RealBufferedSink.java 49 @Override public BufferedSink write(ByteString byteString) throws IOException {
51 buffer.write(byteString);
Buffer.java 524 @Override public ByteString readByteString() {
525 return new ByteString(readByteArray());
528 @Override public ByteString readByteString(long byteCount) throws EOFException {
529 return new ByteString(readByteArray(byteCount));
786 @Override public Buffer write(ByteString byteString) {
787 if (byteString == null) throw new IllegalArgumentException("byteString == null");
788 byteString.write(this);
    [all...]
  /external/pdfium/xfa/src/fxbarcode/
BC_BarCode.cpp 214 CFX_ByteString byteString = filtercontents.UTF8Encode();
216 ->Encode(byteString, format, outWidth, outHeight, e);
316 CFX_ByteString byteString = filtercontents.UTF8Encode();
319 ->Encode(byteString, format, outWidth, outHeight, e);
398 CFX_ByteString byteString = encodeContents.UTF8Encode();
400 ->Encode(byteString, format, outWidth, outHeight, e);
459 CFX_ByteString byteString = encodeContents.UTF8Encode();
461 ((CBC_OnedEAN8Writer*)m_pBCWriter)->CalcChecksum(byteString);
480 CFX_ByteString byteString = encodeContents.UTF8Encode();
483 ->Encode(byteString, format, outWidth, outHeight, e);
820 CFX_ByteString bytestring = m_pBCReader->Decode(&bitmap, 0, e); local
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
Internal.java 95 public static ByteString bytesDefaultValue(String bytes) {
97 return ByteString.copyFrom(bytes.getBytes("ISO-8859-1"));
157 * Arrays.equals(byteString.toByteArray(),
158 * new String(byteString.toByteArray(), "UTF-8").getBytes("UTF-8"))
174 * ByteString#isValidUtf8()}. Calling that method directly is preferred.
176 * @param byteString the string to check
179 public static boolean isValidUtf8(ByteString byteString) {
180 return byteString.isValidUtf8();
184 * Like {@link #isValidUtf8(ByteString)} but for byte arrays
    [all...]
RopeByteString.java 70 class RopeByteString extends ByteString {
115 private final ByteString left;
116 private final ByteString right;
129 private RopeByteString(ByteString left, ByteString right) {
144 * ByteString#CONCATENATE_BY_COPY_SIZE} may be copied by value here, as in
151 static ByteString concatenate(ByteString left, ByteString right) {
152 ByteString result
    [all...]
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...]
AbstractMessageLite.java 49 public ByteString toByteString() {
51 final ByteString.CodedBuilder out =
52 ByteString.newCodedBuilder(getSerializedSize());
57 "Serializing to a ByteString threw an IOException (should " +
105 protected static void checkByteStringIsUtf8(ByteString byteString)
107 if (!byteString.isValidUtf8()) {
135 public BuilderType mergeFrom(final ByteString data)
146 "Reading from a ByteString threw an IOException (should " +
152 final ByteString data
    [all...]
CodedInputStream.java 119 static CodedInputStream newInstance(LiteralByteString byteString) {
120 CodedInputStream result = new CodedInputStream(byteString);
127 result.pushLimit(byteString.size());
238 ByteString value = readBytes();
503 public ByteString readBytes() throws IOException {
508 final ByteString result = bufferIsImmutable && enableAliasing
510 : ByteString.copyFrom(buffer, bufferPos, size);
514 return ByteString.EMPTY;
545 // from an InputStream or ByteString, we have to make a copy of the bytes.
907 private CodedInputStream(final LiteralByteString byteString) {
    [all...]
  /prebuilts/go/darwin-x86/src/time/
zoneinfo_read.go 50 func byteString(p []byte) string {
149 zone[i].name = byteString(abbrev[b:])
  /prebuilts/go/linux-x86/src/time/
zoneinfo_read.go 50 func byteString(p []byte) string {
149 zone[i].name = byteString(abbrev[b:])
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.6.0/
okio-1.6.0.jar 
  /external/fonttools/Lib/fontTools/ttLib/tables/
E_B_D_T_.py 220 byteString = binary[bitLoc:bitLoc+8]
222 for curBit in reversed(byteString):
  /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.6.1/
protobuf-java-2.6.1.jar 
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.equinox.p2.artifact.repository_1.1.1.R36x_v20100901.jar 
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/eclipse/tycho/tycho-bundles-external/0.20.0/eclipse/plugins/
org.eclipse.equinox.p2.artifact.repository_1.1.200.v20130515-2028.jar 

Completed in 5229 milliseconds

1 2