Home
last modified time | relevance | path

Searched refs:onSurfaceCreated (Results 1 - 5 of 5) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_xcomponent_bridge.cpp115 auto createdFunc = object->Get(vm, panda::StringRef::NewFromUtf8(vm, "onSurfaceCreated")); in SetControllerOnCreated()
118 auto onSurfaceCreated = [vm, func = panda::CopyableGlobal(vm, func), frameNode](const std::string& surfaceId) { in SetControllerOnCreated() local
125 XComponentModelNG::SetControllerOnCreated(frameNode, std::move(onSurfaceCreated)); in SetControllerOnCreated()
199 auto createdFunc = object->Get(vm, panda::StringRef::NewFromUtf8(vm, "onSurfaceCreated")); in SetControllerCallback()
202 auto onSurfaceCreated = [vm, func = panda::CopyableGlobal(vm, func), frameNode](const std::string& surfaceId) { in SetControllerCallback() local
209 XComponentModelNG::SetControllerOnCreated(frameNode, std::move(onSurfaceCreated)); in SetControllerCallback()
/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/
H A Dxcomponent_property_test_ng.cpp1610 auto onSurfaceCreated = [&onSurfaceCreatedSurfaceId]( in HWTEST_F() local
1633 * @tc.expected: onSurfaceCreated & onSurfaceChanged has called in HWTEST_F()
1639 XComponentModelNG::SetControllerOnCreated(Referenced::RawPtr(frameNode), std::move(onSurfaceCreated)); in HWTEST_F()
1673 auto onSurfaceCreated = [&onSurfaceCreatedSurfaceId]( in HWTEST_F() local
1696 * @tc.expected: onSurfaceCreated & onSurfaceChanged has not called in HWTEST_F()
1701 XComponentModelNG::SetControllerOnCreated(Referenced::RawPtr(frameNode), std::move(onSurfaceCreated)); in HWTEST_F()
1735 auto onSurfaceCreated = [&onSurfaceCreatedSurfaceId]( in HWTEST_F() local
1758 * @tc.expected: onSurfaceCreated & onSurfaceChanged has not called in HWTEST_F()
1763 XComponentModelNG::SetControllerOnCreated(Referenced::RawPtr(frameNode), std::move(onSurfaceCreated)); in HWTEST_F()
H A Dxcomponent_testtwo_ng.cpp460 auto onSurfaceCreated = [&onSurfaceCreatedSurfaceCount]( in HWTEST_F() local
464 g_testProperty.surfaceCreatedEvent = std::move(onSurfaceCreated); in HWTEST_F()
476 * @tc.expected: DEFAULT mode attach to(detach from) main tree will call onSurfaceCreated(onSurfaceDestroyed) once in HWTEST_F()
492 * @tc.expected: not in main tree change to pip will call onSurfaceCreated once in HWTEST_F()
499 * @tc.expected: PIP mode attach to(detach from) main tree will not call onSurfaceCreated(onSurfaceDestroyed) in HWTEST_F()
515 * @tc.expected: will not call onSurfaceCreated(onSurfaceDestroyed) in HWTEST_F()
H A Dxcomponent_test_ng.cpp1315 auto onSurfaceCreated = [&onSurfaceCreatedSurfaceId]( in HWTEST_F() local
1322 testProperty.surfaceCreatedEvent = std::move(onSurfaceCreated); in HWTEST_F()
1336 * @tc.expected: onSurfaceCreated & onSurfaceChanged has called and nativeXcomponent will not be created in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent.cpp72 auto jsCreatedFunc = object->GetProperty("onSurfaceCreated"); in SetControllerCallback()
75 auto onSurfaceCreated = [execCtx, func = std::move(jsFunc), node = targetNode](const std::string& surfaceId) { in SetControllerCallback() local
77 ACE_SCORING_EVENT("XComponentController.onSurfaceCreated"); in SetControllerCallback()
82 XComponentModel::GetInstance()->SetControllerOnCreated(std::move(onSurfaceCreated)); in SetControllerCallback()

Completed in 12 milliseconds