Home
last modified time | relevance | path

Searched refs:RopeByteString (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java73 final class RopeByteString extends ByteString { class
132 private RopeByteString(ByteString left, ByteString right) { in RopeByteString() method in RopeByteString
171 if (left instanceof RopeByteString) { in concatenate()
172 final RopeByteString leftRope = (RopeByteString) left; in concatenate()
185 return new RopeByteString(leftRope.left, newRight); in concatenate()
195 ByteString newRight = new RopeByteString(leftRope.right, right); in concatenate()
196 return new RopeByteString(leftRope.left, newRight); in concatenate()
204 return new RopeByteString(left, right); in concatenate()
239 static RopeByteString newInstanceForTest(ByteString left, ByteString right) { in newInstanceForTest()
240 return new RopeByteString(left, right); in newInstanceForTest()
[all …]
DNioByteString.java203 if (other instanceof RopeByteString) { in equals()
DByteString.java517 return RopeByteString.concatenate(this, other); in concat()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8Test.java152 RopeByteString.newInstanceForTest(ByteString.EMPTY, leaf), in assertValidUtf8()
153 RopeByteString.newInstanceForTest(ByteString.EMPTY, sub), in assertValidUtf8()
154 RopeByteString.newInstanceForTest(leaf, ByteString.EMPTY), in assertValidUtf8()
155 RopeByteString.newInstanceForTest(sub, ByteString.EMPTY), in assertValidUtf8()
156 RopeByteString.newInstanceForTest(sub, leaf)}; in assertValidUtf8()
DRopeByteStringTest.java106 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString()
132 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
149 RopeByteString ropeByteString = in testToString_returnsCanonicalEmptyString()
150 RopeByteString.newInstanceForTest(ByteString.EMPTY, ByteString.EMPTY); in testToString_returnsCanonicalEmptyString()
159 RopeByteString.newInstanceForTest(ByteString.EMPTY, ByteString.EMPTY); in testToString_raisesException()
167 ByteString byteString = RopeByteString.concatenate(ByteString.copyFromUtf8("foo"), in testToString_raisesException()
DRopeByteStringSubstringTest.java79 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString()
109 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
DIsValidUtf8TestUtil.java295 ByteString rope = RopeByteString.newInstanceForTest(
297 RopeByteString.newInstanceForTest(bs.substring(i, j), bs.substring(j, numBytes)));
298 assertSame(RopeByteString.class, rope.getClass());
314 ByteString ropeADope = RopeByteString.newInstanceForTest(bs, bs.substring(0, numBytes));
DByteStringTest.java619 ByteString duo = RopeByteString.newInstanceForTest(literalString, literalString); in testConcat_empty()
620 ByteString temp = RopeByteString.newInstanceForTest( in testConcat_empty()
621 RopeByteString.newInstanceForTest(literalString, ByteString.EMPTY), in testConcat_empty()
622 RopeByteString.newInstanceForTest(ByteString.EMPTY, literalString)); in testConcat_empty()
623 ByteString quintet = RopeByteString.newInstanceForTest(temp, ByteString.EMPTY); in testConcat_empty()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DMakefile.am246 java/core/src/main/java/com/google/protobuf/RopeByteString.java \