/base/security/asset/frameworks/js/napi/src/ |
H A D | asset_napi_update.cpp | 112 context->result = AssetUpdate(&context->attrs[0], context->attrs.size(), in NapiUpdate() 113 &context->updateAttrs[0], context->updateAttrs.size()); in NapiUpdate() 144 int32_t result = AssetUpdate(&attrs[0], attrs.size(), &updateAttrs[0], updateAttrs.size()); in NapiUpdateSync()
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509certificate_fuzzer/ |
H A D | x509certificate_fuzzer.cpp | 178 bool X509CertificateFuzzTest(const uint8_t* data, size_t size) in X509CertificateFuzzTest() argument 190 inStream.len = size; in X509CertificateFuzzTest() 202 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 205 OHOS::X509CertificateFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/base/security/access_token/frameworks/accesstoken/src/ |
H A D | hap_policy_parcel.cpp | 34 uint32_t permListSize = permList.size(); in Marshalling() 44 uint32_t permStateListSize = permStateList.size(); in Marshalling() 54 uint32_t aclRequestedListSize = aclRequestedList.size(); in Marshalling() 62 uint32_t infoSize = info.size(); in Marshalling()
|
/base/security/code_signature/test/unittest/ |
H A D | local_code_sign_utils_mock_test.cpp | 155 uint32_t size = 0;
in HWTEST_F() local 156 bool bRet = OHOS::Security::CodeSign::CheckChallengeSize(size);
in HWTEST_F() 159 size = 33;
in HWTEST_F() 160 bRet = OHOS::Security::CodeSign::CheckChallengeSize(size);
in HWTEST_F()
|
/base/security/device_auth/test/fuzztest/authenticators/account_unrelated/pake/standardexchangetask_fuzzer/ |
H A D | standardexchangetask_fuzzer.cpp | 151 bool FuzzDoRegCallback(const uint8_t* data, size_t size) in FuzzDoRegCallback() argument 154 (void)size; in FuzzDoRegCallback() 164 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 167 OHOS::FuzzDoRegCallback(data, size); in LLVMFuzzerTestOneInput()
|
/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_json.c | 87 int size = cJSON_GetArraySize(objValue); in DslmGetJsonFieldIntArray() local 88 if (size > arrayLen) { in DslmGetJsonFieldIntArray() 89 size = arrayLen; in DslmGetJsonFieldIntArray() 92 for (int32_t i = 0; i < size; i++) { in DslmGetJsonFieldIntArray()
|
/base/startup/init/interfaces/innerkits/fd_holder/ |
H A D | fd_holder.c | 47 STATIC int BuildSendData(char *buffer, size_t size, const char *serviceName, bool hold, bool poll) in BuildSendData() argument 49 if (buffer == NULL || size == 0 || serviceName == 0) { in BuildSendData() 67 if (snprintf_s(buffer, size, size - 1, "%s|%s|%s", serviceName, holdString, pollString) == -1) { in BuildSendData()
|
/base/security/huks/interfaces/kits/napi/src/v9/ |
H A D | huks_napi_export_key_item.cpp | 46 if (context->key->data != nullptr && context->key->size != 0) { in DeleteExportKeyAsyncContext() 47 (void)memset_s(context->key->data, context->key->size, 0, context->key->size); in DeleteExportKeyAsyncContext() 94 context->key->size = MAX_KEY_SIZE; in PrePareExportKeyContextBuffer()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_modify_key_test.cpp | 72 struct HksBlob blobOne = { .size = sizeOne, .data = bufOne }; in ModifyKey() 116 if (plainData->size != decryptedData->size) { in BaseTestCipher() 119 ret = memcmp(plainData->data, decryptedData->data, plainData->size); in BaseTestCipher()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_command_lexer_test.cpp | 79 ASSERT_EQ(args_.size(), (size_t) 4); in HWTEST_F() 96 ASSERT_EQ(args_.size(), (size_t) 2); in HWTEST_F() 113 ASSERT_EQ(args_.size(), (size_t) 3); in HWTEST_F() 158 ASSERT_EQ(args_.size(), (size_t) 3); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
H A D | hks_crypto_hal_rsa_key.cpp | 128 HksBlob key = { .size = 0, .data = nullptr }; in RunTestCase() 131 ASSERT_NE((uint32_t)0, key.size); in RunTestCase() 231 HksBlob key = { .size = 0, .data = NULL }; in HWTEST_F() 240 HksBlob keyOut = { .size = keyOutLen, .data = (uint8_t *)HksMalloc(keyOutLen) }; in HWTEST_F()
|
H A D | hks_crypto_hal_dsa_sign.cpp | 91 HksBlob key = { .size = 0, .data = nullptr }; in RunTestCase() 104 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; in RunTestCase() 114 struct HksBlob signature = { .size = SIGNATURE_SIZE, .data = (uint8_t *)HksMalloc(SIGNATURE_SIZE) }; in RunTestCase() 119 struct HksBlob pubKey = { .size = PUB_KEY_SIZE, .data = (uint8_t *)HksMalloc(PUB_KEY_SIZE) }; in RunTestCase()
|
H A D | hks_crypto_hal_hmac_hmac.cpp | 116 HksBlob key = { .size = 0, .data = nullptr }; in RunTestCase() 123 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; in RunTestCase() 129 struct HksBlob signature = { .size = SIGNATURE_SIZE, .data = (uint8_t *)HksMalloc(SIGNATURE_SIZE) }; in RunTestCase() 134 HksBlob endMessage = { .size = 0, .data = buff }; in RunTestCase()
|
/base/sensors/sensor/utils/common/src/ |
H A D | sensor_basic_data_channel.cpp | 151 int32_t SensorBasicDataChannel::SendData(const void *vaddr, size_t size) in SendData() argument 161 length = send(sendFd_, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); in SendData() 170 int32_t SensorBasicDataChannel::ReceiveData(void *vaddr, size_t size) in ReceiveData() argument 177 ssize_t length = recv(receiveFd_, vaddr, size, 0); in ReceiveData()
|
/base/update/updater/services/applypatch/ |
H A D | store.cpp | 100 const std::vector<uint8_t> &buffer, int size)
in WriteDataToStore() 117 if (size < 0 || !WriteFully(fd, buffer.data(), static_cast<size_t>(size))) {
in WriteDataToStore() 122 LOG(ERROR) << "Write to stash failed, " << size << " blocks to " << path;
in WriteDataToStore() 154 LOG(ERROR) << "Not multiple of block size 4096";
in LoadDataFromStore() 99 WriteDataToStore(const std::string &dirPath, const std::string &fileName, const std::vector<uint8_t> &buffer, int size) WriteDataToStore() argument
|
/base/update/updater/services/package/pkg_package/ |
H A D | pkg_pkgfile.cpp | 125 if (buffer.length < fileName.size()) {
in ConvertStringToBuffer() 129 for (uint32_t i = 0; i < fileName.size(); ++i) {
in ConvertStringToBuffer() 177 int32_t ret = pkgStream_->Write(buffer, buffer.size(), currOffset);
in AddSignData() 182 pkgStream_->Flush(currOffset + buffer.size());
in AddSignData()
|
/base/update/updateservice/services/firmware/common/src/ |
H A D | firmware_update_helper.cpp | 81 hotaVersionComponent.size += static_cast<size_t>(component.size); in BuildHotaVersionComponent() 137 if (realSize != component.size) { in IsUpgradePackagesReady() 138 FIRMWARE_LOGE("IsUpgradePackagesReady: calculate component size %{public}s != DB component size %{public}s", in IsUpgradePackagesReady() 139 std::to_string(realSize).c_str(), std::to_string(component.size).c_str()); in IsUpgradePackagesReady()
|
/base/time/time_service/services/timer/src/ |
H A D | timer_handler.cpp | 45 epollfd = epoll_create(fds.size()); in Create() 48 static_cast<int>(fds.size()), strerror(errno)); in Create() 52 for (size_t i = 0; i < fds.size(); i++) { in Create() 66 for (size_t i = 0; i < fds.size(); i++) { in Create()
|
/base/telephony/telephony_data/global_params/src/ |
H A D | rdb_global_params_callback.cpp | 87 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitEccData() 88 for (size_t i = 0; i < vec.size(); i++) { in InitEccData() 123 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitNumMatchData() 124 for (size_t i = 0; i < vec.size(); i++) { in InitNumMatchData()
|
/base/useriam/pin_auth/test/fuzztest/services/modules/executors/pinauthexecutorcallbackhdi_fuzzer/ |
H A D | pin_auth_executor_callback_hdi_fuzzer.cpp | 150 void PinAuthExecutorCallbackHdiFuzzTest(const uint8_t *data, size_t size) in PinAuthExecutorCallbackHdiFuzzTest() argument 153 parcel.WriteBuffer(data, size); in PinAuthExecutorCallbackHdiFuzzTest() 167 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 169 OHOS::UserIam::PinAuth::PinAuthExecutorCallbackHdiFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_preference.h | 83 * Put the size of default fixed font. The default is 13. 85 * @param size A positive integer that ranges from 1 to 72. Any number outside 88 virtual void PutDefaultFixedFontSize(int size) = 0; 91 * Put the size of default font. The default is 16. 93 * @param size A positive integer that ranges from 1 to 72. Any number outside 96 virtual void PutDefaultFontSize(int size) = 0; 149 * Put the lower limit of the minimum font size. The default is 8. 151 * @param size A positive integer that ranges from 1 to 72. Any number outside 154 virtual void PutFontSizeLowerLimit(int size) = 0; 157 * Put the lower limit of the minimum logical font size [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_preference_impl.h | 110 * @brief Get the size of default font. 117 * @brief Put the size of default font. The default is 16. 119 * @param size A positive integer that ranges from 1 to 72. Any number outside 122 void PutDefaultFontSize(int size) override; 203 * @brief Get the lower limit of the minimum font size. 210 * @brief Put the lower limit of the minimum font size. The default is 8. 212 * @param size A positive integer that ranges from 1 to 72. Any number outside 215 void PutFontSizeLowerLimit(int size) override; 356 * @brief Get the size of default fixed font. 363 * @brief Put the size o [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_preference_wrapper.h | 112 * @brief Get the size of default font. 119 * @brief Put the size of default font. The default is 16. 121 * @param size A positive integer that ranges from 1 to 72. Any number outside 124 void PutDefaultFontSize(int size) override; 205 * @brief Get the lower limit of the minimum font size. 212 * @brief Put the lower limit of the minimum font size. The default is 8. 214 * @param size A positive integer that ranges from 1 to 72. Any number outside 217 void PutFontSizeLowerLimit(int size) override; 358 * @brief Get the size of default fixed font. 365 * @brief Put the size o [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_preference.h | 117 * @brief Get the size of default font. 125 * @brief Put the size of default font. The default is 16. 127 * @param size A positive integer that ranges from 1 to 72. Any number outside 131 virtual void PutDefaultFontSize(int size) = 0; 224 * @brief Get the lower limit of the minimum font size. 232 * @brief Put the lower limit of the minimum font size. The default is 8. 234 * @param size A positive integer that ranges from 1 to 72. Any number outside 238 virtual void PutFontSizeLowerLimit(int size) = 0; 399 * @brief Get the size of default fixed font. 407 * @brief Put the size o [all...] |
/drivers/peripheral/audio/test/unittest/common/render/ |
H A D | audio_render_offload_test.cpp | 157 uint32_t size = AUDIO_OFFLOAD_BUFFER_SIZE;
in HWTEST_F() local 158 int32_t ret = render_->SetBufferSize(nullptr, size);
in HWTEST_F() 164 uint32_t size = AUDIO_OFFLOAD_BUFFER_SIZE;
in HWTEST_F() local 165 int32_t ret = render_->SetBufferSize(render_, size);
in HWTEST_F()
|