Lines Matching refs:DMError
54 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
61 DMError SetFoldDisplayModeFromJs(const FoldDisplayMode);
64 DMError SetFoldStatusLockedFromJs(bool locked);
66 DMError RegisterDisplayListener(sptr<IDisplayListener> listener);
67 DMError UnregisterDisplayListener(sptr<IDisplayListener> listener);
69 DMError RegisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
70 DMError UnregisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
71 DMError RegisterScreenshotListener(sptr<IScreenshotListener> listener);
72 DMError UnregisterScreenshotListener(sptr<IScreenshotListener> listener);
73 DMError RegisterPrivateWindowListener(sptr<IPrivateWindowListener> listener);
74 DMError UnregisterPrivateWindowListener(sptr<IPrivateWindowListener> listener);
75 DMError RegisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener);
76 DMError UnregisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener);
77 DMError RegisterFoldStatusListener(sptr<IFoldStatusListener> listener);
78 DMError UnregisterFoldStatusListener(sptr<IFoldStatusListener> listener);
79 DMError RegisterFoldAngleListener(sptr<IFoldAngleListener> listener);
80 DMError UnregisterFoldAngleListener(sptr<IFoldAngleListener> listener);
81 DMError RegisterCaptureStatusListener(sptr<ICaptureStatusListener> listener);
82 DMError UnregisterCaptureStatusListener(sptr<ICaptureStatusListener> listener);
83 DMError RegisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener);
84 DMError UnregisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener);
85 DMError RegisterDisplayModeListener(sptr<IDisplayModeListener> listener);
86 DMError UnregisterDisplayModeListener(sptr<IDisplayModeListener> listener);
87 DMError RegisterAvailableAreaListener(sptr<IAvailableAreaListener> listener);
88 DMError UnregisterAvailableAreaListener(sptr<IAvailableAreaListener> listener);
90 DMError ProxyForFreeze(const std::set<int32_t>& pidList, bool isProxy);
91 DMError ResetAllFreezeStatus();
92 DMError SetVirtualScreenSecurityExemption(ScreenId screenId, uint32_t pid, std::vector<uint64_t>& windowIdList);
443 DMError res = DMError::DM_OK;
451 if (res != DMError::DM_OK) {
462 DMError res = SingletonContainer::Get<DisplayManagerAdapter>().UnregisterDisplayManagerAgent(
465 if (res != DMError::DM_OK) {
478 DMError res = SingletonContainer::Get<DisplayManagerAdapter>().UnregisterDisplayManagerAgent(
481 if (res != DMError::DM_OK) {
490 DMError res = DMError::DM_OK;
498 if (res != DMError::DM_OK) {
507 DMError res = DMError::DM_OK;
513 if (res != DMError::DM_OK) {
516 res = DMError::DM_OK;
522 if (res != DMError::DM_OK) {
887 DMError DisplayManager::HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow)
892 DMError DisplayManager::Impl::HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow)
942 DMError DisplayManager::SetFoldDisplayModeFromJs(const FoldDisplayMode mode)
963 DMError DisplayManager::Impl::SetFoldDisplayModeFromJs(const FoldDisplayMode mode)
973 DMError DisplayManager::SetFoldStatusLockedFromJs(bool locked)
983 DMError DisplayManager::Impl::SetFoldStatusLockedFromJs(bool locked)
998 DMError DisplayManager::Impl::RegisterDisplayListener(sptr<IDisplayListener> listener)
1001 DMError ret = DMError::DM_OK;
1008 if (ret != DMError::DM_OK) {
1041 DMError DisplayManager::RegisterPrivateWindowListener(sptr<IPrivateWindowListener> listener)
1045 return DMError::DM_ERROR_NULLPTR;
1050 DMError DisplayManager::UnregisterPrivateWindowListener(sptr<IPrivateWindowListener> listener)
1054 return DMError::DM_ERROR_NULLPTR;
1059 DMError DisplayManager::RegisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener)
1063 return DMError::DM_ERROR_NULLPTR;
1068 DMError DisplayManager::UnregisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener)
1072 return DMError::DM_ERROR_NULLPTR;
1077 DMError DisplayManager::Impl::RegisterPrivateWindowListener(sptr<IPrivateWindowListener> listener)
1080 DMError ret = DMError::DM_OK;
1087 if (ret != DMError::DM_OK) {
1097 DMError DisplayManager::Impl::UnregisterPrivateWindowListener(sptr<IPrivateWindowListener> listener)
1103 return DMError::DM_ERROR_NULLPTR;
1106 DMError ret = DMError::DM_OK;
1116 DMError DisplayManager::Impl::RegisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener)
1119 DMError ret = DMError::DM_OK;
1126 if (ret != DMError::DM_OK) {
1136 DMError DisplayManager::Impl::UnregisterPrivateWindowListChangeListener(sptr<IPrivateWindowListChangeListener> listener)
1142 return DMError::DM_ERROR_NULLPTR;
1145 DMError ret = DMError::DM_OK;
1155 DMError DisplayManager::RegisterDisplayListener(sptr<IDisplayListener> listener)
1159 return DMError::DM_ERROR_NULLPTR;
1164 DMError DisplayManager::Impl::UnregisterDisplayListener(sptr<IDisplayListener> listener)
1170 return DMError::DM_ERROR_NULLPTR;
1173 DMError ret = DMError::DM_OK;
1183 DMError DisplayManager::UnregisterDisplayListener(sptr<IDisplayListener> listener)
1187 return DMError::DM_ERROR_NULLPTR;
1192 DMError DisplayManager::Impl::RegisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener)
1195 DMError ret = DMError::DM_OK;
1202 if (ret != DMError::DM_OK) {
1212 DMError DisplayManager::RegisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener)
1216 return DMError::DM_ERROR_NULLPTR;
1221 DMError DisplayManager::Impl::UnregisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener)
1227 return DMError::DM_ERROR_NULLPTR;
1230 DMError ret = DMError::DM_OK;
1241 DMError DisplayManager::UnregisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener)
1245 return DMError::DM_ERROR_NULLPTR;
1250 DMError DisplayManager::Impl::RegisterScreenshotListener(sptr<IScreenshotListener> listener)
1253 DMError ret = DMError::DM_OK;
1260 if (ret != DMError::DM_OK) {
1269 DMError DisplayManager::RegisterScreenshotListener(sptr<IScreenshotListener> listener)
1273 return DMError::DM_ERROR_NULLPTR;
1278 DMError DisplayManager::Impl::UnregisterScreenshotListener(sptr<IScreenshotListener> listener)
1284 return DMError::DM_ERROR_NULLPTR;
1287 DMError ret = DMError::DM_OK;
1297 DMError DisplayManager::UnregisterScreenshotListener(sptr<IScreenshotListener> listener)
1301 return DMError::DM_ERROR_NULLPTR;
1318 DMError DisplayManager::RegisterFoldAngleListener(sptr<IFoldAngleListener> listener)
1322 return DMError::DM_ERROR_NULLPTR;
1327 DMError DisplayManager::Impl::RegisterFoldAngleListener(sptr<IFoldAngleListener> listener)
1330 DMError ret = DMError::DM_OK;
1337 if (ret != DMError::DM_OK) {
1347 DMError DisplayManager::UnregisterFoldAngleListener(sptr<IFoldAngleListener> listener)
1351 return DMError::DM_ERROR_NULLPTR;
1356 DMError DisplayManager::Impl::UnregisterFoldAngleListener(sptr<IFoldAngleListener> listener)
1362 return DMError::DM_ERROR_NULLPTR;
1365 DMError ret = DMError::DM_OK;
1387 DMError DisplayManager::RegisterCaptureStatusListener(sptr<ICaptureStatusListener> listener)
1391 return DMError::DM_ERROR_NULLPTR;
1396 DMError DisplayManager::Impl::RegisterCaptureStatusListener(sptr<ICaptureStatusListener> listener)
1399 DMError ret = DMError::DM_OK;
1406 if (ret != DMError::DM_OK) {
1416 DMError DisplayManager::UnregisterCaptureStatusListener(sptr<ICaptureStatusListener> listener)
1420 return DMError::DM_ERROR_NULLPTR;
1425 DMError DisplayManager::Impl::UnregisterCaptureStatusListener(sptr<ICaptureStatusListener> listener)
1431 return DMError::DM_ERROR_NULLPTR;
1434 DMError ret = DMError::DM_OK;
1456 DMError DisplayManager::RegisterFoldStatusListener(sptr<IFoldStatusListener> listener)
1460 return DMError::DM_ERROR_NULLPTR;
1465 DMError DisplayManager::Impl::RegisterFoldStatusListener(sptr<IFoldStatusListener> listener)
1468 DMError ret = DMError::DM_OK;
1475 if (ret != DMError::DM_OK) {
1485 DMError DisplayManager::UnregisterFoldStatusListener(sptr<IFoldStatusListener> listener)
1489 return DMError::DM_ERROR_NULLPTR;
1494 DMError DisplayManager::Impl::UnregisterFoldStatusListener(sptr<IFoldStatusListener> listener)
1500 return DMError::DM_ERROR_NULLPTR;
1503 DMError ret = DMError::DM_OK;
1525 DMError DisplayManager::RegisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener)
1529 return DMError::DM_ERROR_NULLPTR;
1534 DMError DisplayManager::Impl::RegisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener)
1537 DMError ret = DMError::DM_OK;
1544 if (ret != DMError::DM_OK) {
1554 DMError DisplayManager::UnregisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener)
1558 return DMError::DM_ERROR_NULLPTR;
1563 DMError DisplayManager::Impl::UnregisterDisplayUpdateListener(sptr<IDisplayUpdateListener> listener)
1569 return DMError::DM_ERROR_NULLPTR;
1572 DMError ret = DMError::DM_OK;
1608 DMError DisplayManager::RegisterDisplayModeListener(sptr<IDisplayModeListener> listener)
1612 return DMError::DM_ERROR_NULLPTR;
1617 DMError DisplayManager::Impl::RegisterDisplayModeListener(sptr<IDisplayModeListener> listener)
1620 DMError ret = DMError::DM_OK;
1627 if (ret != DMError::DM_OK) {
1637 DMError DisplayManager::UnregisterDisplayModeListener(sptr<IDisplayModeListener> listener)
1641 return DMError::DM_ERROR_NULLPTR;
1646 DMError DisplayManager::Impl::UnregisterDisplayModeListener(sptr<IDisplayModeListener> listener)
1652 return DMError::DM_ERROR_NULLPTR;
1655 DMError ret = DMError::DM_OK;
1665 DMError DisplayManager::RegisterAvailableAreaListener(sptr<IAvailableAreaListener> listener)
1669 return DMError::DM_ERROR_NULLPTR;
1674 DMError DisplayManager::Impl::RegisterAvailableAreaListener(sptr<IAvailableAreaListener> listener)
1677 DMError ret = DMError::DM_OK;
1684 if (ret != DMError::DM_OK) {
1694 DMError DisplayManager::UnregisterAvailableAreaListener(sptr<IAvailableAreaListener> listener)
1698 return DMError::DM_ERROR_NULLPTR;
1703 DMError DisplayManager::Impl::UnregisterAvailableAreaListener(sptr<IAvailableAreaListener> listener)
1709 return DMError::DM_ERROR_NULLPTR;
1712 DMError ret = DMError::DM_OK;
1889 DisplayManagerAgentType::DISPLAY_STATE_LISTENER) == DMError::DM_OK;
1964 DMError DisplayManager::AddSurfaceNodeToDisplay(DisplayId displayId,
1970 DMError DisplayManager::RemoveSurfaceNodeFromDisplay(DisplayId displayId,
2026 DMError DisplayManager::ProxyForFreeze(std::set<int32_t> pidList, bool isProxy)
2036 DMError DisplayManager::Impl::ProxyForFreeze(const std::set<int32_t>& pidList, bool isProxy)
2041 DMError DisplayManager::ResetAllFreezeStatus()
2046 DMError DisplayManager::Impl::ResetAllFreezeStatus()
2051 DMError DisplayManager::SetVirtualScreenSecurityExemption(ScreenId screenId, uint32_t pid,
2057 DMError DisplayManager::Impl::SetVirtualScreenSecurityExemption(ScreenId screenId, uint32_t pid,