/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkshadereffect_fuzzer/ |
H A D | shadereffect_fuzzer.cpp | 42 void NativeShaderEffectTest001(const uint8_t* data, size_t size) in NativeShaderEffectTest001() argument 44 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeShaderEffectTest001() 49 g_size = size; in NativeShaderEffectTest001() 88 void NativeShaderEffectTest002(const uint8_t* data, size_t size) in NativeShaderEffectTest002() argument 90 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeShaderEffectTest002() 95 g_size = size; in NativeShaderEffectTest002() 129 void NativeShaderEffectTest003(const uint8_t* data, size_t size) in NativeShaderEffectTest003() argument 131 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeShaderEffectTest003() 136 g_size = size; in NativeShaderEffectTest003() 180 void NativeShaderEffectTest004(const uint8_t* data, size_t size) in NativeShaderEffectTest004() argument 239 NativeShaderEffectTest005(const uint8_t* data, size_t size) NativeShaderEffectTest005() argument 289 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_ashmem_helper.cpp | 34 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocator(size_t size, int mapType) in CreateAshmemAllocator() argument 41 int fd = AshmemCreate(name.c_str(), size); in CreateAshmemAllocator() 46 auto allocator = std::make_unique<AshmemAllocator>(fd, size); in CreateAshmemAllocator() 62 std::unique_ptr<AshmemAllocator> AshmemAllocator::CreateAshmemAllocatorWithFd(int fd, size_t size, int mapType) in CreateAshmemAllocatorWithFd() argument 68 auto allocator = std::make_unique<AshmemAllocator>(fd, size); in CreateAshmemAllocatorWithFd() 71 if (ashmemSize < 0 || size_t(ashmemSize) < size) { in CreateAshmemAllocatorWithFd() 72 ROSEN_LOGE("CreateAshmemAllocatorWithFd: ashmemSize < size"); in CreateAshmemAllocatorWithFd() 84 AshmemAllocator::AshmemAllocator(int fd, size_t size) : fd_(fd), size_(size) {} in AshmemAllocator() argument 102 bool AshmemAllocator::WriteToAshmem(const void *data, size_t size) in WriteToAshmem() argument 115 CopyFromAshmem(size_t size) CopyFromAshmem() argument 170 Alloc(size_t size) Alloc() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/maskcmdlist_fuzzer/ |
H A D | maskcmdlist_fuzzer.cpp | 32 bool MaskCmdListFuzzTest001(const uint8_t* data, size_t size) in MaskCmdListFuzzTest001() argument 40 g_size = size; in MaskCmdListFuzzTest001() 71 bool MaskCmdListFuzzTest002(const uint8_t* data, size_t size) in MaskCmdListFuzzTest002() argument 79 g_size = size; in MaskCmdListFuzzTest002() 112 bool MaskCmdListFuzzTest003(const uint8_t* data, size_t size) in MaskCmdListFuzzTest003() argument 120 g_size = size; in MaskCmdListFuzzTest003() 153 bool MaskCmdListFuzzTest004(const uint8_t* data, size_t size) in MaskCmdListFuzzTest004() argument 161 g_size = size; in MaskCmdListFuzzTest004() 169 brushHandle.colorFilterHandle.size = GetObject<size_t>(); in MaskCmdListFuzzTest004() 170 brushHandle.colorSpaceHandle.size in MaskCmdListFuzzTest004() 205 MaskCmdListFuzzTest005(const uint8_t* data, size_t size) MaskCmdListFuzzTest005() argument 254 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dca_parser.c | 36 int size; member 71 int start_found, size, i; in dca_find_frame_end() local 77 size = pc1->size; in dca_find_frame_end() 82 size++; in dca_find_frame_end() 90 pc1->startpos = IS_EXSS_MARKER(state) ? size - 4 : size - 6; in dca_find_frame_end() 98 size = 0; in dca_find_frame_end() 108 size++; in dca_find_frame_end() 114 if (size in dca_find_frame_end() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | concat.c | 38 int64_t size; ///< url filesize member 68 int64_t size, total_size = 0; in concat_open() local 107 /* creating size */ in concat_open() 108 if ((size = ffurl_size(uc)) < 0) { in concat_open() 116 nodes[i].size = size; in concat_open() 117 total_size += size; in concat_open() 134 static int concat_read(URLContext *h, unsigned char *buf, int size) in concat_read() argument 141 while (size > 0) { in concat_read() 142 result = ffurl_read(nodes[i].uc, buf, size); in concat_read() 248 int64_t size; concatf_open() local [all...] |
/third_party/alsa-lib/include/sound/uapi/ |
H A D | asoc.h | 98 /* Max size of TLV data */ 200 __le32 size; /* size of this structure */ member 226 __le32 size; /* size in bytes of the array, including all elements */ member 242 __le32 size; /* in bytes of private data */ member 259 __le32 size; /* in bytes of this structure */ member 271 __le32 size; /* in bytes of this structure */ member 292 __le32 size; /* in bytes of this structure */ member 304 __le32 size; /* i member 325 __le32 size; /* in bytes of this structure */ global() member 340 __le32 size; /* in bytes of this structure */ global() member 376 __le32 size; /* in bytes of this structure */ global() member 399 __le32 size; /* in bytes of this structure */ global() member 421 __le32 size; /* in bytes of this structure */ global() member 444 __le32 size; /* in bytes of this structure */ global() member 486 __le32 size; /* in bytes of this structure */ global() member 519 __le32 size; /* in bytes of this structure */ global() member 547 __le32 size; /* in bytes of this structure */ global() member 573 __le32 size; /* in bytes of this structure */ global() member 590 __le32 size; /* in bytes of this structure */ global() member 601 __le32 size; /* in bytes of this structure */ global() member 619 __le32 size; /* in bytes of this structure */ global() member 634 __le32 size; /* in bytes of this structure */ global() member [all...] |
/third_party/nghttp2/src/ |
H A D | allocator.h | 51 // BlockAllocator allocates memory block with given size at once, and 53 // requested size is larger than given threshold (plus small internal 99 MemBlock *alloc_mem_block(size_t size) { in alloc_mem_block() argument 100 auto block = new uint8_t[sizeof(MemBlock) + size]; in alloc_mem_block() 105 mb->end = mb->begin + size; in alloc_mem_block() 110 void *alloc(size_t size) { in alloc() argument 111 if (size + sizeof(size_t) >= isolation_threshold) { in alloc() 112 auto len = std::max(static_cast<size_t>(16), size); in alloc() 113 // We will store the allocated size in size_t field. in alloc() 122 head->end - head->last < static_cast<ssize_t>(size in alloc() 151 realloc(void *ptr, size_t size) realloc() argument 266 make_byte_ref(BlockAllocator &alloc, size_t size) make_byte_ref() argument [all...] |
/third_party/node/deps/v8/src/heap/ |
H A D | objects-visiting-inl.h | 110 int size = TypeName::BodyDescriptor::SizeOf(map, object); \ 114 TypeName::BodyDescriptor::IterateBody(map, object, size, visitor); \ 115 return static_cast<ResultType>(size); \ 132 int size = map.instance_size(); in VisitDataObject() local 140 ExternalOneByteString::BodyDescriptor::IterateBody(map, object, size, in VisitDataObject() 143 ExternalTwoByteString::BodyDescriptor::IterateBody(map, object, size, in VisitDataObject() 146 Foreign::BodyDescriptor::IterateBody(map, object, size, visitor); in VisitDataObject() 149 return static_cast<ResultType>(size); in VisitDataObject() 157 int size = JSObject::FastBodyDescriptor::SizeOf(map, object); in VisitJSObjectFast() local 161 JSObject::FastBodyDescriptor::IterateBody(map, object, size, visito in VisitJSObjectFast() 170 int size = JSObject::BodyDescriptor::SizeOf(map, object); VisitJSApiObject() local 183 int size = map.instance_size(); VisitStruct() local 210 int size = NativeContext::BodyDescriptor::SizeOf(map, object); VisitNativeContext() local [all...] |
/third_party/openssl/test/ |
H A D | params_conversion_test.c | 32 size_t size; member 140 pc->size = sizeof(ref_i32); in param_conversion_load_stanza() 149 pc->size = sizeof(ref_i64); in param_conversion_load_stanza() 158 pc->size = sizeof(ref_u32); in param_conversion_load_stanza() 167 pc->size = sizeof(ref_u64); in param_conversion_load_stanza() 176 pc->size = sizeof(ref_d); in param_conversion_load_stanza() 203 memset(pc->datum, 44, pc->size); in param_conversion_test() 205 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 223 memset(pc->datum, 44, pc->size); in param_conversion_test() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/ |
H A D | capture_gles_1_0_params.cpp | 37 GLint size, in CaptureColorPointer_pointer() 120 unsigned int size = GetMaterialParameterCount(pnamePacked); in CaptureGetMaterialfv_params() local 121 CaptureMemory(params, sizeof(GLfloat) * size, paramCapture); in CaptureGetMaterialfv_params() 172 unsigned int size = GetTexParameterCount(pname); in CaptureGetTexParameterxv_params() local 173 CaptureMemory(params, sizeof(GLfloat) * size, paramCapture); in CaptureGetTexParameterxv_params() 182 unsigned int size = GetLightModelParameterCount(pname); in CaptureLightModelfv_params() local 183 CaptureMemory(params, sizeof(GLfloat) * size, paramCapture); in CaptureLightModelfv_params() 192 unsigned int size = GetLightModelParameterCount(pname); in CaptureLightModelxv_param() local 193 CaptureMemory(param, sizeof(GLfixed) * size, paramCapture); in CaptureLightModelxv_param() 203 unsigned int size in CaptureLightfv_params() local 35 CaptureColorPointer_pointer(const State &glState, bool isCallValid, GLint size, VertexAttribType typePacked, GLsizei stride, const void *pointer, ParamCapture *paramCapture) CaptureColorPointer_pointer() argument 214 unsigned int size = GetLightParameterCount(pnamePacked); CaptureLightxv_params() local 241 unsigned int size = GetMaterialParameterCount(pnamePacked); CaptureMaterialfv_params() local 252 unsigned int size = GetMaterialParameterCount(pnamePacked); CaptureMaterialxv_param() local 300 CaptureTexCoordPointer_pointer(const State &glState, bool isCallValid, GLint size, VertexAttribType typePacked, GLsizei stride, const void *pointer, ParamCapture *paramCapture) CaptureTexCoordPointer_pointer() argument 349 unsigned int size = GetTexParameterCount(pname); CaptureTexParameterxv_params() local 353 CaptureVertexPointer_pointer(const State &glState, bool isCallValid, GLint size, VertexAttribType typePacked, GLsizei stride, const void *pointer, ParamCapture *paramCapture) CaptureVertexPointer_pointer() argument [all...] |
/third_party/skia/src/gpu/gl/ |
H A D | GrGLBuffer.cpp | 37 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() argument 45 sk_sp<GrGLBuffer> buffer(new GrGLBuffer(gpu, size, intendedType, accessPattern, data)); in Make() 106 GrGLBuffer::GrGLBuffer(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrGLBuffer() argument 108 : INHERITED(gpu, size, intendedType, accessPattern) in GrGLBuffer() 117 GrGLenum error = GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)size, data, fUsage)); in GrGLBuffer() 122 fGLSizeInBytes = size; in GrGLBuffer() 184 if (this->glCaps().useBufferDataNullHint() || fGLSizeInBytes != this->size()) { in onMap() 186 GL_ALLOC_CALL(BufferData(target, this->size(), nullptr, fUsage)); in onMap() 197 // Make sure the GL buffer size agrees with fDesc before mapping. in onMap() 198 if (fGLSizeInBytes != this->size()) { in onMap() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | rosen_render_box.cpp | 213 // set image size, x direction in UpdateBackgroundImage() 215 // set image size, y direction in UpdateBackgroundImage() 228 // in case margin changed, have to call these function even if size/pos not changed. in PerformLayout() 387 [size = GetLayoutSize(), margin = GetMargin()](std::shared_ptr<SkCanvas> canvas) { 390 DebugBoundaryPainter::PaintDebugBoundary(canvas.get(), overlayOffset, size); 391 DebugBoundaryPainter::PaintDebugCorner(canvas.get(), overlayOffset, size); 392 DebugBoundaryPainter::PaintDebugMargin(canvas.get(), overlayOffset, size, margin); 394 [size = GetLayoutSize(), margin = GetMargin()](std::shared_ptr<RSCanvas> canvas) { 397 DebugBoundaryPainter::PaintDebugBoundary(canvas.get(), overlayOffset, size); 398 DebugBoundaryPainter::PaintDebugCorner(canvas.get(), overlayOffset, size); 450 auto size = SkSize::Make(GetLayoutSize().Width(), GetLayoutSize().Height()); global() local 452 auto size = RSSize(GetLayoutSize().Width(), GetLayoutSize().Height()); global() local 865 Size size; global() local 910 Size size; global() local 955 CreateInset( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1005 CreateCircle( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1041 CreateEllipse( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1082 CreatePolygon( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1103 CreatePolygon( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, RSPath* drawingPath) global() argument 1126 CreatePath( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1164 CreateRect( const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, SkPath* skPath) global() argument 1220 GetFloatRadiusValue( const Dimension& src, const Dimension& dest, const Size& size, LengthMode type) global() argument 1229 GetSizeAndPosition(GeometryBoxType geometryBoxType, Size& size, Offset& position) global() argument 1256 DimensionToPx(const Dimension& value, const Size& size, LengthMode type) const global() argument 1278 DimensionToPx(const Dimension& value, const Size& size, LengthMode type) const global() argument 1369 SetBackgroundSize(const BackgroundImageSize& size) global() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_bufmgr.c | 86 #define VG_DEFINED(ptr, size) VG(VALGRIND_MAKE_MEM_DEFINED(ptr, size)) 87 #define VG_NOACCESS(ptr, size) VG(VALGRIND_MAKE_MEM_NOACCESS(ptr, size)) 154 uint64_t size; member 169 uint64_t size; member 310 * This function finds the correct bucket fit for the input size. 311 * The function works with O(1) complexity when the requested size 312 * was queried instead of iterating the size through all the buckets. 315 bucket_for_size(struct iris_bufmgr *bufmgr, uint64_t size, in bucket_for_size() argument 391 vma_alloc(struct iris_bufmgr *bufmgr, enum iris_memory_zone memzone, uint64_t size, uint64_t alignment) vma_alloc() argument 415 vma_free(struct iris_bufmgr *bufmgr, uint64_t address, uint64_t size) vma_free() argument 575 get_slabs(struct iris_bufmgr *bufmgr, uint64_t size) get_slabs() argument 589 get_slab_pot_entry_size(struct iris_bufmgr *bufmgr, unsigned size) get_slab_pot_entry_size() argument 599 get_slab_entry_alignment(struct iris_bufmgr *bufmgr, unsigned size) get_slab_entry_alignment() argument 777 alloc_bo_from_slabs(struct iris_bufmgr *bufmgr, const char *name, uint64_t size, uint32_t alignment, unsigned flags) alloc_bo_from_slabs() argument 1056 iris_bo_alloc(struct iris_bufmgr *bufmgr, const char *name, uint64_t size, uint32_t alignment, enum iris_memory_zone memzone, unsigned flags) iris_bo_alloc() argument 1171 iris_bo_create_userptr(struct iris_bufmgr *bufmgr, const char *name, void *ptr, size_t size, enum iris_memory_zone memzone) iris_bo_create_userptr() argument 2105 add_bucket(struct iris_bufmgr *bufmgr, int size, enum iris_heap heap) add_bucket() argument 2124 uint64_t size, cache_max_size = 64 * 1024 * 1024; init_cache_buckets() local 2275 intel_aux_map_buffer_alloc(void *driver_ctx, uint32_t size) intel_aux_map_buffer_alloc() argument [all...] |
/third_party/toybox/toys/pending/ |
H A D | xzcat.c | 108 * @dict_max: Maximum size of the LZMA2 dictionary (history buffer) for 117 * dict_max specifies the maximum allowed dictionary size that xz_dec_run() 118 * may allocate once it has parsed the dictionary size from the stream 176 uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) in xz_crc32() argument 180 while (size != 0) { in xz_crc32() 182 --size; in xz_crc32() 320 #define memeq(a, b, size) (memcmp(a, b, size) == 0) 366 * could save a few bytes in code size. 454 size_t size; member 499 bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_x86() argument 571 bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_powerpc() argument 592 bcj_ia64(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_ia64() argument 676 bcj_arm(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_arm() argument 699 bcj_armthumb(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_armthumb() argument 727 bcj_sparc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) bcj_sparc() argument 756 bcj_apply(struct xz_dec_bcj *s, uint8_t *buf, size_t *pos, size_t size) bcj_apply() argument 1237 uint32_t size; global() member 1429 uint32_t size; global() member 2404 uint32_t size; global() member 2435 vli_type size; global() member 2456 size_t size; global() member 2575 size_t size = b->out_pos - s->out_start; dec_block() local [all...] |
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | Message.php | 355 $size = CodedOutputStream::writeVarintToArray($tag, $bytes, true); variable 356 $this->unknown .= substr($bytes, 0, $size) . $input->substr($start, $end); 1365 $size = 0; variable 1367 $size += $this->fieldDataOnlyByteSize($field, $value); 1369 if (!$output->writeVarint32($size, true)) { 1599 $size = 0; variable 1605 $size += $count * GPBWire::tagSize($field); 1607 $size += $this->singularFieldDataOnlyByteSize($field); 1617 $size = 0; variable 1621 $size 1676 $size = 0; global() variable 1781 $size = 0; global() variable 1842 $size = 0; global() variable 1913 $size = 0; global() variable 1954 $size = 0; global() variable [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/ |
H A D | hisi_allocator.c | 65 unsigned long size, in find_fixed_region() 81 len = mmz_grain_align(size); in find_fixed_region() 155 hil_mmz_t *mmz, unsigned long size, unsigned long align) in find_fixed_region_from_highaddr() 185 if (len >= size) { in find_fixed_region_from_highaddr() 186 j = mmz_phy_addr2pos(mmz, mmz_align2low(start_highaddr - size, align)); in find_fixed_region_from_highaddr() 188 if ((start_highaddr - len <= start) && (start <= start_highaddr - size)) { in find_fixed_region_from_highaddr() 227 unsigned long size, in __mmb_alloc() 246 if ((size == 0) || (size > g_hi_max_malloc_size)) { in __mmb_alloc() 253 size in __mmb_alloc() 63 find_fixed_region(unsigned long *region_len, hil_mmz_t *mmz, unsigned long size, unsigned long align) find_fixed_region() argument 154 find_fixed_region_from_highaddr(unsigned long *region_len, hil_mmz_t *mmz, unsigned long size, unsigned long align) find_fixed_region_from_highaddr() argument 226 __mmb_alloc(const char *name, unsigned long size, unsigned long align, unsigned long gfp, const char *mmz_name, hil_mmz_t *_user_mmz) __mmb_alloc() argument 298 __mmb_alloc_v2(const char *name, unsigned long size, unsigned long align, unsigned long gfp, const char *mmz_name, hil_mmz_t *_user_mmz, unsigned int order) __mmb_alloc_v2() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_static_buf.c | 127 void *dhd_wlan_mem_prealloc(int section, unsigned long size) in dhd_wlan_mem_prealloc() argument 129 pr_err("%s: sectoin %d, %ld\n", __func__, section, size); in dhd_wlan_mem_prealloc() 151 if (size > DHD_PREALLOC_OSL_BUF_SIZE) { in dhd_wlan_mem_prealloc() 153 size, DHD_PREALLOC_OSL_BUF_SIZE); in dhd_wlan_mem_prealloc() 160 if (size > DHD_PREALLOC_DHD_INFO_SIZE) { in dhd_wlan_mem_prealloc() 161 pr_err("request DHD_INFO size(%lu) > %d\n", in dhd_wlan_mem_prealloc() 162 size, DHD_PREALLOC_DHD_INFO_SIZE); in dhd_wlan_mem_prealloc() 168 if (size > WLAN_DHD_WLFC_BUF_SIZE) { in dhd_wlan_mem_prealloc() 169 pr_err("request DHD_WLFC_INFO size(%lu) > %d\n", in dhd_wlan_mem_prealloc() 170 size, WLAN_DHD_WLFC_BUF_SIZ in dhd_wlan_mem_prealloc() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | svg_transform.cpp | 60 if (numVec.size() == 1) { in CreateMatrix4() 66 if (numVec.size() == 1) { in CreateMatrix4() 73 if (numVec.size() >= 3) { in CreateMatrix4() 80 } else if (type == TRANSFORM_MATRIX && numVec.size() == 6) { in CreateMatrix4() 107 if (type == TRANSFORM_TRANSLATE && values.size() >= 2) { in CreateMatrixFromMap() 109 } else if (type == TRANSFORM_SCALE && values.size() >= 2) { in CreateMatrixFromMap() 113 if (values.size() >= 3) { in CreateMatrixFromMap() 116 } else if (type == TRANSFORM_SKEW && values.size() >= 2) { in CreateMatrixFromMap() 149 if (numVec.size() == 1) { in CreateMap() 157 if (numVec.size() in CreateMap() 268 auto size = frame.size(); AlignmentFrame() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | svg_decoder_test.cpp | 41 int size = 1000;
in HWTEST_F() local 42 auto data = std::make_unique<uint8_t[]>(size);
in HWTEST_F() 43 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size);
in HWTEST_F() 63 int size = 1000;
in HWTEST_F() local 64 auto data = std::make_unique<uint8_t[]>(size);
in HWTEST_F() 65 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size);
in HWTEST_F() 158 int size = 1000;
in HWTEST_F() local 159 auto data = std::make_unique<uint8_t[]>(size);
in HWTEST_F() 160 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size);
in HWTEST_F() 182 int size in HWTEST_F() local 200 int size = 1000; HWTEST_F() local 242 int size = 1000; HWTEST_F() local 264 int size = 1000; HWTEST_F() local 282 int size = 1000; HWTEST_F() local 304 int size = 1000; HWTEST_F() local 463 Size size; HWTEST_F() local [all...] |
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_occlusion_region_test.cpp | 143 ASSERT_EQ(0, res.size()); in HWTEST_F() 145 ASSERT_EQ(1, res.size()); in HWTEST_F() 152 ASSERT_EQ(2, res.size()); in HWTEST_F() 159 ASSERT_EQ(2, res.size()); in HWTEST_F() 168 ASSERT_EQ(3, res.size()); in HWTEST_F() 187 ASSERT_EQ(1, res.size()); in HWTEST_F() 193 ASSERT_EQ(1, res.size()); in HWTEST_F() 199 ASSERT_EQ(1, res.size()); in HWTEST_F() 205 ASSERT_EQ(0, res.size()); in HWTEST_F() 211 ASSERT_EQ(1, res.size()); in HWTEST_F() [all...] |
/third_party/elfio/elfio/ |
H A D | elfio_symbols.hpp | 70 Elf_Xword& size, in get_symbol() 79 ret = generic_get_symbol<Elf32_Sym>( index, name, value, size, bind, in get_symbol() 83 ret = generic_get_symbol<Elf64_Sym>( index, name, value, size, bind, in get_symbol() 93 Elf_Xword& size, in get_symbol() 103 ret = hash_lookup( name, value, size, bind, type, section_index, in get_symbol() 110 name, value, size, bind, type, section_index, other ); in get_symbol() 114 name, value, size, bind, type, section_index, other ); in get_symbol() 122 if ( get_symbol( i, symbol_name, value, size, bind, type, in get_symbol() 137 Elf_Xword& size, in get_symbol() 166 return get_symbol( idx, name, v, size, bin in get_symbol() 67 get_symbol( Elf_Xword index, std::string& name, Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const get_symbol() argument 91 get_symbol( const std::string& name, Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const get_symbol() argument 135 get_symbol( const Elf64_Addr& value, std::string& name, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const get_symbol() argument 174 add_symbol( Elf_Word name, Elf64_Addr value, Elf_Xword size, unsigned char info, unsigned char other, Elf_Half shndx ) add_symbol() argument 205 add_symbol( Elf_Word name, Elf64_Addr value, Elf_Xword size, unsigned char bind, unsigned char type, unsigned char other, Elf_Half shndx ) add_symbol() argument 218 add_symbol( string_section_accessor& pStrWriter, const char* str, Elf64_Addr value, Elf_Xword size, unsigned char info, unsigned char other, Elf_Half shndx ) add_symbol() argument 231 add_symbol( string_section_accessor& pStrWriter, const char* str, Elf64_Addr value, Elf_Xword size, unsigned char bind, unsigned char type, unsigned char other, Elf_Half shndx ) add_symbol() argument 290 hash_lookup( const std::string& name, Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const hash_lookup() argument 329 gnu_hash_lookup( const std::string& name, Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const gnu_hash_lookup() argument 430 generic_get_symbol( Elf_Xword index, std::string& name, Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, unsigned char& type, Elf_Half& section_index, unsigned char& other ) const generic_get_symbol() argument 472 generic_add_symbol( Elf_Word name, Elf64_Addr value, Elf_Xword size, unsigned char info, unsigned char other, Elf_Half shndx ) generic_add_symbol() argument [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | fifo.c | 266 void av_fifo_drain2(AVFifo *f, size_t size) in av_fifo_drain2() argument 270 av_assert0(cur_size >= size); in av_fifo_drain2() 271 if (cur_size == size) in av_fifo_drain2() 274 if (f->offset_r >= f->nb_elems - size) in av_fifo_drain2() 275 f->offset_r -= f->nb_elems - size; in av_fifo_drain2() 277 f->offset_r += size; in av_fifo_drain2() 299 AVFifoBuffer *av_fifo_alloc_array(size_t nmemb, size_t size) in av_fifo_alloc_array() argument 304 if (nmemb > OLD_FIFO_SIZE_MAX / size) in av_fifo_alloc_array() 307 buffer = av_realloc_array(NULL, nmemb, size); in av_fifo_alloc_array() 316 f->end = f->buffer + nmemb * size; in av_fifo_alloc_array() 321 av_fifo_alloc(unsigned int size) av_fifo_alloc() argument 395 av_fifo_grow(AVFifoBuffer *f, unsigned int size) av_fifo_grow() argument 410 av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void *, void *, int)) av_fifo_generic_write() argument 501 av_fifo_drain(AVFifoBuffer *f, int size) av_fifo_drain() argument [all...] |
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_container.c | 51 assert(c->parts.size < UINT_MAX); in add_part_header() 52 unsigned offset = (unsigned)c->parts.size; in add_part_header() 217 uint32_t size = psv_size + 2 * sizeof(uint32_t); in dxil_container_add_state_validation() local 219 size += sizeof (uint32_t) + in dxil_container_add_state_validation() 223 size += sizeof(uint32_t) + string_table_size; in dxil_container_add_state_validation() 225 size += sizeof(uint32_t) + m->sem_index_table.size * sizeof(uint32_t); in dxil_container_add_state_validation() 228 size += sizeof(uint32_t); in dxil_container_add_state_validation() 231 size += dxil_pvs_sig_size * m->num_sig_inputs; in dxil_container_add_state_validation() 232 size in dxil_container_add_state_validation() 330 uint32_t size = 6 * sizeof(uint32_t) + m->buf.blob.size; dxil_container_add_module() local 366 size_t size = header_size + c->parts.size; dxil_container_write() local [all...] |
/third_party/libexif/test/ |
H A D | test-value.c | 5 * one according to the buffer size available. 201 e->size = sizeof(subsec); /* include NUL */ in main() 202 e->components = e->size; in main() 204 e->data = exif_mem_alloc(mem, e->size); in main() 209 memcpy(e->data, subsec, e->size); in main() 222 e->size = sizeof(user_comment) - 1; in main() 223 e->components = e->size; in main() 225 e->data = exif_mem_alloc(mem, e->size); in main() 230 memcpy(e->data, user_comment, e->size); in main() 244 e->size in main() [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/ |
H A D | ParsingPrimitives.cs | 215 /// That means we can check the size just once, then just read directly from the buffer 429 /// Reads a fixed size of bytes from the input. 434 public static byte[] ReadRawBytes(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size) in ReadRawBytes() argument 436 if (size < 0) in ReadRawBytes() 441 if (size <= state.bufferSize - state.bufferPos) in ReadRawBytes() 444 byte[] bytes = new byte[size]; in ReadRawBytes() 445 buffer.Slice(state.bufferPos, size).CopyTo(bytes); in ReadRawBytes() 446 state.bufferPos += size; in ReadRawBytes() 450 return ReadRawBytesSlow(ref buffer, ref state, size); in ReadRawBytes() 453 private static byte[] ReadRawBytesSlow(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size) in ReadRawBytesSlow() argument 518 SkipRawBytes(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size) SkipRawBytes() argument 673 ValidateCurrentLimit(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, int size) ValidateCurrentLimit() argument 769 IsDataAvailable(ref ParserInternalState state, int size) IsDataAvailable() argument 786 IsDataAvailableInSource(ref ParserInternalState state, int size) IsDataAvailableInSource() argument [all...] |