Home
last modified time | relevance | path

Searched refs:onSurfaceDestroyed (Results 1 - 4 of 4) sorted by relevance

/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/
H A Dxcomponent_property_test_ng.cpp1615 auto onSurfaceDestroyed = [&onSurfaceDestroyedSurfaceId]( in HWTEST_F() local
1641 XComponentModelNG::SetControllerOnDestroyed(Referenced::RawPtr(frameNode), std::move(onSurfaceDestroyed)); in HWTEST_F()
1654 * @tc.expected: onSurfaceDestroyed has called in HWTEST_F()
1678 auto onSurfaceDestroyed = [&onSurfaceDestroyedSurfaceId]( in HWTEST_F() local
1703 XComponentModelNG::SetControllerOnDestroyed(Referenced::RawPtr(frameNode), std::move(onSurfaceDestroyed)); in HWTEST_F()
1716 * @tc.expected: onSurfaceDestroyed has not called in HWTEST_F()
1740 auto onSurfaceDestroyed = [&onSurfaceDestroyedSurfaceId]( in HWTEST_F() local
1765 XComponentModelNG::SetControllerOnDestroyed(Referenced::RawPtr(frameNode), std::move(onSurfaceDestroyed)); in HWTEST_F()
1778 * @tc.expected: onSurfaceDestroyed has not called in HWTEST_F()
H A Dxcomponent_testtwo_ng.cpp462 auto onSurfaceDestroyed = [&onSurfaceDestroyedSurfaceCount]( in HWTEST_F() local
465 g_testProperty.surfaceDestroyedEvent = std::move(onSurfaceDestroyed); in HWTEST_F()
476 * @tc.expected: DEFAULT mode attach to(detach from) main tree will call onSurfaceCreated(onSurfaceDestroyed) once in HWTEST_F()
485 * @tc.expected: will not call onSurfaceDestroyed in HWTEST_F()
499 * @tc.expected: PIP mode attach to(detach from) main tree will not call onSurfaceCreated(onSurfaceDestroyed) in HWTEST_F()
508 * @tc.expected: call onSurfaceDestroyed once in HWTEST_F()
515 * @tc.expected: will not call onSurfaceCreated(onSurfaceDestroyed) in HWTEST_F()
H A Dxcomponent_test_ng.cpp1320 auto onSurfaceDestroyed = [&onSurfaceDestroyedSurfaceId]( in HWTEST_F() local
1324 testProperty.surfaceDestroyedEvent = std::move(onSurfaceDestroyed); in HWTEST_F()
1360 * @tc.expected: onSurfaceDestroyed has called in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent.cpp103 auto jsDestroyedFunc = object->GetProperty("onSurfaceDestroyed"); in SetControllerCallback()
106 auto onSurfaceDestroyed = [execCtx, func = std::move(jsFunc), node = targetNode](const std::string& surfaceId) { in SetControllerCallback() local
108 ACE_SCORING_EVENT("XComponentController.onSurfaceDestroyed"); in SetControllerCallback()
113 XComponentModel::GetInstance()->SetControllerOnDestroyed(std::move(onSurfaceDestroyed)); in SetControllerCallback()

Completed in 8 milliseconds