/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/ |
H A D | unittest_log.h | 34 #define PRINT_TEST_LOG(ch) … argument 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_SIZE]; … [all …]
|
/ohos5.0/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() local 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() 167 MULA(SYNMATRIX4[i][INDEX_1], frame.samples_[blk][ch][INDEX_1], in Synthesize4() 197 void Decoder::Synthesize8(const Frame &frame, int ch, int blk) in Synthesize8() argument 201 int *offset = offset_[ch]; in Synthesize8() 207 v_[ch][j + VALUE_160] = v_[ch][j]; in Synthesize8() 210 … v_[ch][offset[i]] = Scale8Staged1(MULA(SYNMATRIX8[i][INDEX_0], frame.samples_[blk][ch][INDEX_0], in Synthesize8() [all …]
|
/ohos5.0/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_SIZE]; … [all …]
|
/ohos5.0/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_SIZE]; … [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/cachedlocationcallbackhost_fuzzer/ |
H A D | cachedlocationcallbackhost_fuzzer.cpp | 56 char* ch = (char *)malloc(size + 1); in ParseData() local 57 if (ch == nullptr) { in ParseData() 61 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 62 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 63 free(ch); in ParseData() 64 ch = nullptr; in ParseData() 67 return ch; in ParseData() 89 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 90 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 92 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/countrycodecallbackhost_fuzzer/ |
H A D | countrycodecallbackhost_fuzzer.cpp | 47 char* ch = (char *)malloc(size + 1); in ParseData() local 48 if (ch == nullptr) { in ParseData() 52 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 53 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 54 free(ch); in ParseData() 55 ch = nullptr; in ParseData() 58 return ch; in ParseData() 79 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 80 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 82 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/gnssstatuscallbackhost_fuzzer/ |
H A D | gnssstatuscallbackhost_fuzzer.cpp | 47 char* ch = (char *)malloc(size + 1); in ParseData() local 48 if (ch == nullptr) { in ParseData() 52 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 53 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 54 free(ch); in ParseData() 55 ch = nullptr; in ParseData() 58 return ch; in ParseData() 81 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 82 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 86 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/locationswitchcallbackhost_fuzzer/ |
H A D | locationswitchcallbackhost_fuzzer.cpp | 44 char* ch = (char *)malloc(size + 1); in ParseData() local 45 if (ch == nullptr) { in ParseData() 49 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 50 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 51 free(ch); in ParseData() 52 ch = nullptr; in ParseData() 55 return ch; in ParseData() 76 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 77 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 79 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/nmeamessagecallbackhost_fuzzer/ |
H A D | nmeamessagecallbackhost_fuzzer.cpp | 46 char* ch = (char *)malloc(size + 1); in ParseData() local 47 if (ch == nullptr) { in ParseData() 51 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 52 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 53 free(ch); in ParseData() 54 ch = nullptr; in ParseData() 57 return ch; in ParseData() 80 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 81 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 85 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/locatorcallbackstub_fuzzer/ |
H A D | locatorcallbackstub_fuzzer.cpp | 52 char* ch = (char *)malloc(size + 1); in ParseData() local 53 if (ch == nullptr) { in ParseData() 57 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 58 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 59 free(ch); in ParseData() 60 ch = nullptr; in ParseData() 63 return ch; in ParseData() 88 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 89 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 91 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/locatorcallbackhost_fuzzer/ |
H A D | locatorcallbackhost_fuzzer.cpp | 66 char* ch = (char *)malloc(size + 1); in ParseData() local 67 if (ch == nullptr) { in ParseData() 71 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 72 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 73 free(ch); in ParseData() 74 ch = nullptr; in ParseData() 77 return ch; in ParseData() 133 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 134 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 138 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/locatorabilitystub_fuzzer/ |
H A D | locatorabilitystub_fuzzer.cpp | 66 char* ch = (char *)malloc(size + 1); in ParseData() local 67 if (ch == nullptr) { in ParseData() 73 free(ch); in ParseData() 74 ch = nullptr; in ParseData() 77 return ch; in ParseData() 873 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 874 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 876 GeoCodeFuzzTest(ch, size); in LLVMFuzzerTestOneInput() 877 SwitchFuzzTest(ch, size); in LLVMFuzzerTestOneInput() 916 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/foundation/ability/dmsfwk/test/fuzztest/dschedsoftbussession_fuzzer/ |
H A D | dschedsoftbussession_fuzzer.cpp | 45 char *ch = static_cast<char*>(malloc(size + 1)); in Get32Data() local 46 if (ch == nullptr) { in Get32Data() 49 (void)memset_s(ch, size + 1, 0x00, size + 1); in Get32Data() 50 if (memcpy_s(ch, size + 1, ptr, size) != EOK) { in Get32Data() 51 free(ch); in Get32Data() 52 ch = nullptr; in Get32Data() 55 …int32_t data = (ch[POS_0] << OFFSET_24) | (ch[POS_1] << OFFSET_16) | (ch[POS_2] << OFFSET_8) | ch[… in Get32Data() 56 free(ch); in Get32Data() 57 ch = nullptr; in Get32Data()
|
/ohos5.0/base/location/test/fuzztest/locator/geoconvertservice_fuzzer/ |
H A D | geoconvertservice_fuzzer.cpp | 70 char* ch = (char *)malloc(size + 1); in ParseData() local 71 if (ch == nullptr) { in ParseData() 75 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 76 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 77 free(ch); in ParseData() 78 ch = nullptr; in ParseData() 81 return ch; in ParseData() 192 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 193 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 202 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/checkmessage_fuzzer/ |
H A D | checkmessage_fuzzer.cpp | 61 char* ch = (char *)malloc(size + 1); in ParseData() local 62 if (ch == nullptr) { in ParseData() 67 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 68 free(ch); in ParseData() 69 ch = nullptr; in ParseData() 72 return ch; in ParseData() 105 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 106 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 107 OHOS::CheckMessageFuzzTest(ch, size); in LLVMFuzzerTestOneInput() 108 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/base/location/test/fuzztest/locator/networkcallbackhost_fuzzer/ |
H A D | networkcallbackhost_fuzzer.cpp | 76 char* ch = (char *)malloc(size + 1); in ParseData() local 77 if (ch == nullptr) { in ParseData() 81 (void)memset_s(ch, size + 1, 0x00, size + 1); in ParseData() 82 if (memcpy_s(ch, size, data, size) != EOK) { in ParseData() 83 free(ch); in ParseData() 84 ch = nullptr; in ParseData() 87 return ch; in ParseData() 115 char* ch = OHOS::ParseData(data, size); in LLVMFuzzerTestOneInput() local 116 if (ch != nullptr) { in LLVMFuzzerTestOneInput() 120 free(ch); in LLVMFuzzerTestOneInput() [all …]
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallergetinnerbundleinfo_fuzzer/ |
H A D | appservicefwkinstallergetinnerbundleinfo_fuzzer.cpp | 57 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() local 58 if (ch == nullptr) { in LLVMFuzzerTestOneInput() 62 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 63 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput() 64 free(ch); in LLVMFuzzerTestOneInput() 65 ch = nullptr; in LLVMFuzzerTestOneInput() 68 OHOS::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput() 69 free(ch); in LLVMFuzzerTestOneInput() 70 ch = nullptr; in LLVMFuzzerTestOneInput()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerremovebundle_fuzzer/ |
H A D | basebundleinstallerremovebundle_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()
|