Home
last modified time | relevance | path

Searched refs:size (Results 5551 - 5575 of 17460) sorted by relevance

1...<<221222223224225226227228229230>>...699

/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_mem.c20 void *CMMalloc(size_t size) in CMMalloc() argument
22 return malloc(size); in CMMalloc()
/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_mem.c21 void *HksTestMalloc(size_t size) in HksTestMalloc() argument
23 return malloc(size); in HksTestMalloc()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_test_mem.c21 void *HksTestMalloc(size_t size) in HksTestMalloc() argument
23 return malloc(size); in HksTestMalloc()
/base/startup/init/services/modules/udid/
H A Dudid.h27 INIT_UDID_LOCAL_API int GetUdidFromParam(char *udid, uint32_t size);
28 INIT_UDID_LOCAL_API int CalcDevUdid(char *udid, uint32_t size);
/base/web/webview/ohos_adapter/graphic_adapter/src/
H A Dashmem_adapter_impl.cpp21 int AshmemAdapter::AshmemCreate(const char* name, size_t size) in AshmemCreate() argument
23 return OHOS::AshmemCreate(name, size); in AshmemCreate()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_ashmem_adapter_impl.cpp23 int ArkAshmemAdapter::AshmemCreate(const char* name, size_t size) in AshmemCreate() argument
25 return NWeb::AshmemAdapter::AshmemCreate(name, size); in AshmemCreate()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_ashmem_adapter_wrapper.cpp21 int AshmemAdapter::AshmemCreate(const char* name, size_t size) in AshmemCreate() argument
23 return ArkWeb::ArkAshmemAdapter::AshmemCreate(name, size); in AshmemCreate()
/foundation/communication/ipc/ipc/native/c/manager/include/
H A Dserializer_inner.h25 void *IoPush(IpcIo *io, size_t size);
26 void *IoPop(IpcIo *io, size_t size);
/foundation/communication/netmanager_base/interfaces/innerkits/include/
H A Dnetmanager_secure_data.h28 (void)memset_s(data(), size(), 0, size()); in ~SecureData()
/test/xts/acts/security_lite/huks/common/
H A Dhks_test_mem.c21 void *HksTestMalloc(size_t size) in HksTestMalloc() argument
23 return malloc(size); in HksTestMalloc()
/base/telephony/core_service/services/sim/test/
H A Dtest.cpp978 int size = 0; in TestUnlockPin() local
982 while (!Among(size, PinWordSize::PIN_MIN_SIZE, PinWordSize::PIN_MAX_SIZE)) { in TestUnlockPin()
985 size = pin.size(); in TestUnlockPin()
999 int size = 0; in TestUnlockPuk() local
1003 while (!Among(size, PinWordSize::PIN_MIN_SIZE, PinWordSize::PIN_MAX_SIZE)) { in TestUnlockPuk()
1006 size = newPin.size(); in TestUnlockPuk()
1008 size = 0; in TestUnlockPuk()
1009 while (!Among(size, PinWordSiz in TestUnlockPuk()
1026 int size = 0; TestAlterPin() local
1052 int size = 0; TestUnlockPin2() local
1073 int size = 0; TestUnlockPuk2() local
1100 int size = 0; TestAlterPin2() local
1128 int32_t size = 0; TestSetLockState() local
1280 int size = 0; GetSimLockPassword() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/src/
H A DAudioDecoderDemoCommon.cpp69 cout << "OnOutputBufferAvailable received, index:" << index << ", attr->size:" << attr->size << endl; in OnOutputBufferAvailable()
227 signal_->inCond_.wait(lock, [this]() { return (signal_->inQueue_.size() > 0 || !isRunning_.load()); }); in updateInputData()
234 cout << "inQueue_ size is " << signal_->inQueue_.size() << endl; in updateInputData()
235 cout << "inputBuf size is " << signal_->inBufferQueue_.size() << endl; in updateInputData()
251 signal_->outCond_.wait(lock, [this]() { return (signal_->outQueue_.size() > 0 || !isRunning_.load()); }); in updateOutputData()
257 cout << "outQueue_ size is " << signal_->outQueue_.size() << ", outBufferQueue in updateOutputData()
887 int64_t size; TestReadDatFile() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_elf.cpp88 size_t size = prevMap->end - prevMap->begin; in CreateFromHap() local
91 if (!mmap->Init(fd, size, (off_t)prevMap->offset)) { in CreateFromHap()
98 DFXLOGE("Invalid elf size? elf size: %{public}d, hap size: %{public}d", (int)elfSize, (int)fileSize); in CreateFromHap()
142 auto size = static_cast<size_t>(GetFileSize(fd)); in DfxElf() local
144 if (!mmap_->Init(fd, size, 0)) { in DfxElf()
166 DfxElf::DfxElf(uint8_t *decompressedData, size_t size) in DfxElf() argument
171 mmap_->Init(decompressedData, size); in DfxElf()
232 if (XzDecompress(addr, miniDebugInfo_->size, embeddedElfData in InitEmbeddedElf()
535 GetSectionData(unsigned char *buf, uint64_t size, std::string secName) GetSectionData() argument
868 DlPhdrCb(struct dl_phdr_info *info, size_t size, void *data) DlPhdrCb() argument
968 Read(uintptr_t pos, void *buf, size_t size) Read() argument
992 IsValidElf(const void* ptr, size_t size) IsValidElf() argument
[all...]
/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/src/service/
H A Dpolicy_info_manager.cpp87 std::vector<bool> result(it.second.size()); in CleanPolicyOnMac()
95 SANDBOXMANAGER_LOG_INFO(LABEL, "Mac UnSetSandboxPolicy size = %{public}zu, fail size = %{public}d.", in CleanPolicyOnMac()
96 it.second.size(), count); in CleanPolicyOnMac()
99 size_t resultSize = results.size(); in CleanPolicyOnMac()
145 result.resize(policy.size(), SandboxRetType::OPERATE_SUCCESSFULLY); in AddPolicy()
148 size_t policySize = policy.size(); in AddPolicy()
154 size_t queryPolicyIndexSize = queryPolicyIndex.size(); in AddPolicy()
177 uint32_t failNum = queryPolicyIndexSize - addPolicyIndex.size(); in AddPolicy()
184 PolicyOperateInfo info(policySize, addPolicyIndex.size(), failNu in AddPolicy()
[all...]
/base/telephony/core_service/services/sim/src/
H A Dmulti_sim_controller.cpp102 if (static_cast<int>(simStateManager_.size()) == SIM_SLOT_COUNT) { in AddExtraManagers()
107 size_t count = localCacheInfo_.size(); in AddExtraManagers()
108 TELEPHONY_LOGI("localCacheInfo_.size() = %{public}lu, maxCount_ = %{public}d", in AddExtraManagers()
128 if (localCacheInfo_.size() <= 0) { in InitData()
366 if (localCacheInfo_.size() > 0) { in GetListFromDataBase()
376 size_t count = localCacheInfo_.size(); in SortCache()
396 count = localCacheInfo_.size(); in SortCache()
397 TELEPHONY_LOGI("localCacheInfo_.size() = %{public}lu, maxCount_ = %{public}d", in SortCache()
406 if ((slotId < DEFAULT_SIM_SLOT_ID) || (static_cast<uint32_t>(slotId) >= simStateManager_.size())) { in IsValidData()
410 if (simStateManager_.empty() || static_cast<uint32_t>(slotId) >= simStateManager_.size() || in IsValidData()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_decoration_painter.cpp102 uint32_t colorSize = colorStops_.size(); in AddColorStops()
137 uint32_t colorSize = colorStops_.size(); in AdjustNoValueColorStop()
166 if (colorStops_.size() < 2) { in NeedAdjustColorStops()
268 return SkGradientShader::MakeLinear(pts, &colors[0], &pos[0], colors.size(), tileMode);
294 static std::unique_ptr<GradientShader> CreateLinearGradient(const Gradient& gradient, const SkSize& size) in CreateLinearGradient() argument
300 EndPointsFromAngle(linearGradient.angle.value().Value(), size, firstPoint, secondPoint); in CreateLinearGradient()
303 float width = size.width(); in CreateLinearGradient()
304 float height = size.height(); in CreateLinearGradient()
312 EndPointsFromAngle(angle, size, firstPoint, secondPoint); in CreateLinearGradient()
314 secondPoint = DirectionToPoint(linearGradient.linearX, linearGradient.linearY, size); in CreateLinearGradient()
328 CreateLinearGradient(const Gradient& gradient, const RSSize& size) CreateLinearGradient() argument
382 EndPointsFromAngle(float angle, const SkSize& size, SkPoint& firstPoint, SkPoint& secondPoint) EndPointsFromAngle() argument
431 EndPointsFromAngle(float angle, const RSSize& size, RSPoint& firstPoint, RSPoint& secondPoint) EndPointsFromAngle() argument
482 DirectionToPoint( const std::optional<GradientDirection>& x, const std::optional<GradientDirection>& y, const SkSize& size) DirectionToPoint() argument
505 DirectionToPoint( const std::optional<GradientDirection>& x, const std::optional<GradientDirection>& y, const RSSize& size) DirectionToPoint() argument
615 CreateRadialGradient( const Gradient& gradient, const SkSize& size, float dipScale) CreateRadialGradient() argument
632 CreateRadialGradient( const Gradient& gradient, const RSSize& size, float dipScale) CreateRadialGradient() argument
686 GetCenter(const RadialGradient& radialGradient, const SkSize& size, float dipScale) GetCenter() argument
703 GetCenter(const RadialGradient& radialGradient, const RSSize& size, float dipScale) GetCenter() argument
722 GetCircleSize( const RadialGradient& radialGradient, const SkSize& size, const SkPoint& center, float dipScale) GetCircleSize() argument
766 GetCircleSize( const RadialGradient& radialGradient, const RSSize& size, const RSPoint& center, float dipScale) GetCircleSize() argument
815 RadiusToSide( const SkPoint& center, const SkSize& size, RadialShapeType type, const CompareType& compare) RadiusToSide() argument
877 RadiusToCorner( const SkPoint& center, const SkSize& size, RadialShapeType type, const CompareType& compare) RadiusToCorner() argument
906 RadiusToCorner( const RSPoint& center, const RSSize& size, RadialShapeType type, const CompareType& compare) RadiusToCorner() argument
1020 CreateSweepGradient( const Gradient& gradient, const SkSize& size, float dipScale) CreateSweepGradient() argument
1053 GetCenter(const SweepGradient& sweepGradient, const SkSize& size, float dipScale) GetCenter() argument
1072 GetCenter(const SweepGradient& sweepGradient, const RSSize& size, float dipScale) GetCenter() argument
1298 auto size = SkSize::Make(GetLayoutSize().Width(), GetLayoutSize().Width()); PaintDecoration() local
1333 auto size = RSSize(GetLayoutSize().Width(), GetLayoutSize().Width()); PaintDecoration() local
3097 auto size = SkSize::Make(paintSize_.Width(), paintSize_.Width()); PaintShadow() local
3099 auto size = RSSize(paintSize_.Width(), paintSize_.Width()); PaintShadow() local
3111 CreateGradientShader(const Gradient& gradient, const SkSize& size) PaintShadow() argument
3121 CreateGradientShader( const Gradient& gradient, const SkSize& size, double dipScale) PaintShadow() argument
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Darray_usb_device_id_serializer.cpp62 dataObj = std::vector<UsbDeviceId>(root.size()); in Deserialize()
63 for (std::uint32_t i = 0; i < root.size(); ++i) { in Deserialize()
96 for (std::uint32_t i = 0; i < dataObj.size(); ++i) { in Serialize()
114 uint32_t size = data.ReadUint32(); in GetPolicy() local
115 if (size > EdmConstants::ALLOWED_USB_DEVICES_MAX_SIZE) { in GetPolicy()
116 EDMLOGE("ArrayUsbDeviceIdSerializer:GetPolicy size=[%{public}u] is too large", size); in GetPolicy()
119 for (uint32_t i = 0; i < size; i++) { in GetPolicy()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dallowed_usb_devices_plugin.cpp54 if (data.size() > EdmConstants::ALLOWED_USB_DEVICES_MAX_SIZE) { in OnSetPolicy()
55 EDMLOGE("AllowUsbDevicesPlugin OnSetPolicy data size=[%{public}zu] is too large", data.size()); in OnSetPolicy()
64 if (mergeData.size() > EdmConstants::ALLOWED_USB_DEVICES_MAX_SIZE) { in OnSetPolicy()
65 EDMLOGE("AllowUsbDevicesPlugin OnSetPolicy union data size=[%{public}zu] is too large", mergeData.size()); in OnSetPolicy()
126 if (data.size() > EdmConstants::ALLOWED_USB_DEVICES_MAX_SIZE) { in OnRemovePolicy()
153 EDMLOGI("AllowUsbDevicesPlugin OnRemovePolicy: remove data size: %{public}zu", data.size()); in OnRemovePolicy()
173 reply.WriteUint32(usbDeviceIds.size()); in OnGetPolicy()
[all...]
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_unwind_async_thread.cpp99 size_t size = map->end - map->begin; in GetSubmitterStack() local
100 auto tableData = std::make_shared<std::vector<uint8_t>>(size); in GetSubmitterStack()
101 size_t byte = DfxMemory::ReadProcMemByPid(thread_->threadInfo_.nsTid, map->begin, tableData->data(), size); in GetSubmitterStack()
102 if (byte != size) { in GetSubmitterStack()
106 auto table = std::make_shared<UniqueStackTable>(tableData->data(), size, false); in GetSubmitterStack()
127 if (unwinder_->GetFrames().size() > 0) { in UnwindThreadFallback()
172 size_t initSize = frames.size(); in UnwindThreadByParseStackIfNeed()
/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_sensor_provision.cpp64 int32_t ThermalSensorProvision::ReadThermalSysfsToBuff(const char* path, char* buf, size_t size) const in ReadThermalSysfsToBuff()
66 int32_t ret = ReadSysfsFile(path, buf, size); in ReadThermalSysfsToBuff()
75 int32_t ThermalSensorProvision::ReadSysfsFile(const char* path, char* buf, size_t size) const in ReadSysfsFile()
83 readSize = read(fd, buf, size - 1); in ReadSysfsFile()
123 void ThermalSensorProvision::FormatThermalPaths(char *path, size_t size, const char *format, const char* name) in FormatThermalPaths() argument
125 if (snprintf_s(path, size, size - 1, format, name) < EOK) { in FormatThermalPaths()
/base/notification/distributed_notification_service/test/fuzztest/reminderdatamanager_fuzzer/
H A Dreminderdatamanager_fuzzer.cpp21 bool DoSomethingInterestingWithManager(const char* data, size_t size) in DoSomethingInterestingWithManager() argument
74 bool DoSomethingInterestingWithReminder(const char* data, size_t size) in DoSomethingInterestingWithReminder() argument
140 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
143 char *ch = ParseData(data, size); in LLVMFuzzerTestOneInput()
144 if (ch != nullptr && size >= GetU32Size()) { in LLVMFuzzerTestOneInput()
145 OHOS::DoSomethingInterestingWithManager(ch, size); in LLVMFuzzerTestOneInput()
146 OHOS::DoSomethingInterestingWithReminder(ch, size); in LLVMFuzzerTestOneInput()
/base/notification/distributed_notification_service/services/ans/src/clone/
H A Dnotification_clone_disturb_service.cpp55 for (size_t index = 0; index < profiles.size(); index++) { in OnBackup()
80 ANS_LOGE("Clone queue is invalidated or empty %{public}zu.", profiles_.size()); in OnRestore()
86 ANS_LOGI("Notification disturb profile ffrt start %{public}zu.", profiles_.size()); in OnRestore()
96 (*profile)->GetProfileTrustList().size()); in OnRestore()
112 (*profile)->GetProfileTrustList().size()); in OnRestore()
167 bundleName.c_str(), appIndex, uid, profiles_.size()); in HandlerBundleEvent()
201 (*profile)->GetProfileTrustList().size()); in HandlerBundleEvent()
/base/security/asset/test/unittest/kits_ndk/src/
H A Dasset_auth_query_test.cpp63 Asset_Blob funcName = { .size = strlen(__func__), .data = reinterpret_cast<uint8_t*>(const_cast<char*>(__func__)) }; in HWTEST_F()
90 Asset_Blob blob = { .size = 0, .data = nullptr }; in HWTEST_F()
109 Asset_Blob funcName = { .size = strlen(__func__), .data = reinterpret_cast<uint8_t*>(const_cast<char*>(__func__)) }; in HWTEST_F()
135 Asset_Blob blob = { .size = 0, .data = nullptr }; in HWTEST_F()
157 Asset_Blob blob = { .size = 0, .data = nullptr }; in HWTEST_F()
173 Asset_Blob funcName = { .size = strlen(__func__), .data = reinterpret_cast<uint8_t*>(const_cast<char*>(__func__)) }; in HWTEST_F()
192 Asset_Blob blob = { .size = 0, .data = nullptr }; in HWTEST_F()
/base/security/device_security_level/baselib/utils/src/
H A Dutils_work_queue.c37 uint32_t size; member
74 queue->size--; in WorkQueueThread()
93 queue->size--; in WorkQueueThread()
116 queue->size = 0; in CreateWorkQueue()
155 queue->size = 0; in CreateWorkQueue()
235 if (queue->size >= queue->capacity) { in QueueWork()
252 queue->size++; in QueueWork()
/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_wrapper.cpp70 uint32_t size = 0; in GetParameter() local
71 int ret = SystemReadParam(key.c_str(), NULL, &size); in GetParameter()
74 ret = SystemReadParam(key.c_str(), value.data(), &size); in GetParameter()
105 uint32_t size = 0; in GetStringParameter() local
106 int ret = SystemReadParam(key.c_str(), NULL, &size); in GetStringParameter()
108 std::vector<char> data(size + 1); in GetStringParameter()
109 ret = SystemReadParam(key.c_str(), data.data(), &size); in GetStringParameter()

Completed in 25 milliseconds

1...<<221222223224225226227228229230>>...699