Home
last modified time | relevance | path

Searched refs:size (Results 11176 - 11200 of 55111) sorted by relevance

1...<<441442443444445446447448449450>>...2205

/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_zip_test.cpp48 .size = 16 in initDlpFileCiper()
54 param.iv.size = IV_SIZE; in initDlpFileCiper()
63 .size = 32 in initDlpFileCiper()
109 int32_t res = AddBuffToZip(buf.c_str(), buf.size(), inZip.c_str(), zipFile.c_str()); in HWTEST_F()
115 res = AddBuffToZip(buf.c_str(), buf.size(), inZip.c_str(), zipFile.c_str()); in HWTEST_F()
118 res = AddBuffToZip(buf.c_str(), buf.size(), inZip.c_str(), zipFile.c_str()); in HWTEST_F()
/base/sensors/sensor/vibration_convert/core/algorithm/intensity_processor/src/
H A Dintensity_processor.cpp46 size_t paddingDataSize = paddingData.size(); in GetRMS()
62 size_t dataSize = data.size(); in EnergyEnvelop()
88 for (size_t i = 0; i < rmseBand.size(); ++i) { in RmseNormalize()
105 size_t dataSize = data.size(); in VolumeInLinary()
125 std::vector<double> db(blockSum.size(), 0.0); in VolumeInDB()
126 for (size_t i = 0; i < blockSum.size(); ++i) { in VolumeInDB()
/base/telephony/core_service/services/sim/src/
H A Dtag_service.cpp34 if (data.empty() || data.size() % CHINESE_POS) { in TagService()
122 if (!hasNext_ || offset_ >= data_.size()) { in Next()
130 for (; offset_ < data_.size(); ++offset_, ++order) { in Next()
142 if (offset_ >= data_.size()) { in Next()
148 for (; offset_ < data_.size(); ++offset_, ++order) { in Next()
162 if (offset_ > data_.size()) { in Next()
/base/useriam/user_auth_framework/services/core/src/
H A Dschedule_node_helper.cpp70 IAM_LOGI("collectorMessage size: %{public}zu, verifierMessage size %{public}zu", in ScheduleInfoToScheduleNode()
71 collectorMessage.size(), verifierMessage.size()); in ScheduleInfoToScheduleNode()
109 IF_FALSE_LOGE_AND_RETURN_VAL(info.executorIndexes.size() == info.executorMessages.size(), false); in ScheduleInfoToExecutors()
110 IF_FALSE_LOGE_AND_RETURN_VAL(info.executorIndexes.size() > 0, false); in ScheduleInfoToExecutors()
112 for (uint32_t i = 0; i < info.executorIndexes.size(); i++) { in ScheduleInfoToExecutors()
/foundation/CastEngine/castengine_wifi_display/services/extend/magic_enum/
H A Dmagic_enum.hpp29 for (std::size_t i = name.size(); i > 0; --i) { in get_enum_value_name()
36 if (name.size() > 0 && ((name.front() >= 'a' && name.front() <= 'z') || in get_enum_value_name()
46 return get_enum_value_name<E, V>().size() != 0; in is_valid()
66 for (std::size_t i_ = 0; i_ < valid_.size(); ++i_) { in get_enum_size()
99 for (std::size_t i = 0, v = 0; i < names.size(); ++i) { in get_all_valid_names()
100 if (names[i].size() != 0) { in get_all_valid_names()
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/
H A Drosen_render_drag_bar.cpp59 auto size = Size(NormalizeToPx(PAINT_WIDTH), NormalizeToPx(PAINT_HEIGHT)); in Paint() local
60 auto alignOffset = Alignment::GetAlignPosition(GetLayoutSize(), size, Alignment::CENTER); in Paint()
62 canvas, Rect(offset + alignOffset, size), HOVER_COLOR, NormalizeToPx(HOVER_RADIUS)); in Paint()
91 auto size = Size(NormalizeToPx(PAINT_WIDTH), NormalizeToPx(PAINT_HEIGHT)); in Paint() local
92 auto alignOffset = Alignment::GetAlignPosition(GetLayoutSize(), size, Alignment::CENTER); in Paint()
94 canvas, Rect(offset + alignOffset, size), HOVER_COLOR, NormalizeToPx(HOVER_RADIUS)); in Paint()
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/
H A Dparallel_recognizer.cpp91 auto size = recognizers_.size(); in HandleEvent() local
97 if (recognizers_.size() < size) { in HandleEvent()
185 if (recognizers_.size() != curr->recognizers_.size() || curr->priorityMask_ != priorityMask_) { in ReconcileFrom()
/foundation/arkui/ace_engine/frameworks/core/components/piece/
H A Drosen_render_piece.cpp87 SkRRect RosenRenderPiece::MakeRRect(const Offset& offset, const Size& size, const Border& border) const in MakeRRect() argument
89 SkRect rect = SkRect::MakeXYWH(offset.GetX(), offset.GetY(), size.Width(), size.Height()); in MakeRRect()
105 const Offset& offset, const Size& size, const Border& border) const in MakeRRect()
108 RSRect(offset.GetX(), offset.GetY(), size.Width() + offset.GetX(), size.Height() + offset.GetY()); in MakeRRect()
104 MakeRRect( const Offset& offset, const Size& size, const Border& border) const MakeRRect() argument
/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_circular_track.cpp49 SkColor colors[trackInfo.gradient.GetColors().size() + 1]; in DrawArc()
50 // size cannot be larger than uint32_t. in DrawArc()
51 for (uint32_t index = 0; index < trackInfo.gradient.GetColors().size(); index++) { in DrawArc()
54 colors[trackInfo.gradient.GetColors().size()] = trackInfo.gradient.GetColors()[0].GetColor().GetValue(); in DrawArc()
78 RSColorQuad colors[trackInfo.gradient.GetColors().size() + 1]; in DrawArc()
79 // size cannot be larger than uint32_t. in DrawArc()
80 for (uint32_t index = 0; index < trackInfo.gradient.GetColors().size(); index++) { in DrawArc()
83 colors[trackInfo.gradient.GetColors().size()] = trackInfo.gradient.GetColors()[0].GetColor().GetValue(); in DrawArc()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dutils.cpp46 int64_t size = std::ftell(file.get()); in GetStringFromFile() local
47 if (size == -1L) { in GetStringFromFile()
52 fileData.resize(size); in GetStringFromFile()
55 size_t result = std::fread(fileData.data(), 1, fileData.size(), file.get()); in GetStringFromFile()
56 if (result != static_cast<size_t>(size)) { in GetStringFromFile()
95 auto jsonPath = pagesValue.replace(0, profileMark.size(), "resources/base/profile/") + ".json"; in CheckUrlValid()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_picker.h134 * @param count Indicates the array size.
174 * @brief Sets the font name and size for the background text.
177 * @param size Indicates the font size to set.
181 void SetBackgroundFont(const char* name, uint8_t size);
184 * @brief Sets the font name and size for the highlighted text.
187 * @param size Indicates the font size to set.
191 void SetHighlightFont(const char* name, uint8_t size);
399 * @brief Sets the rebound size, whic
406 SetReboundSize(uint16_t size) SetReboundSize() argument
459 SetScrollBlankSize(uint16_t size) SetScrollBlankSize() argument
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp155 bool BundleFileUtils::WriteFile(const char *file, const void *buffer, uint32_t size) in WriteFile() argument
157 if (file == nullptr || buffer == nullptr || size == 0) { in WriteFile()
166 if (write(fp, buffer, size) != static_cast<int32_t>(size)) { in WriteFile()
178 if (rootDir.find(PATH_SEPARATOR) != 0 || rootDir.rfind(PATH_SEPARATOR) != (rootDir.size() - 1) || in IsValidPath()
185 return path.compare(0, rootDir.size(), rootDir) == 0; in IsValidPath()
/foundation/multimedia/av_codec/services/engine/codec/audio/
H A Daudio_buffers_manager.cpp45 if (index >= bufferInfo_.size()) {
54 if (index < bufferInfo_.size()) { in SetBufferBusy()
64 AVCODEC_LOGD_LIMIT(LOGD_FREQUENCY, "start allocate %{public}s buffers,each buffer size:%{public}d", in initBuffers()
79 index = bufferInfo_.size() - 1; in RequestNewBuffer()
101 if (index >= bufferInfo_.size()) { in RequestAvailableIndex()
119 for (uint32_t i = 0; i < bufferInfo_.size(); ++i) { in ReleaseAll()
140 if (index < bufferInfo_.size()) { in ReleaseBuffer()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/render/rspixelmapshader_fuzzer/
H A Drspixelmapshader_fuzzer.cpp35 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
62 opts.size.width = width; in GetPixelMapFromData()
63 opts.size.height = height; in GetPixelMapFromData()
101 bool RSMainFuzzTest(const uint8_t* data, size_t size) in RSMainFuzzTest() argument
109 g_size = size; in RSMainFuzzTest()
146 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
149 OHOS::Rosen::RSMainFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/multimedia/media_foundation/test/unittest/
H A DTestDataPacker.cpp44 AVBufferPtr CreateBuffer(size_t size, uint64_t offset = 0) in CreateBuffer() argument
48 buffer->AllocMemory(nullptr, size); in CreateBuffer()
49 buffer->GetMemory()->Write(data + offset, size); in CreateBuffer()
53 AVBufferPtr CreateEmptyBuffer(size_t size) in CreateEmptyBuffer() argument
56 buffer->AllocMemory(nullptr, size); in CreateEmptyBuffer()
57 buffer->GetMemory()->Write((uint8_t*)"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", size); in CreateEmptyBuffer()
65 ASSERT_STREQ("DataPacker (offset 0, size 10, buffer count 1)", dataPacker->ToString().c_str()); in HWTEST_F()
74 ASSERT_STREQ("DataPacker (offset 0, size 14, buffer count 2)", dataPacker->ToString().c_str()); in HWTEST_F()
116 ASSERT_STREQ("DataPacker (offset 0, size 10, buffer count 1)", dataPacker->ToString().c_str()); in HWTEST_F()
129 ASSERT_STREQ("DataPacker (offset 0, size 1 in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/
H A Dgif_encoder_test.cpp74 opts.size.width = 10.f; in HWTEST_F()
75 opts.size.height = 10.f; in HWTEST_F()
94 opts.size.width = 10.f; in HWTEST_F()
95 opts.size.height = 10.f; in HWTEST_F()
131 opts.size.width = 10.f; in HWTEST_F()
132 opts.size.height = 10.f; in HWTEST_F()
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/inner/
H A Davformat_inner_mock.cpp86 bool AVFormatInnerMock::GetBuffer(const std::string_view &key, uint8_t **addr, size_t &size) in GetBuffer() argument
88 return format_.GetBuffer(key, addr, size); in GetBuffer()
91 bool AVFormatInnerMock::PutBuffer(const std::string_view &key, const uint8_t *addr, size_t size) in PutBuffer() argument
93 return format_.PutBuffer(key, addr, size); in PutBuffer()
130 uint32_t bufLength = info.size() > maxDumpLength ? maxDumpLength : info.size(); in DumpInfo()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dheif_exif_metadata_accessor.cpp94 uint32_t size = 0; in Write() local
95 TiffParser::Encode(&dataBlob, size, exifData); in Write()
103 DataBuf dataBuf(dataBlob, size); in Write()
165 bool HeifExifMetadataAccessor::CheckTiffPos(byte *buff, size_t size, size_t &byteOrderPos) in CheckTiffPos() argument
172 byteOrderPos = TiffParser::FindTiffPos(buff, size); in CheckTiffPos()
191 dataBuf = DataBuf(item.data(), item.size()); in GetExifItemData()
/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/src/
H A Dsocperf_executor_wirte_node.cpp63 i < (int32_t)govResNode->paths.size(); i++) { in InitResourceNodeInfo()
77 int32_t len = (int32_t)resIdVec.size(); in WriteNodeThreadWraps()
100 for (int32_t i = 0; i < (int32_t)govResNode->paths.size(); i++) { in UpdateCurrentValue()
119 write(fd, value.c_str(), value.size()); in WriteNode()
128 if (filePath.size() == 0 || filePath.size() > PATH_MAX || !realpath(filePath.c_str(), path)) { in GetFdForFilePath()
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_callback_stub.cpp164 uint32_t size; in OnNetMeteredIfacesChange() local
167 if (!data.ReadUint32(size)) { in OnNetMeteredIfacesChange()
171 size = size > MAX_IFACE_SIZE ? MAX_IFACE_SIZE : size; in OnNetMeteredIfacesChange()
172 for (uint32_t i = 0; i < size; ++i) { in OnNetMeteredIfacesChange()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/
H A Dmulti_gateway.cpp69 WIFI_LOGI("get gateway num is %{public}lu", static_cast<unsigned long>(m_gwMacLists.size())); in GetGatewayAddr()
74 return m_gwMacLists.size() >= MULTI_GATEWAY_NUM; in IsMultiGateway()
85 if (m_currentIdx >= m_gwMacLists.size()) { in GetNextGatewayMac()
86 WIFI_LOGE("m_currentIdx is overflow, m_currentIdx: %{public}u, size: %{public}lu", in GetNextGatewayMac()
87 m_currentIdx, static_cast<unsigned long>(m_gwMacLists.size())); in GetNextGatewayMac()
112 if (strncpy_s(req.arp_dev, sizeof(req.arp_dev), iface.c_str(), iface.size()) != EOK) { in SetStaticArp()
141 if (strncpy_s(req.arp_dev, sizeof(req.arp_dev), iface.c_str(), iface.size()) != EOK) { in DelStaticArp()
/foundation/communication/wifi/wifi/utils/inc/
H A Dmagic_enum.h43 for (std::size_t i = name.size(); i > 0; --i) { in GetEnumValueName()
50 if (name.size() > 0 && ((name.front() >= 'a' && name.front() <= 'z') || in GetEnumValueName()
60 return GetEnumValueName<E, V>().size() != 0; in IsValid()
80 for (std::size_t index = 0; index < validValue.size(); ++index) { in GetEnumSize()
113 for (std::size_t i = 0, v = 0; i < names.size(); ++i) { in GetAllValidNames()
114 if (names[i].size() != 0) { in GetAllValidNames()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Ddb_ability.cpp86 for (uint32_t pos = 0; pos < targetBuff.size() && pos < SERIALIZE_BIT_SIZE * dstBuf.size(); pos++) { in DeSerialize()
117 return dbAbility_.size(); in GetAbilityBitsLen()
125 if ((iter->first + iter->second) > dbAbility_.size()) { in GetAbilityItem()
127 iter->first, iter->second, dbAbility_.size()); in GetAbilityItem()
149 if ((iter->first + iter->second) > dbAbility_.size()) { in SetAbilityItem()
/foundation/distributedhardware/device_manager/test/commonfuzztest/authenticatedeviceserviceimpl_fuzzer/
H A Dauthenticate_device_service_impl_fuzzer.cpp110 void AuthenticateDeviceServiceImplFuzzTest(const uint8_t* data, size_t size) in AuthenticateDeviceServiceImplFuzzTest() argument
112 if ((data == nullptr) || (size == 0) || (size < sizeof(int32_t))) { in AuthenticateDeviceServiceImplFuzzTest()
116 std::string str(reinterpret_cast<const char*>(data), size); in AuthenticateDeviceServiceImplFuzzTest() local
166 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
169 OHOS::DistributedHardware::AuthenticateDeviceServiceImplFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/distributedhardware/distributed_camera/common/test/unittest/common/utils/
H A Ddcamera_utils_tools_test.cpp143 std::string retsult = Base64Encode(reinterpret_cast<const unsigned char *>(toEncode.c_str()), toEncode.size()); in HWTEST_F()
144 EXPECT_NE(0, retsult.size()); in HWTEST_F()
192 size_t size = 0; in HWTEST_F() local
193 DumpBufferToFile(fileName, buf, size); in HWTEST_F()
197 size = strlen(reinterpret_cast<const char*>(str)); in HWTEST_F()
198 DumpBufferToFile(fileName, str, size); in HWTEST_F()

Completed in 22 milliseconds

1...<<441442443444445446447448449450>>...2205