/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/ |
H A D | common_func.cpp | 56 static tuple<bool, void *, int64_t> GetActualBuf(napi_env env, void *rawBuf, size_t bufLen, NVal op) in GetActualBuf() argument 61 if (op.HasProp("offset")) { in GetActualBuf() 62 tie(succ, opOffset) = op.GetProp("offset").ToInt64(opOffset); in GetActualBuf() 79 static tuple<bool, size_t> GetActualLen(napi_env env, size_t bufLen, size_t bufOff, NVal op) in GetActualLen() argument 84 if (op.HasProp("length")) { in GetActualLen() 86 tie(succ, opLength) = op.GetProp("length").ToInt64(static_cast<int64_t>(retLen)); in GetActualLen() 96 static tuple<bool, size_t> GetActualLenV9(napi_env env, int64_t bufLen, int64_t bufOff, NVal op) in GetActualLenV9() argument 101 if (op.HasProp("length")) { in GetActualLenV9() 103 tie(succ, opLength) = op.GetProp("length").ToInt64(); in GetActualLenV9() 192 NVal op(en in GetReadArg() 301 NVal op = NVal(env, option); GetReadArgV9() local [all...] |
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_independent_display_strategy.cpp | 32 std::shared_ptr<BootAnimationOperation> op = std::make_shared<BootAnimationOperation>();
in Display() local 35 op->SetSoundEnable(false);
in Display() 39 op->Init(config, screenWidth, screenHeight, duration);
in Display() 40 operators_.emplace_back(op);
in Display() 43 for (const auto& op : operators_) {
in Display() 44 op->GetThread().join();
in Display()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvstore_sync_manager.cpp | 55 ZLOGD("add op %u delay %u count %zu.", opSeq, delayMs, scheduleSyncOps_.size()); in AddSyncOperation() 71 auto pred = [syncId](const KvSyncOperation &op) -> bool { return syncId == op.syncId; }; in RemoveSyncOperation() 103 ZLOGD("remove op %u", opSeq); in RemoveSyncingOp() 104 auto pred = [opSeq](const KvSyncOperation &op) -> bool { return opSeq == op.opSeq; }; in RemoveSyncingOp() 133 const auto &op = it->second; in GetTimeoutSyncOps() local 135 if (currentTime + std::chrono::milliseconds(GetExpireTimeRange(op.delayMs)) < expireTime) { in GetTimeoutSyncOps() 138 syncOps.push_back(op); in GetTimeoutSyncOps() 139 if (op in GetTimeoutSyncOps() [all...] |
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_log.h | 29 #define DECORATOR_HILOG(op, fmt, args...) \ 31 op(LOG_CORE, "[%{public}s]" fmt, __FUNCTION__, ##args); \ 34 #define DECORATOR_HILOG(op, fmt, args...) \ 36 op(LOG_CORE, "{%s()-%s:%d} " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##args); \ 92 #define DECORATOR_PRERELEASE_HILOG(op, fmt, args...) \ 94 op(LOG_ONLY_PRERELEASE, "[%{public}s]" fmt, __FUNCTION__, ##args); \ 97 #define DECORATOR_PRERELEASE_HILOG(op, fmt, args...) \ 99 op(LOG_ONLY_PRERELEASE, "{%s()-%s:%d} " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##args); \
|
/foundation/resourceschedule/ffrt/src/sync/ |
H A D | poller_api.cpp | 35 int ffrt_epoll_ctl(ffrt_qos_t qos, int op, int fd, uint32_t events, void* data, ffrt_poller_cb cb) in ffrt_epoll_ctl() argument 41 if (op == EPOLL_CTL_DEL) { in ffrt_epoll_ctl() 43 } else if (op == EPOLL_CTL_ADD || op == EPOLL_CTL_MOD) { in ffrt_epoll_ctl() 44 int ret = ffrt::FFRTFacade::GetPPInstance().GetPoller(ffrtQos).AddFdEvent(op, events, fd, data, cb); in ffrt_epoll_ctl() 50 FFRT_LOGE("ffrt_epoll_ctl input error: op=%d, fd=%d", op, fd); in ffrt_epoll_ctl()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | draw_cmd_list.cpp | 183 for (auto& op : drawOpItems_) { in MarshallingDrawOps() 184 if (op) { in MarshallingDrawOps() 185 op->Marshalling(*this); in MarshallingDrawOps() 190 for (auto& [index, op] : replacedOpListForVector_) { in MarshallingDrawOps() 191 op.swap(drawOpItems_[index]); in MarshallingDrawOps() 263 auto op = player.Unmarshalling(type, itemPtr, opAllocator_.GetSize() - offset); in UnmarshallingDrawOps() local 264 if (!op) { in UnmarshallingDrawOps() 273 LOGE("DrawCmdList::Unmarshalling replace Ops failed, replace op is nullptr"); in UnmarshallingDrawOps() 281 replacedOpListForVector_.emplace_back((drawOpItems_.size() - 1), op); in UnmarshallingDrawOps() 283 drawOpItems_.emplace_back(op); in UnmarshallingDrawOps() 429 std::shared_ptr<DrawOpItem> op = drawOpItems_[index]; GenerateCacheByVector() local [all...] |
H A D | recording_canvas.cpp | 437 void RecordingCanvas::ClipRect(const Rect& rect, ClipOp op, bool doAntiAlias) in ClipRect() argument 440 Canvas::ClipRect(rect, op, doAntiAlias); in ClipRect() 442 cmdList_->AddDrawOp(std::make_shared<ClipRectOpItem>(rect, op, doAntiAlias)); in ClipRect() 445 cmdList_->AddDrawOp<ClipRectOpItem::ConstructorHandle>(rect, op, doAntiAlias); in ClipRect() 448 void RecordingCanvas::ClipIRect(const RectI& rect, ClipOp op) in ClipIRect() argument 451 Canvas::ClipIRect(rect, op); in ClipIRect() 453 cmdList_->AddDrawOp(std::make_shared<ClipIRectOpItem>(rect, op)); in ClipIRect() 456 cmdList_->AddDrawOp<ClipIRectOpItem::ConstructorHandle>(rect, op); in ClipIRect() 459 void RecordingCanvas::ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias) in ClipRoundRect() argument 462 Canvas::ClipRoundRect(roundRect, op, doAntiAlia in ClipRoundRect() 482 ClipPath(const Path& path, ClipOp op, bool doAntiAlias) ClipPath() argument 494 ClipRegion(const Region& region, ClipOp op) ClipRegion() argument 806 std::shared_ptr<DrawTextBlobOpItem> op = std::make_shared<DrawTextBlobOpItem>(blob, x, y, paint); GenerateCachedOpForTextblob() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/ |
H A D | common_func.cpp | 136 static tuple<bool, size_t> GetActualLen(napi_env env, size_t bufLen, size_t bufOff, NVal op)
in GetActualLen() argument 141 if (op.HasProp("length")) {
in GetActualLen() 144 tie(succ, opLength) = op.GetPropValue("length").ToInt64(static_cast<int64_t>(retLen));
in GetActualLen() 146 tie(succ, opLength) = op.GetProp("length").ToInt64(static_cast<int64_t>(retLen));
in GetActualLen() 395 NVal op = NVal(env, option);
in GetReadArg() local 396 tie(succ, retLen) = GetActualLen(env, bufLen, 0, op);
in GetReadArg() 402 if (op.HasProp("offset") && !op.GetPropValue("offset").TypeIs(napi_undefined)) {
in GetReadArg() 403 tie(succ, offset) = op.GetPropValue("offset").ToInt64();
in GetReadArg() 405 if (op in GetReadArg() [all...] |
/foundation/multimedia/media_utils_lite/interfaces/kits/ |
H A D | media_log.h | 30 #define DECORATOR_HILOG(op, fmt, args...) \ 32 op(LOG_CORE, fmt, ##args); \ 35 #define DECORATOR_HILOG(op, fmt, args...) \ 37 op(LOG_CORE, "{%s()-%s:%d} " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##args); \
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | mock_canvas.h | 40 MOCK_METHOD3(ClipRoundRectImpl, void(const TestingRoundRect& roundRect, ClipOp op, bool antiAlias)); 41 virtual void ClipRoundRect(const TestingRoundRect& roundRect, ClipOp op, bool antiAlias = false) in ClipRoundRect() argument 43 ClipRoundRectImpl(roundRect, op, antiAlias); in ClipRoundRect() 58 MOCK_METHOD3(ClipRect, void(const TestingRect& rect, ClipOp op, bool doAntiAlias)); 59 MOCK_METHOD3(ClipPath, void(const TestingPath& rect, ClipOp op, bool doAntiAlias));
|
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | loop.cpp | 69 int Loop::EpollCtl(int op, int fd, uint32_t events, void *data, ffrt_poller_cb cb) in EpollCtl() argument 71 if (op == EPOLL_CTL_ADD) { in EpollCtl() 75 return poller_.AddFdEvent(op, events, fd, data, cb); in EpollCtl() 77 } else if (op == EPOLL_CTL_DEL) { in EpollCtl() 83 } else if (op == EPOLL_CTL_MOD) { in EpollCtl() 87 FFRT_LOGE("EPOLL_CTL op invalid"); in EpollCtl()
|
/foundation/multimodalinput/input/util/socket/test/ |
H A D | uds_socket_test.cpp | 66 int32_t op = 0; in HWTEST_F() local 70 int32_t retResult = socObj.EpollCtl(fd, op, event); in HWTEST_F() 77 int32_t op = 1001; in HWTEST_F() local 81 int32_t retResult = socObj.EpollCtl(fd, op, event); in HWTEST_F() 88 int32_t op = -2002; in HWTEST_F() local 92 int32_t retResult = socObj.EpollCtl(fd, op, event); in HWTEST_F()
|
/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op.cpp | 40 bool ToolsOp::Register(ToolsOp &&op) in Register() argument 42 auto &&opName = op.GetDescriptor().opName; in Register() 53 fprintf(stderr, "Sub-op '%s' failed to pass regex '%s'\n", subOp.data(), pattern.c_str()); in Register() 62 fprintf(stderr, "Failed to register an illegal operation '%s'\n", op.GetName().c_str()); in Register() 66 ToolsOp::opsAvailable_.emplace_back(std::move(op)); in Register() 75 bool ToolsOp::TryMatch(CRefVStrView op) const in TryMatch() 77 return op == desc_.opName; in TryMatch()
|
/foundation/multimedia/media_foundation/interface/inner_api/common/ |
H A D | log.h | 87 #define HST_HILOG(op, fmt, args...) \ 89 op(LOG_TYPE, PUBLIC_LOG_S ":" fmt, HST_LOG_TAG, ##args); \ 92 #define HST_HILOG(op, fmt, args...) \ 94 op(LOG_TYPE, "(" PUBLIC_LOG_S "(), " PUBLIC_LOG_D32 "): " fmt, __FUNCTION__, __LINE__, ##args); \ 96 #define HST_HILOG_SHORT(op, fmt, args...) \ 98 op(LOG_TYPE, "#" PUBLIC_LOG_D32 " " fmt, __LINE__, ##args); \ 100 #define HST_HILOG_NO_RELEASE(op, fmt, args...) \ 102 op(LOG_ONLY_PRERELEASE, "(" PUBLIC_LOG_S "(), " PUBLIC_LOG_D32 "): " fmt, __FUNCTION__, __LINE__, ##args); \ 105 #define HST_HILOG_TAG(op, fmt, args...) \ 107 op(LOG_TYP [all...] |
/foundation/filemanagement/dfs_service/utils/system/include/ |
H A D | dfsu_actor.h | 118 const CmdOptions &op = currentCmd->option_; in ExceptionHandler() local 120 if (IsExistStopTask() && (op.tryTimes_ > 0)) { in ExceptionHandler() 124 if (op.importance_ == CmdImportance::TRIVIAL) { in ExceptionHandler() 125 if (op.tryTimes_) { in ExceptionHandler() 131 if (op.tryTimes_) { in ExceptionHandler() 135 if (op.importance_ == CmdImportance::VITAL) { in ExceptionHandler() 138 if (op.importance_ == CmdImportance::NORMAL) { in ExceptionHandler()
|
/foundation/ability/idl_tool/idl_tool_2/ast/ |
H A D | ast_expr.cpp | 38 std::string ASTUnaryExpr::UnaryOpToString(UnaryOpKind op) const
in UnaryOpToString() 40 switch (op) {
in UnaryOpToString() 69 std::string ASTBinaryExpr::BinaryOpToString(BinaryOpKind op) const
in BinaryOpToString() 71 switch (op) {
in BinaryOpToString()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/utils/ |
H A D | dp_log.h | 30 #define DECORATOR_HILOG(op, fmt, args...) \ 32 op(LOG_CORE, "{%{public}s()-%{public}s:%{public}d} " fmt, __FUNCTION__, __FILE_NAME__, __LINE__, ##args); \ 35 #define DECORATOR_HILOG(op, fmt, args...) \ 37 op(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args); \
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/ |
H A D | tools_op_check_sa_test.cpp | 53 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F() 94 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_region.cpp | 56 bool OH_Drawing_RegionOp(OH_Drawing_Region* cRegion, const OH_Drawing_Region* cDst, OH_Drawing_RegionOpMode op) in OH_Drawing_RegionOp() argument 64 if (op < REGION_OP_MODE_DIFFERENCE || op > REGION_OP_MODE_REPLACE) { in OH_Drawing_RegionOp() 68 return region->Op(*dst, static_cast<RegionOp>(op)); in OH_Drawing_RegionOp()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_occlusion_region.cpp | 149 void Region::getRange(std::vector<Range>& ranges, Node& node, Region::OP op) in getRange() argument 151 switch (op) { in getRange() 211 void Region::RegionOp(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOp() argument 214 if (op == Region::OP::AND || op == Region::OP::SUB) { in RegionOp() 222 if (op == Region::OP::AND) { in RegionOp() 229 RegionOpAccelate(r1, r2, res, op); in RegionOp() 232 void Region::RegionOpLocal(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOpLocal() argument 271 getRange(ranges, rootNode, op); in RegionOpLocal() 282 void Region::RegionOpAccelate(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOpAccelate() argument 310 OperationSelf(Region& r, Region::OP op) OperationSelf() argument [all...] |
/foundation/multimodalinput/input/util/socket/src/ |
H A D | uds_socket.cpp | 47 int32_t UDSSocket::EpollCtl(int32_t fd, int32_t op, struct epoll_event &event, int32_t epollFd) in EpollCtl() argument 61 if (op == EPOLL_CTL_DEL) { in EpollCtl() 62 ret = epoll_ctl(epollFd, op, fd, nullptr); in EpollCtl() 64 ret = epoll_ctl(epollFd, op, fd, &event); in EpollCtl() 68 "op:%{public}d,fd:%{public}d,errno:%{public}d", in EpollCtl() 69 ret, epollFd, op, fd, errno); in EpollCtl()
|
/foundation/communication/netmanager_ext/utils/log/include/ |
H A D | netmgr_ext_log_wrapper.h | 70 #define PRINT_LOG(op, fmt, ...) \ 71 (void)HILOG_IMPL(LOG_CORE, LOG_##op, LOG_DOMAIN, LOG_TAG, "[%{public}s:%{public}d]" fmt, \ 74 #define PRINT_LOG(op, fmt, ...)
|
/foundation/communication/netmanager_base/utils/log/include/ |
H A D | net_mgr_log_wrapper.h | 62 #define PRINT_LOG(op, fmt, ...) \ 63 (void)HILOG_##op(LOG_CORE, "[%{public}s:%{public}d]" fmt, \ 66 #define PRINT_LOG(op, fmt, ...)
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | read_text.cpp | 35 NVal op(env, argOption); in GetReadTextArg() 41 if (op.HasProp("position") && !op.GetProp("position").TypeIs(napi_undefined)) { in GetReadTextArg() 43 tie(succ, position) = op.GetProp("position").ToInt64(); in GetReadTextArg() 49 if (op.HasProp("length") && !op.GetProp("length").TypeIs(napi_undefined)) { in GetReadTextArg() 50 auto [succ, length] = op.GetProp("length").ToInt64(); in GetReadTextArg() 58 if (op.HasProp("encoding")) { in GetReadTextArg() 59 auto [succ, encoding, unuse] = op.GetProp("encoding").ToUTF8String("utf-8"); in GetReadTextArg()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | read_text.cpp | 35 NVal op(env, argOption);
in GetReadTextArg() 42 if (op.HasProp("offset") && !op.GetProp("offset").TypeIs(napi_undefined)) {
in GetReadTextArg() 43 tie(succ, offset) = op.GetProp("offset").ToInt64();
in GetReadTextArg() 50 if (op.HasProp("length") && !op.GetProp("length").TypeIs(napi_undefined)) {
in GetReadTextArg() 51 tie(succ, len) = op.GetProp("length").ToInt64();
in GetReadTextArg() 59 if (op.HasProp("encoding")) {
in GetReadTextArg() 60 tie(succ, encoding, ignore) = op.GetProp("encoding").ToUTF8String("utf-8");
in GetReadTextArg()
|