Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[housekeeping] Automated PR to fix formatting errors #15892

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private byte[] GetResponseBytes(string? url, out string contentType, out int sta
content.Dispose();

contentType = headers["Content-Type"];

_webViewHandler?.Logger.ResponseContentBeingSent(url, statusCode);

return ms.ToArray();
Expand Down
4 changes: 2 additions & 2 deletions src/Compatibility/Core/src/AppHostBuilderExtensions.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Maui.Controls.Compatibility;
using Microsoft.Maui.Hosting;
using Microsoft.Maui.LifecycleEvents;
using Microsoft.Maui.Controls.Compatibility;
using Microsoft.Extensions.DependencyInjection;
using TDeviceInfo = Tizen.UIExtensions.Common.DeviceInfo;

namespace Microsoft.Maui.Controls.Compatibility.Hosting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Maui.Graphics;
using TColor = Tizen.UIExtensions.Common.Color;
using NColor = Tizen.NUI.Color;
using TColor = Tizen.UIExtensions.Common.Color;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.Maui.Graphics;
using NSize = Tizen.NUI.Size2D;
using Rect = Microsoft.Maui.Graphics.Rect;
using TRect = Tizen.UIExtensions.Common.Rect;
using TSize = Tizen.UIExtensions.Common.Size;
using NSize = Tizen.NUI.Size2D;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using SkiaSharp;
using Microsoft.Maui.Controls.Shapes;
using Rect = Microsoft.Maui.Graphics.Rect;
using SkiaSharp;
using Point = Microsoft.Maui.Graphics.Point;
using Rect = Microsoft.Maui.Graphics.Rect;


namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using SkiaSharp;
using Microsoft.Maui.Controls.Shapes;
using SkiaSharp;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
4 changes: 2 additions & 2 deletions src/Compatibility/Core/src/Tizen/Forms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
using System.Reflection;
using Microsoft.Maui.Controls.Compatibility.Platform.Tizen;
using Microsoft.Maui.Controls.Internals;
using Tizen.Applications;
using Microsoft.Maui.Devices;
using Tizen.Applications;
using Color = Microsoft.Maui.Graphics.Color;
using NView = Tizen.NUI.BaseComponents.View;
using TDeviceInfo = Tizen.UIExtensions.Common.DeviceInfo;
using Size = Microsoft.Maui.Graphics.Size;
using TDeviceInfo = Tizen.UIExtensions.Common.DeviceInfo;

namespace Microsoft.Maui.Controls.Compatibility
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using GestureStateType = Tizen.NUI.Gesture.StateType;
using NGestureDetector = Tizen.NUI.GestureDetector;
using PanGestureDetector = Tizen.NUI.PanGestureDetector;
using GestureStateType = Tizen.NUI.Gesture.StateType;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
4 changes: 2 additions & 2 deletions src/Compatibility/Core/src/Tizen/Renderers/BoxViewRenderer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NView = Tizen.NUI.BaseComponents.View;
using Tizen.UIExtensions.NUI;
using Microsoft.Maui.Controls.Platform;
using Tizen.UIExtensions.NUI;
using NView = Tizen.NUI.BaseComponents.View;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
using System.ComponentModel;
using System.Linq;
using Microsoft.Maui.Controls.Internals;
using Size = Microsoft.Maui.Graphics.Size;
using Rect = Microsoft.Maui.Graphics.Rect;
using Point = Microsoft.Maui.Graphics.Point;
using Microsoft.Maui.Controls.Platform;
using Tizen.NUI;
using Tizen.UIExtensions.Common;
using Specific = Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific.VisualElement;
using XFocusDirection = Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific.FocusDirection;
using Tizen.UIExtensions.NUI;
using NView = Tizen.NUI.BaseComponents.View;
using Point = Microsoft.Maui.Graphics.Point;
using Rect = Microsoft.Maui.Graphics.Rect;
using Size = Microsoft.Maui.Graphics.Size;
using Specific = Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific.VisualElement;
using TPoint = Tizen.UIExtensions.Common.Point;
using Tizen.UIExtensions.NUI;
using XFocusDirection = Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific.FocusDirection;

namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using Microsoft.Maui.Controls.Handlers.Items;
using Microsoft.Maui.Controls.Platform;
using Tizen.UIExtensions.NUI;
using IMeasurable = Tizen.UIExtensions.Common.IMeasurable;
using Size = Microsoft.Maui.Graphics.Size;
using TCollectionView = Tizen.UIExtensions.NUI.CollectionView;
using TItemSizingStrategy = Tizen.UIExtensions.NUI.ItemSizingStrategy;
using IMeasurable = Tizen.UIExtensions.Common.IMeasurable;
using TSize = Tizen.UIExtensions.Common.Size;

namespace Microsoft.Maui.Controls.Handlers.Compatibility
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/HandlerImpl/Label/Label.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Maui;
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Controls.Platform;
using Microsoft.Maui.Handlers;

namespace Microsoft.Maui.Controls
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/HandlerImpl/Layout/Layout.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static void MapInputTransparent(IViewHandler handler, IView layout) =>

static void UpdateInputTransparent(IViewHandler handler, IView view)
{
if (handler.PlatformView is not Microsoft.Maui.Platform.LayoutViewGroup platformView ||
if (handler.PlatformView is not Microsoft.Maui.Platform.LayoutViewGroup platformView ||
view is not Layout layout)
{
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
using GColor = Microsoft.Maui.Graphics.Color;
using GColors = Microsoft.Maui.Graphics.Colors;
using NCollectionView = Tizen.UIExtensions.NUI.CollectionView;
using NLayoutParamPolicies = Tizen.NUI.BaseComponents.LayoutParamPolicies;
using NItemSizingStrategy = Tizen.UIExtensions.NUI.ItemSizingStrategy;
using NLayoutParamPolicies = Tizen.NUI.BaseComponents.LayoutParamPolicies;
using NView = Tizen.NUI.BaseComponents.View;
using XLabel = Microsoft.Maui.Controls.Label;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ShellContentItemAdaptor : ItemTemplateAdaptor
{
ItemAppearance _itemAppearance;

public ShellContentItemAdaptor(Element element, IEnumerable items) : base(element, items, GetTemplate())
public ShellContentItemAdaptor(Element element, IEnumerable items) : base(element, items, GetTemplate())
{
_itemAppearance = new ItemAppearance();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Controls/src/Core/Handlers/Shell/Tizen/ShellItemView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void OnTabItemSelected(object? sender, CollectionViewSelectionChangedEventArgs e
else
{
MakeSimplePopup().Open();
}
}
}

Popup MakeSimplePopup()
Expand Down Expand Up @@ -244,7 +244,7 @@ void ShowTabBar()
_bottomTabBar.LayoutManager = new GridLayoutManager(false, items.Count > MaxBottomItems ? MaxBottomItems : items.Count);
_bottomTabBar.Adaptor = _adaptor = CreateItemAdaptor(items);
_adaptor.SelectionChanged += OnTabItemSelected;

_bottomTabBar.RequestItemSelect(_lastSelected);

_cachedGroups = ShellItem.Items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void ShowItems()
{
if (_items == null)
return;

if (_itemsView == null)
{
_itemsView = CreateItemsView();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ShellSectionItemAdaptor : ItemTemplateAdaptor
{
ItemAppearance _itemAppearance;

public ShellSectionItemAdaptor(Element element, IEnumerable items) : base(element, items, GetTemplate())
public ShellSectionItemAdaptor(Element element, IEnumerable items) : base(element, items, GetTemplate())
{
_itemAppearance = new ItemAppearance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void UpdateTopTabBarColors(GColor? foregroundColor, GColor? backgroundCol

if (_topTabBar != null)
{
backgroundColor = ((backgroundColor!= null) && backgroundColor.IsNotDefault()) ? backgroundColor : DefaultTabBarBackgroundColor;
backgroundColor = ((backgroundColor != null) && backgroundColor.IsNotDefault()) ? backgroundColor : DefaultTabBarBackgroundColor;
foregroundColor = ((foregroundColor != null) && foregroundColor.IsNotDefault()) ? foregroundColor : backgroundColor?.GetAccentColor();
titleColor = ((titleColor != null) && titleColor.IsNotDefault()) ? titleColor : backgroundColor?.GetAccentColor();
unselectedColor = ((unselectedColor != null) && unselectedColor.IsNotDefault()) ? unselectedColor : titleColor?.MultiplyAlpha(0.5f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async void OnAlertRequested(Page sender, AlertArguments arguments)
arguments.SetResult(await CurrentAlert.ConfigureAwait(false));
CurrentAlert = null;
}

async void OnPromptRequested(Page sender, PromptArguments arguments)
{
if (!PageIsInThisWindow(sender))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Microsoft.Maui.Controls.Internals;
using Tizen.UIExtensions.NUI;
using TEntry = Tizen.UIExtensions.NUI.Entry;
using TEditor = Tizen.UIExtensions.NUI.Editor;
using TLabel = Tizen.UIExtensions.NUI.Label;
using TEntry = Tizen.UIExtensions.NUI.Entry;
using TFormattedString = Tizen.UIExtensions.Common.FormattedString;
using TLabel = Tizen.UIExtensions.NUI.Label;
using TSpan = Tizen.UIExtensions.Common.Span;

namespace Microsoft.Maui.Controls.Platform
Expand Down
6 changes: 3 additions & 3 deletions src/Controls/tests/Core.UnitTests/Layouts/FlexLayoutTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Layouts;
using Xunit;
using NSubstitute;
using Xunit;

namespace Microsoft.Maui.Controls.Core.UnitTests.Layouts
{
Expand Down Expand Up @@ -91,7 +91,7 @@ public void FlexLayoutRecognizesVisibilityChange()
* depending on the target platform.
*/

(IFlexLayout, IView) SetUpUnconstrainedTest()
(IFlexLayout, IView) SetUpUnconstrainedTest()
{
var root = new Grid(); // FlexLayout requires a parent, at least for now
var flexLayout = new FlexLayout() as IFlexLayout;
Expand All @@ -114,7 +114,7 @@ public void UnconstrainedHeightChildrenHaveHeight()
_ = flexLayout.CrossPlatformMeasure(400, double.PositiveInfinity);

var flexFrame = flexLayout.GetFlexFrame(view);

Assert.Equal(100, flexFrame.Height);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading.Tasks;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Handlers;
using Xunit;
using Microsoft.Maui.Platform;
using Xunit;
using ContentView = Microsoft.Maui.Controls.ContentView;

namespace Microsoft.Maui.DeviceTests
Expand Down
4 changes: 2 additions & 2 deletions src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static void CreateLayout(Type layoutType, out Layout layout, out Label label)
}

[Fact, Category(TestCategory.FlexLayout)]
public async Task FlexLayoutInVerticalStackLayoutDoesNotCycle()
public async Task FlexLayoutInVerticalStackLayoutDoesNotCycle()
{
await FlexLayoutInStackLayoutDoesNotCycle(new VerticalStackLayout());
}
Expand All @@ -232,7 +232,7 @@ await InvokeOnMainThreadAsync(async () =>

// If this can be attached to the hierarchy and make it through a layout
// without crashing, then we're good.

await root.ToPlatform(MauiContext).AttachAndRun(() => { });
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
using Microsoft.Maui.Platform;
using UIKit;
using Xunit;
using UIModalPresentationStyle = Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.UIModalPresentationStyle;
using ShellHandler = Microsoft.Maui.Controls.Handlers.Compatibility.ShellRenderer;
using UIModalPresentationStyle = Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.UIModalPresentationStyle;

namespace Microsoft.Maui.DeviceTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Fonts/FontManager.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.IO;
using System.Collections.Concurrent;
using System.IO;

namespace Microsoft.Maui
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Picker/PickerHandler.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Tizen.NUI;
using Tizen.UIExtensions.NUI;
using NColor = Tizen.NUI.Color;
using NEntry = Tizen.UIExtensions.NUI.Entry;
using NPosition = Tizen.NUI.Position;
using NView = Tizen.NUI.BaseComponents.View;
using NEntry = Tizen.UIExtensions.NUI.Entry;

namespace Microsoft.Maui.Handlers
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/View/ViewHandlerOfT.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Tizen.UIExtensions.Common;
using Tizen.UIExtensions.NUI;
using NView = Tizen.NUI.BaseComponents.View;
using Rect = Microsoft.Maui.Graphics.Rect;
using Size = Microsoft.Maui.Graphics.Size;
using NView = Tizen.NUI.BaseComponents.View;
using TSize = Tizen.UIExtensions.Common.Size;

namespace Microsoft.Maui.Handlers
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ViewHandlerExtensions.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Microsoft.Maui.Graphics;
using Tizen.UIExtensions.NUI;
using IMeasurable = Tizen.UIExtensions.Common.IMeasurable;
using NMeasuredSize = Tizen.NUI.MeasuredSize;
using NLayoutLength = Tizen.NUI.LayoutLength;
using NMeasuredSize = Tizen.NUI.MeasuredSize;

namespace Microsoft.Maui
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Layouts/Flex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static void layout_item(Item item, float width, float height)
layout.flex_grows += child.Grow;
layout.flex_shrinks += child.Shrink;

if(layout.flex_dim > 0)
if (layout.flex_dim > 0)
{
// If flex_dim is zero, it's because we're measuring unconstrained in that direction
// So we don't need to keep a running tally of available space
Expand Down
Loading