Home
last modified time | relevance | path

Searched refs:UNLIKELY (Results 1 - 25 of 29) sorted by relevance

12

/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/
H A Dshared_block.cpp36 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
117 if (UNLIKELY(ashmem == nullptr)) { in ReadMessageParcel()
122 if (UNLIKELY(!ret)) { in ReadMessageParcel()
128 if (UNLIKELY(block == nullptr)) { in ReadMessageParcel()
132 if (UNLIKELY(block->Init() == false)) { in ReadMessageParcel()
148 if (UNLIKELY(mReadOnly)) { in Clear()
168 if (UNLIKELY(mReadOnly)) { in SetColumnNum()
189 if (UNLIKELY(rowOffset == nullptr)) { in AllocRow()
199 if (UNLIKELY(!fieldDirOffset)) { in AllocRow()
224 if (UNLIKELY(nextFreeOffse in Alloc()
[all...]
/foundation/arkui/napi/native_engine/
H A Dnative_api_internal.h83 if (UNLIKELY(engine->IsCrossThreadCheckEnabled())) { \
96 if (UNLIKELY(engine->IsCrossThreadCheckEnabled())) { \
110 #ifndef UNLIKELY
111 #define UNLIKELY(exp) (__builtin_expect((exp) != 0, false)) // NOLINT(cppcoreguidelines-macro-usage) macro
H A Dnative_async_work.cpp99 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Queue()
133 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in QueueWithQos()
167 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Cancel()
H A Dnative_safe_async_work.cpp156 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in ValidEngineCheck()
/foundation/multimodalinput/input/util/common/src/
H A Dklog.cpp42 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
64 if (UNLIKELY(g_fd < 0)) { in kMsgLog()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/luminance/
H A Drs_luminance_control.cpp73 if (UNLIKELY(extLibHandle_ != nullptr)) { in LoadLibrary()
100 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadStatusControl()
128 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadLumControl()
156 if (UNLIKELY(extLibHandle_ == nullptr)) { in LoadTmoControl()
/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_reference.cpp116 LOG_IF_SPECIAL(UNLIKELY(engine->IsCrossThreadCheckEnabled()), in Get()
119 LOG_IF_SPECIAL(UNLIKELY(engine->IsCrossThreadCheckEnabled()), in Get()
134 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in Get()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.cpp61 if (UNLIKELY(!renderThreadParams)) { in OnDraw()
108 if (UNLIKELY(!renderThreadParams)) { in OnDrawVirtual()
128 if (UNLIKELY(!drawable || !drawable->GetRenderParams())) { in DrawHwcRegionForDFX()
190 if (UNLIKELY(!displayParams_)) { in DrawCurrentRefreshRate()
398 if (UNLIKELY(!displayParams_)) { in DrawTargetSurfaceDirtyRegionForDFX()
403 if (UNLIKELY(!drawable)) { in DrawTargetSurfaceDirtyRegionForDFX()
408 if (UNLIKELY(!surfaceParams) || !surfaceParams->IsAppWindow()) { in DrawTargetSurfaceDirtyRegionForDFX()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_canvas_render_node_drawable.cpp65 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
H A Drs_effect_render_node_drawable.cpp50 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
H A Drs_surface_render_node_drawable.cpp316 if (UNLIKELY(!uniParam)) { in OnDraw()
569 if (UNLIKELY(!uniParam)) { in OnCapture()
590 UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_)) { in OnCapture()
666 if (UNLIKELY(!uniParams)) { in CaptureSurface()
672 if (UNLIKELY(surfaceParams.GetIsSecurityLayer() && !uniParams->GetSecExemption()) || in CaptureSurface()
H A Drs_display_render_node_drawable.cpp278 if (UNLIKELY(!renderEngine)) { in RequestFrame()
407 if (UNLIKELY(!drawable || !drawable->GetRenderParams())) { in CheckDisplayNodeSkip()
530 if (UNLIKELY(!renderParams_ || !uniParam)) { in OnDraw()
539 if (UNLIKELY(!drawable || !drawable->GetRenderParams())) { in OnDraw()
830 if (UNLIKELY(!drawable || !drawable->GetRenderParams())) { in OnDraw()
1273 if (specialLayerType_ != NO_SPECIAL_LAYER || UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_)) { in OnCapture()
1281 if (!UNLIKELY(RSUniRenderThread::GetCaptureParam().isMirror_)) { in OnCapture()
H A Drs_canvas_drawing_render_node_drawable.cpp82 if (UNLIKELY(!params)) { in OnDraw()
97 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
435 if (UNLIKELY(!ctx)) { in ProcessCPURenderInBackgroundThread()
H A Drs_render_node_drawable.cpp67 if (UNLIKELY(RSUniRenderThread::IsInCaptureProcess())) { in Draw()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/
H A Drs_misc_drawable_test.cpp84 ASSERT_TRUE(UNLIKELY(childOne->GetSharedTransitionParam())); in HWTEST_F()
85 ASSERT_FALSE(UNLIKELY(childTwo->GetSharedTransitionParam())); in HWTEST_F()
86 ASSERT_FALSE(UNLIKELY(childThree->GetSharedTransitionParam())); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render/render_base/unittest/draw/
H A Drs_misc_draw_test.cpp84 ASSERT_TRUE(UNLIKELY(childOne->GetSharedTransitionParam())); in HWTEST_F()
85 ASSERT_FALSE(UNLIKELY(childTwo->GetSharedTransitionParam())); in HWTEST_F()
86 ASSERT_FALSE(UNLIKELY(childThree->GetSharedTransitionParam())); in HWTEST_F()
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_internal.h115 if (UNLIKELY(!(condition))) { \
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_thread.cpp341 if (UNLIKELY(!drawable)) { in ReleaseSelfDrawingNodeBuffer()
346 if (UNLIKELY(!params)) { in ReleaseSelfDrawingNodeBuffer()
350 if (UNLIKELY(!surfaceParams)) { in ReleaseSelfDrawingNodeBuffer()
773 if (UNLIKELY(!grContext)) { in PostClearMemoryTask()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_misc_drawable.cpp50 if (UNLIKELY(child->GetSharedTransitionParam()) && OnSharedTransition(child)) { in OnUpdate()
64 if (UNLIKELY(child->GetSharedTransitionParam()) && OnSharedTransition(child)) { in OnUpdate()
H A Drs_render_node_drawable_adapter.cpp196 if (UNLIKELY(skipType_ != SkipType::NONE)) { in DrawRangeImpl()
228 if (UNLIKELY(skipType_ != SkipType::NONE)) { in DrawImpl()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_common_def.h68 #define UNLIKELY(exp) (__builtin_expect((exp) != 0, false)) macro
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/
H A Drs_sub_thread.cpp267 if (UNLIKELY(!surfaceParams)) { in DrawableCache()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/params/
H A Drs_render_params.cpp73 if (UNLIKELY(HasSandBox())) { in ApplyAlphaAndMatrixToCanvas()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_node.cpp2443 if (UNLIKELY(!isFullChildrenListValid_)) { in ApplyModifiers()
2446 } else if (UNLIKELY(!isChildrenSorted_)) { in ApplyModifiers()
2449 } else if (UNLIKELY(childrenHasSharedTransition_)) { in ApplyModifiers()
2626 if (UNLIKELY((drawableVecStatus_ & NODE_NOT_EMPTY) == 0)) { in UpdateDisplayList()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_render_service_client.cpp210 if (UNLIKELY(RSSystemProperties::GetPixelmapDfxEnabled()) || (i != callbackVector.size() - 1)) { in TriggerSurfaceCaptureCallback()

Completed in 30 milliseconds

12