/foundation/window/window_manager/test/fuzztest/dms/screen_fuzzer/ |
D | screen_fuzzer.cpp | 71 bool ScreenFuzzTest(sptr<Screen> screen, sptr<Display> display, const uint8_t *data, size_t size) in ScreenFuzzTest() argument 73 if (screen == nullptr || display == nullptr) { in ScreenFuzzTest() 88 screen->SetScreenActiveMode(modeId); in ScreenFuzzTest() 89 screen->SetOrientation(orientation); in ScreenFuzzTest() 90 screen->SetDensityDpi(modifiedDensityDpi); in ScreenFuzzTest() 91 screen->SetScreenActiveMode(0); in ScreenFuzzTest() 92 screen->SetOrientation(Orientation::UNSPECIFIED); in ScreenFuzzTest() 93 screen->SetDensityDpi(originalDensityDpi); in ScreenFuzzTest() 97 bool ScreenFuzzTestNoDisplay(sptr<Screen> screen, const uint8_t *data, size_t size) in ScreenFuzzTestNoDisplay() argument 99 if (screen == nullptr) { in ScreenFuzzTestNoDisplay() [all …]
|
/foundation/distributedhardware/distributed_screen/ |
D | README_en.md | 1 # **Distributed screen components** 9 …es the status of the display region mapped by the master terminal on the screen of the controlled … 11 **Distributed ScreenManager** : Manages the parameters and state of the screen on the controlled en… 13 **ScreenService** : Distributed screen master SA service and distributed screen controlled SA servi… 15 …ransmission interface, provides unified call interface encapsulation for screen images, input even… 17 **ScreenTransport** : Distributed screen transmission module, screen image data encoding, decoding,… 19 **ScreenClient** : ScreenClient client for displaying screen image data projected from other device… 25 ├── common # Distributed screen common data definitions, including… 26 ├── interface # Distributed screen SDK, including master side and con… 28 ├── services # Distributed screen main control terminal and controll… [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/ |
D | hgm_core.cpp | 47 auto screen = screenList_.begin(); in ~HgmCore() local 48 while (screen != screenList_.end()) { in ~HgmCore() 49 screenList_.erase(screen++); in ~HgmCore() 137 for (auto &screen : screenList_) { in SetModeBySettingConfig() local 138 int32_t setRange = screen->SetRefreshRateRange( in SetModeBySettingConfig() 140 int32_t setThisScreen = SetScreenRefreshRate(screen->GetId(), 0, rateToSwitch); in SetModeBySettingConfig() 142 … HGM_LOGW("HgmCore failed to apply refreshrate mode to screen : " PUBU64 "", screen->GetId()); in SetModeBySettingConfig() 181 auto screen = GetScreen(id); in SetScreenRefreshRate() local 182 if (!screen) { in SetScreenRefreshRate() 192 int32_t modeToSwitch = screen->SetActiveRefreshRate(sceneId, static_cast<uint32_t>(rate)); in SetScreenRefreshRate() [all …]
|
/foundation/window/window_manager/dmserver/src/ |
D | abstract_screen_controller.cpp | 104 sptr<AbstractScreen> screen = GetAbstractScreen(dmsScreenId); in GetRSDisplayNodeByScreenId() local 105 if (screen == nullptr) { in GetRSDisplayNodeByScreenId() 108 if (screen->rsDisplayNode_ == nullptr) { in GetRSDisplayNodeByScreenId() 112 screen->dmsId_, screen->rsDisplayNode_->GetId()); in GetRSDisplayNodeByScreenId() 113 return screen->rsDisplayNode_; in GetRSDisplayNodeByScreenId() 266 auto screen = dmsScreenMapIter->second; in ProcessDefaultScreenReconnected() local 267 if (screen == nullptr) { in ProcessDefaultScreenReconnected() 271 auto groupDmsId = screen->lastGroupDmsId_; in ProcessDefaultScreenReconnected() 283 if (!screenGroup->AddChild(screen, point)) { in ProcessDefaultScreenReconnected() 284 WLOGE("fail to add screen to group. screen: %{public}" PRIu64"", screen->dmsId_); in ProcessDefaultScreenReconnected() [all …]
|
D | display_dumper.cpp | 145 auto screen = abstractScreenController_->GetAbstractScreen(screenId); in DumpAllScreenInfo() local 146 if (screen == nullptr) { in DumpAllScreenInfo() 150 if (SCREEN_ID_INVALID == screen->groupDmsId_ || screen->isScreenGroup_) { in DumpAllScreenInfo() 151 GetScreenInfo(screen, oss); in DumpAllScreenInfo() 153 if (screen->isScreenGroup_) { in DumpAllScreenInfo() 184 for (auto screen : childrenScreen) { in DumpScreenInfo() local 185 GetScreenInfo(screen, oss); in DumpScreenInfo() 193 auto screen = abstractScreenController_->GetAbstractScreen(screenId); in DumpSpecifiedScreenInfo() local 194 if (screen == nullptr) { in DumpSpecifiedScreenInfo() 199 const std::string& name = screen->GetScreenName(); in DumpSpecifiedScreenInfo() [all …]
|
/foundation/distributedhardware/distributed_screen/services/screendemo/ |
D | test.cpp | 61 for (const auto &screen : allScreens) { in QueryRemoteScreenInfo() local 62 if (screen == nullptr) { in QueryRemoteScreenInfo() 65 if (!screen->IsReal() && screen->GetWidth() > 0) { in QueryRemoteScreenInfo() 66 remoteScreens.push_back(screen); in QueryRemoteScreenInfo() 71 for (const auto &screen : remoteScreens) { in QueryRemoteScreenInfo() local 72 if (screen == nullptr) { in QueryRemoteScreenInfo() 76 cout << "--------screen id " << screen->GetId() << "---------" << endl; in QueryRemoteScreenInfo() 77 cout << "screen name: " << GetAnonyString(screen->GetName()).c_str() << endl; in QueryRemoteScreenInfo() 78 cout << "width: " << screen->GetWidth() << endl; in QueryRemoteScreenInfo() 79 cout << "height: " << screen->GetHeight() << endl; in QueryRemoteScreenInfo() [all …]
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/hyper_graphic_manager/src/ |
D | hyper_graphic_manager_napi.cpp | 86 int32_t screen = 0; in GetScreenCurrentRefreshRate() local 88 napi_get_value_int32(env, arg[0], &screen); in GetScreenCurrentRefreshRate() 89 if (screen < 0) { in GetScreenCurrentRefreshRate() 90 HGM_LOGE("Napi GetScreenCurrentRefreshRate illegal screenId input: %d", screen); in GetScreenCurrentRefreshRate() 93 id = static_cast<ScreenId>(screen); in GetScreenCurrentRefreshRate() 131 int32_t screen = 0; in GetScreenSupportedRefreshRates() local 133 napi_get_value_int32(env, arg[0], &screen); in GetScreenSupportedRefreshRates() 134 if (screen < 0) { in GetScreenSupportedRefreshRates() 135 HGM_LOGE("Napi GetScreenSupportedRefreshRates illegal screenId input: %d", screen); in GetScreenSupportedRefreshRates() 138 id = static_cast<ScreenId>(screen); in GetScreenSupportedRefreshRates()
|
/foundation/distributedhardware/distributed_screen/screenhandler/src/ |
D | dscreen_handler.cpp | 71 sptr<Rosen::Screen> screen = Rosen::ScreenManager::GetInstance().GetScreenById(screenId); in OnConnect() local 72 if (screen == nullptr) { in OnConnect() 79 uint32_t screenWidth = screen->GetWidth(); in OnConnect() 80 uint32_t screenHeight = screen->GetHeight(); in OnConnect() 121 for (const auto &screen : screens) { in Query() local 122 if (screen == nullptr) { in Query() 126 if (screen->GetWidth() <= 0) { in Query() 129 std::string dhId = SCREEN_PREFIX + SEPERATOR + std::to_string(screen->GetId()); in Query() 130 uint32_t screenWidth = screen->GetWidth(); in Query() 131 uint32_t screenHeight = screen->GetHeight(); in Query()
|
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
D | hyper_graphic_manager_test.cpp | 128 sptr<HgmScreen> screen = nullptr; variable 140 screen = instance5.GetScreen(screenId); 144 STEP_ASSERT_NE(screen, nullptr); 170 auto screen = instance6.GetScreen(screenId); variable 171 STEP_ASSERT_NE(screen, nullptr); 238 sptr<HgmScreen> screen = nullptr; variable 274 screen = instance8.GetScreen(screenId); 275 STEP_ASSERT_NE(screen->GetActiveRefreshRate(), 500); 284 screen = instance8.GetScreen(screenId); 285 STEP_ASSERT_EQ(screen->GetActiveRefreshRate(), 120); [all …]
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/default/pages/surfaceTest2/ |
D | surfaceTest2.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/MainAbility/pages/index/ |
D | index.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/default/pages/surfaceTest/ |
D | surfaceTest.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/MainAbility/pages/surfaceTest/ |
D | surfaceTest.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/default/pages/index/ |
D | index.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/MainAbility/pages/surfaceTest2/ |
D | surfaceTest2.css | 30 @media screen and (device-type: tablet) and (orientation: landscape) { 36 @media screen and (device-type: 2in1) and (orientation: landscape) { 42 @media screen and (device-type: wearable) { 49 @media screen and (device-type: tv) { 63 @media screen and (device-type: phone) and (orientation: landscape) {
|
/foundation/multimedia/player_framework/test/jstest/avRecorder/src/main/js/TestAbility/pages/index/ |
D | index.css | 20 @media screen and (device-type: phone) and (orientation: landscape) { 26 @media screen and (device-type: tablet) and (orientation: landscape) { 32 @media screen and (device-type: 2in1) and (orientation: landscape) {
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/ |
D | rs_screen_manager.cpp | 133 for (const auto &[id, screen] : screens_) { in OnHwcDeadEvent() 134 if (screen) { in OnHwcDeadEvent() 142 if (screen->IsVirtual()) { in OnHwcDeadEvent() 145 auto surfaceId = screen->GetOutput()->GetFrameBufferSurface()->GetUniqueId(); in OnHwcDeadEvent() 146 screen->GetOutput()->GetFrameBufferSurface()->CleanCache(); in OnHwcDeadEvent() 246 const auto &screen = screens_.at(thisId); in AddScreenToHgm() local 248 …hgmCore.AddScreenProfile(thisId, screen->Width(), screen->Height(), capability.phyWidth, capabilit… in AddScreenToHgm() 363 for (const auto &[id, screen] : screens_) { in HandleDefaultScreenDisConnectedLocked() 364 if (!screen->IsVirtual()) { in HandleDefaultScreenDisConnectedLocked() 583 for (auto &[_, screen] : screens_) { in CreateVirtualScreen() [all …]
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/ |
D | drawing_sample.cpp | 185 std::unique_ptr<HdiScreen> screen = HdiScreen::CreateHdiScreen(screenId); in CreatePhysicalScreen() local 186 screen->Init(); in CreatePhysicalScreen() 187 screen->GetScreenSupportedModes(displayModeInfos_); in CreatePhysicalScreen() 190 screen->GetScreenMode(currentModeIndex_); in CreatePhysicalScreen() 202 screen->SetScreenPowerStatus(GraphicDispPowerStatus::GRAPHIC_POWER_STATUS_ON); in CreatePhysicalScreen() 203 screen->SetScreenMode(currentModeIndex_); in CreatePhysicalScreen() 207 screen->GetScreenPowerStatus(powerState); in CreatePhysicalScreen() 212 screen->GetScreenCapability(info); in CreatePhysicalScreen() 222 screens_.emplace_back(std::move(screen)); in CreatePhysicalScreen()
|
/foundation/window/window_manager/dmserver/test/unittest/ |
D | abstract_screen_controller_test.cpp | 130 sptr<AbstractScreen> screen = screenVec[0]; variable 131 screen->rotation_ = Rotation::ROTATION_270; 132 absController_->SetScreenRotateAnimation(screen, 1, Rotation::ROTATION_0, true); 133 ASSERT_EQ(Rotation::ROTATION_270, screen->rotation_); 313 sptr<AbstractScreen> screen = screenVec[0]; variable 314 screen->groupDmsId_ = 0; 315 ASSERT_EQ(nullptr, absController_->RemoveFromGroupLocked(screen)); 324 sptr<AbstractScreen> screen = screenVec[0]; variable 325 ScreenId dmsId = screen->dmsId_; 327 auto p = std::make_pair(screen, point); [all …]
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | screen_session_manager.cpp | 875 sptr<ScreenSession> screen = GetScreenSession(screenId); in GetScreenSupportedColorGamuts() local 876 if (screen == nullptr) { in GetScreenSupportedColorGamuts() 880 return screen->GetScreenSupportedColorGamuts(colorGamuts); in GetScreenSupportedColorGamuts() 1246 auto screen = iter->second; in AddAsSuccedentScreenLocked() local 1247 auto screenGroupIter = smsScreenGroupMap_.find(screen->groupSmsId_); in AddAsSuccedentScreenLocked() 1250 screen->groupSmsId_); in AddAsSuccedentScreenLocked() 1256 point = {screen->GetActiveScreenMode()->width_, 0}; in AddAsSuccedentScreenLocked() 1258 screenGroup->AddChild(newScreen, point, screen); in AddAsSuccedentScreenLocked() 1262 sptr<ScreenSessionGroup> ScreenSessionManager::RemoveFromGroupLocked(sptr<ScreenSession> screen) in RemoveFromGroupLocked() argument 1265 auto groupSmsId = screen->groupSmsId_; in RemoveFromGroupLocked() [all …]
|
/foundation/window/window_manager/test/systemtest/wms/ |
D | window_rotation_test.cpp | 153 auto screen = ScreenManager::GetInstance().GetScreenById(screenId); variable 155 ASSERT_EQ(Orientation::REVERSE_HORIZONTAL, screen->GetOrientation()); 161 ASSERT_EQ(Rotation::ROTATION_0, screen->GetRotation()); 183 auto screen = ScreenManager::GetInstance().GetScreenById(screenId); variable 185 ASSERT_EQ(Orientation::REVERSE_HORIZONTAL, screen->GetOrientation()); 191 screen->SetOrientation(Orientation::UNSPECIFIED); 254 auto screen = ScreenManager::GetInstance().GetScreenById(screenId); variable 257 ASSERT_EQ(Orientation::HORIZONTAL, screen->GetOrientation()); 293 auto screen = ScreenManager::GetInstance().GetScreenById(screenId); variable
|
/foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi/ |
D | js_screen.cpp | 36 JsScreen::JsScreen(const sptr<Screen>& screen) : screen_(screen) in JsScreen() argument 53 sptr<Screen> screen = jsScreen->screen_; in Finalizer() local 54 if (screen == nullptr) { in Finalizer() 58 ScreenId screenId = screen->GetId(); in Finalizer() 236 NativeValue* CreateJsScreenObject(NativeEngine& engine, sptr<Screen>& screen) in CreateJsScreenObject() argument 240 std::shared_ptr<NativeReference> jsScreenObj = FindJsDisplayObject(screen->GetId()); in CreateJsScreenObject() 242 WLOGI("[NAPI]FindJsScreenObject %{public}" PRIu64"", screen->GetId()); in CreateJsScreenObject() 253 std::unique_ptr<JsScreen> jsScreen = std::make_unique<JsScreen>(screen); in CreateJsScreenObject() 255 auto info = screen->GetScreenInfo(); in CreateJsScreenObject()
|
D | js_screen.h | 27 NativeValue* CreateJsScreenObject(NativeEngine& engine, sptr<Screen>& screen); 32 explicit JsScreen(const sptr<Screen>& screen);
|
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/style/MediaQuery/ |
D | index.css | 37 @media screen and (device-type: liteWearable) { 43 @media screen and (device-type: smartVision) { 49 @media screen and (min-width: 454px) {
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/common/src/ |
D | screen_manager_adapter.cpp | 151 sptr<Rosen::Screen> screen = Rosen::ScreenManager::GetInstance().GetScreenById(screenId); in GetMapRelation() local 152 if (screen == nullptr) { in GetMapRelation() 164 ScreenRect screenRect = {0, 0, screen->GetWidth(), screen->GetHeight()}; in GetMapRelation()
|