/external/okhttp/okio/okio/src/test/java/okio/ |
D | ByteStringTest.java | 39 ByteString byteString = ByteString.of(bytes, 2, 9); in ofCopyRange() local 42 assertEquals("llo, Worl", byteString.utf8()); in ofCopyRange() 46 ByteString byteString = ByteString.decodeHex("ab12"); in getByte() local 47 assertEquals(-85, byteString.getByte(0)); in getByte() 48 assertEquals(18, byteString.getByte(1)); in getByte() 52 ByteString byteString = ByteString.decodeHex("ab12"); in getByteOutOfBounds() local 54 byteString.getByte(2); in getByteOutOfBounds() 61 ByteString byteString = ByteString.decodeHex("000102"); in equals() local 62 assertTrue(byteString.equals(byteString)); in equals() 63 assertTrue(byteString.equals(ByteString.decodeHex("000102"))); in equals() [all …]
|
D | SegmentSharingTest.java | 39 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotsAreEquivalent() local 40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot()); in snapshotsAreEquivalent() 41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot()); in snapshotsAreEquivalent() 42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs)); in snapshotsAreEquivalent() 46 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotGetByte() local 47 assertEquals('x', byteString.getByte(0)); in snapshotGetByte() 48 assertEquals('x', byteString.getByte(xs.length() - 1)); in snapshotGetByte() 49 assertEquals('y', byteString.getByte(xs.length())); in snapshotGetByte() 50 assertEquals('y', byteString.getByte(xs.length() + ys.length() - 1)); in snapshotGetByte() 51 assertEquals('z', byteString.getByte(xs.length() + ys.length())); in snapshotGetByte() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ByteStringTest.java | 100 ByteString byteString = ByteString.copyFrom(bytes, 500, 200); in testCopyFrom_BytesOffsetSize() local 102 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 107 ByteString byteString = ByteString.copyFrom(bytes); in testCopyFrom_Bytes() local 109 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes() 117 ByteString byteString = ByteString.copyFrom(byteBuffer, 200); in testCopyFrom_ByteBufferSize() local 119 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize() 127 ByteString byteString = ByteString.copyFrom(byteBuffer); in testCopyFrom_ByteBuffer() local 129 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer() 134 ByteString byteString = ByteString.copyFrom(testString, UTF_16); in testCopyFrom_StringEncoding() local 137 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() [all …]
|
D | RopeByteStringTest.java | 158 ByteString byteString = in testToString_raisesException() local 160 byteString.toString("invalid"); in testToString_raisesException() 167 ByteString byteString = RopeByteString.concatenate(ByteString.copyFromUtf8("foo"), in testToString_raisesException() local 169 byteString.toString("invalid"); in testToString_raisesException()
|
D | AbstractMessageTest.java | 535 ByteString byteString = ByteString.copyFromUtf8("some text"); in testCheckByteStringIsUtf8OnUtf8() local 536 AbstractMessageLite.checkByteStringIsUtf8(byteString); in testCheckByteStringIsUtf8OnUtf8() 541 ByteString byteString = in testCheckByteStringIsUtf8OnNonUtf8() local 544 AbstractMessageLite.checkByteStringIsUtf8(byteString); in testCheckByteStringIsUtf8OnNonUtf8()
|
/external/pdfium/fxbarcode/ |
D | cbc_ean13.cpp | 42 ByteString byteString = encodeContents.UTF8Encode(); in Preprocess() local 43 int32_t checksum = pWriter->CalcChecksum(byteString); in Preprocess() 44 byteString += checksum - 0 + '0'; in Preprocess() 45 encodeContents = byteString.UTF8Decode(); in Preprocess() 61 ByteString byteString = encodeContents.UTF8Encode(); in Encode() local 65 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
D | cbc_upca.cpp | 41 ByteString byteString = encodeContents.UTF8Encode(); in Preprocess() local 42 int32_t checksum = pWriter->CalcChecksum(byteString); in Preprocess() 43 byteString += checksum - 0 + '0'; in Preprocess() 44 encodeContents = byteString.UTF8Decode(); in Preprocess() 60 ByteString byteString = encodeContents.UTF8Encode(); in Encode() local 66 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
D | cbc_ean8.cpp | 41 ByteString byteString = encodeContents.UTF8Encode(); in Preprocess() local 42 int32_t checksum = pWriter->CalcChecksum(byteString); in Preprocess() 59 ByteString byteString = encodeContents.UTF8Encode(); in Encode() local 63 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
D | cbc_code128.cpp | 52 ByteString byteString = encodeContents.UTF8Encode(); in Encode() local 54 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
D | cbc_code39.cpp | 45 ByteString byteString = filtercontents.UTF8Encode(); in Encode() local 47 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
D | cbc_codabar.cpp | 58 ByteString byteString = filtercontents.UTF8Encode(); in Encode() local 62 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | ByteString.java | 86 ByteString byteString = new ByteString(s.getBytes(Util.UTF_8)); in encodeUtf8() local 87 byteString.utf8 = s; in encodeUtf8() 88 return byteString; in encodeUtf8() 336 @Override public int compareTo(ByteString byteString) { in compareTo() argument 338 int sizeB = byteString.size(); in compareTo() 341 int byteB = byteString.getByte(i) & 0xff; in compareTo() 363 ByteString byteString = ByteString.read(in, dataLength); in readObject() local 367 field.set(this, byteString.data); in readObject()
|
D | RealBufferedSink.java | 49 @Override public BufferedSink write(ByteString byteString) throws IOException { in write() argument 51 buffer.write(byteString); in write()
|
D | BufferedSink.java | 30 BufferedSink write(ByteString byteString) throws IOException; in write() argument
|
D | Buffer.java | 786 @Override public Buffer write(ByteString byteString) { 787 if (byteString == null) throw new IllegalArgumentException("byteString == null"); 788 byteString.write(this);
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | SSLUtilsTest.java | 96 String byteString = Byte.toString(b); in testGetClientKeyType() local 100 assertEquals(byteString, "RSA", keyType); in testGetClientKeyType() 103 assertEquals(byteString, "EC", keyType); in testGetClientKeyType() 106 assertNull(byteString, keyType); in testGetClientKeyType()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/ |
D | H2Test.java | 23 String byteString = "byte_string"; in setUp() local 24 byte[] byteData = byteString.getBytes(); in setUp()
|
D | SQLite_Test.java | 19 String byteString = "byte_string"; in setUp() local 20 byte[] byteData = byteString.getBytes(); in setUp()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | RopeByteString.java | 377 LeafByteString byteString = pieces.next(); in asReadOnlyByteBufferList() local 378 result.add(byteString.asReadOnlyByteBuffer()); in asReadOnlyByteBufferList() 617 private void insert(ByteString byteString) { in insert() argument 618 int depthBin = getDepthBinForLength(byteString.size()); in insert() 626 prefixesStack.push(byteString); in insert() 639 newTree = new RopeByteString(newTree, byteString); in insert()
|
D | AbstractMessageLite.java | 112 protected static void checkByteStringIsUtf8(ByteString byteString) in checkByteStringIsUtf8() argument 114 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
|
D | Internal.java | 172 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() argument 173 return byteString.isValidUtf8(); in isValidUtf8()
|
D | ByteString.java | 1023 for (ByteString byteString : cachedFlushBuffers) { in writeTo() 1024 byteString.writeTo(out); in writeTo()
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | E_B_D_T_.py | 220 byteString = binary[bitLoc:bitLoc+8] 222 for curBit in reversed(byteString):
|
/external/brotli/research/ |
D | brotlidump.py | 50 def __init__(self, byteString): argument 51 self.data = byteString
|