Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 172) sorted by relevance

1234567

/base/inputmethod/imf/frameworks/inputmethod_controller/src/
Ditypes_util.cpp38 bool ITypesUtil::Unmarshalling(bool &output, MessageParcel &data) in Unmarshalling() argument
40 return data.ReadBool(output); in Unmarshalling()
48 bool ITypesUtil::Unmarshalling(uint32_t &output, MessageParcel &data) in Unmarshalling() argument
50 return data.ReadUint32(output); in Unmarshalling()
58 bool ITypesUtil::Unmarshalling(int32_t &output, MessageParcel &data) in Unmarshalling() argument
60 return data.ReadInt32(output); in Unmarshalling()
68 bool ITypesUtil::Unmarshalling(uint64_t &output, MessageParcel &data) in Unmarshalling() argument
70 return data.ReadUint64(output); in Unmarshalling()
78 bool ITypesUtil::Unmarshalling(std::string &output, MessageParcel &data) in Unmarshalling() argument
80 return data.ReadString(output); in Unmarshalling()
[all …]
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/
Dhcfciphercreate_fuzzer.cpp38 HcfBlob output = {}; in AesEncrypt() local
45 ret = cipher->update(cipher, &input, &output); in AesEncrypt()
49 *cipherTextLen = output.len; in AesEncrypt()
50 if (output.len > 0 && output.data != nullptr) { in AesEncrypt()
51 (void)memcpy_s(cipherText, maxLen, output.data, output.len); in AesEncrypt()
53 if (output.data != nullptr) { in AesEncrypt()
54 HcfBlobDataClearAndFree(&output); in AesEncrypt()
55 output.data = nullptr; in AesEncrypt()
57 ret = cipher->doFinal(cipher, nullptr, &output); in AesEncrypt()
61 if (output.len > 0 && output.data != nullptr) { in AesEncrypt()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/
Ddfx_maps_test.cpp54 uint64_t output = 0; variable
56 output = dfxmap->GetMapBegin();
57 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest001 Failed";
71 uint64_t output = 0; variable
73 output = dfxmap->GetMapBegin();
74 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest002 Failed";
88 uint64_t output = 0; variable
90 output = dfxmap->GetMapBegin();
91 EXPECT_EQ(true, input == output) << "DfxMapsRequestTest003 Failed";
105 uint64_t output = 0; variable
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/aes/src/
Dcipher_aes_openssl.c447 static HcfResult CommonUpdate(CipherData *data, HcfBlob *input, HcfBlob *output) in CommonUpdate() argument
449 int32_t ret = EVP_CipherUpdate(data->ctx, output->data, (int *)&output->len, in CommonUpdate()
459 …ic HcfResult AeadUpdate(CipherData *data, HCF_ALG_PARA_VALUE mode, HcfBlob *input, HcfBlob *output) in AeadUpdate() argument
462 …if (EVP_CipherUpdate(data->ctx, NULL, (int *)&output->len, NULL, input->len) != HCF_OPENSSL_SUCCES… in AeadUpdate()
469 int32_t ret = EVP_CipherUpdate(data->ctx, NULL, (int *)&output->len, data->aad, data->aadLen); 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
491 output->data = (uint8_t *)HcfMalloc(outLen, 0); in AllocateOutput()
492 if (output->data == NULL) { in AllocateOutput()
496 output->len = outLen; in AllocateOutput()
[all …]
Dcipher_3des_openssl.c146 static HcfResult AllocateOutput(HcfBlob *input, HcfBlob *output) in AllocateOutput() argument
152 output->data = (uint8_t *)HcfMalloc(outLen, 0); in AllocateOutput()
153 if (output->data == NULL) { in AllocateOutput()
157 output->len = outLen; 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()
184 int32_t ret = EVP_CipherUpdate(data->ctx, output->data, (int *)&output->len, in EngineUpdate()
195 HcfBlobDataFree(output); in EngineUpdate()
198 FreeRedundantOutput(output); in EngineUpdate()
[all …]
/base/update/packaging_tools/test/
Dtest_build_update.py64 output = "./output_test/demo"
65 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('zip')
91 output = "./output_test/demo"
92 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('zip')
118 output = "./output_test"
119 pkg_re = len(os.listdir(output))
142 output = "./output_test/demo"
143 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('bin')
167 output = "./output_test/"
168 pkg_re = len(os.listdir(output))
[all …]
/base/update/updater/test/unittest/script/script_instruction/
Dscript_updateprocesser_unittest.cpp52 int32_t ExtractFile(const std::string &fileId, StreamPtr output) override in ExtractFile() argument
81 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserSetProcess() local
82 EXPECT_EQ(output.size(), 0); in TestUpdateProcesserSetProcess()
95 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserSetProcess() local
96 EXPECT_EQ(output.size(), 0); in TestUpdateProcesserSetProcess()
115 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess() local
116 EXPECT_EQ(output.size(), 0); in TestUpdateProcesserShowProcess()
124 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess() local
125 EXPECT_EQ(output.size(), 0); in TestUpdateProcesserShowProcess()
135 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess() local
[all …]
Dbasic_instruction_unittest.cpp82 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString01() local
83 ASSERT_EQ(output.size(), 1); in TestBasicInstructionIsSubString01()
84 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_INTEGER); in TestBasicInstructionIsSubString01()
85 EXPECT_EQ(output[0]->ToString(), "0"); in TestBasicInstructionIsSubString01()
93 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString01() local
94 ASSERT_EQ(output.size(), 1); in TestBasicInstructionIsSubString01()
95 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_INTEGER); in TestBasicInstructionIsSubString01()
96 EXPECT_EQ(output[0]->ToString(), "1"); in TestBasicInstructionIsSubString01()
107 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString02() local
108 EXPECT_EQ(output.size(), 0); in TestBasicInstructionIsSubString02()
[all …]
Dscript_registercmd_unittest.cpp34 int32_t ExtractFile(const std::string &fileId, StreamPtr output) override in ExtractFile() argument
62 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd01() local
63 EXPECT_EQ(output.size(), 0); in TestRegisterCmd01()
76 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd02() local
77 EXPECT_EQ(output.size(), 0); in TestRegisterCmd02()
90 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd03() local
91 EXPECT_EQ(output.size(), 0); in TestRegisterCmd03()
Dscript_loadscript_unittest.cpp33 int32_t ExtractFile(const std::string &fileId, StreamPtr output) override in ExtractFile() argument
61 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript01() local
62 EXPECT_EQ(output.size(), 0); in TestLoadScript01()
76 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript02() local
77 EXPECT_EQ(output.size(), 0); in TestLoadScript02()
91 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript03() local
92 EXPECT_EQ(output.size(), 0); in TestLoadScript03()
/base/hiviewdfx/faultloggerd/test/unittest/services/src/
Dfaultlogger_config_test.cpp56 int output = config->GetLogFileMaxNumber(); variable
57 EXPECT_EQ(true, input == output);
75 long output = config->GetLogFileMaxSize(); variable
76 EXPECT_EQ(true, input == output);
94 std::string output = config->GetLogFilePath(); variable
95 EXPECT_EQ(true, input == output);
/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
200 (void)output; 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
239 output->len = 0; in EngineDoFinal()
240 output->data = NULL; in EngineDoFinal()
241 HcfResult ret = DoRsaCrypt(impl->ctx, input, output, attr.mode); in EngineDoFinal()
246 LOGI("ouput data len is %zu.", output->len); in EngineDoFinal()
[all …]
/base/inputmethod/imf/frameworks/inputmethod_controller/include/
Ditypes_util.h35 static bool Unmarshalling(bool &output, MessageParcel &data);
38 static bool Unmarshalling(uint32_t &output, MessageParcel &data);
41 static bool Unmarshalling(int32_t &output, MessageParcel &data);
44 static bool Unmarshalling(uint64_t &output, MessageParcel &data);
47 static bool Unmarshalling(std::u16string &output, MessageParcel &data);
50 static bool Unmarshalling(std::string &output, MessageParcel &data);
53 static bool Unmarshalling(std::vector<uint8_t> &output, MessageParcel &data);
56 static bool Unmarshalling(sptr<IRemoteObject> &output, MessageParcel &data);
59 static bool Unmarshalling(Property &output, MessageParcel &data);
62 static bool Unmarshalling(SubProperty &output, MessageParcel &data);
[all …]
/base/update/updater/test/unittest/updater_binary/
Dupdate_image_patch_unittest.cpp41 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch01() local
42 EXPECT_EQ(output.size(), 1); in TestImgPatch01()
58 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch02() local
59 EXPECT_EQ(output.size(), 1); in TestImgPatch02()
75 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch03() local
76 EXPECT_EQ(output.size(), 1); in TestImgPatch03()
92 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch04() local
93 EXPECT_EQ(output.size(), 1); in TestImgPatch04()
111 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch05() local
112 EXPECT_EQ(output.size(), 1); in TestImgPatch05()
[all …]
/base/security/crypto_framework/test/unittest/src/
Dcrypto_3des_cipher_test.cpp78 HcfBlob output = {}; in DesEncrypt() local
86 ret = cipher->update(cipher, &input, &output); in DesEncrypt()
91 *cipherTextLen = output.len; in DesEncrypt()
92 if (output.data != nullptr) { in DesEncrypt()
93 if (memcpy_s(cipherText, maxLen, output.data, output.len) != EOK) { in DesEncrypt()
94 HcfBlobDataFree(&output); in DesEncrypt()
97 HcfBlobDataFree(&output); in DesEncrypt()
100 ret = cipher->doFinal(cipher, NULL, &output); in DesEncrypt()
105 if (output.data != nullptr) { in DesEncrypt()
106 …if (memcpy_s(cipherText + *cipherTextLen, maxLen - *cipherTextLen, output.data, output.len) != EOK… in DesEncrypt()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_session_max_test.cpp118 struct HksBlob output = { sizeof(tmpOutput), tmpOutput }; 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()
170 struct HksBlob output = { sizeof(tmpOutput), tmpOutput }; 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 …eyFunctionContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in SendKeyFunctionContext()
52 …MoveCursorContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in MoveCursorContext()
74 …eteForwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in DeleteForwardContext()
96 …teBackwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… 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 …etBackwardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in GetBackwardContext()
184 GetEditorAttributeContext(InputAction input, OutputAction output) in GetEditorAttributeContext()
185 : Context(std::move(input), std::move(output)) { }; in GetEditorAttributeContext()
/base/request/request/upload/interfaces/kits/napi/include/
Dasync_call.h33 …Context(InputAction input, OutputAction output): input_(std::move(input)), output_(std::move(outpu… in Context() argument
35 void SetAction(InputAction input, OutputAction output = nullptr)
38 output_ = output;
41 void SetAction(OutputAction output) in SetAction() argument
43 SetAction(nullptr, std::move(output)); in SetAction()
/base/request/request/download/interfaces/kits/js/napi/download_single/include/
Dasync_call.h34 …Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(outp… in Context() argument
36 void SetAction(InputAction input, OutputAction output = nullptr)
39 output_ = output;
42 void SetAction(OutputAction output) in SetAction() argument
44 SetAction(nullptr, std::move(output)); in SetAction()
/base/startup/hvb/tools/
Dreadme.md29 …​ --output xxx.img …
31 ….pem --algorithm SHA256_RSA2048 --rollback_index 0 --rollback_location 1 --output ./signed_boot.img
55 …​ --output xxx.img …
57 …m --algorithm SHA256_RSA2048 --rollback_index 0 --rollback_location 1 --output ./signed_system.img
85 …​ --output rvt.img …
89 …n eng_vendor:eng_vendor_pub.pem --chain_partition eng_system:eng_system_pub.pem --output ./rvt.img
/base/theme/screenlock_mgr/interfaces/kits/napi/include/
Dasync_call.h34 …Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(outp… in Context() argument
36 void SetAction(const InputAction input, const OutputAction output = nullptr)
39 output_ = output;
41 void SetAction(OutputAction output) in SetAction() argument
43 SetAction(nullptr, std::move(output)); in SetAction()
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodclient/
Dasync_call.h33 …Context(InputAction input, OutputAction output): input_(std::move(input)), output_(std::move(outpu… in Context() argument
35 void SetAction(InputAction input, OutputAction output = nullptr)
38 output_ = output;
51 void SetAction(OutputAction output) in SetAction() argument
53 SetAction(nullptr, std::move(output)); in SetAction()
/base/theme/screenlock_mgr/services/src/
Ddump_helper.cpp46 std::string output; in Dispatch() local
47 handler->second->DoAction(args, output); in Dispatch()
48 dprintf(fd, "%s\n", output.c_str()); in Dispatch()
/base/update/updater/services/
Dupdater.cpp233 void SetProgress(const std::vector<std::string> &output, UpdaterParams &upParams) in SetProgress() argument
235 if (output.size() < DEFAULT_PROCESS_NUM) { in SetProgress()
239 auto outputInfo = Trim(output[1]); in SetProgress()
240 float frac = std::stof(output[1]); in SetProgress()
269 std::vector<std::string> output = SplitString(str, ":"); in HandleChildOutput() local
270 if (output.size() < 1) { in HandleChildOutput()
274 auto outputHeader = Trim(output[0]); in HandleChildOutput()
276 if (output.size() < DEFAULT_PROCESS_NUM) { in HandleChildOutput()
280 auto outputInfo = Trim(output[1]); in HandleChildOutput()
286 if (output.size() < DEFAULT_PROCESS_NUM) { in HandleChildOutput()
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_dh.c142 uint8_t *output = (uint8_t *)HksMalloc(keyLen); in HksMbedtlsDhGenerateKey() local
143 HKS_IF_NULL_BREAK(output) in HksMbedtlsDhGenerateKey()
144 … ret = mbedtls_dhm_make_public(&ctx, keyLen, output, keyLen, mbedtls_ctr_drbg_random, &ctrDrbg); in HksMbedtlsDhGenerateKey()
150 HksFree(output); in HksMbedtlsDhGenerateKey()
162 int32_t HksMbedtlsGetDhPubKey(const struct HksBlob *input, struct HksBlob *output) in HksMbedtlsGetDhPubKey() argument
168 if (output->size < sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize) { in HksMbedtlsGetDhPubKey()
172 …if (memcpy_s(output->data, output->size, input->data, sizeof(struct KeyMaterialDh) + keyMaterial->… in HksMbedtlsGetDhPubKey()
176 ((struct KeyMaterialDh *)output->data)->priKeySize = 0; in HksMbedtlsGetDhPubKey()
177 ((struct KeyMaterialDh *)output->data)->reserved = 0; in HksMbedtlsGetDhPubKey()
178 output->size = sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize; in HksMbedtlsGetDhPubKey()

1234567