/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
H A D | BitVector.h | 34 "Unsupported word size"); 93 BitVector(const BitVector &RHS) : Size(RHS.size()) { in BitVector() 100 Capacity = NumBitWords(RHS.size()); in BitVector() 118 /// size - Returns the number of bits in this bitvector. 119 size_type size() const { return Size; } in size() function in llvm::BitVector 124 for (unsigned i = 0; i < NumBitWords(size()); ++i) in count() 131 for (unsigned i = 0; i < NumBitWords(size()); ++i) in any() 158 for (unsigned i = 0; i < NumBitWords(size()); ++i) in find_first() 181 for (unsigned i = WordPos+1; i < NumBitWords(size()); ++i) in find_next() 206 // Update the size, an in resize() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | wavdec.c | 76 { "max_size", "max size of single packet", OFFSET(max_size), AV_OPT_TYPE_INT, { .i64 = 4096 }, 1024, 1 << 22, DEC }, 131 /* return the size of the found tag */ 135 int64_t size; in find_tag() local 140 size = next_tag(pb, &tag, wav->rifx); in find_tag() 143 wav_seek_tag(wav, pb, size, SEEK_CUR); in find_tag() 145 return size; in find_tag() 176 static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream *st) in wav_parse_fmt_tag() argument 183 ret = ff_get_wav_header(s, pb, st->codecpar, size, wav->rifx); in wav_parse_fmt_tag() 195 static int wav_parse_xma2_tag(AVFormatContext *s, int64_t size, AVStream *st) in wav_parse_xma2_tag() argument 200 if (size < 3 in wav_parse_xma2_tag() 259 wav_parse_bext_tag(AVFormatContext *s, int64_t size) wav_parse_bext_tag() argument 343 int64_t size, av_uninit(data_size); wav_read_header() local 691 int64_t size; find_guid() local 707 int ret, size; wav_read_packet() local 867 int64_t size, data_ofs = 0; w64_read_header() local [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | radeon_uvd.c | 235 /* calculate size of reference picture buffer */ 240 // always align them to MB size for dpb calculation in calc_dpb_size() 247 // aligned size of a single frame in calc_dpb_size() 663 int size = 0, saved_size, len_pos, i; in get_mjpeg_slice_header() local 668 buf[size++] = 0xff; in get_mjpeg_slice_header() 669 buf[size++] = 0xd8; in get_mjpeg_slice_header() 672 buf[size++] = 0xff; in get_mjpeg_slice_header() 673 buf[size++] = 0xdb; in get_mjpeg_slice_header() 675 len_pos = size++; in get_mjpeg_slice_header() 676 size in get_mjpeg_slice_header() [all...] |
/third_party/littlefs/scripts/ |
H A D | tracebd.py | 87 # did terminal size change? 343 size=1, 355 self.size = size 360 def _op(self, f, block=None, off=None, size=None): 365 off, size = 0, self.size 366 elif size is None: 367 off, size = 0, off 371 size [all...] |
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/ |
H A D | nnrtndk.cpp | 193 for (int i = 0; i < graphArgs.operands.size(); i++) { in addTesorAndSetTensor() 195 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in addTesorAndSetTensor() 215 paramIndices.size = graphArgs.paramIndices.size(); in OHNNModelAddOperationOne() 218 inputIndices.size = graphArgs.inputIndices.size(); in OHNNModelAddOperationOne() 221 outputIndices.size = graphArgs.outputIndices.size(); in OHNNModelAddOperationOne() 257 inputIndices.size = graphArgs.inputIndices.size(); in OHNNModelSpecifyInputsAndOutputsOne() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/setmissionlabel_fuzzer/ |
H A D | setmissionlabel_fuzzer.cpp | 49 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 72 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 80 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 81 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 85 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 91 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 92 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ai/ai_engine/services/common/platform/os_wrapper/utils/ |
H A D | plugin_helper.cpp | 24 if (val.size != 0 || val.data != nullptr) { \
28 if (RecursiveDecode(val.size) != RETCODE_SUCCESS) { \
32 AIE_NEW(val.data, type[val.size]); \
37 for (size_t i = 0; i < val.size; ++i) { \
51 if (val.size == 0 || val.data == nullptr) { \
55 if (RecursiveEncode(val.size) != RETCODE_SUCCESS) { \
59 for (size_t i = 0; i < val.size; ++i) { \
77 if (RecursiveEncode(outputData.size() * PAIR_SIZE) != RETCODE_SUCCESS) {
in EncodeOneParameter() 81 for (size_t i = 0; i < outputData.size(); ++i) {
in EncodeOneParameter() 87 for (size_t i = 0; i < outputData.size(); in EncodeOneParameter() [all...] |
/foundation/ability/ability_base/test/fuzztest/wantparamsthird_fuzzer/ |
H A D | wantparamsthird_fuzzer.cpp | 42 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 77 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 78 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 82 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() 88 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 89 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagereventsubscriber_fuzzer/ |
H A D | abilitymanagereventsubscriber_fuzzer.cpp | 49 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 64 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 72 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 73 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 77 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 83 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 84 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/minimizeability_fuzzer/ |
H A D | minimizeability_fuzzer.cpp | 48 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 70 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 77 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 78 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 81 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() 86 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 87 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/updateabilitystate_fuzzer/ |
H A D | updateabilitystate_fuzzer.cpp | 49 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 76 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 84 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 85 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 89 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 95 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 96 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/addabilitystagedone_fuzzer/ |
H A D | addabilitystagedone_fuzzer.cpp | 47 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 70 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 71 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 81 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 82 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/setmissioncontinuestate_fuzzer/ |
H A D | setmissioncontinuestate_fuzzer.cpp | 50 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 74 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 82 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 83 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 87 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 93 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 94 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/setmissionicon_fuzzer/ |
H A D | setmissionicon_fuzzer.cpp | 48 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 72 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 80 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 81 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 85 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 91 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 92 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/registerabilitylifecyclecallback_fuzzer/ |
H A D | registerabilitylifecyclecallback_fuzzer.cpp | 61 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 74 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 81 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 82 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 85 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() 90 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 91 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/updateextensionstate_fuzzer/ |
H A D | updateextensionstate_fuzzer.cpp | 49 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 76 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 84 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 85 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 89 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 95 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 96 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityappdfrapplicationanrlistener_fuzzer/ |
H A D | abilityappdfrapplicationanrlistener_fuzzer.cpp | 48 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 67 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 68 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 72 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 78 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 79 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityappmgrpagestatedata_fuzzer/ |
H A D | abilityappmgrpagestatedata_fuzzer.cpp | 65 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 76 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 84 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 85 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 89 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 95 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 96 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerserviceb_fuzzer/ |
H A D | abilitymanagerserviceb_fuzzer.cpp | 52 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 76 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 77 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 81 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 87 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 88 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymemorylevelinfo_fuzzer/ |
H A D | abilitymemorylevelinfo_fuzzer.cpp | 53 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 76 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 77 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 81 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 87 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 88 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/connectionobserverclientimpl_fuzzer/ |
H A D | connectionobserverclientimpl_fuzzer.cpp | 64 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 100 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 101 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 105 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 111 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 112 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/connectionobserverclient_fuzzer/ |
H A D | connectionobserverclient_fuzzer.cpp | 83 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 99 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 106 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 107 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 111 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 117 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 118 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitybackgroundconnection_fuzzer/ |
H A D | abilitybackgroundconnection_fuzzer.cpp | 48 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 61 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 69 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 70 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 74 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 80 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 81 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerserviceninth_fuzzer/ |
H A D | abilitymanagerserviceninth_fuzzer.cpp | 50 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 71 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 78 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 79 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 83 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 89 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 90 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/autostartupinfo_fuzzer/ |
H A D | autostartupinfo_fuzzer.cpp | 49 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 68 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 69 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 73 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 79 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 80 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput() [all...] |