Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DByteStringTest.java99 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/
DByteStringTest.java100 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 …]
DRopeByteStringTest.java158 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()
DAbstractMessageTest.java535 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/
DGpuStatsPuller.cpp127 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/
DRopeByteString.java377 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()
DAbstractMessageLite.java113 protected static void checkByteStringIsUtf8(ByteString byteString) in checkByteStringIsUtf8() argument
115 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
DInternal.java172 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() argument
173 return byteString.isValidUtf8(); in isValidUtf8()
DByteString.java1023 for (ByteString byteString : cachedFlushBuffers) { in writeTo()
1024 byteString.writeTo(out); in writeTo()