/test/ostest/wukong/common/src/ |
H A D | app_manager.cpp | 45 if (orderFlag && tempAllowList.size() != 0) { in AllowAbilityStart() 84 if (abilityName.size() == 0 || bundleName.size() == 0) { in StartAbilityByBundleInfo() 85 if (abilityName.size() == 0) { in StartAbilityByBundleInfo() 88 if (bundleName.size() == 0) { in StartAbilityByBundleInfo()
|
/third_party/elfutils/libelf/ |
H A D | elf_compress_gnu.c | 102 size_t hsize = 4 + 8; /* GNU "ZLIB" + 8 byte size. */ in elf_compress_gnu() 154 size_t hsize = 4 + 8; /* GNU "ZLIB" + 8 byte size. */ in elf_compress_gnu() 162 an 8-byte big-endian size. There is only one type and in elf_compress_gnu() 168 /* One more sanity check, size should be bigger than original in elf_compress_gnu() 169 data size plus some overhead (4 chars ZLIB + 8 bytes size + 6 in elf_compress_gnu() 178 size_t size = gsize; in elf_compress_gnu() local 181 void *buf_out = __libelf_decompress (buf_in, size_in, size); in elf_compress_gnu() 191 shdr->sh_size = size; in elf_compress_gnu() 196 shdr->sh_size = size; in elf_compress_gnu() [all...] |
/third_party/eudev/src/shared/ |
H A D | fileio.c | 86 int read_full_stream(FILE *f, char **contents, size_t *size) { in read_full_stream() argument 105 /* Start with the right file size, but be prepared for in read_full_stream() 106 * files from /proc which generally report a file size in read_full_stream() 143 if (size) in read_full_stream() 144 *size = l; in read_full_stream() 149 int read_full_file(const char *fn, char **contents, size_t *size) { in read_full_file() argument 159 return read_full_stream(f, contents, size); in read_full_file()
|
/third_party/ffmpeg/libavformat/ |
H A D | mspdec.c | 93 unsigned int size, i; in msp_read_packet() local 94 if (pkt->size != 2 * st->codecpar->height) in msp_read_packet() 96 size = 0; in msp_read_packet() 98 size += AV_RL16(&pkt->data[i * 2]); in msp_read_packet() 99 ret = av_append_packet(s->pb, pkt, size); in msp_read_packet()
|
H A D | lrcenc.c | 89 const uint8_t *end = pkt->data + pkt->size; in lrc_write_packet() 100 size_t size = end - line; in lrc_write_packet() local 103 size = next_line - line; in lrc_write_packet() 105 size--; in lrc_write_packet() 121 avio_write(s->pb, line, size); in lrc_write_packet()
|
/third_party/astc-encoder/Test/ |
H A D | astc_image_info.py | 63 if (x >= img.size[0]) or (y >= img.size[1]): 64 print("- ERROR: location out-of-bounds [%ux%u]" % img.size) 91 - the overall image size. 110 print("+ Size: %ux%u" % (img.size[0], img.size[1])) 175 # Create the parser for the "size" command
|
/third_party/alsa-utils/alsactl/ |
H A D | init_sysfs.c | 81 ssize_t size; in sysfs_attr_get_value() local 147 size = read(fd, value, sizeof(value)); in sysfs_attr_get_value() 149 if (size < 0) in sysfs_attr_get_value() 151 if (size == sizeof(value)) in sysfs_attr_get_value() 155 value[size] = '\0'; in sysfs_attr_get_value()
|
/third_party/backends/backend/genesys/ |
H A D | test_scanner_interface.h | 51 void bulk_read_data(std::uint8_t addr, std::uint8_t* data, std::size_t size) override; 52 void bulk_write_data(std::uint8_t addr, std::uint8_t* data, std::size_t size) override; 55 std::size_t size) override; 57 std::size_t size) override; 58 void write_ahb(std::uint32_t addr, std::uint32_t size, std::uint8_t* data) override;
|
/third_party/icu/icu4c/source/common/unicode/ |
H A D | stringpiece.h | 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 107 length_(static_cast<int32_t>(str.size())) { } in StringPiece() 118 * size_t size(); 139 std::is_same<decltype(T().size()), size_t>::value>::type> 142 length_(static_cast<int32_t>(str.size())) {} in StringPiece() 195 int32_t size() const { return length_; } in size() function in StringPiece 197 * Returns the string length. Same as size().
|
/third_party/libuv/src/win/ |
H A D | getnameinfo.c | 45 size_t size; in uv__getnameinfo_work() local 61 size = sizeof(req->host); in uv__getnameinfo_work() 62 ret = uv__copy_utf16_to_utf8(host, -1, req->host, &size); in uv__getnameinfo_work() 68 size = sizeof(req->service); in uv__getnameinfo_work() 69 ret = uv__copy_utf16_to_utf8(service, -1, req->service, &size); in uv__getnameinfo_work()
|
/third_party/libuv/src/unix/ |
H A D | qnx.c | 58 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 60 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 64 strlcpy(buffer, path, *size); in uv_exepath() 65 *size = strlen(buffer); in uv_exepath()
|
/third_party/libdrm/intel/ |
H A D | intel_bufmgr_priv.h | 51 unsigned long size, unsigned int alignment); 61 unsigned long size, 66 * address malloc'd with the provided size. 73 unsigned long size, 129 unsigned long size, const void *data); 138 unsigned long size, void *data);
|
/third_party/lzma/CPP/7zip/UI/FileManager/ |
H A D | OverwriteDialog.cpp | 37 unsigned size = _isBig ? kCurrentFileNameSizeLimit : kCurrentFileNameSizeLimit2;
in ReduceString() local 38 if (s.Len() > size)
in ReduceString() 40 s.Delete(size / 2, s.Len() - size);
in ReduceString() 41 s.Insert(size / 2, L" ... ");
in ReduceString()
|
/third_party/jerryscript/jerry-core/ext/ |
H A D | tracker.c | 59 void StorageInit(Storage* storage, size_t size) in StorageInit() argument 61 storage->size = size; in StorageInit() 62 storage->data = JerryExtAllocStorageData(size); in StorageInit() 166 for (int i = 0; i < (int)storage->size; ++i) { in DumpTracker()
|
/third_party/ltp/include/ |
H A D | tst_fs.h | 58 * the required free space is calculated by @size * @mult 60 int tst_fs_has_free_(void (*cleanup)(void), const char *path, unsigned int size, 147 * @bs: block size 156 * @bs: block size 165 * @bs: block size 171 * Creates file of specified size. Space will be only preallocated if possible. 173 * @bs: block size 222 static inline int tst_fs_has_free(const char *path, unsigned int size, in tst_fs_has_free() argument 225 return tst_fs_has_free_(NULL, path, size, mult); in tst_fs_has_free() 249 unsigned int size, unsigne in tst_fs_has_free() 248 tst_fs_has_free(void (*cleanup)(void), const char *path, unsigned int size, unsigned int mult) tst_fs_has_free() argument [all...] |
/third_party/ltp/testcases/commands/mkfs/ |
H A D | mkfs01.sh | 66 # 1k-block size should be devided by this argument for ntfs verification. 87 local size=$5 100 local mkfs_cmd="mkfs $mkfs_op $fs_op $device $size" 108 if [ -n "$size" ]; then 137 if [ -n "$size" ]; then 138 mkfs_verify_size "$fs_type" "$size" 140 tst_res TFAIL "'$mkfs_cmd' failed, unexpected size."
|
/third_party/ltp/testcases/kernel/firmware/fw_load_kernel/ |
H A D | ltp_fw_load.c | 47 MODULE_PARM_DESC(fw_size, "Firmware file size"); 66 static int fw_read(const u8 *data, size_t size) in fw_read() argument 69 pr_info(TCID ": Firmware has size '%zu'\n", size); in fw_read() 70 if (size != fw_size) { in fw_read() 71 pr_err(TCID ": Expected firmware size '%d'\n", fw_size); in fw_read() 74 for (i = 0; i < size; ++i) { in fw_read() 90 err = fw_read(fw_entry->data, fw_entry->size); in try_request_fw()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | libftest.c | 69 void ft_dumpbits(void *bits, size_t size) in ft_dumpbits() argument 75 for (buf = bits; size > 0; --size, ++buf) { in ft_dumpbits() 88 * Do logical or of hold and bits (of size) 91 void ft_orbits(char *hold, char *bits, int size) in ft_orbits() argument 93 while (size-- > 0) in ft_orbits()
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
H A D | zram01.sh | 29 # NOTE about size: 39 local fs limit size stream=-1 43 size="26214400" 50 size="402653184" 52 size=314572800 54 limit="$((size/1024/1024))M" 61 zram_sizes="$zram_sizes $size"
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | radeon_video.c | 55 bool si_vid_create_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer, unsigned size, in si_vid_create_buffer() argument 65 buffer->res = si_resource(pipe_buffer_create(screen, PIPE_BIND_SHARED, usage, size)); in si_vid_create_buffer() 71 bool si_vid_create_tmz_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer, unsigned size, in si_vid_create_tmz_buffer() argument 77 usage, size)); in si_vid_create_tmz_buffer() 94 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in si_vid_resize_buffer()
|
/third_party/musl/libc-test/src/regression/ |
H A D | malloc-multi-thread-performance.c | 41 for (size_t size = 0; size < THRESHOLD; size += SIZE_ALIGN + 1) { in func() 46 ptr[num] = malloc(size); in func() 48 t_error("Thread %d malloc failed for size %u\n", *val, size); in func()
|
/third_party/node/deps/icu-small/source/common/unicode/ |
H A D | stringpiece.h | 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 107 length_(static_cast<int32_t>(str.size())) { } in StringPiece() 118 * size_t size(); 139 std::is_same<decltype(T().size()), size_t>::value>::type> 142 length_(static_cast<int32_t>(str.size())) {} in StringPiece() 195 int32_t size() const { return length_; } in size() function in StringPiece 197 * Returns the string length. Same as size().
|
/third_party/ninja/src/ |
H A D | string_piece_util_test.cc | 26 EXPECT_EQ(list.size(), 3); in TEST() 37 EXPECT_EQ(list.size(), 1); in TEST() 46 EXPECT_EQ(list.size(), 1); in TEST() 55 EXPECT_EQ(list.size(), 2); in TEST() 65 EXPECT_EQ(list.size(), 5); in TEST()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_msaa.c | 53 unsigned grid_width, grid_height, size, pixel, sample_index; in update_sample_locations() local 62 size = grid_width * grid_height * samples; in update_sample_locations() 97 memcmp(locations, st->state.sample_locations, size) != 0) { in update_sample_locations() 98 st->pipe->set_sample_locations( st->pipe, size, locations); in update_sample_locations() 101 memcpy(st->state.sample_locations, locations, size); in update_sample_locations()
|
/third_party/mesa3d/src/mesa/vbo/ |
H A D | vbo_private.h | 129 GLubyte size, GLenum16 type) in vbo_set_vertex_format() 131 _mesa_set_vertex_format(vertex_format, size, type, GL_RGBA, GL_FALSE, in vbo_set_vertex_format() 169 * a vertex buffer, given the current vertex size, and the amount 249 GLubyte size, GLenum16 type, GLuint offset) in _vbo_set_attrib_format() 255 size /= 2; in _vbo_set_attrib_format() 256 _mesa_update_array_format(ctx, vao, attr, size, type, GL_RGBA, in _vbo_set_attrib_format() 128 vbo_set_vertex_format(struct gl_vertex_format* vertex_format, GLubyte size, GLenum16 type) vbo_set_vertex_format() argument 246 _vbo_set_attrib_format(struct gl_context *ctx, struct gl_vertex_array_object *vao, gl_vert_attrib attr, GLintptr buffer_offset, GLubyte size, GLenum16 type, GLuint offset) _vbo_set_attrib_format() argument
|