/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | IsValidUtf8Test.java | 102 assertTrue(asBytes("").isValidUtf8()); in testSomeSequences() 105 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8()); in testSomeSequences() 108 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8()); in testSomeSequences() 111 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8()); in testSomeSequences() 114 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8()); in testSomeSequences() 117 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8()); in testSomeSequences() 133 assertTrue(not ^ Utf8.isValidUtf8(realBytes)); in assertValidUtf8() 134 assertTrue(not ^ Utf8.isValidUtf8(realBytes, 0, bytes.length)); in assertValidUtf8() 137 assertTrue(not ^ leaf.isValidUtf8()); in assertValidUtf8() 138 assertTrue(not ^ sub.isValidUtf8()); in assertValidUtf8() [all …]
|
D | Utf8Test.java | 102 assertEquals("isValidUtf8[ARRAY]", valid, safeProcessor.isValidUtf8(data, 0, data.length)); in assertIsValid() 104 "isValidUtf8[ARRAY_UNSAFE]", valid, unsafeProcessor.isValidUtf8(data, 0, data.length)); in assertIsValid() 110 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer.remaining())); in assertIsValid() 119 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer.remaining())); in assertIsValid() 123 unsafeProcessor.isValidUtf8(buffer, buffer.position(), buffer.remaining())); in assertIsValid()
|
D | IsValidUtf8TestUtil.java | 269 boolean isRoundTrippable = bs.isValidUtf8(); 279 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes)); 280 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes)); 318 assertEquals(isRoundTrippable, x.isValidUtf8()); 331 assertEquals(isRoundTrippable, ropeADope.isValidUtf8()); 398 boolean isRoundTrippable = factory.newByteString(bytes).isValidUtf8();
|
D | DecodeUtf8Test.java | 33 if (!bs.isValidUtf8()) { in testOneByte() 47 if (!bs.isValidUtf8()) { in testTwoBytes() 67 if (!bs.isValidUtf8()) { in testThreeBytes()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Internal.java | 175 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() method in Internal 176 return byteString.isValidUtf8(); in isValidUtf8() 180 public static boolean isValidUtf8(byte[] byteArray) { in isValidUtf8() method in Internal 181 return Utf8.isValidUtf8(byteArray); in isValidUtf8()
|
D | NioByteString.java | 178 public boolean isValidUtf8() { in isValidUtf8() method in NioByteString 179 return Utf8.isValidUtf8(buffer); in isValidUtf8()
|
D | Utf8.java | 146 public static boolean isValidUtf8(byte[] bytes) { in isValidUtf8() method in Utf8 147 return processor.isValidUtf8(bytes, 0, bytes.length); in isValidUtf8() 158 public static boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8 159 return processor.isValidUtf8(bytes, index, limit); in isValidUtf8() 306 static boolean isValidUtf8(ByteBuffer buffer) { in isValidUtf8() method in Utf8 307 return processor.isValidUtf8(buffer, buffer.position(), buffer.remaining()); in isValidUtf8() 389 final boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8.Processor 416 final boolean isValidUtf8(ByteBuffer buffer, int index, int limit) { in isValidUtf8() method in Utf8.Processor
|
D | LazyStringArrayList.java | 118 if (bs.isValidUtf8()) { in get() 125 if (Internal.isValidUtf8(ba)) { in get()
|
D | ByteString.java | 838 public abstract boolean isValidUtf8(); in isValidUtf8() method 1385 public final boolean isValidUtf8() { in isValidUtf8() method in LiteralByteString 1387 return Utf8.isValidUtf8(bytes, offset, offset + size()); in isValidUtf8()
|
D | AbstractMessageLite.java | 134 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
|
D | ArrayDecoders.java | 619 if (!Utf8.isValidUtf8(data, position, position + length)) { in decodeStringListRequireUtf8() 638 if (!Utf8.isValidUtf8(data, position, position + nextLength)) { in decodeStringListRequireUtf8()
|
D | RopeByteString.java | 463 public boolean isValidUtf8() { in isValidUtf8() method
|
D | BinaryReader.java | 226 if (requireUtf8 && !Utf8.isValidUtf8(buffer, pos, pos + size)) { in readStringInternal()
|
D | MessageSchema.java | 4755 && !Utf8.isValidUtf8(data, position, position + length)) { in parseOneofField()
|
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/ |
D | DynamicReply.java | 103 if (bs.isValidUtf8()) { in getMessage() 438 if (bs.isValidUtf8()) { in getMessage()
|
D | DynamicRequest.java | 103 if (bs.isValidUtf8()) { in getMessage() 438 if (bs.isValidUtf8()) { in getMessage()
|
D | Reply.java | 103 if (bs.isValidUtf8()) { in getMessage() 438 if (bs.isValidUtf8()) { in getMessage()
|
D | Request.java | 103 if (bs.isValidUtf8()) { in getMessage() 438 if (bs.isValidUtf8()) { in getMessage()
|
D | ThirdLevelType.java | 104 if (bs.isValidUtf8()) { in getMessage() 479 if (bs.isValidUtf8()) { in getMessage()
|
D | TypeWithExtensions.java | 104 if (bs.isValidUtf8()) { in getMessage() 479 if (bs.isValidUtf8()) { in getMessage()
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | SentinelOuterClass.java | 210 if (bs.isValidUtf8()) { in getDefaultString() 538 if (bs.isValidUtf8()) { in getDefaultString()
|