/foundation/multimedia/av_codec/test/unittest/common/ |
H A D | unittest_log.h | 34 #define PRINT_TEST_LOG(ch) \ 36 UNITTEST_HILOG("[%{public}d] %{public}s", TEST_ID, ch); \ 37 (void)printf("[%s:%d][%d] %s", __func__, __LINE__, TEST_ID, ch); \ 40 #define PRINT_TEST_LOG(ch) \ 42 UNITTEST_HILOG("%{public}s", ch); \ 43 (void)printf("[%s:%d] %s", __func__, __LINE__, ch); \ 50 char ch[LOG_MAX_SIZE]; \ 51 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 52 PRINT_TEST_LOG(ch); \ 61 char ch[LOG_MAX_SIZ [all...] |
/foundation/multimedia/media_foundation/tests/unittest/common/include/ |
H A D | unittest_log.h | 27 char ch[LOG_MAX_SIZE]; \ 28 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 29 (void)printf("[%s] %s", __func__, ch); \ 38 char ch[LOG_MAX_SIZE]; \ 39 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 40 (void)printf("[%s] %s", __func__, ch); \ 48 char ch[LOG_MAX_SIZE]; \ 49 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 50 (void)printf("[%s] %s", __func__, ch); \ 57 char ch[LOG_MAX_SIZ [all...] |
/foundation/multimedia/av_codec/test/nativedemo/include/ |
H A D | demo_log.h | 26 char ch[LOG_MAX_SIZE]; \ 27 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 28 (void)printf("%s\n", ch); \ 36 char ch[LOG_MAX_SIZE]; \ 37 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 38 (void)printf("%s\n", ch); \ 45 char ch[LOG_MAX_SIZE]; \ 46 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 47 (void)printf("%s\n", ch); \ 53 char ch[LOG_MAX_SIZ [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_decoder.cpp | 72 for (int ch = 0; ch < MAX_CHANNEL_NUM; ch++) { in Init() 74 offset_[ch][i] = (MULTIPLE_TEN * i + MULTIPLE_TEN); in Init() 154 void Decoder::Synthesize4(const Frame &frame, int ch, int blk) in Synthesize4() argument 156 int32_t *v = v_[ch]; in Synthesize4() 157 int *offset = offset_[ch]; in Synthesize4() 166 v[offset[i]] = Scale4Staged1(MULA(SYNMATRIX4[i][INDEX_0], frame.samples_[blk][ch][INDEX_0], in Synthesize4() 167 MULA(SYNMATRIX4[i][INDEX_1], frame.samples_[blk][ch][INDEX_1], in Synthesize4() 168 MULA(SYNMATRIX4[i][INDEX_2], frame.samples_[blk][ch][INDEX_ in Synthesize4() 197 Synthesize8(const Frame &frame, int ch, int blk) Synthesize8() argument [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallercreatebundleanddatadir_fuzzer/ |
H A D | basebundleinstallercreatebundleanddatadir_fuzzer.cpp | 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 55 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 61 free(ch); in LLVMFuzzerTestOneInput() 62 ch = nullptr; in LLVMFuzzerTestOneInput() 65 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 66 free(ch); in LLVMFuzzerTestOneInput() 67 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallersetcheckresultmsg_fuzzer/ |
H A D | basebundleinstallersetcheckresultmsg_fuzzer.cpp | 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 55 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 61 free(ch); in LLVMFuzzerTestOneInput() 62 ch = nullptr; in LLVMFuzzerTestOneInput() 65 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 66 free(ch); in LLVMFuzzerTestOneInput() 67 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bmskeyeventmgr_fuzzer/ |
H A D | bmskeyeventmgr_fuzzer.cpp | 52 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 53 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 57 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 58 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 59 free(ch); in LLVMFuzzerTestOneInput() 60 ch = nullptr; in LLVMFuzzerTestOneInput() 63 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 64 free(ch); in LLVMFuzzerTestOneInput() 65 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerremovebundlecodedir_fuzzer/ |
H A D | appservicefwkinstallerremovebundlecodedir_fuzzer.cpp | 56 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 57 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 62 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 63 free(ch); in LLVMFuzzerTestOneInput() 64 ch = nullptr; in LLVMFuzzerTestOneInput() 67 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 68 free(ch); in LLVMFuzzerTestOneInput() 69 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstalleruninstallbundlebyuninstallparam_fuzzer/ |
H A D | basebundleinstalleruninstallbundlebyuninstallparam_fuzzer.cpp | 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 55 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 61 free(ch); in LLVMFuzzerTestOneInput() 62 ch = nullptr; in LLVMFuzzerTestOneInput() 65 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 66 free(ch); in LLVMFuzzerTestOneInput() 67 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerremoveinfo_fuzzer/ |
H A D | appservicefwkinstallerremoveinfo_fuzzer.cpp | 55 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 56 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 60 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 61 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 62 free(ch); in LLVMFuzzerTestOneInput() 63 ch = nullptr; in LLVMFuzzerTestOneInput() 66 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 67 free(ch); in LLVMFuzzerTestOneInput() 68 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerrollback_fuzzer/ |
H A D | appservicefwkinstallerrollback_fuzzer.cpp | 55 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 56 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 60 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 61 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 62 free(ch); in LLVMFuzzerTestOneInput() 63 ch = nullptr; in LLVMFuzzerTestOneInput() 66 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 67 free(ch); in LLVMFuzzerTestOneInput() 68 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallersavebundleinfotostorage_fuzzer/ |
H A D | appservicefwkinstallersavebundleinfotostorage_fuzzer.cpp | 55 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 56 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 60 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 61 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 62 free(ch); in LLVMFuzzerTestOneInput() 63 ch = nullptr; in LLVMFuzzerTestOneInput() 66 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 67 free(ch); in LLVMFuzzerTestOneInput() 68 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallermarkprebundlesyeeventboottag_fuzzer/ |
H A D | basebundleinstallermarkprebundlesyeeventboottag_fuzzer.cpp | 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 55 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 61 free(ch); in LLVMFuzzerTestOneInput() 62 ch = nullptr; in LLVMFuzzerTestOneInput() 65 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 66 free(ch); in LLVMFuzzerTestOneInput() 67 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerrenamemoduledir_fuzzer/ |
H A D | basebundleinstallerrenamemoduledir_fuzzer.cpp | 54 char *ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 55 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 59 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 60 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 61 free(ch); in LLVMFuzzerTestOneInput() 62 ch = nullptr; in LLVMFuzzerTestOneInput() 65 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 66 free(ch); in LLVMFuzzerTestOneInput() 67 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallermovesotorealpath_fuzzer/ |
H A D | appservicefwkinstallermovesotorealpath_fuzzer.cpp | 55 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 56 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 60 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 61 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 62 free(ch); in LLVMFuzzerTestOneInput() 63 ch = nullptr; in LLVMFuzzerTestOneInput() 66 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 67 free(ch); in LLVMFuzzerTestOneInput() 68 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/form_fwk/test/fuzztest/formerrors_fuzzer/ |
H A D | formerrors_fuzzer.cpp | 64 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() local 65 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 69 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput() 71 free(ch); in LLVMFuzzerTestOneInput() 72 ch = nullptr; in LLVMFuzzerTestOneInput() 76 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 77 free(ch); in LLVMFuzzerTestOneInput() 78 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/form_fwk/test/fuzztest/providerconnectproxy_fuzzer/ |
H A D | providerconnectproxy_fuzzer.cpp | 64 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() local 65 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 69 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput() 71 free(ch); in LLVMFuzzerTestOneInput() 72 ch = nullptr; in LLVMFuzzerTestOneInput() 76 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 77 free(ch); in LLVMFuzzerTestOneInput() 78 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/form_fwk/test/fuzztest/formecologicalruleparam_fuzzer/ |
H A D | formecologicalruleparam_fuzzer.cpp | 63 char* ch = (char *)malloc(size + 1);
in LLVMFuzzerTestOneInput() local 64 if (ch == nullptr) {
in LLVMFuzzerTestOneInput() 68 (void)memset_s(ch, size + 1, 0x00, size + 1);
in LLVMFuzzerTestOneInput() 69 if (memcpy_s(ch, size + 1, data, size) != EOK) {
in LLVMFuzzerTestOneInput() 70 free(ch);
in LLVMFuzzerTestOneInput() 71 ch = nullptr;
in LLVMFuzzerTestOneInput() 75 OHOS::DoSomethingInterestingWithMyAPI(ch, size);
in LLVMFuzzerTestOneInput() 76 free(ch);
in LLVMFuzzerTestOneInput() 77 ch = nullptr;
in LLVMFuzzerTestOneInput()
|
/foundation/ability/form_fwk/test/fuzztest/formsupplyproxy_fuzzer/ |
H A D | formsupplyproxy_fuzzer.cpp | 64 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() local 65 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 69 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput() 71 free(ch); in LLVMFuzzerTestOneInput() 72 ch = nullptr; in LLVMFuzzerTestOneInput() 76 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 77 free(ch); in LLVMFuzzerTestOneInput() 78 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/form_fwk/test/fuzztest/formjsinfo_fuzzer/ |
H A D | formjsinfo_fuzzer.cpp | 63 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() local 64 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput() 70 free(ch); in LLVMFuzzerTestOneInput() 71 ch = nullptr; in LLVMFuzzerTestOneInput() 75 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 76 free(ch); in LLVMFuzzerTestOneInput() 77 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/getprocessrunninginfos_fuzzer/ |
H A D | getprocessrunninginfos_fuzzer.cpp | 62 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() local 63 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 69 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 71 free(ch); in LLVMFuzzerTestOneInput() 72 ch = nullptr; in LLVMFuzzerTestOneInput() 76 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 77 free(ch); in LLVMFuzzerTestOneInput() 78 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/prestartnwebspawnprocess_fuzzer/ |
H A D | prestartnwebspawnprocess_fuzzer.cpp | 65 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() local 66 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 71 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 72 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 74 free(ch); in LLVMFuzzerTestOneInput() 75 ch = nullptr; in LLVMFuzzerTestOneInput() 79 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 80 free(ch); in LLVMFuzzerTestOneInput() 81 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/stopsyncremotemissions_fuzzer/ |
H A D | stopsyncremotemissions_fuzzer.cpp | 60 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() local 61 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 66 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 67 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 69 free(ch); in LLVMFuzzerTestOneInput() 70 ch = nullptr; in LLVMFuzzerTestOneInput() 74 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 75 free(ch); in LLVMFuzzerTestOneInput() 76 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/getabilityrunninginfos_fuzzer/ |
H A D | getabilityrunninginfos_fuzzer.cpp | 62 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() local 63 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 69 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 71 free(ch); in LLVMFuzzerTestOneInput() 72 ch = nullptr; in LLVMFuzzerTestOneInput() 76 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 77 free(ch); in LLVMFuzzerTestOneInput() 78 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/cleanallmissions_fuzzer/ |
H A D | cleanallmissions_fuzzer.cpp | 61 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() local 62 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 67 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 68 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 70 free(ch); in LLVMFuzzerTestOneInput() 71 ch = nullptr; in LLVMFuzzerTestOneInput() 75 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 76 free(ch); in LLVMFuzzerTestOneInput() 77 ch = nullptr; in LLVMFuzzerTestOneInput()
|