fix reviewbot and update readme file

Signed-off-by: sxzheng96 <zhengshuangxi2@huawei.com>
This commit is contained in:
sxzheng96
2022-03-10 16:58:57 +08:00
parent 28d36747b8
commit 65e04c9c76
19 changed files with 93 additions and 48 deletions
+9 -3
View File
@@ -2,7 +2,7 @@
## **简介**
分布式屏幕是一种屏幕虚拟化能力,支持用户指定任意设备的屏幕作为Display的显示区域。在分布式硬件子系统中,分布式屏幕提供跨设备屏幕能力调用,为OpenHarmony操作系统提供系统投屏、屏幕镜像、屏幕分割等能力的实现。
分布式屏幕是一种屏幕虚拟化能力,支持用户指定组网认证过的其他OpenHarmony设备的屏幕作为Display的显示区域。在分布式硬件子系统中,分布式屏幕组件提供跨设备屏幕能力调用,为OpenHarmony操作系统提供系统投屏、屏幕镜像、屏幕分割等能力的实现。
系统架构如下图所示:
@@ -63,6 +63,9 @@
### **接口说明**
分布式屏幕实现分布式硬件管理框架提供的接口,由分布式硬件管理框架统一调用接口实现虚拟屏幕硬件的创建和注册功能。
### **场景说明**
设备组网认证后,主控端设备可以指定被控端设备的屏幕来显示Display绘制的内容。
### **流程说明**
#### **1. 设备开机启动**
系统拉起分布式屏幕的SA服务,Source侧被初始化,相关模块被初始化。
@@ -83,5 +86,8 @@
## **涉及仓**
****
**分布式屏幕**
[distributed_screen](https://gitee.com/openharmony/distributed_screen)
**分布式屏幕**
[distributed_screen](https://gitee.com/openharmony/distributed_screen)
**分布式硬件管理框架**
[distributed_hardware_fwk](https://gitee.com/openharmony/distributed_hardware_fwk)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 28 KiB

@@ -55,5 +55,5 @@ HWTEST_F(DataBufferTest, Data_001, TestSize.Level1)
uint8_t *actual = dataBuffer_->Data();
EXPECT_NE(nullptr, actual);
}
}
}
} // namespace DistributedHardware
} // namespace OHOS
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_DATA_BUFFER_TEST_H
#define OHOS_DATA_BUFFER_TEST_H
#include <gtest/gtest.h>
#include <new>
@@ -29,5 +32,6 @@ public:
size_t capacity = 1;
std::shared_ptr<DataBuffer> dataBuffer_ = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -93,5 +93,5 @@ void DScreenMapRelationTest::TearDown() {}
ScreenRect actual = dscreenMapRelation->GetScreenRect();
EXPECT_EQ(startX, actual.startX);
}
}
}
} // namespace DistributedHardware
} // namespace OHOS
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_DSCREEN_MAPRELATION_TEST_H
#define OHOS_DSCREEN_MAPRELATION_TEST_H
#include <gtest/gtest.h>
#include "dscreen_constants.h"
@@ -31,5 +34,6 @@ public:
void TearDown();
std::shared_ptr<DScreenMapRelation> dscreenMapRelation = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -131,5 +131,5 @@ HWTEST_F(VideoParamTest, GetVideoFormat_001, TestSize.Level1)
uint8_t actual = videoParam_->GetVideoFormat();
EXPECT_EQ(videoFormat, actual);
}
}
}
} // namespace DistributedHardware
} // namespace OHOS
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_VIDEO_PARAM_TEST_H
#define OHOS_VIDEO_PARAM_TEST_H
#include <gtest/gtest.h>
#include "dscreen_constants.h"
@@ -31,5 +34,6 @@ public:
void TearDown();
std::shared_ptr<VideoParam> videoParam_ = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_SCREEN_CLIENT_TEST_H
#define OHOS_SCREEN_CLIENT_TEST_H
#include <gtest/gtest.h>
#include "dscreen_errcode.h"
@@ -29,5 +32,6 @@ public:
void SetUp();
void TearDown();
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_SCREEN_CLIENT_WINDOW_ADAPTER_TEST_H
#define OHOS_SCREEN_CLIENT_WINDOW_ADAPTER_TEST_H
#include <gtest/gtest.h>
#include "rs_surface_node.h"
@@ -33,5 +36,6 @@ public:
void SetUp();
void TearDown();
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_SCREEN_DATA_CHANNEL_IMPL_TEST_H
#define OHOS_SCREEN_DATA_CHANNEL_IMPL_TEST_H
#include <securec.h>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
@@ -35,5 +38,6 @@ public:
void TearDown();
std::shared_ptr<ScreenDataChannelImpl> dataChannelImpl_ = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,8 +13,8 @@
* limitations under the License.
*/
#ifndef IMAGE_SINK_DECODER_TEST_H
#define IMAGE_SINK_DECODER_TEST_H
#ifndef OHOS_IMAGE_SINK_DECODER_TEST_H
#define OHOS_IMAGE_SINK_DECODER_TEST_H
#include <gtest/gtest.h>
@@ -37,6 +37,6 @@ public:
std::shared_ptr<ImageSinkDecoder> imageDecoder_ = nullptr;
std::shared_ptr<IImageSinkProcessorListener> imageListener_ = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,16 +13,16 @@
* limitations under the License.
*/
#ifndef IMAGE_SINK_DECODER_TEST_H
#define IMAGE_SINK_DECODER_TEST_H
#ifndef OHOS_IMAGE_SINK_DECODER_TEST_H
#define OHOS_IMAGE_SINK_DECODER_TEST_H
#include <gtest/gtest.h>
#define private public
#include "image_sink_processor.h"
#undef private
#include "screentrans_test_utils.h"
#include "iscreen_channel_listener.h"
#include "screentrans_test_utils.h"
namespace OHOS {
namespace DistributedHardware {
@@ -37,6 +37,6 @@ public:
std::shared_ptr<ImageSinkProcessor> processor_;
std::shared_ptr<IImageSinkProcessorListener> imageListener_;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,16 +13,15 @@
* limitations under the License.
*/
#ifndef SCREEN_SINK_TRANS_TEST_H
#define SCREEN_SINK_TRANS_TEST_H
#ifndef OHOS_SCREEN_SINK_TRANS_TEST_H
#define OHOS_SCREEN_SINK_TRANS_TEST_H
#include <gtest/gtest.h>
#include "iscreen_sink_trans_callback.h"
#define private public
#include "screen_sink_trans.h"
#undef private
#include "iscreen_sink_trans_callback.h"
#include "screentrans_test_utils.h"
namespace OHOS {
@@ -38,6 +37,6 @@ public:
VideoParam param_;
std::string peerDevId_;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_IMAGE_SOURCE_ENCODER_TEST_H
#define OHOS_IMAGE_SOURCE_ENCODER_TEST_H
#include <gtest/gtest.h>
#include <securec.h>
@@ -34,5 +37,6 @@ public:
std::shared_ptr<ImageSourceEncoder> encoder = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_IMAGE_SOURCE_PROCESSOR_TEST_H
#define OHOS_IMAGE_SOURCE_PROCESSOR_TEST_H
#include <gtest/gtest.h>
#include "dscreen_errcode.h"
@@ -32,5 +35,6 @@ public:
ImageSourceProcessor processor;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_SCREEN_SOURCE_TRANS_TEST_H
#define OHOS_SCREEN_SOURCE_TRANS_TEST_H
#include <chrono>
#include <gtest/gtest.h>
@@ -35,5 +38,6 @@ public:
std::shared_ptr<ScreenSourceTrans> trans = nullptr;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,8 +13,8 @@
* limitations under the License.
*/
#ifndef SCREENTRANS_TEST_UTILS_H
#define SCREENTRANS_TEST_UTILS_H
#ifndef OHOS_SCREEN_TRANS_TEST_UTILS_H
#define OHOS_SCREEN_TRANS_TEST_UTILS_H
#include "dscreen_errcode.h"
#include "dscreen_log.h"
@@ -76,6 +76,6 @@ public:
void OnSessionClosed() override {}
void OnDataReceived(const std::shared_ptr<DataBuffer> &data) override {}
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif
@@ -13,6 +13,9 @@
* limitations under the License.
*/
#ifndef OHOS_SOFTBUS_ADAPTER_TEST_H
#define OHOS_SOFTBUS_ADAPTER_TEST_H
#include <gtest/gtest.h>
#include <securec.h>
@@ -36,5 +39,6 @@ public:
SoftbusAdapter softbusAdapter;
};
}
}
} // namespace DistributedHardware
} // namespace OHOS
#endif