Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 236) sorted by relevance

12345678910

/base/inputmethod/imf/frameworks/inputmethod_controller/src/
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(const std::string &input, MessageParcel &data) in Marshalling() argument
75 return data.WriteString(input); in Marshalling()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/
Ddfx_maps_test.cpp53 uint64_t input = 1; variable
55 dfxmap->SetMapBegin(input);
57 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest001 Failed";
70 uint64_t input = 165; variable
72 dfxmap->SetMapBegin(input);
74 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest002 Failed";
87 uint64_t input = -1; variable
89 dfxmap->SetMapBegin(input);
91 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest003 Failed";
104 uint64_t input = 1; variable
[all …]
/base/global/i18n/frameworks/intl/test/fuzztest/character_fuzzer/
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()
/base/global/i18n/frameworks/intl/test/fuzztest/phonenumberformat_fuzzer/
Dphonenumberformat_fuzzer.cpp28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
30 options[input] = input; in DoSomethingInterestingWithMyAPI()
31 PhoneNumberFormat formatter(input, options); in DoSomethingInterestingWithMyAPI()
32 formatter.isValidPhoneNumber(input); in DoSomethingInterestingWithMyAPI()
33 formatter.format(input); in DoSomethingInterestingWithMyAPI()
34 formatter.getLocationName(input, input); in DoSomethingInterestingWithMyAPI()
35 PhoneNumberFormat::CreateInstance(input, options); in DoSomethingInterestingWithMyAPI()
/base/telephony/sms_mms/frameworks/native/mms/src/utils/
Dmms_quoted_printable.cpp24 std::string MmsQuotedPrintable::Encode(const std::string &input) in Encode() argument
31 for (auto byte : input) { in Encode()
60 const char *input = src.data(); in Decode() local
62 if (strncmp(input, "=/r/n", endLineCharNum) == 0) { in Decode()
63 input += endLineCharNum; in Decode()
67 if (*input == '=' && sscanf_s(input, "=%02X", &hexChar) >= 1) { in Decode()
69 input += endLineCharNum; in Decode()
72 tempBuffer[outLength] = *input; in Decode()
73 input++; in Decode()
/base/inputmethod/imf/
DREADME.md5 …work, is used to connect the application and input method. the application can input text through …
16 The input method framework currently has four modules, as follows:
22 …n and input method framework, including the binding between application and input method service, …
28 …mediate bridge between input method framework service and input method delivery, including monitor…
34 Function: as the core of the input method framework, the main processing logic of the input method …
40 Function: the temporarily exposed JS interface is mainly reserved for calling input methods
44 …ck in the edit attribute control to invoke the default input method application through the input
46 2. Typing can be carried out through the input method application, and characters can be input to t…
/base/hiviewdfx/faultloggerd/test/unittest/services/src/
Dfaultlogger_config_test.cpp53 int input = 100; variable
54 bool ret = config->SetLogFileMaxNumber(input);
57 EXPECT_EQ(true, input == output);
72 long input = 100; variable
73 bool ret = config->SetLogFileMaxSize(input);
76 EXPECT_EQ(true, input == output);
91 std::string input = "/data/log.txt"; variable
92 bool ret = config->SetLogFilePath(input);
95 EXPECT_EQ(true, input == output);
/base/global/i18n/frameworks/intl/test/fuzztest/localeconfigget_fuzzer/
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/relativetimeformat_fuzzer/
Drelativetimeformat_fuzzer.cpp28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
29 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI()
31 options[input] = input; in DoSomethingInterestingWithMyAPI()
35 formatter.Format(number, input); in DoSomethingInterestingWithMyAPI()
38 formatter.FormatToParts(number, input, timeVector); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/fuzztest/collator_fuzzer/
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/hiviewdfx/hiview/base/utility/
Dstring_util.cpp207 string GetLeftSubstr(const string& input, const string& split) in GetLeftSubstr() argument
209 size_t pos = input.find(split, 0); in GetLeftSubstr()
211 return input; in GetLeftSubstr()
213 return input.substr(0, pos); in GetLeftSubstr()
216 string GetRightSubstr(const string& input, const string& split) in GetRightSubstr() argument
218 size_t pos = input.find(split, 0); in GetRightSubstr()
222 return input.substr(pos + split.size(), input.size() - pos); in GetRightSubstr()
225 string GetRleftSubstr(const string& input, const string& split) in GetRleftSubstr() argument
227 size_t pos = input.rfind(split, string::npos); in GetRleftSubstr()
229 return input; in GetRleftSubstr()
[all …]
/base/telephony/sms_mms/test/unittest/
Dgsm_sms_sender_test.cpp327 std::string input; in TestAddSimMessage() local
329 std::cin >> input; in TestAddSimMessage()
330 uint32_t status = std::atoi(input.c_str()); in TestAddSimMessage()
354 std::string input; in TestDelSimMessage() local
356 std::cin >> input; in TestDelSimMessage()
357 uint32_t msgIndex = std::atoi(input.c_str()); in TestDelSimMessage()
380 std::string input; in TestUpdateSimMessage() local
382 std::cin >> input; in TestUpdateSimMessage()
383 uint32_t msgIndex = std::atoi(input.c_str()); in TestUpdateSimMessage()
445 std::string input; in TestEnableCBRangeConfig() local
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/aes/src/
Dcipher_3des_openssl.c146 static HcfResult AllocateOutput(HcfBlob *input, HcfBlob *output) in AllocateOutput() argument
149 if (IsBlobValid(input)) { in AllocateOutput()
150 outLen += input->len; in AllocateOutput()
161 static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdate() argument
163 if ((self == NULL) || (input == NULL) || (output == NULL)) { in EngineUpdate()
178 HcfResult res = AllocateOutput(input, output); in EngineUpdate()
185 input->data, input->len); in EngineUpdate()
203 static HcfResult DesDoFinal(CipherData *data, HcfBlob *input, HcfBlob *output) in DesDoFinal() argument
208 if (IsBlobValid(input)) { in DesDoFinal()
210 input->data, input->len); in DesDoFinal()
[all …]
Dcipher_aes_openssl.c447 static HcfResult CommonUpdate(CipherData *data, HcfBlob *input, HcfBlob *output) in CommonUpdate() argument
450 input->data, input->len); in CommonUpdate()
459 static HcfResult AeadUpdate(CipherData *data, HCF_ALG_PARA_VALUE mode, HcfBlob *input, HcfBlob *out… in AeadUpdate() argument
462 …if (EVP_CipherUpdate(data->ctx, NULL, (int *)&output->len, NULL, input->len) != HCF_OPENSSL_SUCCES… in AeadUpdate()
475 ret = EVP_CipherUpdate(data->ctx, output->data, (int *)&output->len, input->data, input->len); in AeadUpdate()
484 static HcfResult AllocateOutput(HcfBlob *input, HcfBlob *output, bool *isUpdateInput) in AllocateOutput() argument
487 if (IsBlobValid(input)) { in AllocateOutput()
488 outLen += input->len; in AllocateOutput()
500 static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdate() argument
502 if ((self == NULL) || (input == NULL) || (output == NULL)) { in EngineUpdate()
[all …]
/base/web/webview/test/unittest/ohos_nweb/
Dnweb_input_event_test.cpp107 std::shared_ptr<NWebInputEventConsumer> input = std::make_shared<NWebInputEventConsumer>(mock); variable
108 EXPECT_NE(input, nullptr);
109 result = input->OnInputEvent(event);
120 result = input->OnInputEvent(keyEvent);
126 result = input->OnInputEvent(keyEvent);
131 input->DispatchKeyEvent(keyEvent);
132 input->DispatchPointerEvent(event);
133 result = input->OnInputEvent(event);
135 result = input->OnInputEvent(keyEvent);
/base/security/selinux/interfaces/tools/service_check/
Dtest.cpp65 static void SetOptions(int argc, char *argv[], const option *options, testInput &input) in SetOptions() argument
77 input.serviceName = optarg; in SetOptions()
81 input.isHdf = true; in SetOptions()
85 input.cmd = 'a'; in SetOptions()
89 input.cmd = 'g'; in SetOptions()
93 input.cmd = 'r'; in SetOptions()
97 input.cmd = 'l'; in SetOptions()
197 testInput input; in main() local
198 SetOptions(argc, argv, options, input); in main()
199 if (!input.isHdf) { in main()
[all …]
/base/security/selinux/interfaces/tools/hap_restorecon/
Dtest.cpp64 static void SetOptions(int argc, char *argv[], const option *options, testInput &input) in SetOptions() argument
76 input.apl = optarg; in SetOptions()
80 input.domain = true; in SetOptions()
84 input.path = optarg; in SetOptions()
91 input.multiPath.emplace_back(tmp); in SetOptions()
96 input.name = optarg; in SetOptions()
100 input.recurse = optarg; in SetOptions()
/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c45 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSince1970() argument
51 time_t time = (time_t)(input / SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
60 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
64 bool GetDateTimeByMillisecondSinceBoot(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSinceBoot() argument
74 return GetDateTimeByMillisecondSince1970(input + compensate, datetime); in GetDateTimeByMillisecondSinceBoot()
/base/inputmethod/imf/frameworks/inputmethod_controller/include/
Ditypes_util.h34 static bool Marshalling(bool input, MessageParcel &data);
37 static bool Marshalling(uint32_t input, MessageParcel &data);
40 static bool Marshalling(int32_t input, MessageParcel &data);
43 static bool Marshalling(uint64_t input, MessageParcel &data);
46 static bool Marshalling(const std::u16string &input, MessageParcel &data);
49 static bool Marshalling(const std::string &input, MessageParcel &data);
52 static bool Marshalling(const std::vector<uint8_t> &input, MessageParcel &data);
55 static bool Marshalling(const sptr<IRemoteObject> &input, MessageParcel &data);
58 static bool Marshalling(const Property &input, MessageParcel &data);
61 static bool Marshalling(const SubProperty &input, MessageParcel &data);
[all …]
/base/global/i18n/frameworks/intl/test/fuzztest/numberformat_fuzzer/
Dnumberformat_fuzzer.cpp28 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
29 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI()
31 options[input] = input; in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/fuzztest/utils_fuzzer/
Dutils_fuzzer.cpp25 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
28 sep = input[0]; in DoSomethingInterestingWithMyAPI()
31 Split(input, sep, dest); in DoSomethingInterestingWithMyAPI()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_session_max_test.cpp117 struct HksBlob input = { sizeof(tmpInput), tmpInput }; in SessionMaxTest() local
122 EXPECT_EQ(HksUpdate(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); in SessionMaxTest()
123 EXPECT_EQ(HksFinish(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); in SessionMaxTest()
125 EXPECT_EQ(HksUpdate(&handleBlob, paramSet, &input, &output), HKS_SUCCESS) << "i:" << i; in SessionMaxTest()
126 EXPECT_EQ(HksFinish(&handleBlob, paramSet, &input, &output), HKS_SUCCESS) << "i:" << i; in SessionMaxTest()
169 struct HksBlob input = { sizeof(tmpInput), tmpInput }; variable
174 EXPECT_EQ(HksUpdate(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST);
175 EXPECT_EQ(HksFinish(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST);
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodability/
Djs_text_input_client_engine.h30 …SendKeyFunctionContext(InputAction input, OutputAction output) : Context(std::move(input), std::mo… in SendKeyFunctionContext()
52 …MoveCursorContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in MoveCursorContext()
74 …DeleteForwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move… in DeleteForwardContext()
96 …DeleteBackwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::mov… in DeleteBackwardContext()
118 …InsertTextContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in InsertTextContext()
140 …GetForwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in GetForwardContext()
162 …GetBackwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(o… in GetBackwardContext()
184 GetEditorAttributeContext(InputAction input, OutputAction output) in GetEditorAttributeContext()
185 : Context(std::move(input), std::move(output)) { }; in GetEditorAttributeContext()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_verify_test.cpp127 HcfBlob input = {.data = plan, .len = strlen((char *)plan)}; variable
128 res = verify->update((HcfVerify *)generator, &input);
147 HcfBlob input = {.data = plan, .len = strlen((char *)plan)}; variable
148 bool result = verify->verify((HcfVerify *)generator, &input, &input);
164 HcfBlob input = {.data = plan, .len = strlen((char *)plan)}; variable
165 res = verify->update(verify, &input);
180 HcfBlob input = {.data = plan, .len = strlen((char *)plan)}; variable
181 bool result = verify->verify(verify, NULL, &input);
272 HcfBlob input = {.data = plan, .len = strlen((char *)plan)}; variable
279 res = sign->sign(sign, &input, &verifyData);
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rsa/src/
Dcipher_rsa_openssl.c195 static HcfResult EngineUpdata(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdata() argument
199 (void)input; in EngineUpdata()
204 static HcfResult DoRsaCrypt(EVP_PKEY_CTX *ctx, HcfBlob *input, HcfBlob *output, int32_t mode) in DoRsaCrypt() argument
208 ret = EVP_PKEY_encrypt(ctx, output->data, &output->len, input->data, input->len); in DoRsaCrypt()
210 ret = EVP_PKEY_decrypt(ctx, output->data, &output->len, input->data, input->len); in DoRsaCrypt()
222 static HcfResult EngineDoFinal(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineDoFinal() argument
225 if (self == NULL || input == NULL || input->data == NULL) { in EngineDoFinal()
241 HcfResult ret = DoRsaCrypt(impl->ctx, input, output, attr.mode); in EngineDoFinal()
249 ret = DoRsaCrypt(impl->ctx, input, output, attr.mode); in EngineDoFinal()

12345678910