/external/protobuf/php/ext/google/protobuf/ |
D | storage.c | 305 size_t field_size; in create_layout() local 313 field_size = 0; in create_layout() 315 field_size = sizeof(zval*); in create_layout() 317 field_size = native_slot_size(upb_fielddef_type(field)); in create_layout() 321 off = align_up_to(off, field_size); in create_layout() 325 off += field_size; in create_layout() 348 size_t field_size = NATIVE_SLOT_MAX_SIZE; in create_layout() local 350 off = align_up_to( off, field_size); in create_layout() 357 off += field_size; in create_layout() 366 size_t field_size = sizeof(uint32_t); in create_layout() local [all …]
|
/external/perfetto/tools/trace_to_text/ |
D | utils.cc | 60 uint32_t field_size = 0; in ForEachPacketBlobInTrace() local 65 field_size |= static_cast<uint32_t>(c & 0x7f) << shift; in ForEachPacketBlobInTrace() 73 std::unique_ptr<char[]> buf(new char[field_size]); in ForEachPacketBlobInTrace() 74 input->read(buf.get(), static_cast<std::streamsize>(field_size)); in ForEachPacketBlobInTrace() 75 bytes_processed += field_size; in ForEachPacketBlobInTrace() 77 f(std::move(buf), field_size); in ForEachPacketBlobInTrace()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_internal.h | 286 #define DEFINE_ETNA_BITARRAY(name, num, field_size) \ argument 287 uint32_t name[(num) * (field_size) / 32] 290 etna_bitarray_set(uint32_t *array, size_t array_size, size_t field_size, in etna_bitarray_set() argument 293 size_t shift = (index * field_size) % 32; in etna_bitarray_set() 294 size_t offset = (index * field_size) / 32; in etna_bitarray_set() 296 assert(index < array_size * 32 / field_size); in etna_bitarray_set() 297 assert(value < 1 << field_size); in etna_bitarray_set() 302 #define etna_bitarray_set(array, field_size, index, value) \ argument 303 etna_bitarray_set((array), ARRAY_SIZE(array), field_size, index, value)
|
/external/nos/host/android/hals/keymaster/test/ |
D | import_key_test.cpp | 275 const size_t field_size = (EC_GROUP_get_degree(group) + 7) >> 3; in MatchAndExplainEC() local 276 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]); in MatchAndExplainEC() 277 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) { in MatchAndExplainEC() 281 if (request.ec().d().size() != field_size || in MatchAndExplainEC() 282 memcmp(request.ec().d().data(), d_buf.get(), field_size) != 0) { in MatchAndExplainEC() 288 unique_ptr<uint8_t[]> x_buf(new uint8_t[field_size]); in MatchAndExplainEC() 289 if (!BN_bn2le_padded(x_buf.get(), field_size, x.get())) { in MatchAndExplainEC() 293 if (request.ec().x().size() != field_size || in MatchAndExplainEC() 294 memcmp(request.ec().x().data(), x_buf.get(), field_size) != 0) { in MatchAndExplainEC() 299 unique_ptr<uint8_t[]> y_buf(new uint8_t[field_size]); in MatchAndExplainEC() [all …]
|
/external/nos/host/android/hals/keymaster/ |
D | import_key.cpp | 220 const size_t field_size = (parsed_key_size + 7) >> 3; in import_key_ec() local 221 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]); in import_key_ec() 222 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) { in import_key_ec() 226 request->mutable_ec()->set_d(d_buf.get(), field_size); in import_key_ec() 229 unique_ptr<uint8_t[]> x_buf(new uint8_t[field_size]); in import_key_ec() 230 if (!BN_bn2le_padded(x_buf.get(), field_size, x.get())) { in import_key_ec() 234 request->mutable_ec()->set_x(x_buf.get(), field_size); in import_key_ec() 236 unique_ptr<uint8_t[]> y_buf(new uint8_t[field_size]); in import_key_ec() 237 if (!BN_bn2le_padded(y_buf.get(), field_size, y.get())) { in import_key_ec() 241 request->mutable_ec()->set_y(y_buf.get(), field_size); in import_key_ec()
|
/external/libprotobuf-mutator/src/ |
D | mutator.cc | 205 int field_size = reflection->FieldSize(*message, field); in Sample() local 208 {{message, field, GetRandomIndex(random_, field_size + 1)}, in Sample() 211 if (field_size) { in Sample() 212 size_t random_index = GetRandomIndex(random_, field_size); in Sample() 244 const int field_size = reflection->FieldSize(*message, field); in Sample() local 245 for (int j = 0; j < field_size; ++j) in Sample() 295 const int field_size = reflection->FieldSize(*message, field); in Sample() local 296 for (int j = 0; j < field_size; ++j) { in Sample() 312 if (int field_size = reflection->FieldSize(*message, field)) { in Sample() local 314 GetRandomIndex(random_, field_size)); in Sample() [all …]
|
D | field_instance.h | 222 int field_size = reflection().FieldSize(*message_, descriptor()); in Delete() local 226 for (int i = index() + 1; i < field_size; ++i) in Delete() 316 size_t field_size = reflection().FieldSize(*message_, descriptor()); in InsertRepeated() local 317 if (field_size == 1) return; in InsertRepeated() 321 for (size_t i = field_size - 1; i > index(); --i) in InsertRepeated()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 413 size_t field_size; in create_layout() local 421 field_size = 0; in create_layout() 423 field_size = sizeof(VALUE); in create_layout() 425 field_size = native_slot_size(upb_fielddef_type(field)); in create_layout() 428 off = align_up_to(off, field_size); in create_layout() 432 off += field_size; in create_layout() 456 size_t field_size = NATIVE_SLOT_MAX_SIZE; in create_layout() local 458 off = align_up_to(off, field_size); in create_layout() 466 off += field_size; in create_layout() 476 size_t field_size = sizeof(uint32_t); in create_layout() local [all …]
|
/external/nos/test/system-test-harness/src/ |
D | keymaster-import-key-tests.cc | 473 const size_t field_size = (EC_GROUP_get_degree(group) + 7) >> 3; in TEST_F() local 474 std::unique_ptr<uint8_t []> dstr(new uint8_t[field_size]); in TEST_F() 475 std::unique_ptr<uint8_t []> xstr(new uint8_t[field_size]); in TEST_F() 476 std::unique_ptr<uint8_t []> ystr(new uint8_t[field_size]); in TEST_F() 478 EXPECT_EQ(BN_bn2le_padded(dstr.get(), field_size, d), 1); in TEST_F() 479 EXPECT_EQ(BN_bn2le_padded(xstr.get(), field_size, x.get()), 1); in TEST_F() 480 EXPECT_EQ(BN_bn2le_padded(ystr.get(), field_size, y.get()), 1); in TEST_F() 499 request.mutable_ec()->set_d(dstr.get(), field_size); in TEST_F() 500 request.mutable_ec()->set_x(xstr.get(), field_size); in TEST_F() 501 request.mutable_ec()->set_y(ystr.get(), field_size); in TEST_F()
|
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
D | atrace_from_file_agent.py | 80 field_size = 0 84 field_size |= (c & 0x7f) << shift 89 from_file.seek(field_size, os.SEEK_CUR)
|
/external/protobuf/src/google/protobuf/ |
D | dynamic_message.cc | 718 int field_size = FieldSpaceUsed(type->field(i)); in GetPrototypeNoLock() local 719 size = AlignTo(size, std::min(kSafeAlignment, field_size)); in GetPrototypeNoLock() 721 size += field_size; in GetPrototypeNoLock() 762 int field_size = OneofFieldSpaceUsed(field); in GetPrototypeNoLock() local 763 oneof_size = AlignTo(oneof_size, std::min(kSafeAlignment, field_size)); in GetPrototypeNoLock() 765 oneof_size += field_size; in GetPrototypeNoLock()
|
D | wire_format.cc | 370 int field_size = field.GetLengthDelimitedSize(); in ComputeUnknownMessageSetItemsSize() local 371 size += io::CodedOutputStream::VarintSize32(field_size); in ComputeUnknownMessageSetItemsSize() 372 size += field_size; in ComputeUnknownMessageSetItemsSize()
|
D | descriptor_unittest.cc | 784 ASSERT_EQ(6, proto.field_size()); in TEST_F() 794 ASSERT_EQ(6, proto.field_size()); in TEST_F()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 94 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem() local 96 index = field_size + index; in AssignItem() 98 if (index < 0 || index >= field_size) { in AssignItem() 196 int field_size = reflection->FieldSize(*message, field_descriptor); in Item() local 198 index = field_size + index; in Item() 200 if (index < 0 || index >= field_size) { in Item()
|
/external/strace/tests-mx32/ |
D | s390_guarded_storage.c | 141 int field_size = 2 + (67 - gsc) / 4; in gs_set_cb() local 143 printf("%#0*" PRIx64, field_size, gls); in gs_set_cb()
|
/external/strace/tests-m32/ |
D | s390_guarded_storage.c | 141 int field_size = 2 + (67 - gsc) / 4; in gs_set_cb() local 143 printf("%#0*" PRIx64, field_size, gls); in gs_set_cb()
|
/external/strace/tests/ |
D | s390_guarded_storage.c | 141 int field_size = 2 + (67 - gsc) / 4; in gs_set_cb() local 143 printf("%#0*" PRIx64, field_size, gls); in gs_set_cb()
|
/external/perfetto/src/trace_processor/ |
D | proto_trace_tokenizer.cc | 127 uint64_t field_size = 0; in Parse() local 128 const uint8_t* next = ParseVarInt(++pos, &*partial_buf_.end(), &field_size); in Parse() 131 if (proto_field_tag != kTracePacketTag || field_size == 0 || parse_failed) { in Parse() 138 size_t size_incl_header = static_cast<size_t>(field_size + hdr_size); in Parse()
|
/external/python/cpython2/Modules/ |
D | _csv.c | 120 int field_size; /* size of allocated buffer */ member 571 assert((unsigned)self->field_size <= INT_MAX); in parse_grow_buff() 573 field_size_new = self->field_size ? 2 * (unsigned)self->field_size : 4096; in parse_grow_buff() 584 self->field_size = (int)field_size_new; in parse_grow_buff() 596 if (self->field_len == self->field_size && !parse_grow_buff(self)) in parse_add_char() 938 self->field_size = 0; in csv_reader()
|
/external/python/cpython3/Modules/ |
D | _csv.c | 100 Py_ssize_t field_size; /* size of allocated buffer */ member 557 assert((size_t)self->field_size <= PY_SSIZE_T_MAX / sizeof(Py_UCS4)); in parse_grow_buff() 559 Py_ssize_t field_size_new = self->field_size ? 2 * self->field_size : 4096; in parse_grow_buff() 567 self->field_size = field_size_new; in parse_grow_buff() 579 if (self->field_len == self->field_size && !parse_grow_buff(self)) in parse_add_char() 946 self->field_size = 0; in csv_reader()
|
/external/python/cpython2/Modules/_ctypes/ |
D | stgdict.c | 325 Py_ssize_t field_size = 0; in PyCStructUnionType_update_stgdict() local 548 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict() 556 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
|
/external/python/cpython3/Modules/_ctypes/ |
D | stgdict.c | 341 Py_ssize_t field_size = 0; in PyCStructUnionType_update_stgdict() local 559 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict() 567 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
|
/external/protobuf/python/google/protobuf/internal/ |
D | encoder.py | 202 field_size = value_size + tag_size 204 return field_size
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 772 message->field_size()); in ParseMessageStatement() 1647 containing_type->field_size()); in ParseOneof()
|
D | parser_unittest.cc | 1737 for (int i = 0; i < proto->field_size(); ++i) { in StripFieldTypeName()
|