/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | IsValidUtf8Test.java | 114 assertTrue(asBytes("").isValidUtf8()); in testSomeSequences() 117 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8()); in testSomeSequences() 120 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8()); in testSomeSequences() 123 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8()); in testSomeSequences() 126 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8()); in testSomeSequences() 129 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8()); in testSomeSequences() 145 assertTrue(not ^ Utf8.isValidUtf8(realBytes)); in assertValidUtf8() 146 assertTrue(not ^ Utf8.isValidUtf8(realBytes, 0, bytes.length)); in assertValidUtf8() 149 assertTrue(not ^ leaf.isValidUtf8()); in assertValidUtf8() 150 assertTrue(not ^ sub.isValidUtf8()); in assertValidUtf8() [all …]
|
D | IsValidUtf8TestUtil.java | 263 boolean isRoundTrippable = bs.isValidUtf8(); 273 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes)); 274 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes)); 302 assertEquals(isRoundTrippable, x.isValidUtf8()); 315 assertEquals(isRoundTrippable, ropeADope.isValidUtf8()); 381 boolean isRoundTrippable = factory.newByteString(bytes).isValidUtf8();
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Internal.java | 172 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() method in Internal 173 return byteString.isValidUtf8(); in isValidUtf8() 179 public static boolean isValidUtf8(byte[] byteArray) { in isValidUtf8() method in Internal 180 return Utf8.isValidUtf8(byteArray); in isValidUtf8()
|
D | Utf8.java | 154 public static boolean isValidUtf8(byte[] bytes) { in isValidUtf8() method in Utf8 155 return processor.isValidUtf8(bytes, 0, bytes.length); in isValidUtf8() 167 public static boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8 168 return processor.isValidUtf8(bytes, index, limit); in isValidUtf8() 320 static boolean isValidUtf8(ByteBuffer buffer) { in isValidUtf8() method in Utf8 321 return processor.isValidUtf8(buffer, buffer.position(), buffer.remaining()); in isValidUtf8() 386 final boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8.Processor 419 final boolean isValidUtf8(ByteBuffer buffer, int index, int limit) { in isValidUtf8() method in Utf8.Processor
|
D | NioByteString.java | 176 public boolean isValidUtf8() { in isValidUtf8() method in NioByteString 177 return Utf8.isValidUtf8(buffer); in isValidUtf8()
|
D | LazyStringArrayList.java | 121 if (bs.isValidUtf8()) { in get() 128 if (Internal.isValidUtf8(ba)) { in get()
|
D | ByteString.java | 780 public abstract boolean isValidUtf8(); in isValidUtf8() method 1335 public final boolean isValidUtf8() { in isValidUtf8() method in LiteralByteString 1337 return Utf8.isValidUtf8(bytes, offset, offset + size()); in isValidUtf8()
|
D | AbstractMessageLite.java | 114 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
|
D | RopeByteString.java | 418 public boolean isValidUtf8() { in isValidUtf8() method in RopeByteString
|
D | CodedInputStream.java | 411 if (!Utf8.isValidUtf8(bytes, pos, pos + size)) { in readStringRequireUtf8()
|
/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()
|
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/ |
D | Request.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 | DynamicRequest.java | 103 if (bs.isValidUtf8()) { in getMessage() 438 if (bs.isValidUtf8()) { in getMessage()
|
D | DynamicReply.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()
|