/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
wire_format.py | 80 def PackTag(field_number, wire_type): 85 field_number: Expected to be an integer in the range [1, 1 << 29) 90 return (field_number << TAG_TYPE_BITS) | wire_type 95 returns a (field_number, wire_type) tuple. 122 def Int32ByteSize(field_number, int32): 123 return Int64ByteSize(field_number, int32) 130 def Int64ByteSize(field_number, int64): 132 return UInt64ByteSize(field_number, 0xffffffffffffffff & int64) 135 def UInt32ByteSize(field_number, uint32): 136 return UInt64ByteSize(field_number, uint32 [all...] |
encoder.py | 108 def _TagSize(field_number): 112 return _VarintSize(wire_format.PackTag(field_number, 0)) 127 def SpecificSizer(field_number, is_repeated, is_packed): 128 tag_size = _TagSize(field_number) 156 def SpecificSizer(field_number, is_repeated, is_packed): 157 tag_size = _TagSize(field_number) 185 def SpecificSizer(field_number, is_repeated, is_packed): 186 tag_size = _TagSize(field_number) 209 # constructor" is a function that takes (field_number, is_repeated, is_packed) 227 def StringSizer(field_number, is_repeated, is_packed) [all...] |
wire_format_test.py | 45 field_number = 0xabc 47 self.assertEqual((field_number << 3) | tag_type, 48 wire_format.PackTag(field_number, tag_type)) 51 self.assertRaises(message.EncodeError, PackTag, field_number, 6) 53 self.assertRaises(message.EncodeError, PackTag, field_number, -1) 59 field_number, wire_type = wire_format.UnpackTag( 61 self.assertEqual(expected_field_number, field_number) 105 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)): 107 actual_size = byte_size_fn(field_number, value) 109 'byte_size_fn: %s, field_number: %d, value: %r\n [all...] |
decoder.py | 62 MakeDecoder(field_number, is_repeated, is_packed, key, new_default) 64 field_number: The field number of the field we want to decode. 190 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): 210 tag_bytes = encoder.TagBytes(field_number, wire_type) 377 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): 385 tag_bytes = encoder.TagBytes(field_number, 415 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): 422 tag_bytes = encoder.TagBytes(field_number, 452 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): 455 end_tag_bytes = encoder.TagBytes(field_number, [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
wire_format_lite.h | 153 static uint32 MakeTag(int field_number, WireType type); 159 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 185 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 187 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 277 #define field_number int field_number macro 336 static inline bool ReadGroup (field_number, input, MessageLite* value); 343 static inline bool ReadGroupNoVirtual(field_number, input, 351 static inline void WriteTag(field_number, WireType type, output) INL; 370 static void WriteInt32 (field_number, int32 value, output) 485 #undef field_number macro [all...] |
wire_format_lite.cc | 71 int field_number, int value) { 72 unknown_fields_->AddVarint(field_number, value); 434 void WireFormatLite::WriteInt32(int field_number, int32 value, 436 WriteTag(field_number, WIRETYPE_VARINT, output); 439 void WireFormatLite::WriteInt64(int field_number, int64 value, 441 WriteTag(field_number, WIRETYPE_VARINT, output); 444 void WireFormatLite::WriteUInt32(int field_number, uint32 value, 446 WriteTag(field_number, WIRETYPE_VARINT, output); 449 void WireFormatLite::WriteUInt64(int field_number, uint64 value, 451 WriteTag(field_number, WIRETYPE_VARINT, output) [all...] |
wire_format_lite_inl.h | 343 inline bool WireFormatLite::ReadGroup(int field_number, 350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 382 int field_number, io::CodedInputStream* input, 390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 415 inline void WireFormatLite::WriteTag(int field_number, WireType type, 417 output->WriteTag(MakeTag(field_number, type)); 481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 483 WriteTag(field_number, WIRETYPE_START_GROUP, output); 485 WriteTag(field_number, WIRETYPE_END_GROUP, output); 489 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |
descriptor_database.h | 86 int field_number, 149 int field_number, 175 Value FindExtension(const string& containing_type, int field_number); 294 int field_number, 323 int field_number, 352 int field_number,
|
wire_format.h | 88 static inline int TagSize(int field_number, FieldDescriptor::Type type); 221 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { 224 return WireFormatLite::TagSize(field_number,
|
descriptor_database.cc | 191 int field_number) { 193 make_pair(containing_type, field_number), 281 int field_number, 283 return MaybeCopy(index_.FindExtension(containing_type, field_number), output); 371 int field_number, 373 return MaybeParse(index_.FindExtension(containing_type, field_number), 418 int field_number, 424 pool_.FindExtensionByNumber(extendee, field_number); 496 int field_number, 500 containing_type, field_number, output)) [all...] |
wire_format.cc | 86 int field_number = WireFormatLite::GetTagFieldNumber(tag); local 87 field = descriptor->FindFieldByNumber(field_number); 90 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { 92 field = message_reflection->FindKnownExtensionByNumber(field_number); 95 ->FindExtensionByNumber(descriptor, field_number);
|
text_format.cc | 1429 string field_number = SimpleItoa(field.number()); local [all...] |
/external/chromium_org/sync/test/fake_server/ |
fake_server_entity.cc | 63 int field_number = GetSpecificsFieldNumberFromModelType(model_type); local 65 field_number, 82 int field_number; local 83 if (token_count != 2 || !base::StringToInt(tokens[0], &field_number)) { 87 return syncer::GetModelTypeFromSpecificsFieldNumber(field_number);
|
/external/chromium_org/sync/internal_api/ |
write_transaction.cc | 46 int field_number = GetSpecificsFieldNumberFromModelType(type); local 55 local_context.set_data_type_id(field_number); 57 DCHECK_EQ(field_number, local_context.data_type_id());
|
/external/nanopb-c/ |
pb_encode.h | 122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number);
|
pb_encode.c | 459 bool checkreturn pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number) 461 uint64_t tag = ((uint64_t)field_number << 3) | wiretype;
|
/external/chromium_org/sync/engine/ |
get_updates_processor.cc | 97 int field_number = gu_response.new_progress_marker(i).data_type_id(); local 98 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); 100 DLOG(WARNING) << "Unknown field number " << field_number; 118 int field_number = gu_response.context_mutations(i).data_type_id(); local 119 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); 121 DLOG(WARNING) << "Unknown field number " << field_number;
|
directory_update_handler.cc | 208 int field_number = progress_marker.data_type_id(); local 209 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); 214 << field_number;
|
syncer_proto_util.cc | 165 int field_number = response.migrated_data_type_id(i); local 166 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); 168 DLOG(WARNING) << "Unknown field number " << field_number; 190 int field_number = error.error_data_type_ids(i); local 192 GetModelTypeFromSpecificsFieldNumber(field_number); 194 DLOG(WARNING) << "Unknown field number " << field_number;
|
commit_util.cc | 79 int field_number = GetSpecificsFieldNumberFromModelType(it.Get()); local 80 config_params->mutable_enabled_type_ids()->Add(field_number);
|
/external/chromium_org/sync/syncable/ |
model_type_unittest.cc | 86 int field_number = GetSpecificsFieldNumberFromModelType(iter.Get()); local 88 GetModelTypeFromSpecificsFieldNumber(field_number));
|
model_type.cc | 127 ModelType GetModelTypeFromSpecificsFieldNumber(int field_number) { 131 if (GetSpecificsFieldNumberFromModelType(iter.Get()) == field_number) [all...] |
/external/chromium_org/mojo/public/python/mojo/bindings/ |
descriptor.py | 442 def __init__(self, name, field_type, field_number, default_value=None): 445 self.field_number = field_number 482 def __init__(self, name, field_type, field_number, default_value=None): 484 self, name, field_type, field_number, default_value) 494 return self.field_number 509 self.version = min([descriptor.field_number for descriptor in descriptors])
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/ |
importer.h | 103 int field_number,
|
/external/chromium_org/sync/internal_api/public/base/ |
model_type.h | 234 // int field_number = ...; 236 // GetModelTypeFromSpecificsFieldNumber(field_number); 238 // DLOG(WARNING) << "Unknown field number " << field_number; 244 int field_number);
|