/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
|
/frameworks/base/cmds/statsd/src/external/ |
D | GpuStatsPuller.cpp | 127 std::string byteString; in protoOutputStreamToByteString() local 131 byteString.append((char*)reader->readBuffer(), toRead); in protoOutputStreamToByteString() 135 if (byteString.size() != proto.size()) return ""; in protoOutputStreamToByteString() 137 return byteString; in protoOutputStreamToByteString()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 | 113 protected static void checkByteStringIsUtf8(ByteString byteString) in checkByteStringIsUtf8() argument 115 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()
|