Searched refs:encodeZigZag32 (Results 1 – 4 of 4) 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/ |
D | CodedOutputStreamTest.java | 219 assertEquals(0, CodedOutputStream.encodeZigZag32( 0)); in testEncodeZigZag() 220 assertEquals(1, CodedOutputStream.encodeZigZag32(-1)); in testEncodeZigZag() 221 assertEquals(2, CodedOutputStream.encodeZigZag32( 1)); in testEncodeZigZag() 222 assertEquals(3, CodedOutputStream.encodeZigZag32(-2)); in testEncodeZigZag() 223 assertEquals(0x7FFFFFFE, CodedOutputStream.encodeZigZag32(0x3FFFFFFF)); in testEncodeZigZag() 224 assertEquals(0x7FFFFFFF, CodedOutputStream.encodeZigZag32(0xC0000000)); in testEncodeZigZag() 225 assertEquals(0xFFFFFFFE, CodedOutputStream.encodeZigZag32(0x7FFFFFFF)); in testEncodeZigZag() 226 assertEquals(0xFFFFFFFF, CodedOutputStream.encodeZigZag32(0x80000000)); in testEncodeZigZag() 248 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag() 250 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 273 assertEquals(0, CodedOutputStream.encodeZigZag32(0)); in testEncodeZigZag() 274 assertEquals(1, CodedOutputStream.encodeZigZag32(-1)); in testEncodeZigZag() 275 assertEquals(2, CodedOutputStream.encodeZigZag32(1)); in testEncodeZigZag() 276 assertEquals(3, CodedOutputStream.encodeZigZag32(-2)); in testEncodeZigZag() 277 assertEquals(0x7FFFFFFE, CodedOutputStream.encodeZigZag32(0x3FFFFFFF)); in testEncodeZigZag() 278 assertEquals(0x7FFFFFFF, CodedOutputStream.encodeZigZag32(0xC0000000)); in testEncodeZigZag() 279 assertEquals(0xFFFFFFFE, CodedOutputStream.encodeZigZag32(0x7FFFFFFF)); in testEncodeZigZag() 280 assertEquals(0xFFFFFFFF, CodedOutputStream.encodeZigZag32(0x80000000)); in testEncodeZigZag() 295 assertEquals(0, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag() 296 assertEquals(1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/ |
D | CodedOutputByteBufferNano.java | 546 writeRawVarint32(encodeZigZag32(value)); in writeSInt32NoTag() 877 return computeRawVarint32Size(encodeZigZag32(value)); in computeSInt32SizeNoTag() 1071 public static int encodeZigZag32(final int n) { in encodeZigZag32() method in CodedOutputByteBufferNano
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | CodedOutputStream.java | 237 writeUInt32(fieldNumber, encodeZigZag32(value)); in writeSInt32() 398 writeUInt32NoTag(encodeZigZag32(value)); in writeSInt32NoTag() 739 return computeUInt32SizeNoTag(encodeZigZag32(value)); in computeSInt32SizeNoTag() 920 public static int encodeZigZag32(final int n) { in encodeZigZag32() method in CodedOutputStream
|