Home
last modified time | relevance | path

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

12345678910>>...12

/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
Ditypes_util.cpp35 bool ITypesUtil::Marshalling(bool input, MessageParcel &data) in Marshalling() argument
37 return data.WriteBool(input); in Marshalling()
45 bool ITypesUtil::Marshalling(uint32_t input, MessageParcel &data) in Marshalling() argument
47 return data.WriteUint32(input); in Marshalling()
55 bool ITypesUtil::Marshalling(int32_t input, MessageParcel &data) in Marshalling() argument
57 return data.WriteInt32(input); in Marshalling()
65 bool ITypesUtil::Marshalling(uint64_t input, MessageParcel &data) in Marshalling() argument
67 return data.WriteUint64(input); in Marshalling()
75 bool ITypesUtil::Marshalling(double input, MessageParcel &data) in Marshalling() argument
77 return data.WriteDouble(input); in Marshalling()
[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/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/core/src/
Dhks_storage_test.cpp67 const char input = '#'; variable
69 ResumeInvalidCharacter(input, &outPut);
81 const char input = '$'; variable
83 ResumeInvalidCharacter(input, &outPut);
95 const char input = '%'; variable
97 ResumeInvalidCharacter(input, &outPut);
109 const char input = '&'; variable
111 ResumeInvalidCharacter(input, &outPut);
123 const char input = '('; variable
125 ResumeInvalidCharacter(input, &outPut);
[all …]
/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/hiviewdfx/faultloggerd/test/unittest/services/
Dfaultlogger_config_test.cpp48 int input = 100; variable
49 bool ret = config->SetLogFileMaxNumber(input);
52 EXPECT_EQ(true, input == output);
67 long input = 100; variable
68 bool ret = config->SetLogFileMaxSize(input);
71 EXPECT_EQ(true, input == output);
86 std::string input = "/data/log.txt"; variable
87 bool ret = config->SetLogFilePath(input);
90 EXPECT_EQ(true, input == output);
105 std::string input = "/data/debug/log.txt"; variable
[all …]
/base/telephony/sms_mms/frameworks/native/mms/src/utils/
Dmms_quoted_printable.cpp30 std::string MmsQuotedPrintable::Encode(const std::string &input) in Encode() argument
37 for (auto byte : input) { in Encode()
68 const char *input = src.data(); in Decode() local
70 if (strncmp(input, "=/r/n", endLineCharNum) == 0) { in Decode()
71 input += endLineCharNum; in Decode()
75 if (*input == '=' && sscanf_s(input, "=%02X", &hexChar) >= 1) { in Decode()
77 input += endLineCharNum; in Decode()
80 tempBuffer[outLength] = *input; in Decode()
81 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/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/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_sm2_openssl.c115 static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdate() argument
119 (void)input; in EngineUpdate()
124 static size_t GetTextLen(HcfCipherSm2GeneratorSpiImpl *impl, HcfBlob *input, int32_t mode) in GetTextLen() argument
128 …if (Openssl_sm2_ciphertext_size(impl->sm2Key, impl->sm2Digest, input->len, &textLen) != HCF_OPENSS… in GetTextLen()
133 if (Openssl_sm2_plaintext_size(input->data, input->len, &textLen) != HCF_OPENSSL_SUCCESS) { in GetTextLen()
143 static HcfResult DoSm2EncryptAndDecrypt(HcfCipherSm2GeneratorSpiImpl *impl, HcfBlob *input, HcfBlob… in DoSm2EncryptAndDecrypt() argument
153 …ret = Openssl_sm2_encrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &tex… in DoSm2EncryptAndDecrypt()
155 …ret = Openssl_sm2_decrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &tex… in DoSm2EncryptAndDecrypt()
172 static HcfResult DoSm2Crypt(HcfCipherSm2GeneratorSpiImpl *impl, HcfBlob *input, HcfBlob *output, in… in DoSm2Crypt() argument
174 size_t textLen = GetTextLen(impl, input, mode); in DoSm2Crypt()
[all …]
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.c426 static HcfResult CommonUpdate(CipherData *data, HcfBlob *input, HcfBlob *output) in CommonUpdate() argument
429 input->data, input->len); in CommonUpdate()
438 static HcfResult AeadUpdate(CipherData *data, HcfAlgParaValue mode, HcfBlob *input, HcfBlob *output) in AeadUpdate() argument
441 …if (Openssl_EVP_CipherUpdate(data->ctx, NULL, (int *)&output->len, NULL, input->len) != HCF_OPENSS… in AeadUpdate()
454 …ret = Openssl_EVP_CipherUpdate(data->ctx, output->data, (int *)&output->len, input->data, input->l… in AeadUpdate()
463 static HcfResult AllocateOutput(HcfBlob *input, HcfBlob *output, bool *isUpdateInput) in AllocateOutput() argument
466 if (IsBlobValid(input)) { in AllocateOutput()
467 outLen += input->len; in AllocateOutput()
479 static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdate() argument
481 if ((self == NULL) || (input == NULL) || (output == NULL)) { in EngineUpdate()
[all …]
Dcipher_sm4_openssl.c247 static HcfResult AllocateOutput(HcfBlob* input, HcfBlob* output) in AllocateOutput() argument
250 if (IsBlobValid(input)) { in AllocateOutput()
251 outLen += input->len; in AllocateOutput()
262 static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBlob *output) in EngineUpdate() argument
264 if ((self == NULL) || (input == NULL) || (output == NULL)) { in EngineUpdate()
280 if (AllocateOutput(input, output) == HCF_SUCCESS) { in EngineUpdate()
282 input->data, input->len) != HCF_OPENSSL_SUCCESS) { in EngineUpdate()
298 static HcfResult SM4DoFinal(CipherData* data, HcfBlob* input, HcfBlob* output) in SM4DoFinal() argument
303 if (IsBlobValid(input)) { in SM4DoFinal()
305 input->data, input->len); in SM4DoFinal()
[all …]
/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.cpp239 std::string input; in TestAddSimMessage() local
241 std::cin >> input; in TestAddSimMessage()
242 uint32_t status = std::atoi(input.c_str()); in TestAddSimMessage()
266 std::string input; in TestDelSimMessage() local
268 std::cin >> input; in TestDelSimMessage()
269 uint32_t msgIndex = std::atoi(input.c_str()); in TestDelSimMessage()
292 std::string input; in TestUpdateSimMessage() local
294 std::cin >> input; in TestUpdateSimMessage()
295 uint32_t msgIndex = std::atoi(input.c_str()); in TestUpdateSimMessage()
357 std::string input; in TestEnableCBRangeConfig() local
[all …]
/base/security/selinux_adapter/interfaces/tools/hap_restorecon/
Dtest.cpp65 static void SetOptions(int argc, char *argv[], const option *options, testInput &input) in SetOptions() argument
77 input.apl = optarg; in SetOptions()
81 input.domain = true; in SetOptions()
85 input.multiPath.emplace_back(optarg); in SetOptions()
92 input.multiPath.emplace_back(tmp); in SetOptions()
97 input.name = optarg; in SetOptions()
101 input.recurse = optarg; in SetOptions()
105 input.isPreinstalledApp = true; in SetOptions()
/base/global/i18n/frameworks/intl/test/fuzztest/localeconfigset_fuzzer/
Dlocaleconfigset_fuzzer.cpp27 std::string input(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
28 LocaleConfig::SetSystemLanguage(input); in DoSomethingInterestingWithMyAPI()
29 LocaleConfig::SetSystemRegion(input); in DoSomethingInterestingWithMyAPI()
30 LocaleConfig::SetSystemLocale(input); in DoSomethingInterestingWithMyAPI()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
Ditypes_util.h36 static bool Marshalling(bool input, MessageParcel &data);
39 static bool Marshalling(uint32_t input, MessageParcel &data);
42 static bool Marshalling(int32_t input, MessageParcel &data);
45 static bool Marshalling(uint64_t input, MessageParcel &data);
48 static bool Marshalling(double input, MessageParcel &data);
51 static bool Marshalling(const std::u16string &input, MessageParcel &data);
54 static bool Marshalling(const std::string &input, MessageParcel &data);
57 static bool Marshalling(const std::vector<uint8_t> &input, MessageParcel &data);
60 static bool Marshalling(const sptr<IRemoteObject> &input, MessageParcel &data);
63 static bool Marshalling(const Property &input, MessageParcel &data);
[all …]
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_log_test.cpp68 static int32_t ConstructBuf(const struct CertInfoLen *input, struct CmBlob *outData) in ConstructBuf() argument
72 if (!input->isCertCountValid) { in ConstructBuf()
73 outData->size = sizeof(input->certCount) - 1; in ConstructBuf()
76 …if (memcpy_s(outData->data + offset, outData->size - offset, &input->certCount, sizeof(input->cert… in ConstructBuf()
79 offset += sizeof(input->certCount); in ConstructBuf()
82 if (!input->isSubjectNameLenValid) { in ConstructBuf()
86 if (memcpy_s(outData->data + offset, outData->size - offset, &input->subjectNameLen, in ConstructBuf()
87 sizeof(input->subjectNameLen)) != EOK) { in ConstructBuf()
90 offset += sizeof(input->subjectNameLen) + ALIGN_SIZE(input->subjectNameLen); /* len valid */ in ConstructBuf()
93 if (!input->isStatusValid) { in ConstructBuf()
[all …]
/base/security/selinux_adapter/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/device_security_level/baselib/utils/src/
Dutils_datetime.c55 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSince1970() argument
61 time_t time = (time_t)(input / SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
70 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
74 bool GetDateTimeByMillisecondSinceBoot(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSinceBoot() argument
84 return GetDateTimeByMillisecondSince1970(input + compensate, datetime); in GetDateTimeByMillisecondSinceBoot()
/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/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_chipset_platform_encrypt_test.cpp406 HksChipsetPlatformTestCase Encrypt(HksCipsetPlatformEncryptInput &input) in Encrypt() argument
409 .salt = std::vector<uint8_t>(input.salt), in Encrypt()
410 .expectPlain = std::vector<uint8_t>(input.plainText), in Encrypt()
412 …HksBlob saltBlob = { .size = static_cast<uint32_t>(input.salt.size()), .data = input.salt.data() }; in Encrypt()
413 …HksBlob plainText = { .size = static_cast<uint32_t>(input.plainText.size()), .data = input.plainTe… in Encrypt()
416 int32_t ret = ExportX509ChipsetPlatformPubKey(saltBlob, input.scene, x509PubKey); in Encrypt()
423 res.hmacMsg = std::vector<uint8_t>(input.uuid); in Encrypt()
424 res.hmacMsg.insert(res.hmacMsg.end(), input.customInfo.begin(), input.customInfo.end()); in Encrypt()
470 int32_t ReadInputFile(const char *path, HksCipsetPlatformEncryptInput &input) in ReadInputFile() argument
489 input.scene = sceneValue->second; in ReadInputFile()
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_crypt_test.cpp110 uint8_t input[16] = "aaaaaaaaaaaaaaa"; variable
112 struct DlpBlob message = {15, input};
130 uint8_t input[16] = "aaaaaaaaaaaaaaa"; variable
133 struct DlpBlob message = {15, input};
174 uint8_t input[16] = "aaaaaaaaaaaaaaa"; variable
175 struct DlpBlob message = {15, input};
195 uint8_t input[16] = "aaaaaaaaaaaaaaa"; variable
197 struct DlpBlob message = {15, input};
215 uint8_t input[16] = "aaaaaaaaaaaaaaa"; variable
218 struct DlpBlob message = {15, input};
[all …]

12345678910>>...12