Home
last modified time | relevance | path

Searched refs:input (Results 1 - 25 of 320) sorted by relevance

12345678910>>...13

/base/global/i18n/frameworks/intl/test/fuzztest/phonenumberformat_fuzzer/
H A Dphonenumberformat_fuzzer.cpp30 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 Ditypes_util.cpp33 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 Ddatetimerule_fuzzer.cpp29 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 Ditypes_util_test.cpp98 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 Dcharacter_fuzzer.cpp28 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 Dhks_storage_test.cpp65 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 Dconversion_filter.cpp33 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 Drulesengine_fuzzer.cpp28 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 Dsec_comp_enhance_adapter.cpp93 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 Dtaboo_fuzzer.cpp28 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()
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/include/
H A Dconversion_filter.h41 * @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 Dmms_quoted_printable.cpp29 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 Dregexrule_fuzzer.cpp31 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 Dfaultlogger_config_test.cpp48 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 Ddatetimefilter_fuzzer.cpp32 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 Dlocaleconfigget_fuzzer.cpp34 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 Dholidaymanager_fuzzer.cpp28 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 Dcollator_fuzzer.cpp29 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/powermgr/power_manager/utils/shell/src/
H A Dmain.cpp37 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 Dunregistersecuritycomponentstub_fuzzer.cpp38 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 Dupdatesecuritycomponentstub_fuzzer.cpp38 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/inputmethod/imf/common/include/
H A Ditypes_util.h38 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/global/i18n/frameworks/intl/test/fuzztest/indexutil_fuzzer/
H A Dindexutil_fuzzer.cpp27 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 Drelativetimeformat_fuzzer.cpp32 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()
/base/telephony/sms_mms/test/unittest/
H A Dgsm_sms_sender_test.cpp254 std::string input; in TestAddSimMessage() local
256 std::cin >> input; in TestAddSimMessage() local
257 uint32_t status = std::atoi(input.c_str()); in TestAddSimMessage()
281 std::string input; in TestDelSimMessage() local
283 std::cin >> input; in TestDelSimMessage() local
284 uint32_t msgIndex = std::atoi(input.c_str()); in TestDelSimMessage()
307 std::string input; in TestUpdateSimMessage() local
309 std::cin >> input; in TestUpdateSimMessage() local
310 uint32_t msgIndex = std::atoi(input.c_str()); in TestUpdateSimMessage()
373 std::string input; in TestEnableCBRangeConfig() local
374 std::cin >> input; TestEnableCBRangeConfig() local
377 std::cin >> input; TestEnableCBRangeConfig() local
398 std::string input; TestDisableCBRangeConfig() local
400 std::cin >> input; TestDisableCBRangeConfig() local
403 std::cin >> input; TestDisableCBRangeConfig() local
425 std::string input; TestEnableCBConfig() local
427 std::cin >> input; TestEnableCBConfig() local
449 std::string input; TestDisableCBConfig() local
451 std::cin >> input; TestDisableCBConfig() local
465 std::string input; TestSetDefaultSmsSlotId() local
467 std::cin >> input; TestSetDefaultSmsSlotId() local
492 std::string input; TestSplitMessage() local
509 std::string input; TestGetSmsSegmentsInfo() local
534 std::string input; TestIsImsSmsSupported() local
552 std::string input; TestSetImsSmsConfig() local
582 std::string input; TestAddBlockPhone() local
601 std::string input; TestRemoveBlockPhone() local
[all...]

Completed in 10 milliseconds

12345678910>>...13