/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/ |
H A D | shared_block.cpp | 36 #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 D | native_api_internal.h | 83 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 D | native_async_work.cpp | 99 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 D | native_safe_async_work.cpp | 156 LOG_IF_SPECIAL(UNLIKELY(engine_->IsCrossThreadCheckEnabled()), in ValidEngineCheck()
|
/foundation/multimodalinput/input/util/common/src/ |
H A D | klog.cpp | 42 #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 D | rs_luminance_control.cpp | 73 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 D | ark_native_reference.cpp | 116 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 D | rs_dirty_rects_dfx.cpp | 61 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 D | rs_canvas_render_node_drawable.cpp | 65 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
|
H A D | rs_effect_render_node_drawable.cpp | 50 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw()
|
H A D | rs_surface_render_node_drawable.cpp | 316 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 D | rs_display_render_node_drawable.cpp | 278 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 D | rs_canvas_drawing_render_node_drawable.cpp | 82 if (UNLIKELY(!params)) { in OnDraw() 97 if ((UNLIKELY(!uniParam) || uniParam->IsOpDropped()) && GetOpDropped() && in OnDraw() 435 if (UNLIKELY(!ctx)) { in ProcessCPURenderInBackgroundThread()
|
H A D | rs_render_node_drawable.cpp | 67 if (UNLIKELY(RSUniRenderThread::IsInCaptureProcess())) { in Draw()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_misc_drawable_test.cpp | 84 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 D | rs_misc_draw_test.cpp | 84 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 D | ark_interop_internal.h | 115 if (UNLIKELY(!(condition))) { \
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_thread.cpp | 341 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 D | rs_misc_drawable.cpp | 50 if (UNLIKELY(child->GetSharedTransitionParam()) && OnSharedTransition(child)) { in OnUpdate() 64 if (UNLIKELY(child->GetSharedTransitionParam()) && OnSharedTransition(child)) { in OnUpdate()
|
H A D | rs_render_node_drawable_adapter.cpp | 196 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 D | rs_common_def.h | 68 #define UNLIKELY(exp) (__builtin_expect((exp) != 0, false)) macro
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/ |
H A D | rs_sub_thread.cpp | 267 if (UNLIKELY(!surfaceParams)) { in DrawableCache()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/params/ |
H A D | rs_render_params.cpp | 73 if (UNLIKELY(HasSandBox())) { in ApplyAlphaAndMatrixToCanvas()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_node.cpp | 2443 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 D | rs_render_service_client.cpp | 210 if (UNLIKELY(RSSystemProperties::GetPixelmapDfxEnabled()) || (i != callbackVector.size() - 1)) { in TriggerSurfaceCaptureCallback()
|