/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | screen_rotation_controller_test.cpp | 134 Orientation orientation = Orientation::SENSOR; in HWTEST_F() local 135 ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::CalcTargetDisplayRotation(orientation, deviceRitation)); in HWTEST_F() 137 orientation = Orientation::SENSOR_VERTICAL; in HWTEST_F() 138 ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::CalcTargetDisplayRotation(orientation, deviceRitation)); in HWTEST_F() 140 orientation = Orientation::SENSOR_HORIZONTAL; in HWTEST_F() 141 ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::CalcTargetDisplayRotation(orientation, deviceRitation)); in HWTEST_F() 143 orientation = Orientation::UNSPECIFIED; in HWTEST_F() 145 ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::CalcTargetDisplayRotation(orientation, deviceRitation)); in HWTEST_F() 147 ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::CalcTargetDisplayRotation(orientation, deviceRitation)); in HWTEST_F() 149 orientation in HWTEST_F() 257 Orientation orientation = Orientation::SENSOR; HWTEST_F() local 447 Orientation orientation = Orientation::UNSPECIFIED; HWTEST_F() local [all...] |
H A D | display_manager_service_test.cpp | 254 Orientation orientation = Orientation::VERTICAL; in HWTEST_F() local 255 ASSERT_TRUE(DMError::DM_OK != dms_->SetOrientation(0, orientation)); in HWTEST_F() 256 orientation = Orientation::SENSOR_VERTICAL; in HWTEST_F() 257 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetOrientation(0, orientation)); in HWTEST_F() 259 orientation = Orientation::UNSPECIFIED; in HWTEST_F() 260 ASSERT_TRUE(DMError::DM_OK != dms_->SetOrientation(0, orientation)); in HWTEST_F() 261 ASSERT_EQ(DMError::DM_ERROR_NULLPTR, dms_->SetOrientationFromWindow(0, orientation, true)); in HWTEST_F() 569 Orientation orientation = Orientation::VERTICAL; in HWTEST_F() local 570 auto ret = dms_->SetOrientation(screenId, orientation); in HWTEST_F() 573 orientation in HWTEST_F() [all...] |
/foundation/ability/form_fwk/services/include/ |
H A D | form_id_key.h | 26 : bundleName(bundleName), moduleName(), abilityName(abilityName), formName(), specificationId(0), orientation(0) in FormIdKey() 35 int orientation; member 40 && orientation == formIdKey.orientation in operator ==() 53 || orientation != formIdKey.orientation in operator <() 66 + std::hash<int>()(orientation); in hashCode()
|
/foundation/window/window_manager/wm/src/ |
H A D | window_display_change_adapter.cpp | 72 auto orientation = displayInfo->GetDisplayOrientation(); in OnChange() local 73 if (displayId_ == displayId && NearEqual(density_, density) && orientation_ == orientation) { in OnChange() 79 orientation_ = orientation; in OnChange() 80 displayInfoChangeListener_->OnDisplayInfoChange(token_, displayId, density, orientation); in OnChange() 84 DisplayId displayId, float density, DisplayOrientation orientation) in OnDisplayInfoChange() 90 if (displayId_ == displayId && NearEqual(density_, density) && orientation_ == orientation) { in OnDisplayInfoChange() 96 orientation_ = orientation; in OnDisplayInfoChange() 97 displayInfoChangeListener_->OnDisplayInfoChange(token, displayId, density, orientation); in OnDisplayInfoChange() 83 OnDisplayInfoChange(const sptr<IRemoteObject>& token, DisplayId displayId, float density, DisplayOrientation orientation) OnDisplayInfoChange() argument
|
H A D | screen_scene.cpp | 176 void ScreenScene::SetDisplayOrientation(int32_t orientation)
in SetDisplayOrientation() argument 178 if (orientation < static_cast<int32_t>(DisplayOrientation::PORTRAIT) ||
in SetDisplayOrientation() 179 orientation > static_cast<int32_t>(DisplayOrientation::UNKNOWN)) {
in SetDisplayOrientation() 180 TLOGE(WmsLogTag::DMS, "invalid orientation");
in SetDisplayOrientation() 183 orientation_ = orientation;
in SetDisplayOrientation()
|
/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_display_change_adapter_test.cpp | 36 DisplayOrientation orientation) override 40 orientation_ = orientation; 101 DisplayOrientation orientation = DisplayOrientation::UNKNOWN; in HWTEST_F() local 103 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); in HWTEST_F() 105 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); in HWTEST_F() 109 ASSERT_EQ(orientation, listener->orientation_); in HWTEST_F()
|
/foundation/window/window_manager/dmserver/src/ |
H A D | screen_rotation_controller.cpp | 91 Orientation orientation = GetPreferredOrientation(); in HandleSensorEventInput() local 94 if (!IsSensorRelatedOrientation(orientation)) { in HandleSensorEventInput() 95 WLOGFD("If the current preferred orientation is locked or sensor-independent, return."); in HandleSensorEventInput() 103 Rotation targetDisplayRotation = CalcTargetDisplayRotation(orientation, deviceRotation); in HandleSensorEventInput() 218 bool ScreenRotationController::IsSensorRelatedOrientation(Orientation orientation) in IsSensorRelatedOrientation() argument 220 if ((orientation >= Orientation::UNSPECIFIED && orientation <= Orientation::REVERSE_HORIZONTAL) || in IsSensorRelatedOrientation() 221 orientation == Orientation::LOCKED) { in IsSensorRelatedOrientation() 228 Orientation orientation, DeviceRotation sensorRotationConverted) in ProcessSwitchToSensorRelatedOrientation() 230 lastOrientationType_ = orientation; in ProcessSwitchToSensorRelatedOrientation() 227 ProcessSwitchToSensorRelatedOrientation( Orientation orientation, DeviceRotation sensorRotationConverted) ProcessSwitchToSensorRelatedOrientation() argument 429 ProcessSwitchToSensorUnrelatedOrientation(Orientation orientation, bool withAnimation) ProcessSwitchToSensorUnrelatedOrientation() argument 464 ProcessOrientationSwitch(Orientation orientation, bool withAnimation) ProcessOrientationSwitch() argument [all...] |
/foundation/window/window_manager/previewer/src/ |
H A D | window_model.cpp | 33 Rosen::Orientation PreviewerWindow::TransOrientation(Previewer::Orientation orientation) in TransOrientation() argument 35 if (orientation == Previewer::Orientation::PORTRAIT) { in TransOrientation() 37 } else if (orientation == Previewer::Orientation::LANDSCAPE) { in TransOrientation()
|
/foundation/window/window_manager/test/fuzztest/dms/screen_fuzzer/ |
H A D | screen_fuzzer.cpp | 77 Orientation orientation; in ScreenFuzzTest() local 78 size_t minSize = sizeof(modeId) + sizeof(orientation); in ScreenFuzzTest() 87 GetObject<Orientation>(orientation, data + startPos, size - startPos); in ScreenFuzzTest() 89 screen->SetOrientation(orientation); in ScreenFuzzTest() 103 Orientation orientation; in ScreenFuzzTestNoDisplay() local 106 size_t minSize = sizeof(modeId) + sizeof(orientation) + sizeof(originalDensityDpi) + in ScreenFuzzTestNoDisplay() 115 GetObject<Orientation>(orientation, data + startPos, size - startPos); in ScreenFuzzTestNoDisplay() 117 screen->SetOrientation(orientation); in ScreenFuzzTestNoDisplay()
|
/foundation/window/window_manager/dmserver/include/ |
H A D | screen_rotation_controller.h | 52 static void ProcessOrientationSwitch(Orientation orientation, bool withAnimation); 72 static bool IsSensorRelatedOrientation(Orientation orientation); 80 static void ProcessSwitchToSensorRelatedOrientation(Orientation orientation, DeviceRotation deviceRotation); 81 static void ProcessSwitchToSensorUnrelatedOrientation(Orientation orientation, bool withAnimation);
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_arc_label.h | 31 * The attributes include the center and radius of an arc, angle range, and text orientation. 310 * @brief Sets the orientation for this arc text. 312 * @param orientation Indicates the text orientation to set. 316 void SetArcTextOrientation(TextOrientation orientation) in SetArcTextOrientation() argument 318 if (orientation_ != orientation) { in SetArcTextOrientation() 319 orientation_ = orientation; in SetArcTextOrientation() 325 * @brief Obtains the orientation of this arc text. 327 * @return Returns the orientation of this arc text. 423 TextOrientation orientation); [all...] |
/foundation/window/window_manager/wmserver/src/utils/ |
H A D | window_manager_service_utils.cpp | 21 bool WmsUtils::IsFixedOrientation(Orientation orientation, WindowMode mode, uint32_t flags) in IsFixedOrientation() argument 32 if (orientation > Orientation::REVERSE_HORIZONTAL) { in IsFixedOrientation() 35 if (orientation < Orientation::VERTICAL) { in IsFixedOrientation()
|
/foundation/arkui/ace_engine/adapter/preview/osal/ |
H A D | system_properties.cpp | 153 int32_t deviceWidth, int32_t deviceHeight, int32_t orientation, double resolution, bool isRound) in InitDeviceInfo() 156 if (orientation == ORIENTATION_PORTRAIT) { in InitDeviceInfo() 158 } else if (orientation == ORIENTATION_LANDSCAPE) { in InitDeviceInfo() 161 LOGW("SetDeviceOrientation, undefined orientation"); in InitDeviceInfo() 175 void SystemProperties::SetDeviceOrientation(int32_t orientation) in SetDeviceOrientation() argument 177 if (orientation == ORIENTATION_PORTRAIT && orientation_ != DeviceOrientation::PORTRAIT) { in SetDeviceOrientation() 180 } else if (orientation == ORIENTATION_LANDSCAPE && orientation_ != DeviceOrientation::LANDSCAPE) { in SetDeviceOrientation() 184 LOGI("SetDeviceOrientation, no change info: %{public}d", orientation); in SetDeviceOrientation() 152 InitDeviceInfo( int32_t deviceWidth, int32_t deviceHeight, int32_t orientation, double resolution, bool isRound) InitDeviceInfo() argument
|
H A D | resource_convertor.h | 30 Global::Resource::Direction ConvertDirectionToGlobal(DeviceOrientation orientation); 36 DeviceOrientation ConvertDirectionToAce(Global::Resource::Direction orientation);
|
H A D | resource_convertor.cpp | 42 Global::Resource::Direction ConvertDirectionToGlobal(DeviceOrientation orientation) in ConvertDirectionToGlobal() argument 44 switch (orientation) { in ConvertDirectionToGlobal() 106 DeviceOrientation ConvertDirectionToAce(Global::Resource::Direction orientation) in ConvertDirectionToAce() argument 108 switch (orientation) { in ConvertDirectionToAce()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/utils/ |
H A D | dp_utils.cpp | 40 float TransExifOrientationToDegree(const std::string& orientation) in TransExifOrientationToDegree() argument 43 if (exifOrientationDegree.count(orientation)) { in TransExifOrientationToDegree() 44 degree = exifOrientationDegree[orientation]; in TransExifOrientationToDegree()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_convertor.h | 30 Global::Resource::Direction ConvertDirectionToGlobal(DeviceOrientation orientation); 36 DeviceOrientation ConvertDirectionToAce(Global::Resource::Direction orientation);
|
H A D | resource_convertor.cpp | 42 Global::Resource::Direction ConvertDirectionToGlobal(DeviceOrientation orientation) in ConvertDirectionToGlobal() argument 44 switch (orientation) { in ConvertDirectionToGlobal() 130 DeviceOrientation ConvertDirectionToAce(Global::Resource::Direction orientation) in ConvertDirectionToAce() argument 132 switch (orientation) { in ConvertDirectionToAce()
|
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_test.cpp | 1549 Orientation orientation = Orientation::UNSPECIFIED; in HWTEST_F() local 1550 session->SetOrientation(orientation); in HWTEST_F() 1552 ASSERT_EQ(res, orientation); in HWTEST_F() 1565 Orientation orientation = Orientation::UNSPECIFIED; in HWTEST_F() local 1566 session->SetScreenRequestedOrientation(orientation); in HWTEST_F() 1568 ASSERT_EQ(res, orientation); in HWTEST_F() 1783 Orientation orientation = Orientation::UNSPECIFIED; in HWTEST_F() local 1785 session->ScreenOrientationChange(orientation, FoldDisplayMode::UNKNOWN); in HWTEST_F() 1948 Orientation orientation { Orientation::BEGIN }; in HWTEST_F() 1952 auto res = session->CalcRotation(orientation, foldDisplayMod in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/base/resource/ |
H A D | ace_res_config.h | 41 AceResConfig(int32_t mcc, int32_t mnc, DeviceOrientation orientation, ColorMode colorMode, DeviceType deviceType, in AceResConfig() argument 43 : mcc_(mcc), mnc_(mnc), orientation_(orientation), colorMode_(colorMode), deviceType_(deviceType), in AceResConfig() 48 LongScreenType screenLong, ScreenShape screenShape, DeviceOrientation orientation, ColorMode colorMode, in AceResConfig() 51 orientation_(orientation), colorMode_(colorMode), deviceType_(deviceType), resolution_(resolution) in AceResConfig() 47 AceResConfig(const std::string& language, const std::string& script, const std::string& region, LongScreenType screenLong, ScreenShape screenShape, DeviceOrientation orientation, ColorMode colorMode, DeviceType deviceType, ResolutionType resolution) AceResConfig() argument
|
/foundation/arkui/ace_engine/adapter/preview/entrance/ |
H A D | ace_ability.cpp | 94 LOGI("runArgs.deviceConfig.orientation: %{private}d", static_cast<int>(runArgs.deviceConfig.orientation)); in DumpAceRunArgs() 216 runArgs.deviceConfig.orientation == DeviceOrientation::PORTRAIT ? 0 : 1, runArgs.deviceConfig.density, in AceAbility() 480 } else if (singleConfig == "orientation") { in SetConfigChanges() 499 SurfaceChanged(runArgs_.deviceConfig.orientation, runArgs_.deviceConfig.density, width, height); in OnConfigurationChanged() 513 const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, in SurfaceChanged() 526 width, height, orientation == DeviceOrientation::PORTRAIT ? 0 : 1, resolution, runArgs_.isRound); in SurfaceChanged() 528 deviceConfig.orientation = orientation; in SurfaceChanged() 533 if ((orientation ! in SurfaceChanged() 512 SurfaceChanged( const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, WindowSizeChangeReason type) SurfaceChanged() argument [all...] |
/foundation/window/window_manager/previewer/include/ |
H A D | window_model.h | 50 Orientation orientation = Orientation::PORTRAIT; // orientation member 63 static Rosen::Orientation TransOrientation(Previewer::Orientation orientation);
|
/foundation/arkui/ace_engine/test/mock/base/ |
H A D | mock_system_properties.cpp | 117 void SystemProperties::SetDeviceOrientation(int32_t orientation) in SetDeviceOrientation() argument 119 if (orientation == ORIENTATION_PORTRAIT && orientation_ != DeviceOrientation::PORTRAIT) { in SetDeviceOrientation() 122 } else if (orientation == ORIENTATION_LANDSCAPE && orientation_ != DeviceOrientation::LANDSCAPE) { in SetDeviceOrientation()
|
/foundation/window/window_manager/utils/src/ |
H A D | screen_info.cpp | 66 uint32_t orientation;
in InnerUnmarshalling() local 74 parcel.ReadUint32(orientation) && parcel.ReadUint32(sourceMode) && parcel.ReadUint32(type) &&
in InnerUnmarshalling() 99 orientation_ = static_cast<Orientation>(orientation);
in InnerUnmarshalling()
|
/foundation/multimedia/media_library/frameworks/native/c_api/ |
H A D | media_asset_helper_impl.cpp | 145 int32_t orientation = 0; in UpdateFileAsset() local 146 resultSet->GetInt(indexPos, orientation); in UpdateFileAsset() 147 fileAsset->SetOrientation(orientation); in UpdateFileAsset() 148 MEDIA_INFO_LOG("init file asset, query orientation: %{public}d", orientation); in UpdateFileAsset()
|