Home
last modified time | relevance | path

Searched refs:FIELD_ID_SHIFT (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/protoutil/include/android/util/
Dprotobuf.h25 const int FIELD_ID_SHIFT = 3; variable
26 const uint8_t WIRE_TYPE_MASK = (1 << FIELD_ID_SHIFT) - 1;
/frameworks/base/libs/protoutil/src/
Dprotobuf.cpp31 return varint >> FIELD_ID_SHIFT; in read_field_id()
63 buf = write_raw_varint(buf, (fieldId << FIELD_ID_SHIFT) | WIRE_TYPE_LENGTH_DELIMITED); in write_length_delimited_tag_header()
DEncodedBuffer.cpp214 return writeRawVarint32((fieldId << FIELD_ID_SHIFT) | wireType); in writeHeader()
/frameworks/base/core/java/android/util/proto/
DProtoStream.java116 public static final int FIELD_ID_SHIFT = 3; field in ProtoStream
132 public static final int WIRE_TYPE_MASK = (1 << FIELD_ID_SHIFT) - 1;
DProtoInputStream.java566 mFieldNumber = tag >>> FIELD_ID_SHIFT; in readTag()
DProtoOutputStream.java2272 return EncodedBuffer.getRawVarint32Size(id << FIELD_ID_SHIFT); in getTagSize()
2282 mBuffer.writeRawVarint32((id << FIELD_ID_SHIFT) | wireType); in writeTag()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp289 proto.writeRawVarint((ComplexProto::kIntsFieldNumber << FIELD_ID_SHIFT) + WIRE_TYPE_VARINT); in TEST()
292 …proto.writeRawByte((ComplexProto::Log::kDataFieldNumber << FIELD_ID_SHIFT) + WIRE_TYPE_LENGTH_DELI… in TEST()
/frameworks/base/api/
Dcurrent.txt52050 field public static final int FIELD_ID_SHIFT = 3; // 0x3