Lines Matching refs:DMError
170 DMError DisplayManagerProxy::DestroyVirtualScreen(ScreenId screenId)
175 return DMError::DM_ERROR_REMOTE_CREATE_FAILED;
183 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
187 return DMError::DM_ERROR_IPC_FAILED;
192 return DMError::DM_ERROR_IPC_FAILED;
194 return static_cast<DMError>(reply.ReadInt32());
197 DMError DisplayManagerProxy::SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface)
202 return DMError::DM_ERROR_REMOTE_CREATE_FAILED;
210 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
223 return DMError::DM_ERROR_IPC_FAILED;
228 return DMError::DM_ERROR_IPC_FAILED;
230 return static_cast<DMError>(reply.ReadInt32());
233 DMError DisplayManagerProxy::SetOrientation(ScreenId screenId, Orientation orientation)
238 return DMError::DM_ERROR_NULLPTR;
246 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
250 return DMError::DM_ERROR_IPC_FAILED;
254 return DMError::DM_ERROR_IPC_FAILED;
259 return DMError::DM_ERROR_IPC_FAILED;
261 return static_cast<DMError>(reply.ReadInt32());
303 DMError DisplayManagerProxy::GetScreenSupportedColorGamuts(ScreenId screenId,
309 return DMError::DM_ERROR_NULLPTR;
317 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
321 return DMError::DM_ERROR_IPC_FAILED;
326 return DMError::DM_ERROR_IPC_FAILED;
328 DMError ret = static_cast<DMError>(reply.ReadInt32());
329 if (ret != DMError::DM_OK) {
343 DMError DisplayManagerProxy::GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut)
348 return DMError::DM_ERROR_NULLPTR;
356 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
360 return DMError::DM_ERROR_IPC_FAILED;
365 return DMError::DM_ERROR_IPC_FAILED;
367 DMError ret = static_cast<DMError>(reply.ReadInt32());
368 if (ret != DMError::DM_OK) {
375 DMError DisplayManagerProxy::SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx)
380 return DMError::DM_ERROR_NULLPTR;
388 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
392 return DMError::DM_ERROR_IPC_FAILED;
397 return DMError::DM_ERROR_IPC_FAILED;
399 return static_cast<DMError>(reply.ReadInt32());
402 DMError DisplayManagerProxy::GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap)
407 return DMError::DM_ERROR_NULLPTR;
415 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
419 return DMError::DM_ERROR_IPC_FAILED;
424 return DMError::DM_ERROR_IPC_FAILED;
426 DMError ret = static_cast<DMError>(reply.ReadInt32());
427 if (ret != DMError::DM_OK) {
434 DMError DisplayManagerProxy::SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap)
439 return DMError::DM_ERROR_NULLPTR;
447 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
451 return DMError::DM_ERROR_IPC_FAILED;
456 return DMError::DM_ERROR_IPC_FAILED;
458 return static_cast<DMError>(reply.ReadInt32());
461 DMError DisplayManagerProxy::SetScreenColorTransform(ScreenId screenId)
466 return DMError::DM_ERROR_NULLPTR;
474 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
478 return DMError::DM_ERROR_IPC_FAILED;
483 return DMError::DM_ERROR_IPC_FAILED;
485 return static_cast<DMError>(reply.ReadInt32());
488 DMError DisplayManagerProxy::GetPixelFormat(ScreenId screenId, GraphicPixelFormat& pixelFormat)
493 return DMError::DM_ERROR_NULLPTR;
501 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
505 return DMError::DM_ERROR_IPC_FAILED;
510 return DMError::DM_ERROR_IPC_FAILED;
512 DMError ret = static_cast<DMError>(reply.ReadInt32());
513 if (ret != DMError::DM_OK) {
520 DMError DisplayManagerProxy::SetPixelFormat(ScreenId screenId, GraphicPixelFormat pixelFormat)
525 return DMError::DM_ERROR_NULLPTR;
533 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
537 return DMError::DM_ERROR_IPC_FAILED;
542 return DMError::DM_ERROR_IPC_FAILED;
544 return static_cast<DMError>(reply.ReadInt32());
547 DMError DisplayManagerProxy::GetSupportedHDRFormats(ScreenId screenId, std::vector<ScreenHDRFormat>& hdrFormats)
552 return DMError::DM_ERROR_NULLPTR;
560 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
564 return DMError::DM_ERROR_IPC_FAILED;
569 return DMError::DM_ERROR_IPC_FAILED;
571 DMError ret = static_cast<DMError>(reply.ReadInt32());
572 if (ret != DMError::DM_OK) {
586 DMError DisplayManagerProxy::GetScreenHDRFormat(ScreenId screenId, ScreenHDRFormat& hdrFormat)
591 return DMError::DM_ERROR_NULLPTR;
599 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
603 return DMError::DM_ERROR_IPC_FAILED;
608 return DMError::DM_ERROR_IPC_FAILED;
610 DMError ret = static_cast<DMError>(reply.ReadInt32());
611 if (ret != DMError::DM_OK) {
618 DMError DisplayManagerProxy::SetScreenHDRFormat(ScreenId screenId, int32_t modeIdx)
623 return DMError::DM_ERROR_NULLPTR;
631 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
635 return DMError::DM_ERROR_IPC_FAILED;
640 return DMError::DM_ERROR_IPC_FAILED;
642 return static_cast<DMError>(reply.ReadInt32());
645 DMError DisplayManagerProxy::GetSupportedColorSpaces(ScreenId screenId,
651 return DMError::DM_ERROR_NULLPTR;
659 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
663 return DMError::DM_ERROR_IPC_FAILED;
668 return DMError::DM_ERROR_IPC_FAILED;
670 DMError ret = static_cast<DMError>(reply.ReadInt32());
671 if (ret != DMError::DM_OK) {
685 DMError DisplayManagerProxy::GetScreenColorSpace(ScreenId screenId, GraphicCM_ColorSpaceType& colorSpace)
690 return DMError::DM_ERROR_NULLPTR;
698 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
702 return DMError::DM_ERROR_IPC_FAILED;
707 return DMError::DM_ERROR_IPC_FAILED;
709 DMError ret = static_cast<DMError>(reply.ReadInt32());
710 if (ret != DMError::DM_OK) {
717 DMError DisplayManagerProxy::SetScreenColorSpace(ScreenId screenId, GraphicCM_ColorSpaceType colorSpace)
722 return DMError::DM_ERROR_NULLPTR;
730 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
734 return DMError::DM_ERROR_IPC_FAILED;
739 return DMError::DM_ERROR_IPC_FAILED;
741 return static_cast<DMError>(reply.ReadInt32());
744 DMError DisplayManagerProxy::RegisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
750 return DMError::DM_ERROR_NULLPTR;
758 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
763 return DMError::DM_ERROR_IPC_FAILED;
768 return DMError::DM_ERROR_IPC_FAILED;
774 return DMError::DM_ERROR_IPC_FAILED;
776 return static_cast<DMError>(reply.ReadInt32());
779 DMError DisplayManagerProxy::UnregisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
785 return DMError::DM_ERROR_NULLPTR;
793 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
798 return DMError::DM_ERROR_IPC_FAILED;
803 return DMError::DM_ERROR_IPC_FAILED;
809 return DMError::DM_ERROR_IPC_FAILED;
811 return static_cast<DMError>(reply.ReadInt32());
1136 DMError DisplayManagerProxy::AddSurfaceNodeToDisplay(DisplayId displayId,
1142 return DMError::DM_ERROR_IPC_FAILED;
1150 return DMError::DM_ERROR_IPC_FAILED;
1154 return DMError::DM_ERROR_IPC_FAILED;
1158 return DMError::DM_ERROR_IPC_FAILED;
1163 return DMError::DM_ERROR_IPC_FAILED;
1165 DMError ret = static_cast<DMError>(reply.ReadUint32());
1169 DMError DisplayManagerProxy::RemoveSurfaceNodeFromDisplay(DisplayId displayId,
1175 return DMError::DM_ERROR_IPC_FAILED;
1183 return DMError::DM_ERROR_IPC_FAILED;
1187 return DMError::DM_ERROR_IPC_FAILED;
1191 return DMError::DM_ERROR_IPC_FAILED;
1196 return DMError::DM_ERROR_IPC_FAILED;
1198 DMError ret = static_cast<DMError>(reply.ReadUint32());
1202 DMError DisplayManagerProxy::HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow)
1207 return DMError::DM_ERROR_IPC_FAILED;
1214 return DMError::DM_ERROR_IPC_FAILED;
1218 return DMError::DM_ERROR_IPC_FAILED;
1223 return DMError::DM_ERROR_IPC_FAILED;
1225 DMError ret = static_cast<DMError>(reply.ReadInt32());
1288 DMError DisplayManagerProxy::MakeMirror(ScreenId mainScreenId, std::vector<ScreenId> mirrorScreenId,
1294 return DMError::DM_ERROR_NULLPTR;
1302 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1308 return DMError::DM_ERROR_IPC_FAILED;
1313 return DMError::DM_ERROR_IPC_FAILED;
1315 DMError ret = static_cast<DMError>(reply.ReadInt32());
1320 DMError DisplayManagerProxy::StopMirror(const std::vector<ScreenId>& mirrorScreenIds)
1325 return DMError::DM_ERROR_NULLPTR;
1333 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1338 return DMError::DM_ERROR_IPC_FAILED;
1343 return DMError::DM_ERROR_IPC_FAILED;
1345 return static_cast<DMError>(reply.ReadInt32());
1418 DMError DisplayManagerProxy::GetAllScreenInfos(std::vector<sptr<ScreenInfo>>& screenInfos)
1423 return DMError::DM_ERROR_NULLPTR;
1431 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1436 return DMError::DM_ERROR_IPC_FAILED;
1438 DMError ret = static_cast<DMError>(reply.ReadInt32());
1443 DMError DisplayManagerProxy::MakeExpand(std::vector<ScreenId> screenId, std::vector<Point> startPoint,
1449 return DMError::DM_ERROR_IPC_FAILED;
1457 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1461 return DMError::DM_ERROR_IPC_FAILED;
1467 return DMError::DM_ERROR_IPC_FAILED;
1472 return DMError::DM_ERROR_IPC_FAILED;
1474 DMError ret = static_cast<DMError>(reply.ReadInt32());
1479 DMError DisplayManagerProxy::StopExpand(const std::vector<ScreenId>& expandScreenIds)
1484 return DMError::DM_ERROR_NULLPTR;
1492 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1497 return DMError::DM_ERROR_IPC_FAILED;
1502 return DMError::DM_ERROR_IPC_FAILED;
1504 return static_cast<DMError>(reply.ReadInt32());
1534 DMError DisplayManagerProxy::SetScreenActiveMode(ScreenId screenId, uint32_t modeId)
1539 return DMError::DM_ERROR_NULLPTR;
1547 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1551 return DMError::DM_ERROR_IPC_FAILED;
1556 return DMError::DM_ERROR_IPC_FAILED;
1558 return static_cast<DMError>(reply.ReadInt32());
1561 DMError DisplayManagerProxy::SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio)
1566 return DMError::DM_ERROR_NULLPTR;
1574 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1578 return DMError::DM_ERROR_IPC_FAILED;
1583 return DMError::DM_ERROR_IPC_FAILED;
1585 return static_cast<DMError>(reply.ReadInt32());
1588 DMError DisplayManagerProxy::SetResolution(ScreenId screenId, uint32_t width, uint32_t height, float virtualPixelRatio)
1593 return DMError::DM_ERROR_NULLPTR;
1601 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1606 return DMError::DM_ERROR_IPC_FAILED;
1611 return DMError::DM_ERROR_IPC_FAILED;
1613 return static_cast<DMError>(reply.ReadInt32());
1616 DMError DisplayManagerProxy::GetDensityInCurResolution(ScreenId screenId, float& virtualPixelRatio)
1621 return DMError::DM_ERROR_NULLPTR;
1629 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1633 return DMError::DM_ERROR_IPC_FAILED;
1638 return DMError::DM_ERROR_IPC_FAILED;
1641 return static_cast<DMError>(reply.ReadInt32());
1644 DMError DisplayManagerProxy::IsScreenRotationLocked(bool& isLocked)
1649 return DMError::DM_ERROR_NULLPTR;
1656 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1661 return DMError::DM_ERROR_IPC_FAILED;
1663 DMError ret = static_cast<DMError>(reply.ReadInt32());
1668 DMError DisplayManagerProxy::SetScreenRotationLocked(bool isLocked)
1673 return DMError::DM_ERROR_NULLPTR;
1681 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1685 return DMError::DM_ERROR_IPC_FAILED;
1690 return DMError::DM_ERROR_IPC_FAILED;
1692 return static_cast<DMError>(reply.ReadInt32());
1695 DMError DisplayManagerProxy::SetScreenRotationLockedFromJs(bool isLocked)
1700 return DMError::DM_ERROR_NULLPTR;
1708 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1712 return DMError::DM_ERROR_IPC_FAILED;
1717 return DMError::DM_ERROR_IPC_FAILED;
1719 return static_cast<DMError>(reply.ReadInt32());
1722 DMError DisplayManagerProxy::ResizeVirtualScreen(ScreenId screenId, uint32_t width, uint32_t height)
1728 return DMError::DM_ERROR_REMOTE_CREATE_FAILED;
1737 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED;
1741 return DMError::DM_ERROR_IPC_FAILED;
1745 return DMError::DM_ERROR_IPC_FAILED;
1749 return DMError::DM_ERROR_IPC_FAILED;
1754 return DMError::DM_ERROR_NULLPTR;
1756 return static_cast<DMError>(reply.ReadInt32());
1759 DMError DisplayManagerProxy::MakeUniqueScreen(const std::vector<ScreenId>& screenIds)
1765 return DMError::DM_ERROR_NULLPTR;
1773 return DMError::DM_ERROR_NULLPTR;
1777 return DMError::DM_ERROR_INVALID_PARAM;
1782 return DMError::DM_ERROR_NULLPTR;
1788 return DMError::DM_ERROR_NULLPTR;
1790 return static_cast<DMError>(reply.ReadInt32());