/third_party/littlefs/bd/ |
H A D | lfs_testbd.c | 108 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_testbd_rawread() 111 return lfs_filebd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread() 113 return lfs_rambd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread() 118 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_testbd_rawprog() 121 return lfs_filebd_prog(cfg, block, off, buffer, size); in lfs_testbd_rawprog() 123 return lfs_rambd_prog(cfg, block, off, buffer, size); in lfs_testbd_rawprog() 148 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_testbd_read() 151 (void*)cfg, block, off, buffer, size); in lfs_testbd_read() 156 LFS_ASSERT(size % cfg->read_size == 0); in lfs_testbd_read() 167 int err = lfs_testbd_rawread(cfg, block, off, buffer, size); in lfs_testbd_read() 107 lfs_testbd_rawread(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size) lfs_testbd_rawread() argument 117 lfs_testbd_rawprog(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size) lfs_testbd_rawprog() argument 147 lfs_testbd_read(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size) lfs_testbd_read() argument 172 lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size) lfs_testbd_prog() argument [all...] |
/third_party/lwip/test/unit/arch/ |
H A D | sys_arch.c | 209 sys_mbox_new(sys_mbox_t *mbox, int size) in sys_mbox_new() argument 211 int mboxsize = size; in sys_mbox_new() 213 LWIP_ASSERT("size >= 0", size >= 0); in sys_mbox_new() 214 if (size == 0) { in sys_mbox_new() 220 mbox->size = mboxsize; in sys_mbox_new() 256 LWIP_ASSERT("q->size > 0", q->size > 0); in sys_mbox_post() 258 LWIP_ASSERT("mbox already full", q->used < q->size); in sys_mbox_post() 262 if (q->head >= (unsigned int)q->size) { in sys_mbox_post() [all...] |
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | heap-page.cc | 105 .size()); in TryObjectHeaderFromInnerAddress() 140 const size_t size = normal_page->PayloadSize() - sizeof(HeapObjectHeader); in Create() local 142 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(begin, size); in Create() 144 ASAN_POISON_MEMORY_REGION(begin, size); in Create() 146 cppgc::internal::ZapMemory(begin, size); in Create() 148 CheckMemoryIsInaccessible(begin, size); in Create() 175 lab.start(), lab.size()); in begin() 182 lab.size()); in begin() 207 LargePage::LargePage(HeapBase& heap, BaseSpace& space, size_t size) in LargePage() argument 208 : BasePage(heap, space, PageType::kLarge), payload_size_(size) {} in LargePage() 218 Create(PageBackend& page_backend, LargePageSpace& space, size_t size) Create() argument [all...] |
/third_party/node/deps/v8/src/profiler/ |
H A D | allocation-tracker.cc | 50 void AllocationTraceNode::AddAllocation(unsigned size) { in AddAllocation() argument 51 total_size_ += size; in AddAllocation() 90 base::OS::Print("Total size | Allocation count | Function id | id\n"); in Print() 104 void AddressToTraceMap::AddRange(Address start, int size, in AddRange() argument 106 Address end = start + size; in AddRange() 124 void AddressToTraceMap::MoveObject(Address from, Address to, int size) { in MoveObject() argument 127 RemoveRange(from, from + size); in MoveObject() 128 AddRange(to, size, trace_node_id); in MoveObject() 138 PrintF("[AddressToTraceMap (%zu): \n", ranges_.size()); in Print() 201 void AllocationTracker::AllocationEvent(Address addr, int size) { in AllocationEvent() argument [all...] |
H A D | sampling-heap-profiler.cc | 40 // we sample at rate R, the probability that an allocation of size S will be 42 // approximate the true number of allocations with size *size* given that 45 size_t size, unsigned int count) const { in ScaleSample() 46 double scale = 1.0 / (1.0 - std::exp(-static_cast<double>(size) / rate_)); in ScaleSample() 48 return {size, static_cast<unsigned int>(count * scale + 0.5)}; in ScaleSample() 74 void SamplingHeapProfiler::SampleObject(Address soon_object, size_t size) { in SampleObject() argument 87 node->allocations_[size]++; in SampleObject() 89 std::make_unique<Sample>(size, node, loc, this, next_sample_id()); in SampleObject() 99 DCHECK_GT(node->allocations_[sample->size], in OnWeakCallback() 44 ScaleSample( size_t size, unsigned int count) const ScaleSample() argument [all...] |
/third_party/node/deps/uv/src/win/ |
H A D | getaddrinfo.c | 75 /* Adjust size value to be multiple of 4. Use to keep pointer aligned. 101 * To minimize allocation we calculate total size required, 103 * Each size calculation is adjusted to avoid unaligned pointers. 253 * To minimize allocation we calculate total size required, 255 * Each size calculation is adjusted to avoid unaligned pointers. 281 /* calculate required memory size for all input values */ in uv_getaddrinfo() 399 int uv_if_indextoname(unsigned int ifindex, char* buffer, size_t* size) { in uv_if_indextoname() argument 405 if (buffer == NULL || size == NULL || *size == 0) in uv_if_indextoname() 423 } else if (bufsize > *size) { in uv_if_indextoname() 445 uv_if_indextoiid(unsigned int ifindex, char* buffer, size_t* size) uv_if_indextoiid() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/ |
H A D | GsymCreator.cpp | 35 const auto NextIndex = Files.size(); in insertFile() 62 if (Funcs.size() > UINT32_MAX) in encode() 72 Hdr.UUIDSize = static_cast<uint8_t>(UUID.size()); in encode() 74 Hdr.NumAddresses = static_cast<uint32_t>(Funcs.size()); in encode() 78 if (UUID.size() > sizeof(Hdr.UUID)) in encode() 80 "invalid UUID size %u", (uint32_t)UUID.size()); in encode() 81 // Set the address offset size correctly in the GSYM header. in encode() 91 if (UUID.size() > 0) in encode() 92 memcpy(Hdr.UUID, UUID.data(), UUID.size()); in encode() [all...] |
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkBuilderUtil.cpp | 46 (deUint32)m_bindings.size(), in addBinding() 47 (deUint32)m_immutableSamplers.size() in addBinding() 59 (deUint32)m_bindings.size(), // binding in addBinding() 80 (deUint32)m_immutableSamplers.size() in addIndexedBinding() 107 for (size_t samplerInfoNdx = 0; samplerInfoNdx < m_immutableSamplerInfos.size(); samplerInfoNdx++) in build() 116 if (bindingNdx >= (deUint32)bindings.size()) in build() 128 (deUint32)bindings.size(), // bindingCount in build() 150 for (size_t ndx = 0; ndx < m_counts.size(); ++ndx) in addType() 183 (deUint32)m_counts.size(), // poolSizeCount in build() 269 for (size_t writeNdx = 0; writeNdx < m_writes.size(); writeNd in update() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
H A D | parser_subgroup_size_control_test.cc | 177 EXPECT_EQ("9: invalid size for REQUIRED_SIZE command", r.Error()); in TEST_F() 198 "9: invalid required subgroup size 0 specified for shader name " in TEST_F() 221 "9: invalid required subgroup size 256 specified for shader name " in TEST_F() 244 "9: invalid required subgroup size 7 specified for shader name " in TEST_F() 304 ASSERT_EQ(1U, pipelines.size()); in TEST_F() 308 ASSERT_EQ(1U, shaders.size()); in TEST_F() 330 ASSERT_EQ(1U, pipelines.size()); in TEST_F() 334 ASSERT_EQ(1U, shaders.size()); in TEST_F() 357 ASSERT_EQ(1U, pipelines.size()); in TEST_F() 361 ASSERT_EQ(1U, shaders.size()); in TEST_F() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | type.h | 92 // Returns the size in bytes of a single element of the type. This does not 110 void SetRowCount(uint32_t size) { row_count_ = size; } in SetRowCount() argument 113 void SetColumnCount(uint32_t size) { column_count_ = size; } in SetColumnCount() argument 117 void SetIsSizedArray(uint32_t size) { in SetIsSizedArray() argument 119 array_size_ = size; in SetIsSizedArray() 197 if (members_.size() != l->members_.size()) 201 for (size_t i = 0; i < members_.size(); 212 SetPackSizeInBits(uint32_t size) SetPackSizeInBits() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkPath_serial.cpp | 108 size_t size = 4 * sizeof(int32_t); in writeToMemory() local 109 size = safe.add(size, safe.mul(pts, sizeof(SkPoint))); in writeToMemory() 110 size = safe.add(size, safe.mul(cnx, sizeof(SkScalar))); in writeToMemory() 111 size = safe.add(size, safe.mul(vbs, sizeof(uint8_t))); in writeToMemory() 112 size = safe.alignUp(size, 4); in writeToMemory() 117 return size; in writeToMemory() 135 size_t size = this->writeToMemory(nullptr); serialize() local [all...] |
/third_party/skia/samplecode/ |
H A D | SampleVertices.cpp | 26 static sk_sp<SkShader> make_shader0(SkIPoint* size) { in make_shader0() argument 28 size->set(2, 2); in make_shader0() 31 bm.allocN32Pixels(size->fX, size->fY); in make_shader0() 41 static sk_sp<SkShader> make_shader1(const SkIPoint& size) { in make_shader1() argument 43 { SkIntToScalar(size.fX), SkIntToScalar(size.fY) } }; in make_shader1() 55 SkIPoint size; in VerticesView() local 57 fShader0 = make_shader0(&size); in VerticesView() 58 fShader1 = make_shader1(size); in VerticesView() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_struct_namevalue.c | 35 int size; variable 46 if(*c < 0 || *c > size) in iterate_cb() 112 size = sizeof(pairs)/sizeof(pairs[0]); in main() 129 for(i=0;i<size; i+=2) in main() 147 for(i=size - 2; i >= 0; i-=2) in main() 207 size = sizeof(pairs_with_dups)/sizeof(pairs_with_dups[0]); in main() 209 for(i=0;i<size; i+=2) in main() 216 if(SPDY_name_value_iterate (container, NULL, NULL) != atoi(pairs_with_dups[size - 1])) in main() 220 for(i=size - 2; i >= 0; i-=2) in main() 249 size in main() [all...] |
/third_party/skia/third_party/externals/freetype/src/bzip2/ |
H A D | ftbzip2.c | 66 int size ) in ft_bzip2_alloc() 68 FT_ULong sz = (FT_ULong)size * (FT_ULong)items; in ft_bzip2_alloc() 244 FT_ULong size; in ft_bzip2_file_fill_input() local 249 size = stream->read( stream, stream->pos, zip->input, in ft_bzip2_file_fill_input() 251 if ( size == 0 ) in ft_bzip2_file_fill_input() 259 size = stream->size - stream->pos; in ft_bzip2_file_fill_input() 260 if ( size > FT_BZIP2_BUFFER_SIZE ) in ft_bzip2_file_fill_input() 261 size = FT_BZIP2_BUFFER_SIZE; in ft_bzip2_file_fill_input() 263 if ( size in ft_bzip2_file_fill_input() [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ |
H A D | index_sub_table_format5.cc | 94 return GetGlyphArray()->size(); in NumGlyphs() 190 glyph_array_.size() * DataSize::kUSHORT; in SubDataSizeToSerialize() 202 int32_t size = SerializeIndexSubHeader(new_data); in SubSerialize() local 210 size += source->CopyTo(target); in SubSerialize() 212 size += new_data->WriteULong(EblcTable::Offset::kIndexSubTable5_imageSize, in SubSerialize() 215 slice.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize() 216 size += BigMetrics()->SubSerialize(slice); in SubSerialize() 217 size += new_data->WriteULong(size, glyph_array_.size()); in SubSerialize() [all...] |
/third_party/skia/third_party/externals/zlib/contrib/bench/ |
H A D | zlib_bench.cc | 45 Data(size_t s) { data.reset(new (std::nothrow) char[size = s]); } in Data() 47 size_t size; member 62 file.read(data.data.get(), data.size); in read_file_data_or_exit() 64 if (!file || !data.data || !data.size) { in read_file_data_or_exit() 131 size_t output_size = output->size(); in zlib_compress() 171 stream.avail_out = (uInt)output->size(); in zlib_uncompress() 173 stream.avail_in = (uInt)input.size(); in zlib_uncompress() 188 void verify_equal(const char* input, size_t size, std::string* output) { in verify_equal() argument 190 if (output->size() == size in verify_equal() [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | IntArrayListTest.java | 78 assertEquals(4, list.size()); in testModificationWithIteration() 205 assertEquals(0, IntArrayList.emptyList().size()); in testSize() 206 assertEquals(1, UNARY_LIST.size()); in testSize() 207 assertEquals(3, TERTIARY_LIST.size()); in testSize() 213 assertEquals(4, list.size()); in testSize() 216 assertEquals(3, list.size()); in testSize() 219 assertEquals(4, list.size()); in testSize() 273 assertEquals(0, list.size()); in testAdd() 304 assertEquals(0, list.size()); in testAddInt() 314 assertEquals(0, list.size()); in testAddAll() [all...] |
H A D | BooleanArrayListTest.java | 79 assertEquals(4, list.size()); in testModificationWithIteration() 206 assertEquals(0, BooleanArrayList.emptyList().size()); in testSize() 207 assertEquals(1, UNARY_LIST.size()); in testSize() 208 assertEquals(3, TERTIARY_LIST.size()); in testSize() 214 assertEquals(4, list.size()); in testSize() 217 assertEquals(3, list.size()); in testSize() 220 assertEquals(4, list.size()); in testSize() 274 assertEquals(0, list.size()); in testAdd() 306 assertEquals(0, list.size()); in testAddBoolean() 316 assertEquals(0, list.size()); in testAddAll() [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | RepeatedFieldBuilderV3.java | 155 * initialized to be the same size as the messages list with null entries. 159 this.builders = new ArrayList<SingleFieldBuilderV3<MType, BType, IType>>(messages.size()); in ensureBuilders() 160 for (int i = 0; i < messages.size(); i++) { in ensureBuilders() 172 return messages.size(); in getCount() 346 // If we can inspect the size, we can more efficiently add messages. in addAllMessages() 347 int size = -1; in addAllMessages() 353 size = collection.size(); in addAllMessages() 357 if (size >= 0 && messages instanceof ArrayList) { in addAllMessages() 358 ((ArrayList<MType>) messages).ensureCapacity(messages.size() in addAllMessages() 584 public int size() { size() method in RepeatedFieldBuilderV3.MessageExternalList 618 public int size() { size() method in RepeatedFieldBuilderV3.BuilderExternalList 652 public int size() { size() method in RepeatedFieldBuilderV3.MessageOrBuilderExternalList [all...] |
H A D | RepeatedFieldBuilder.java | 155 * initialized to be the same size as the messages list with null entries. 159 this.builders = new ArrayList<SingleFieldBuilder<MType, BType, IType>>(messages.size()); in ensureBuilders() 160 for (int i = 0; i < messages.size(); i++) { in ensureBuilders() 172 return messages.size(); in getCount() 346 // If we can inspect the size, we can more efficiently add messages. in addAllMessages() 347 int size = -1; in addAllMessages() 353 size = collection.size(); in addAllMessages() 357 if (size >= 0 && messages instanceof ArrayList) { in addAllMessages() 358 ((ArrayList<MType>) messages).ensureCapacity(messages.size() in addAllMessages() 584 public int size() { size() method in RepeatedFieldBuilder.MessageExternalList 618 public int size() { size() method in RepeatedFieldBuilder.BuilderExternalList 652 public int size() { size() method in RepeatedFieldBuilder.MessageOrBuilderExternalList [all...] |
/third_party/skia/modules/skshaper/tests/ |
H A D | ShaperTest.cpp | 62 REPORTER_ASSERT(fReporter, fRange.size() == info.utf8Range.size(), "%s", fResource); 63 if (!(fRange.begin() + fRange.size() <= fUtf8Size)) { 64 REPORTER_ASSERT(fReporter, fRange.begin() + fRange.size() <= fUtf8Size, "%s",fResource); 90 for (const char c : SkSpan(fUtf8 + fRange.begin(), fRange.size())) { 99 fResource, fRange.begin(), fRange.end(), fRange.size(), fGlyphCount, 101 (int)fRange.size(), fUtf8 + fRange.begin(), 127 RunHandler rh(name, reporter, (const char*)data->data(), data->size()); in shaper_test() 128 shaper->shape((const char*)data->data(), data->size(), font, true, kWidth, &rh); in shaper_test() 137 auto fontIterator = SkShaper::TrivialFontRunIterator(font, data->size()); in shaper_test() [all...] |
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_image_util.cpp | 49 auto size = static_cast<uint32_t>(pixelMap->GetByteCount()); in PackImage() local 50 ANS_LOGD("size of pixelMap : %{public}u", size); in PackImage() 51 if (size < DEFAULT_SIZE) { in PackImage() 52 size = DEFAULT_SIZE; in PackImage() 54 auto pbuf = new (std::nothrow) uint8_t [size]; in PackImage() 60 imagePacker.StartPacking(pbuf, size, option); in PackImage() 64 ANS_LOGD("packed size : %{public}" PRId64, packedSize); in PackImage() 130 ANS_LOGI("packed size : %{public}" PRId64, packedSize); in PackImage2File() 174 strHex.resize(strBin.size() * TWO_TIME in BinToHex() [all...] |
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_file.c | 34 int GetFileSizeByHandle(FILE *file, int *size)
in GetFileSizeByHandle() argument 54 *size = len;
in GetFileSizeByHandle() 62 int size = 0;
in ReadFileToStream() local 70 ret = GetFileSizeByHandle(file, &size);
in ReadFileToStream() 72 HNP_LOGE("get file[%{public}s] size unsuccess.", filePath);
in ReadFileToStream() 76 if (size == 0) {
in ReadFileToStream() 77 HNP_LOGE("get file[%{public}s] size is null.", filePath);
in ReadFileToStream() 81 streamTmp = (char*)malloc(size);
in ReadFileToStream() 83 HNP_LOGE("malloc unsuccess. size%{public}d", size);
in ReadFileToStream() [all...] |
/third_party/curl/tests/http/clients/ |
H A D | h2-upgrade-extreme.c | 60 char *data, size_t size, in debug_cb() 87 if(size > 0) { in debug_cb() 90 for(i = 0; i < size - 1; i++) { in debug_cb() 104 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 111 (void)fwrite(data, size, 1, output); in debug_cb() 112 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 122 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb() 136 static size_t write_cb(char *ptr, size_t size, size_ argument 59 debug_cb(CURL *handle, curl_infotype type, char *data, size_t size, void *userdata) debug_cb() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | rtpdec_qcelp.c | 30 int size; member 43 /* The maximum packet size, 10 frames of 35 bytes each, and one 69 av_log(ctx, AV_LOG_ERROR, "Invalid interleave size %d\n", in store_packet() 80 /* First packet, or changed interleave size */ in store_packet() 84 data->group[i].size = 0; in store_packet() 98 data->group[data->interleave_index].size = 0; in store_packet() 115 data->group[data->interleave_index].size = 0; in store_packet() 134 ip->size = len - 1 - frame_size; in store_packet() 136 memcpy(ip->data, &buf[1 + frame_size], ip->size); in store_packet() 140 data->group_finished = ip->size in store_packet() [all...] |