/base/global/i18n/frameworks/intl/test/fuzztest/phonenumberformat_fuzzer/ |
H A D | phonenumberformat_fuzzer.cpp | 30 std::string input(reinterpret_cast<const char*>(data), INPUT_DATA_LENGTH); in DoSomethingInterestingWithMyAPI() 32 options[input] = input; in DoSomethingInterestingWithMyAPI() 33 PhoneNumberFormat formatter(input, options); in DoSomethingInterestingWithMyAPI() 34 formatter.isValidPhoneNumber(input); in DoSomethingInterestingWithMyAPI() 35 formatter.format(input); in DoSomethingInterestingWithMyAPI() 36 formatter.getLocationName(input, input); in DoSomethingInterestingWithMyAPI() 37 formatter.getPhoneLocationName(input, input, inpu in DoSomethingInterestingWithMyAPI() [all...] |
/base/inputmethod/imf/common/src/ |
H A D | itypes_util.cpp | 33 bool ITypesUtil::Marshalling(bool input, MessageParcel &data) in Marshalling() argument 35 return data.WriteBool(input); in Marshalling() 43 bool ITypesUtil::Marshalling(uint32_t input, MessageParcel &data) in Marshalling() argument 45 return data.WriteUint32(input); in Marshalling() 53 bool ITypesUtil::Marshalling(int32_t input, MessageParcel &data) in Marshalling() argument 55 return data.WriteInt32(input); in Marshalling() 63 bool ITypesUtil::Marshalling(uint64_t input, MessageParcel &data) in Marshalling() argument 65 return data.WriteUint64(input); in Marshalling() 73 bool ITypesUtil::Marshalling(double input, MessageParcel &data) in Marshalling() argument 75 return data.WriteDouble(input); in Marshalling() 83 Marshalling(const std::string &input, MessageParcel &data) Marshalling() argument 93 Marshalling(const std::u16string &input, MessageParcel &data) Marshalling() argument 103 Marshalling(const std::vector<uint8_t> &input, MessageParcel &data) Marshalling() argument 113 Marshalling(const sptr<IRemoteObject> &input, MessageParcel &data) Marshalling() argument 124 Marshalling(const Property &input, MessageParcel &data) Marshalling() argument 142 Marshalling(const SubProperty &input, MessageParcel &data) Marshalling() argument 162 Marshalling(const InputAttribute &input, MessageParcel &data) Marshalling() argument 180 Marshalling(const TextTotalConfig &input, MessageParcel &data) Marshalling() argument 249 Marshalling(const InputClientInfo &input, MessageParcel &data) Marshalling() argument 269 Marshalling(const ImeWindowInfo &input, MessageParcel &data) Marshalling() argument 295 Marshalling(const PanelStatusInfo &input, MessageParcel &data) Marshalling() argument 315 Marshalling(const SysPanelStatus &input, MessageParcel &data) Marshalling() argument 334 Marshalling(const OHOS::AppExecFwk::ElementName &input, MessageParcel &data) Marshalling() argument 355 Marshalling(InputType input, MessageParcel &data) Marshalling() argument 370 Marshalling(const PanelInfo &input, MessageParcel &data) Marshalling() argument 388 Marshalling(ClientState input, MessageParcel &data) Marshalling() argument 404 Marshalling(SwitchTrigger input, MessageParcel &data) Marshalling() argument 420 Marshalling(const PrivateDataValue &input, MessageParcel &data) Marshalling() argument 470 Marshalling(const Range &input, MessageParcel &data) Marshalling() argument [all...] |
/base/global/i18n/frameworks/intl/test/fuzztest/datetimerule_fuzzer/ |
H A D | datetimerule_fuzzer.cpp | 29 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 31 DateRuleInit* dateRuleInit = new DateRuleInit(input); in DoSomethingInterestingWithMyAPI() 32 icu::UnicodeString message(input.c_str()); in DoSomethingInterestingWithMyAPI() 35 DateTimeRule* dateTimeRule = new DateTimeRule(input); in DoSomethingInterestingWithMyAPI() 46 dateTimeRule->CompareLevel(input, input); in DoSomethingInterestingWithMyAPI() 48 {input, input} in DoSomethingInterestingWithMyAPI() 50 dateTimeRule->Get(param, input); in DoSomethingInterestingWithMyAPI() 52 icu::UnicodeString hyphen(input in DoSomethingInterestingWithMyAPI() [all...] |
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | itypes_util_test.cpp | 98 uint64_t input = 10001; in HWTEST_F() local 99 data.WriteUint64(input); in HWTEST_F() 100 auto ret = ITypesUtil::Marshalling(input, data); in HWTEST_F() 102 ret = ITypesUtil::Unmarshalling(input, data); in HWTEST_F() 116 Property input; in HWTEST_F() local 119 auto ret = ITypesUtil::Unmarshalling(input, data); in HWTEST_F() 121 ret = ITypesUtil::Marshalling(input, data); in HWTEST_F() 135 SubProperty input; in HWTEST_F() local 138 auto ret = ITypesUtil::Unmarshalling(input, data); in HWTEST_F() 140 ret = ITypesUtil::Marshalling(input, dat in HWTEST_F() 154 InputAttribute input; HWTEST_F() local 173 TextTotalConfig input; HWTEST_F() local 190 InputClientInfo input; HWTEST_F() local 207 ImeWindowInfo input; HWTEST_F() local 224 SysPanelStatus input; HWTEST_F() local 241 OHOS::AppExecFwk::ElementName input; HWTEST_F() local 276 Range input; HWTEST_F() local [all...] |
/base/global/i18n/frameworks/intl/test/fuzztest/character_fuzzer/ |
H A D | character_fuzzer.cpp | 28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 29 result &= IsDigit(input); in DoSomethingInterestingWithMyAPI() 30 result &= IsSpaceChar(input); in DoSomethingInterestingWithMyAPI() 31 result &= IsWhiteSpace(input); in DoSomethingInterestingWithMyAPI() 32 result &= IsRTLCharacter(input); in DoSomethingInterestingWithMyAPI() 33 result &= IsIdeoGraphic(input); in DoSomethingInterestingWithMyAPI() 34 result &= IsLetter(input); in DoSomethingInterestingWithMyAPI() 35 result &= IsLowerCase(input); in DoSomethingInterestingWithMyAPI() 36 result &= IsUpperCase(input); in DoSomethingInterestingWithMyAPI() 37 GetType(input); in DoSomethingInterestingWithMyAPI() [all...] |
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/core/src/ |
H A D | hks_storage_test.cpp | 65 const char input = '#'; in HWTEST_F() local 67 ResumeInvalidCharacter(input, &outPut); in HWTEST_F() 79 const char input = '$'; in HWTEST_F() local 81 ResumeInvalidCharacter(input, &outPut); in HWTEST_F() 93 const char input = '%'; in HWTEST_F() local 95 ResumeInvalidCharacter(input, &outPut); in HWTEST_F() 107 const char input = '&'; in HWTEST_F() local 109 ResumeInvalidCharacter(input, &outPut); in HWTEST_F() 121 const char input = '('; in HWTEST_F() local 123 ResumeInvalidCharacter(input, in HWTEST_F() 135 const char input = ')'; HWTEST_F() local [all...] |
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/ |
H A D | conversion_filter.cpp | 33 double ConversionFilter::FilterLowPass(double input, double cutoff) in FilterLowPass() argument 35 output_ = filteredData_[0] + cutoff * (input - filteredData_[0]); in FilterLowPass() 41 double ConversionFilter::FilterHighPass(double input, double cutoff) in FilterHighPass() argument 43 output_ = input - (filteredData_[0] + cutoff * (input - filteredData_[0])); in FilterHighPass() 49 double ConversionFilter::FilterLowResonant(double input, double cutoff, double resonance) in FilterLowResonant() argument 72 speed_ = speed_ + (input - pos_) * filterCoefficient_; in FilterLowResonant() 80 double ConversionFilter::FilterHighResonant(double input, double cutoff, double resonance) in FilterHighResonant() argument 104 speed_ = speed_ + (input - pos_) * filterCoefficient_; in FilterHighResonant() 107 output_ = input in FilterHighResonant() 112 FilterBandPass(double input, double cutoff, double resonance) FilterBandPass() argument 136 HandleResonant(double input, double cutoff, double resonance, FilterMethod filterMethod) HandleResonant() argument 160 HandleHighPassOrLowPass(double input, double cutoff, bool isHighPass) HandleHighPassOrLowPass() argument [all...] |
/base/global/i18n/frameworks/intl/test/fuzztest/rulesengine_fuzzer/ |
H A D | rulesengine_fuzzer.cpp | 28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 33 rulesMap[input] = input; in DoSomethingInterestingWithMyAPI() 34 subRules[input] = input; in DoSomethingInterestingWithMyAPI() 35 param[input] = input; in DoSomethingInterestingWithMyAPI() 36 paramBackup[input] = input; in DoSomethingInterestingWithMyAPI() 39 DateTimeRule* dateTimeRule = new DateTimeRule(input); in DoSomethingInterestingWithMyAPI() [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/mock/src/ |
H A D | sec_comp_enhance_adapter.cpp | 93 bool SecCompEnhanceAdapter::EnhanceClientSerialize(MessageParcel& input, MessageParcel& output) in EnhanceClientSerialize() argument 96 return CopyMessageParcel(input, output); in EnhanceClientSerialize() 99 bool SecCompEnhanceAdapter::EnhanceClientDeserialize(MessageParcel& input, MessageParcel& output) in EnhanceClientDeserialize() argument 102 return CopyMessageParcel(input, output); in EnhanceClientDeserialize() 105 bool SecCompEnhanceAdapter::EnhanceSrvSerialize(MessageParcel& input, MessageParcel& output) in EnhanceSrvSerialize() argument 108 return CopyMessageParcel(input, output); in EnhanceSrvSerialize() 111 bool SecCompEnhanceAdapter::EnhanceSrvDeserialize(MessageParcel& input, MessageParcel& output, in EnhanceSrvDeserialize() argument 115 return CopyMessageParcel(input, output); in EnhanceSrvDeserialize() 118 bool WriteMessageParcel(MessageParcel& input, MessageParcel& output) in WriteMessageParcel() argument 120 size_t bufLen = input in WriteMessageParcel() 144 ReadMessageParcel(MessageParcel& input, MessageParcel& output) ReadMessageParcel() argument 169 EnhanceClientSerialize(MessageParcel& input, MessageParcel& output) EnhanceClientSerialize() argument 175 EnhanceClientDeserialize(MessageParcel& input, MessageParcel& output) EnhanceClientDeserialize() argument 181 EnhanceSrvSerialize(MessageParcel& input, MessageParcel& output) EnhanceSrvSerialize() argument 187 EnhanceSrvDeserialize(MessageParcel& input, MessageParcel& output, MessageParcel& reply) EnhanceSrvDeserialize() argument [all...] |
/base/global/i18n/frameworks/intl/test/fuzztest/taboo_fuzzer/ |
H A D | taboo_fuzzer.cpp | 28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 30 tabooUtils.ReplaceCountryName(input, input, input); in DoSomethingInterestingWithMyAPI() 31 tabooUtils.ReplaceLanguageName(input, input, input); in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/audio/effect/test/unittest/ |
H A D | effect_control_test.cpp | 28 /* the input buffer len of the send command */
48 // input testcase setup step,setup invoked before each testcases
in SetUp() 69 // input testcase teardown step,teardown invoked after each testcases
in TearDown() 92 * @tc.desc: Verify the EffectControlEffectProcess function when the input parameter is invalid.
98 struct AudioEffectBuffer input = {0};
in HWTEST_F() local 101 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, controller_->EffectProcess(nullptr, &input, &output));
in HWTEST_F() 103 EXPECT_EQ(HDF_ERR_INVALID_PARAM, controller_->EffectProcess(controller_, &input, nullptr));
in HWTEST_F() 114 struct AudioEffectBuffer input = {0};
in HWTEST_F() local 117 int32_t ret = controller_->EffectProcess(controller_, &input, &output);
in HWTEST_F() 123 * @tc.desc: Verify the EffectControlSendCommand function when the input paramete 129 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 162 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 179 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 196 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 213 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 230 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 247 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 263 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 280 int8_t input[SEND_COMMAND_LEN] = {0}; HWTEST_F() local 329 struct AudioEffectBuffer input = {0}; HWTEST_F() local 345 struct AudioEffectBuffer input = {0}; HWTEST_F() local [all...] |
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/include/ |
H A D | conversion_filter.h | 41 * @param input A signal 45 double FilterLowResonant(double input, double cutoff, double resonance); 49 * @param input A signal 53 double FilterHighResonant(double input, double cutoff, double resonance); 58 * @param input A signal 62 double FilterBandPass(double input, double cutoff, double resonance); 67 * @param input A signal 70 double FilterLowPass(double input, double cutoff); 75 * @param input A sampling value. 78 double FilterHighPass(double input, doubl [all...] |
/base/telephony/sms_mms/frameworks/native/mms/src/utils/ |
H A D | mms_quoted_printable.cpp | 29 std::string MmsQuotedPrintable::Encode(const std::string &input)
in Encode() argument 36 for (auto byte : input) {
in Encode() 65 const char *input = src.data();
in Decode() local 67 if (strncmp(input, "=/r/n", END_LINE_CHAR_NUM) == 0) {
in Decode() 68 input += END_LINE_CHAR_NUM;
in Decode() 72 if (*input == '=' && sscanf_s(input, "=%02X", &hexChar) >= 1) {
in Decode() 74 input += END_LINE_CHAR_NUM;
in Decode() 77 tempBuffer[outLength] = *input;
in Decode() 78 input in Decode() [all...] |
/base/global/i18n/frameworks/intl/test/fuzztest/regexrule_fuzzer/ |
H A D | regexrule_fuzzer.cpp | 31 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 32 icu::UnicodeString regex(input.c_str()); in DoSomethingInterestingWithMyAPI() 33 RegexRule* regexRule = new RegexRule(regex, input, input, input, input); in DoSomethingInterestingWithMyAPI() 40 phoneNumberUtil->Parse(input, country, &phoneNumber); in DoSomethingInterestingWithMyAPI() 42 PhoneNumberMatch* possibleNumber = new PhoneNumberMatch(size, input, phoneNumber); in DoSomethingInterestingWithMyAPI()
|
/base/hiviewdfx/faultloggerd/test/unittest/services/ |
H A D | faultlogger_config_test.cpp | 48 int input = 100; in HWTEST_F() local 49 bool ret = config->SetLogFileMaxNumber(input); in HWTEST_F() 52 EXPECT_EQ(true, input == output); in HWTEST_F() 67 long input = 100; in HWTEST_F() local 68 bool ret = config->SetLogFileMaxSize(input); in HWTEST_F() 71 EXPECT_EQ(true, input == output); in HWTEST_F() 86 std::string input = "/data/log.txt"; in HWTEST_F() local 87 bool ret = config->SetLogFilePath(input); in HWTEST_F() 90 EXPECT_EQ(true, input == output); in HWTEST_F()
|
/base/global/i18n/frameworks/intl/test/fuzztest/datetimefilter_fuzzer/ |
H A D | datetimefilter_fuzzer.cpp | 32 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingTestWithMyAPI() 33 DateTimeRule* dateTimeRule = new DateTimeRule(input); in DoSomethingTestWithMyAPI() 34 DateTimeFilter* dateTimeFilter = new DateTimeFilter(input, dateTimeRule); in DoSomethingTestWithMyAPI() 38 MatchedDateTimeInfo* matchedDateTimeInfo2 = new MatchedDateTimeInfo(size, size, input); in DoSomethingTestWithMyAPI() 41 icu::UnicodeString hyphen(input.c_str()); in DoSomethingTestWithMyAPI() 53 DateTimeMatched* dateTimeMatched = new DateTimeMatched(input); in DoSomethingTestWithMyAPI() 54 icu::UnicodeString message(input.c_str()); in DoSomethingTestWithMyAPI()
|
/base/global/i18n/frameworks/intl/test/fuzztest/localeconfigget_fuzzer/ |
H A D | localeconfigget_fuzzer.cpp | 34 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 35 LocaleConfig::IsSuggested(input); in DoSomethingInterestingWithMyAPI() 37 if (input.length() > minimalLocaleLength) { in DoSomethingInterestingWithMyAPI() 38 std::string firstInput(input, 0, minimalLocaleLength); in DoSomethingInterestingWithMyAPI() 39 std::string secondInput(input, minimalLocaleLength); in DoSomethingInterestingWithMyAPI() 46 LocaleConfig::IsRTL(input); in DoSomethingInterestingWithMyAPI() 47 LocaleConfig::GetValidLocale(input); in DoSomethingInterestingWithMyAPI()
|
/base/global/i18n/frameworks/intl/test/fuzztest/holidaymanager_fuzzer/ |
H A D | holidaymanager_fuzzer.cpp | 28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 29 HolidayManager* holidayManager = new HolidayManager(input.c_str()); in DoSomethingInterestingWithMyAPI() 34 localNameList1.push_back({input, input}); in DoSomethingInterestingWithMyAPI() 35 HolidayInfoItem item1 = {input, size, size, size, localNameList1}; in DoSomethingInterestingWithMyAPI() 37 holidayDataMap.insert({input, infoList}); in DoSomethingInterestingWithMyAPI()
|
/base/global/i18n/frameworks/intl/test/fuzztest/collator_fuzzer/ |
H A D | collator_fuzzer.cpp | 29 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 30 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI() 32 options[input] = input; in DoSomethingInterestingWithMyAPI() 34 collator.Compare(input, "for test"); in DoSomethingInterestingWithMyAPI()
|
/base/inputmethod/imf/common/include/ |
H A D | itypes_util.h | 38 static bool Marshalling(bool input, MessageParcel &data); 41 static bool Marshalling(uint32_t input, MessageParcel &data); 44 static bool Marshalling(int32_t input, MessageParcel &data); 47 static bool Marshalling(uint64_t input, MessageParcel &data); 50 static bool Marshalling(double input, MessageParcel &data); 53 static bool Marshalling(const std::u16string &input, MessageParcel &data); 56 static bool Marshalling(const std::string &input, MessageParcel &data); 59 static bool Marshalling(const std::vector<uint8_t> &input, MessageParcel &data); 62 static bool Marshalling(const sptr<IRemoteObject> &input, MessageParcel &data); 65 static bool Marshalling(const Property &input, MessageParce [all...] |
/base/powermgr/power_manager/utils/shell/src/ |
H A D | main.cpp | 37 std::string input; in Loop() local 40 std::getline(std::cin, input); in Loop() 41 while (input != "exit") { in Loop() 42 std::stringstream ss(input); in Loop() 45 for (; std::getline(ss, input, ' ') && argc < MAX_PARAMETER_COUNT; ++argc) { in Loop() 46 if (input == "exit") { in Loop() 49 ret = strcpy_s(argv[argc], MAX_PARAMETER_LENGTH, input.c_str()); in Loop() 51 std::cout << "invalid input, the string is too long" << std::endl; in Loop() 61 std::getline(std::cin, input); in Loop()
|
/base/security/security_component_manager/test/fuzztest/security_component/service/unregistersecuritycomponentstub_fuzzer/ |
H A D | unregistersecuritycomponentstub_fuzzer.cpp | 38 MessageParcel input; in RegisterSecurityComponentStub() local 41 if (!input.WriteInterfaceToken(ISecCompService::GetDescriptor())) { in RegisterSecurityComponentStub() 51 SecCompEnhanceAdapter::EnhanceClientSerialize(rawData, input); in RegisterSecurityComponentStub() 55 service->OnRemoteRequest(code, input, reply, option); in RegisterSecurityComponentStub() 73 MessageParcel input; in UnregisterSecurityComponentStubFuzzTest() local 79 if (!input.WriteInterfaceToken(ISecCompService::GetDescriptor())) { in UnregisterSecurityComponentStubFuzzTest() 85 SecCompEnhanceAdapter::EnhanceClientSerialize(rawData, input); in UnregisterSecurityComponentStubFuzzTest() 89 service->OnRemoteRequest(code, input, reply, option); in UnregisterSecurityComponentStubFuzzTest()
|
/base/security/security_component_manager/test/fuzztest/security_component/service/updatesecuritycomponentstub_fuzzer/ |
H A D | updatesecuritycomponentstub_fuzzer.cpp | 38 MessageParcel input; in RegisterSecurityComponentStub() local 41 if (!input.WriteInterfaceToken(ISecCompService::GetDescriptor())) { in RegisterSecurityComponentStub() 51 SecCompEnhanceAdapter::EnhanceClientSerialize(rawData, input); in RegisterSecurityComponentStub() 55 service->OnRemoteRequest(code, input, reply, option); in RegisterSecurityComponentStub() 73 MessageParcel input; in UpdateSecurityComponentStubFuzzTest() local 76 if (!input.WriteInterfaceToken(ISecCompService::GetDescriptor())) { in UpdateSecurityComponentStubFuzzTest() 89 SecCompEnhanceAdapter::EnhanceClientSerialize(rawData, input); in UpdateSecurityComponentStubFuzzTest() 93 service->OnRemoteRequest(code, input, reply, option); in UpdateSecurityComponentStubFuzzTest()
|
/base/global/i18n/frameworks/intl/test/fuzztest/indexutil_fuzzer/ |
H A D | indexutil_fuzzer.cpp | 27 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 29 IndexUtil indexUtil(input); in DoSomethingInterestingWithMyAPI() 31 indexUtil.AddLocale(input); in DoSomethingInterestingWithMyAPI() 32 indexUtil.GetIndex(input); in DoSomethingInterestingWithMyAPI()
|
/base/global/i18n/frameworks/intl/test/fuzztest/relativetimeformat_fuzzer/ |
H A D | relativetimeformat_fuzzer.cpp | 32 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 33 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI() 35 options[input] = input; in DoSomethingInterestingWithMyAPI() 39 formatter.Format(number, input); in DoSomethingInterestingWithMyAPI() 46 formatter.FormatToParts(number2, input, timeVector); in DoSomethingInterestingWithMyAPI()
|