/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/ |
H A D | sinkproxydscreennotify_fuzzer.cpp | 29 void DScreenNotifyFuzzTest(const uint8_t* data, size_t size) in DScreenNotifyFuzzTest() argument 31 if ((data == nullptr) || (size < sizeof(int32_t))) { in DScreenNotifyFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 60 OHOS::DistributedHardware::DScreenNotifyFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/bluetooth_service/test/fuzztest/host/setlocalname_fuzzer/ |
H A D | setlocalname_fuzzer.cpp | 25 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 28 if ((data == nullptr) || (size < sizeof(int32_t))) { in DoSomethingInterestingWithMyAPI() 32 int len = (size > FUZZ_MAX_NAME_LEN) ? FUZZ_MAX_NAME_LEN : size; in DoSomethingInterestingWithMyAPI() 50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/third_party/ffmpeg/libavcodec/ |
H A D | vc1_common.h | 70 static av_always_inline int vc1_unescape_buffer(const uint8_t *src, int size, uint8_t *dst) in vc1_unescape_buffer() argument 74 if (size < 4) { in vc1_unescape_buffer() 75 for (dsize = 0; dsize < size; dsize++) in vc1_unescape_buffer() 77 return size; in vc1_unescape_buffer() 79 for (i = 0; i < size; i++, src++) { in vc1_unescape_buffer() 80 if (src[0] == 3 && i >= 2 && !src[-1] && !src[-2] && i < size-1 && src[1] < 4) { in vc1_unescape_buffer()
|
H A D | dpxenc.c | 179 int size, ret, need_align, len; in encode_frame() local 184 size = avctx->height * avctx->width * 4; in encode_frame() 188 size = FFALIGN(len, 4); in encode_frame() 189 need_align = size - len; in encode_frame() 190 size *= avctx->height; in encode_frame() 194 size = FFALIGN(len, 4); in encode_frame() 195 need_align = size - len; in encode_frame() 196 size *= avctx->height; in encode_frame() 198 if ((ret = ff_get_encode_buffer(avctx, pkt, size + HEADER_SIZE, 0)) < 0) in encode_frame() 238 size in encode_frame() [all...] |
H A D | msmpeg4.c | 59 int size, v, l; in init_h263_dc_for_msmpeg4() local 61 size = 0; in init_h263_dc_for_msmpeg4() 65 size++; in init_h263_dc_for_msmpeg4() 69 l = (-level) ^ ((1 << size) - 1); in init_h263_dc_for_msmpeg4() 74 uni_code = ff_mpeg4_DCtab_lum[size][0]; in init_h263_dc_for_msmpeg4() 75 uni_len = ff_mpeg4_DCtab_lum[size][1]; in init_h263_dc_for_msmpeg4() 78 if (size > 0) { in init_h263_dc_for_msmpeg4() 79 uni_code <<= size; uni_code |= l; in init_h263_dc_for_msmpeg4() local 80 uni_len += size; in init_h263_dc_for_msmpeg4() 81 if (size > in init_h263_dc_for_msmpeg4() 95 uni_code <<= size; uni_code |= l; init_h263_dc_for_msmpeg4() local [all...] |
/third_party/libunwind/libunwind/src/mi/ |
H A D | backtrace.c | 36 slow_backtrace (void **buffer, int size, unw_context_t *uc) in slow_backtrace() argument 47 if (n >= size) in slow_backtrace() 58 unw_backtrace (void **buffer, int size) in unw_backtrace() argument 62 int n = size; in unw_backtrace() 72 return slow_backtrace (buffer, size, &uc); in unw_backtrace() 79 extern int backtrace (void **buffer, int size)
|
/third_party/lzma/CS/7zip/Common/ |
H A D | CRC.cs | 34 public void Update(byte[] data, uint offset, uint size)
in Update() argument 36 for (uint i = 0; i < size; i++)
in Update() 42 static uint CalculateDigest(byte[] data, uint offset, uint size)
in CalculateDigest() argument 46 crc.Update(data, offset, size);
in CalculateDigest() 50 static bool VerifyDigest(uint digest, byte[] data, uint offset, uint size)
in VerifyDigest() argument 52 return (CalculateDigest(data, offset, size) == digest);
in VerifyDigest()
|
/third_party/node/deps/v8/tools/ |
H A D | shell-utils.h | 43 const byte* ReadFileAndRepeat(const char* name, int* size, int repeat) { in ReadFileAndRepeat() argument 45 *size = 0; in ReadFileAndRepeat() 52 *size = file_size * repeat; in ReadFileAndRepeat() 54 byte* chars = new byte[*size + 1]; in ReadFileAndRepeat() 61 for (int i = file_size; i < *size; i++) { in ReadFileAndRepeat() 64 chars[*size] = 0; in ReadFileAndRepeat()
|
/third_party/musl/porting/liteos_m/user/src/thread/ |
H A D | pthread_attr_get.c | 10 _LIBC_TEXT_SECTION int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getguardsize() argument 39 _LIBC_TEXT_SECTION int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) in pthread_attr_getstack() argument 43 *size = a->_a_stacksize; in pthread_attr_getstack() 44 *addr = (void *)(a->_a_stackaddr - *size); in pthread_attr_getstack() 48 _LIBC_TEXT_SECTION int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getstacksize() argument 50 *size = a->_a_stacksize; in pthread_attr_getstacksize()
|
/third_party/musl/src/passwd/ |
H A D | getgrent.c | 18 size_t size=0, nmem=0; in getgrent() local 21 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in getgrent() 28 size_t size=0, nmem=0; in getgrgid() local 29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); in getgrgid() 36 size_t size=0, nmem=0; in getgrnam() local 37 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res); in getgrnam()
|
/third_party/nghttp2/tests/ |
H A D | malloc_wrapper.c | 42 static void *my_malloc(size_t size, void *mud) { in my_malloc() argument 46 return malloc(size); in my_malloc() 55 static void *my_calloc(size_t nmemb, size_t size, void *mud) { in my_calloc() argument 59 return calloc(nmemb, size); in my_calloc() 62 static void *my_realloc(void *ptr, size_t size, void *mud) { in my_realloc() argument 66 return realloc(ptr, size); in my_realloc()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
H A D | lima_util.h | 40 void lima_dump_shader(struct lima_dump *dump, void *data, int size, bool is_frag); 42 int size, uint32_t start); 44 int size, uint32_t start); 46 int size, uint32_t start); 48 int size, uint32_t start, uint32_t offset); 51 int size, bool is_float, const char *fmt, ...);
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_linear.h | 41 /** Block size in bytes */ 42 unsigned size; member 54 unsigned size; member 61 /* size of each tile expressed in blocks */ 94 if (t->tile.size != t->block.size * t->cols * t->rows) in pipe_linear_check_tile() 97 if (t->stride != t->block.size * t->cols * t->tiles_x) in pipe_linear_check_tile() 100 if (t->size < t->stride * t->rows * t->tiles_y) in pipe_linear_check_tile()
|
/third_party/skia/src/gpu/ |
H A D | GrRingBuffer.h | 25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument 27 , fTotalSize(size) in GrRingBuffer() 35 // Because of this, size needs to be a power of two. in GrRingBuffer() 36 SkASSERT(SkIsPow2(size)); in GrRingBuffer() 43 Slice suballocate(size_t size); 48 size_t size() const { return fTotalSize; } in size() function in GrRingBuffer 51 size_t getAllocationOffset(size_t size);
|
/third_party/selinux/libsepol/src/ |
H A D | symtab.c | 21 size_t size; in symhash() local 26 size = strlen(keyp); in symhash() 27 for (p = keyp; ((size_t) (p - keyp)) < size; p++) in symhash() 30 return val & (h->size - 1); in symhash() 40 int symtab_init(symtab_t * s, unsigned int size) in symtab_init() argument 42 s->table = hashtab_create(symhash, symcmp, size); in symtab_init()
|
/foundation/ability/ability_runtime/tools/test/moduletest/aa/ |
H A D | aa_command_dumpsys_module_test.cpp | 76 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 100 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 124 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 148 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 173 EXPECT_GE(lines.size(), SIZE_ONE); in HWTEST_F() 198 EXPECT_GE(lines.size(), SIZE_ONE); in HWTEST_F() 222 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 246 EXPECT_GT(lines.size(), SIZE_ONE); in HWTEST_F() 270 EXPECT_GE(lines.size(), SIZE_ONE); in HWTEST_F() 294 EXPECT_GE(lines.size(), SIZE_ON in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | rosen_render_box.h | 65 void SetBackgroundSize(const BackgroundImageSize& size) override; 175 float DimensionToPx(const Dimension& value, const Size& size, LengthMode type) const; 176 void GetSizeAndPosition(GeometryBoxType geometryBoxType, Size& size, Offset& position); 177 float GetFloatRadiusValue(const Dimension& src, const Dimension& dest, const Size& size, LengthMode type); 181 bool CreateInset(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath); 182 bool CreateCircle(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath); 183 bool CreateEllipse(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath); 184 bool CreatePolygon(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath); 185 bool CreatePath(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath); 186 bool CreateRect(const RefPtr<BasicShape>& basicShape, const Size& size, cons [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/textblob_fuzzer/ |
H A D | text_blob_fuzzer.cpp | 32 bool TextBlobFuzzTest001(const uint8_t* data, size_t size) in TextBlobFuzzTest001() argument 39 g_size = size; in TextBlobFuzzTest001() 56 bool TextBlobFuzzTest002(const uint8_t* data, size_t size) in TextBlobFuzzTest002() argument 63 g_size = size; in TextBlobFuzzTest002() 97 bool TextBlobFuzzTest003(const uint8_t* data, size_t size) in TextBlobFuzzTest003() argument 104 g_size = size; in TextBlobFuzzTest003() 125 bool TextBlobFuzzTest004(const uint8_t* data, size_t size) in TextBlobFuzzTest004() argument 132 g_size = size; in TextBlobFuzzTest004() 155 bool TextBlobFuzzTest005(const uint8_t* data, size_t size) in TextBlobFuzzTest005() argument 162 g_size = size; in TextBlobFuzzTest005() 214 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/imagefilter_fuzzer/ |
H A D | image_filter_fuzzer.cpp | 33 bool ImageFilterFuzzTest001(const uint8_t* data, size_t size) in ImageFilterFuzzTest001() argument 40 g_size = size; in ImageFilterFuzzTest001() 63 bool ImageFilterFuzzTest002(const uint8_t* data, size_t size) in ImageFilterFuzzTest002() argument 70 g_size = size; in ImageFilterFuzzTest002() 93 bool ImageFilterFuzzTest003(const uint8_t* data, size_t size) in ImageFilterFuzzTest003() argument 100 g_size = size; in ImageFilterFuzzTest003() 143 bool ImageFilterFuzzTest004(const uint8_t* data, size_t size) in ImageFilterFuzzTest004() argument 150 g_size = size; in ImageFilterFuzzTest004() 186 bool ImageFilterFuzzTest005(const uint8_t* data, size_t size) in ImageFilterFuzzTest005() argument 193 g_size = size; in ImageFilterFuzzTest005() 215 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/window/window_manager/test/fuzztest/wms/windowipc_fuzzer/ |
H A D | windowipc_fuzzer.cpp | 31 size_t GetObject(T& object, const uint8_t* data, size_t size) in GetObject() argument 34 if (objectSize > size) { in GetObject() 61 bool IPCFuzzTest(const uint8_t* data, size_t size) in IPCFuzzTest() argument 65 if (data == nullptr || size < sizeof(code) + sizeof(flags) + sizeof(waitTime)) { in IPCFuzzTest() 73 startPos += GetObject<uint32_t>(code, data + startPos, size - startPos); in IPCFuzzTest() 74 startPos += GetObject<int>(flags, data + startPos, size - startPos); in IPCFuzzTest() 75 startPos += GetObject<int>(waitTime, data + startPos, size - startPos); in IPCFuzzTest() 79 sendData.WriteBuffer(data + startPos, size - startPos); in IPCFuzzTest() 152 bool IPCInterfaceFuzzTest(const uint8_t* data, size_t size) in IPCInterfaceFuzzTest() argument 155 if (data == nullptr || size < sizeo in IPCInterfaceFuzzTest() 177 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/ |
H A D | trans_tdc_sdk_test.c | 217 static int32_t DataSend(int32_t size, int32_t type) in DataSend() argument 220 g_contcx = (char *)calloc(1, size * sizeof(char)); in DataSend() 224 if (memset_s(g_contcx, size, "h", size) != EOK) { in DataSend() 232 ret = SendBytes(g_sessionId, g_contcx, size); in DataSend() 236 ret = SendMessage(g_sessionId, g_contcx, size); in DataSend() 281 * @tc.size : MediumTest 286 int32_t size = 1; in TransFuncTest001() local 290 ret = DataSend(size, TYPE_SEND_BYTE); in TransFuncTest001() 298 * @tc.desc : Test up limitation data size o 305 int32_t size = TRANS_SIZE_NUM * TRANS_UINIT_SIZE; TransFuncTest002() local 324 int32_t size = TRANS_SIZE_NUM_DOUBLE * TRANS_UINIT_SIZE; TransFuncTest003() local 343 int32_t size = 1; TransFuncTest004() local 362 int32_t size = TRANS_UINIT_SIZE; TransFuncTest005() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | cache.c | 51 int size; member 99 static int add_entry(URLContext *h, const unsigned char *buf, int size) in add_entry() argument 117 ret = write(c->fd, buf, size); in add_entry() 131 entry->logical_pos + entry->size != c->logical_pos || in add_entry() 132 entry->physical_pos + entry->size != pos in add_entry() 142 entry->size = ret; in add_entry() 151 entry->size += ret; in add_entry() 162 static int cache_read(URLContext *h, unsigned char *buf, int size) in cache_read() argument 176 if (in_block_pos < entry->size) { in cache_read() 186 r = read(c->fd, buf, FFMIN(size, entr in cache_read() 268 int size = sizeof(tmp); cache_seek() local [all...] |
/third_party/fsverity-utils/programs/ |
H A D | test_compute_digest.c | 20 size_t size; member 28 ASSERT(count <= f->size - f->offset); in read_fn() 113 }, { /* 1K block size */ 121 }, { /* 512-byte block size */ 129 }, { /* 64K block size */ 150 }, { /* default hash algorithm (SHA-256) and block size (4096) */ 192 struct mem_file f = { .data = (u8 *)"abcd", .size = 4 }; in test_invalid_params() 266 static int handle_merkle_tree_size(void *ctx, u64 size) in handle_merkle_tree_size() argument 273 /* Test that the expected Merkle tree size is reported. */ in handle_merkle_tree_size() 274 ASSERT(size in handle_merkle_tree_size() 278 handle_merkle_tree_block(void *ctx, const void *block, size_t size, u64 offset) handle_merkle_tree_block() argument 329 handle_descriptor(void *ctx, const void *descriptor, size_t size) handle_descriptor() argument [all...] |
/third_party/libdrm/intel/ |
H A D | intel_bufmgr.c | 50 unsigned long size, unsigned int alignment) in drm_intel_bo_alloc() 52 return bufmgr->bo_alloc(bufmgr, name, size, alignment); in drm_intel_bo_alloc() 57 unsigned long size, unsigned int alignment) in drm_intel_bo_alloc_for_render() 59 return bufmgr->bo_alloc_for_render(bufmgr, name, size, alignment); in drm_intel_bo_alloc_for_render() 67 unsigned long size, in drm_intel_bo_alloc_userptr() 72 stride, size, flags); in drm_intel_bo_alloc_userptr() 114 unsigned long size, const void *data) in drm_intel_bo_subdata() 116 return bo->bufmgr->bo_subdata(bo, offset, size, data); in drm_intel_bo_subdata() 121 unsigned long size, void *data) in drm_intel_bo_get_subdata() 125 return bo->bufmgr->bo_get_subdata(bo, offset, size, dat in drm_intel_bo_get_subdata() 49 drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, unsigned long size, unsigned int alignment) drm_intel_bo_alloc() argument 56 drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name, unsigned long size, unsigned int alignment) drm_intel_bo_alloc_for_render() argument 63 drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, const char *name, void *addr, uint32_t tiling_mode, uint32_t stride, unsigned long size, unsigned long flags) drm_intel_bo_alloc_userptr() argument 113 drm_intel_bo_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, const void *data) drm_intel_bo_subdata() argument 120 drm_intel_bo_get_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, void *data) drm_intel_bo_get_subdata() argument 133 memcpy(data, (unsigned char *)bo->virtual + offset, size); drm_intel_bo_get_subdata() local 332 size_t size = 0; drm_intel_probe_agp_aperture_size() local [all...] |
/third_party/node/test/parallel/ |
H A D | test-blob.js | 12 assert.strictEqual(b.size, 0); 31 assert.strictEqual(b.size, 0); 41 assert.strictEqual(c.size, 0); 52 assert.strictEqual(b.size, 3); 60 assert.strictEqual(b.size, 3); 68 assert.strictEqual(b.size, 3); 76 assert.strictEqual(b.size, 3); 84 assert.strictEqual(b.size, 10); 92 assert.strictEqual(b.size, 8); 108 assert.strictEqual(b.size, 1 [all...] |