/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | fixed_array_test.cc | 44 return a.size() <= ArrayType::inline_elements; in IsOnStack() 117 EXPECT_EQ(stack_copy.size(), on_stack.size()); in TEST() 127 EXPECT_EQ(allocated.size(), alloced_copy.size()); in TEST() 145 // Arrays of <= default size should be on the stack in TEST() 151 // Arrays of > default size should be on the heap in TEST() 157 // Arrays with different size elements should use approximately in TEST() 168 EXPECT_EQ(0, array[0].size()); in TEST() 169 EXPECT_EQ(0, array[1].size()); in TEST() 492 size_t size; TEST() member [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cordz_info_statistics_test.cc | 48 // Creates a flat of the specified allocated size 49 CordRepFlat* Flat(size_t size) { in Flat() argument 50 // Round up to a tag size, as we are going to poke an exact tag size back into in Flat() 51 // the allocated flat. 'size returning allocators' could grant us more than we in Flat() 52 // wanted, but we are ok to poke the 'requested' size in the tag, even in the in Flat() 53 // presence of sized deletes, so we need to make sure the size rounds in Flat() 55 assert(size >= kMinFlatSize); in Flat() 56 size = RoundUpForTag(size); in Flat() [all...] |
/third_party/vulkan-loader/tests/framework/ |
H A D | test_util.h | 233 size_t size() const { return contents.size(); } 759 if (expected.size() != returned.size()) return false; 760 for (uint32_t i = 0; i < expected.size(); i++) { 769 if (expected.size() != returned.size()) return false; 770 for (uint32_t i = 0; i < expected.size(); i++) { 793 ssize_t count = readlink("/proc/self/exe", &buffer[0], buffer.size()); 806 int ret = proc_pidpath(pid, &buffer[0], static_cast<uint32_t>(buffer.size())); [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_ladspa.c | 69 unsigned int size; member 93 unsigned int port_bindings_size; /* size of array */ 95 unsigned int controls_size; /* size of array */ 335 for (idx = 0; idx < instance->input.channels.size; idx++) in snd_pcm_ladspa_free_instances() 340 for (idx = 0; idx < instance->output.channels.size; idx++) in snd_pcm_ladspa_free_instances() 368 if (idx >= array->size) { in snd_pcm_ladspa_add_to_carray() 372 for (idx1 = array->size; idx1 < idx; idx1++) in snd_pcm_ladspa_add_to_carray() 375 array->size = idx + 1; in snd_pcm_ladspa_add_to_carray() 393 if (idx >= array->size) { in snd_pcm_ladspa_add_to_array() 397 for (idx1 = array->size; idx in snd_pcm_ladspa_add_to_array() 851 snd_pcm_ladspa_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) snd_pcm_ladspa_write_areas() argument 912 snd_pcm_ladspa_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) snd_pcm_ladspa_read_areas() argument 1003 unsigned int size = array->size; snd_pcm_ladspa_dump_array() local [all...] |
/third_party/backends/backend/ |
H A D | kvs40xx_opt.c | 69 size_t size, max_size = 0; in max_string_size() local 74 size = strlen (strings[i]) + 1; in max_string_size() 75 if (size > max_size) in max_string_size() 76 max_size = size; in max_string_size() 300 s->opt[i].size = sizeof (SANE_Word); in kvs40xx_init_options() 319 o->size = 0; in kvs40xx_init_options() 328 o->size = max_string_size (mode_list); in kvs40xx_init_options() 331 s->val[MODE].s = malloc (o->size); in kvs40xx_init_options() 365 o->size = max_string_size (feeder_mode_list); in kvs40xx_init_options() 368 s->val[FEEDER_MODE].s = malloc (o->size); in kvs40xx_init_options() [all...] |
/third_party/lzma/C/ |
H A D | 7zArcIn.c | 13 #define MY_ALLOC(T, p, size, alloc) \
14 { if ((p = (T *)ISzAlloc_Alloc(alloc, (size) * sizeof(T))) == NULL) return SZ_ERROR_MEM; }
16 #define MY_ALLOC_ZE(T, p, size, alloc) \
17 { if ((size) == 0) p = NULL; else MY_ALLOC(T, p, size, alloc) }
19 #define MY_ALLOC_AND_CPY(to, size, from, alloc) \
20 { MY_ALLOC(Byte, to, size, alloc); memcpy(to, from, size); }
22 #define MY_ALLOC_ZE_AND_CPY(to, size, from, alloc) \
23 { if ((size) 270 UInt64 size; SkipData() local 1030 SzReadFileNames(const Byte *data, size_t size, UInt32 numFiles, size_t *offsets) SzReadFileNames() argument 1193 UInt64 size; SzReadHeader2() local [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_tls.cc | 113 *len = prefs.size(); in next_proto_cb() 142 if (proto.size() > 255) { in set_alpn_prefs() 143 LOG(FATAL) << "Too long ALPN identifier: " << proto.size(); in set_alpn_prefs() 147 len += 1 + proto.size(); in set_alpn_prefs() 159 *ptr++ = proto.size(); in set_alpn_prefs() 167 int ssl_pem_passwd_cb(char *buf, int size, int rwflag, void *user_data) { in ssl_pem_passwd_cb() argument 169 auto len = static_cast<int>(config->tls.private_key_passwd.size()); in ssl_pem_passwd_cb() 170 if (size < len + 1) { in ssl_pem_passwd_cb() 171 LOG(ERROR) << "ssl_pem_passwd_cb: buf is too small " << size; in ssl_pem_passwd_cb() 291 curve_name.size(), nullpt in servername_callback() [all...] |
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pShaderOperatorTests.cpp | 65 // Number of measurements in OperatorPerformanceCase for each workload size, unless specified otherwise by a command line argument. 69 // Maximum workload size that can be attempted. In a sensible case, this most likely won't be reached. 92 for (int i = 0; i < (int)data.size(); i++) in mean() 94 return sum / tcu::Vector<float, N>((float)data.size()); in mean() 132 static glu::DataType getDataTypeFloatOrVec (int size) in getDataTypeFloatOrVec() argument 134 return size == 1 ? glu::TYPE_FLOAT : glu::getDataTypeFloatVec(size); in getDataTypeFloatOrVec() 156 * slope of the workload size vs frame time data is estimated. This slope 174 * between workload size and frame time. Instead, there tends to be some 249 //! Sets program-specific uniforms that don't depend on the workload size [all...] |
/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pShaderOperatorTests.cpp | 65 // Number of measurements in OperatorPerformanceCase for each workload size, unless specified otherwise by a command line argument. 69 // Maximum workload size that can be attempted. In a sensible case, this most likely won't be reached. 92 for (int i = 0; i < (int)data.size(); i++) in mean() 94 return sum / tcu::Vector<float, N>((float)data.size()); in mean() 132 static glu::DataType getDataTypeFloatOrVec (int size) in getDataTypeFloatOrVec() argument 134 return size == 1 ? glu::TYPE_FLOAT : glu::getDataTypeFloatVec(size); in getDataTypeFloatOrVec() 156 * slope of the workload size vs frame time data is estimated. This slope 174 * between workload size and frame time. Instead, there tends to be some 249 //! Sets program-specific uniforms that don't depend on the workload size [all...] |
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 201 auto recv = ReceiveBuffer {.data = buf, .capacity = bufSize, .size = &outSize}; in TEST_F() 206 auto recvShort = ReceiveBuffer {.data = buf, .capacity = VERSION.length() - 1, .size = &outSize}; in TEST_F() 219 auto recv = ReceiveBuffer {.data = buf, .capacity = bufSize, .size = &outSize}; in TEST_F() 237 auto tag = Text { .data = "TAG", .size = strlen("TAG") }; in PrintLog() 238 auto fmt = Text { .data = format, .size = format == nullptr ? 0: strlen(format) }; in PrintLog() 293 {CALL_NORMAL, ReceiveBuffer {g_rBuf, BUF_SIZE, nullptr}, &g_rFatal, "Null output size pointer", false}, 315 auto callIn = Text { .data = suite.inMsg, .size = suite.inMsg == nullptr? 0 : strlen(suite.inMsg) }; in TEST_F() 318 if (suite.recv.data != nullptr && suite.recv.size != nullptr) { in TEST_F() 329 g_recordCapture = string(reinterpret_cast<const char *>(bytes.data), bytes.size); in Callback() 352 auto goodName = Text{ .data = "recordUiAction", .size in TEST_F() [all...] |
/test/xts/hats/hdf/camera/cameraMg_additional/v1_0/src/ |
H A D | common.cpp | 32 int32_t Test::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size)
in DumpImageFile() argument 61 ret = write(imgFd, buffer, size);
in DumpImageFile() 85 if (cameraIds.size() == 0) {
in Init() 111 if (cameraIds.size() == 0) {
in Open() 157 streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 158 DumpImageFile(streamIdPreview, "yuv", addr, size);
in StartStream() 173 streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 174 DumpImageFile(streamIdPreview, "yuv", addr, size);
in StartStream() 189 streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 221 streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() [all...] |
/test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/ |
H A D | KvStoreTest.cpp | 65 int size = 0; in TouchKVFiles() local 74 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in TouchKVFiles() 75 if (size < 0) { in TouchKVFiles() 78 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, i); in TouchKVFiles() 79 if (size < 0) { in TouchKVFiles() 105 int size = 0; in ReadKVFiles() local 115 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, num); in ReadKVFiles() 116 if (size < 0) { in ReadKVFiles() 119 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, num); in ReadKVFiles() 120 if (size < in ReadKVFiles() 145 int size = 0; DeleteKVFiles() local [all...] |
/test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/ |
H A D | kvstore_func_test.c | 65 int size; in SetKVFiles() local 74 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in SetKVFiles() 75 if (size < 0) { in SetKVFiles() 78 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, i); in SetKVFiles() 79 if (size < 0) { in SetKVFiles() 111 int size; in ReadKVFiles() local 121 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, loop); in ReadKVFiles() 122 if (size < 0) { in ReadKVFiles() 125 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, loop); in ReadKVFiles() 126 if (size < in ReadKVFiles() 157 int size; DeleteKVFiles() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dxva2_vc1.c | 166 unsigned position, unsigned size) in fill_slice() 174 slice->dwSliceBitsInBuffer = 8 * size; in fill_slice() 230 unsigned position, size; in commit_bitstream_and_slice_buffer() local 233 size = slice->dwSliceBitsInBuffer / 8; in commit_bitstream_and_slice_buffer() 234 if (start_code_size + size > end - current) { in commit_bitstream_and_slice_buffer() 259 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer() 260 current += size; in commit_bitstream_and_slice_buffer() 314 av_unused uint32_t size) in dxva2_vc1_start_frame() 334 uint32_t size) in dxva2_vc1_decode_slice() 348 size > in dxva2_vc1_decode_slice() 165 fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice, unsigned position, unsigned size) fill_slice() argument 312 dxva2_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) dxva2_vc1_start_frame() argument 332 dxva2_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) dxva2_vc1_decode_slice() argument [all...] |
H A D | opus_rc.c | 182 uint32_t ff_opus_rc_dec_uint(OpusRangeCoder *rc, uint32_t size) in ff_opus_rc_dec_uint() argument 186 bits = opus_ilog(size - 1); in ff_opus_rc_dec_uint() 187 total = (bits > 8) ? ((size - 1) >> (bits - 8)) + 1 : size; in ff_opus_rc_dec_uint() 196 return FFMIN(k, size - 1); in ff_opus_rc_dec_uint() 204 void ff_opus_rc_enc_uint(OpusRangeCoder *rc, uint32_t val, uint32_t size) in ff_opus_rc_enc_uint() argument 206 const int ps = FFMAX(opus_ilog(size - 1) - 8, 0); in ff_opus_rc_enc_uint() 207 opus_rc_enc_update(rc, val >> ps, (val >> ps) + 1, ((size - 1) >> ps) + 1, 0); in ff_opus_rc_enc_uint() 338 int ff_opus_rc_dec_init(OpusRangeCoder *rc, const uint8_t *data, int size) in ff_opus_rc_dec_init() argument 340 int ret = init_get_bits8(&rc->gb, data, size); in ff_opus_rc_dec_init() 360 ff_opus_rc_enc_end(OpusRangeCoder *rc, uint8_t *dst, int size) ff_opus_rc_enc_end() argument [all...] |
/third_party/ffmpeg/libavcodec/x86/ |
H A D | vp9dsp_init_16bpp_template.c | 171 #define init_itx_func(idxa, idxb, typea, typeb, size, bpp, opt) \ in INIT_FUNC() 173 cat(ff_vp9_##typea##_##typeb##_##size##x##size##_add_, bpp, _##opt); in INIT_FUNC() 174 #define init_itx_func_one(idx, typea, typeb, size, bpp, opt) \ in INIT_FUNC() 175 init_itx_func(idx, DCT_DCT, typea, typeb, size, bpp, opt); \ in INIT_FUNC() 176 init_itx_func(idx, ADST_DCT, typea, typeb, size, bpp, opt); \ in INIT_FUNC() 177 init_itx_func(idx, DCT_ADST, typea, typeb, size, bpp, opt); \ in INIT_FUNC() 178 init_itx_func(idx, ADST_ADST, typea, typeb, size, bpp, opt) in INIT_FUNC() 179 #define init_itx_funcs(idx, size, bpp, opt) \ in INIT_FUNC() 180 init_itx_func(idx, DCT_DCT, idct, idct, size, bp in INIT_FUNC() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | r3d.c | 36 unsigned size; member 44 atom->size = avio_rb32(s->pb); in read_atom() 45 if (atom->size < 8) in read_atom() 49 atom->size, (char*)&atom->tag, atom->offset); in read_atom() 50 return atom->size; in read_atom() 122 r3d->video_offsets_count = (atom->size - 8) / 4; in r3d_read_rdvo() 254 tmp = atom->size - 8 - (avio_tell(s->pb) - pos); in r3d_read_redv() 278 int samples, size; in r3d_read_reda() local 318 size = atom->size in r3d_read_reda() [all...] |
H A D | crypto.c | 93 "invalid %s size (%d bytes, block size is %d)\n", in set_aes_arg() 103 "invalid %s size (%d bytes, block size is %d)\n", in set_aes_arg() 183 static int crypto_read(URLContext *h, uint8_t *buf, int size) in crypto_read() argument 189 size = FFMIN(size, c->outdata); in crypto_read() 190 memcpy(buf, c->outptr, size); in crypto_read() 191 c->outptr += size; in crypto_read() 192 c->outdata -= size; in crypto_read() 329 crypto_write(URLContext *h, const unsigned char *buf, int size) crypto_write() argument [all...] |
/third_party/gn/src/gn/ |
H A D | header_checker.cc | 63 chain[chain.size() - 1].target->label().GetUserVisibleName(false) + in GetDependencyChainPublicError() 70 DCHECK(chain.size() != 1 && chain.size() != 2); in GetDependencyChainPublicError() 84 for (int i = static_cast<int>(chain.size()) - 1; i >= 0; i--) { in GetDependencyChainPublicError() 91 if (i == static_cast<int>(chain.size()) - 1 || chain[i - 1].is_public) in GetDependencyChainPublicError() 266 return file.value().compare(0, build_dir.size(), build_dir) == 0; in IsFileInOuputDir() 338 size_t error_count_before = errors->size(); in CheckFile() 358 return errors->size() == error_count_before; in CheckFile() 443 DCHECK(chain.size() >= 2); in CheckInclude() 445 DCHECK(chain[chain.size() in CheckInclude() [all...] |
/third_party/alsa-utils/nhlt/ |
H A D | nhlt-dmic-info.c | 184 static int nhlt_table_to_json(FILE *out, uint8_t *nhlt, uint32_t size) in nhlt_table_to_json() argument 191 if (_size != size) { in nhlt_table_to_json() 192 fprintf(stderr, "Table size mismatch (%08x != %08x)\n", _size, (uint32_t)size); in nhlt_table_to_json() 195 for (off = 0; off < size; off++) in nhlt_table_to_json() 205 if (off + 17 > size) in nhlt_table_to_json() 208 if (off + ep_size > size) in nhlt_table_to_json() 236 size_t pos, size; in nhlt_to_json() local 241 size = st.st_size; in nhlt_to_json() 242 if (size < 4 in nhlt_to_json() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | PluralSamples.java | 73 int keywordsRemaining = keywords.size(); in PluralSamples() 94 if (foundKeywords.size() != keywords.size()) { in PluralSamples() 154 } else if (!keyIsLimited && list.size() == MAX_SAMPLES) { in addSimpleSamples() 159 if (!keyIsLimited && list.size() == MAX_SAMPLES) { in addSimpleSamples() 180 if (foundKeywords.get("other").size() > 1) { in addIfNotPresent() 203 for (int j = 0; j < ints.size(); ++j) { in fractions() 232 for (int i = ints.size() - 1; i >= 0; --i) { in getDifferentCategory() 259 int originalSize = values.size(); in getStatus() 267 if (originalSize > explicits.size()) { in getStatus() [all...] |
/third_party/ltp/lib/ |
H A D | safe_net.c | 277 int sockfd, void *buf, size_t size, int flags) in safe_recv() 281 rval = recv(sockfd, buf, size, flags); in safe_recv() 285 "recv(%d, %p, %zu, %d) failed", sockfd, buf, size, in safe_recv() 290 sockfd, buf, size, flags, rval); in safe_recv() 294 sockfd, buf, size, flags, rval, len); in safe_recv() 456 char *name, size_t size) in safe_gethostname() 458 int rval = gethostname(name, size); in safe_gethostname() 462 "gethostname(%p, %zu) failed", name, size); in safe_gethostname() 466 size, rval); in safe_gethostname() 473 const char *name, size_t size) in safe_sethostname() 276 safe_recv(const char *file, const int lineno, size_t len, int sockfd, void *buf, size_t size, int flags) safe_recv() argument 455 safe_gethostname(const char *file, const int lineno, char *name, size_t size) safe_gethostname() argument 472 safe_sethostname(const char *file, const int lineno, const char *name, size_t size) safe_sethostname() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | memory.cpp | 32 size_t size, void *host_ptr) : in memory_obj() 34 _size(size), _host_ptr(host_ptr) { in memory_obj() 36 data.append((char *)host_ptr, size); in memory_obj() 40 while (_destroy_notify.size()) { in ~memory_obj() 67 memory_obj::size() const { in size() function in memory_obj 79 size_t size, void *host_ptr) : in buffer() 80 memory_obj(ctx, properties, flags, size, host_ptr) { in buffer() 91 size_t size, void *host_ptr) : in root_buffer() 92 buffer(ctx, properties, flags, size, host_ptr) { in root_buffer() 134 size_t offset, size_t size) in sub_buffer() 29 memory_obj(clover::context &ctx, std::vector<cl_mem_properties> properties, cl_mem_flags flags, size_t size, void *host_ptr) memory_obj() argument 76 buffer(clover::context &ctx, std::vector<cl_mem_properties> properties, cl_mem_flags flags, size_t size, void *host_ptr) buffer() argument 88 root_buffer(clover::context &ctx, std::vector<cl_mem_properties> properties, cl_mem_flags flags, size_t size, void *host_ptr) root_buffer() argument 133 sub_buffer(root_buffer &parent, cl_mem_flags flags, size_t offset, size_t size) sub_buffer() argument 170 image(clover::context &ctx, std::vector<cl_mem_properties> properties, cl_mem_flags flags, const cl_image_format *format, size_t width, size_t height, size_t depth, size_t array_size, size_t row_pitch, size_t slice_pitch, size_t size, void *host_ptr, cl_mem buffer) image() argument [all...] |
/third_party/node/lib/internal/fs/ |
H A D | streams.js | 397 function writeAll(data, size, pos, cb, retries = 0) { 398 this[kFs].write(this.fd, data, 0, size, pos, (er, bytesWritten, buffer) => { 412 size -= bytesWritten; 418 } else if (size) { 419 writeAll.call(this, buffer.slice(bytesWritten), size, pos, cb, retries); 426 function writevAll(chunks, size, pos, cb, retries = 0) { 441 size -= bytesWritten; 447 } else if (size) { 448 writevAll.call(this, [Buffer.concat(buffers).slice(bytesWritten)], size, pos, cb, retries); 475 let size [all...] |
/third_party/musl/src/thread/ |
H A D | pthread_create.c | 249 size_t size, guard; in __pthread_create() local 282 size = attr._a_stacksize; in __pthread_create() 284 stack_limit = (void *)(attr._a_stackaddr - size); in __pthread_create() 288 if (need < size/8 && need < 2048) { in __pthread_create() 293 size = ROUND(need); in __pthread_create() 298 size = guard + ROUND(attr._a_stacksize in __pthread_create() 304 map = __mmap(0, size, PROT_NONE, MAP_PRIVATE|MAP_ANON, -1, 0); in __pthread_create() 306 if (__mprotect(map+guard, size-guard, PROT_READ|PROT_WRITE) in __pthread_create() 308 __munmap(map, size); in __pthread_create() 312 map = __mmap(0, size, PROT_REA in __pthread_create() [all...] |