/external/okhttp/okio/okio/src/test/java/okio/ |
D | ByteStringTest.java | 35 ByteString byteString = ByteString.of(bytes, 2, 9); in ofCopyRange() local 38 assertEquals("llo, Worl", byteString.utf8()); in ofCopyRange() 42 ByteString byteString = ByteString.decodeHex("ab12"); in getByte() local 43 assertEquals(-85, byteString.getByte(0)); in getByte() 44 assertEquals(18, byteString.getByte(1)); in getByte() 48 ByteString byteString = ByteString.decodeHex("ab12"); in getByteOutOfBounds() local 50 byteString.getByte(2); in getByteOutOfBounds() 57 ByteString byteString = ByteString.decodeHex("000102"); in equals() local 58 assertTrue(byteString.equals(byteString)); in equals() 59 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/src/test/java/com/google/protobuf/ |
D | ByteStringTest.java | 99 ByteString byteString = ByteString.copyFrom(bytes, 500, 200); in testCopyFrom_BytesOffsetSize() local 101 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 106 ByteString byteString = ByteString.copyFrom(bytes); in testCopyFrom_Bytes() local 108 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes() 116 ByteString byteString = ByteString.copyFrom(byteBuffer, 200); in testCopyFrom_ByteBufferSize() local 118 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize() 126 ByteString byteString = ByteString.copyFrom(byteBuffer); in testCopyFrom_ByteBuffer() local 128 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer() 133 ByteString byteString = ByteString.copyFrom(testString, UTF_16); in testCopyFrom_StringEncoding() local 136 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() [all …]
|
D | AbstractMessageTest.java | 511 ByteString byteString = ByteString.copyFromUtf8("some text"); in testCheckByteStringIsUtf8OnUtf8() local 512 AbstractMessageLite.checkByteStringIsUtf8(byteString); in testCheckByteStringIsUtf8OnUtf8() 517 ByteString byteString = in testCheckByteStringIsUtf8OnNonUtf8() local 520 AbstractMessageLite.checkByteStringIsUtf8(byteString); in testCheckByteStringIsUtf8OnNonUtf8()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | SSLParametersImplTest.java | 29 String byteString = Byte.toString(b); in testGetClientKeyType() local 33 assertEquals(byteString, "RSA", keyType); in testGetClientKeyType() 36 assertEquals(byteString, "DH_RSA", keyType); in testGetClientKeyType() 39 assertEquals(byteString, "EC", keyType); in testGetClientKeyType() 42 assertEquals(byteString, "EC_RSA", keyType); in testGetClientKeyType() 45 assertEquals(byteString, "EC_EC", keyType); in testGetClientKeyType() 48 assertNull(byteString, keyType); in testGetClientKeyType()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | ByteString.java | 84 ByteString byteString = new ByteString(s.getBytes(Util.UTF_8)); in encodeUtf8() local 85 byteString.utf8 = s; in encodeUtf8() 86 return byteString; in encodeUtf8() 348 ByteString byteString = ByteString.read(in, dataLength); in readObject() local 352 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/robolectric/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/src/main/java/com/google/protobuf/ |
D | CodedInputStream.java | 119 static CodedInputStream newInstance(LiteralByteString byteString) { in newInstance() argument 120 CodedInputStream result = new CodedInputStream(byteString); in newInstance() 127 result.pushLimit(byteString.size()); in newInstance() 907 private CodedInputStream(final LiteralByteString byteString) { in CodedInputStream() argument 908 buffer = byteString.bytes; in CodedInputStream() 909 bufferPos = byteString.getOffsetIntoBytes(); in CodedInputStream() 910 bufferSize = bufferPos + byteString.size(); in CodedInputStream()
|
D | RopeByteString.java | 392 LiteralByteString byteString = pieces.next(); in asReadOnlyByteBufferList() local 393 result.add(byteString.asReadOnlyByteBuffer()); in asReadOnlyByteBufferList() 655 private void insert(ByteString byteString) { in insert() argument 656 int depthBin = getDepthBinForLength(byteString.size()); in insert() 664 prefixesStack.push(byteString); in insert() 677 newTree = new RopeByteString(newTree, byteString); in insert()
|
D | ByteString.java | 422 for (ByteString byteString : byteStrings) { in copyFrom() 423 collection.add(byteString); in copyFrom() 859 for (ByteString byteString : cachedFlushBuffers) { in writeTo() 860 byteString.writeTo(out); in writeTo()
|
D | Internal.java | 179 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() argument 180 return byteString.isValidUtf8(); in isValidUtf8()
|
D | AbstractMessageLite.java | 105 protected static void checkByteStringIsUtf8(ByteString byteString) in checkByteStringIsUtf8() argument 107 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
|
/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
D | org.eclipse.equinox.p2.artifact.repository_1.1.1.R36x_v20100901.jar | META-INF/MANIFEST.MF
META-INF/ECLIPSEF.SF
META-INF/ECLIPSEF ... |