Skip to content

Commit 5c3a7e0

Browse files
dotnet format
1 parent 72fccc7 commit 5c3a7e0

File tree

16 files changed

+55
-55
lines changed

16 files changed

+55
-55
lines changed

src/CommunityToolkit.Maui.Camera/CameraManager.android.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Android.Content;
1+
using System.Runtime.Versioning;
2+
using Android.Content;
23
using Android.Views;
34
using AndroidX.Camera.Core;
45
using AndroidX.Camera.Core.Impl.Utils.Futures;
@@ -10,7 +11,6 @@
1011
using CommunityToolkit.Maui.Extensions;
1112
using Java.Lang;
1213
using Java.Util.Concurrent;
13-
using System.Runtime.Versioning;
1414
using static Android.Media.Image;
1515
using Math = System.Math;
1616

src/CommunityToolkit.Maui.Camera/CameraManager.windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,4 @@ protected async Task PlatformUpdateResolution(Size resolution, CancellationToken
204204
await mediaCapture.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.Photo, filteredPropertiesList.First()).AsTask(token);
205205
}
206206
}
207-
}
207+
}

src/CommunityToolkit.Maui.Core/Essentials/SpeechToText/OfflineSpeechToTextImplementation.android.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public ValueTask DisposeAsync()
4444
static Intent CreateSpeechIntent(SpeechToTextOptions options)
4545
{
4646
var intent = new Intent(RecognizerIntent.ActionRecognizeSpeech);
47-
48-
intent.PutExtra(RecognizerIntent.ExtraLanguageModel, RecognizerIntent.LanguageModelFreeForm);
47+
48+
intent.PutExtra(RecognizerIntent.ExtraLanguageModel, RecognizerIntent.LanguageModelFreeForm);
4949
intent.PutExtra(RecognizerIntent.ExtraCallingPackage, Application.Context.PackageName);
5050
intent.PutExtra(RecognizerIntent.ExtraPartialResults, options.ShouldReportPartialResults);
51-
51+
5252
var javaLocale = Java.Util.Locale.ForLanguageTag(options.Culture.Name).ToLanguageTag();
5353
intent.PutExtra(RecognizerIntent.ExtraLanguage, javaLocale);
5454
intent.PutExtra(RecognizerIntent.ExtraLanguagePreference, javaLocale);
@@ -77,7 +77,7 @@ async Task InternalStartListening(SpeechToTextOptions options, CancellationToken
7777
PartialResults = HandleListenerPartialResults,
7878
Results = HandleListenerResults
7979
};
80-
80+
8181
var recognitionSupportTask = new TaskCompletionSource<RecognitionSupport>();
8282
speechRecognizer.CheckRecognitionSupport(recognizerIntent, new Executor(), new RecognitionSupportCallback(recognitionSupportTask));
8383
var recognitionSupportResult = await recognitionSupportTask.Task;
@@ -87,12 +87,12 @@ async Task InternalStartListening(SpeechToTextOptions options, CancellationToken
8787
{
8888
throw new NotSupportedException($"Culture '{options.Culture.Name}' is not supported");
8989
}
90-
90+
9191
var downloadLanguageTask = new TaskCompletionSource();
9292
speechRecognizer.TriggerModelDownload(recognizerIntent, new Executor(), new ModelDownloadListener(downloadLanguageTask));
9393
await downloadLanguageTask.Task.WaitAsync(token);
9494
}
95-
95+
9696
speechRecognizer.SetRecognitionListener(listener);
9797
speechRecognizer.StartListening(recognizerIntent);
9898
}

src/CommunityToolkit.Maui.Core/Essentials/SpeechToText/OfflineSpeechToTextImplementation.macos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Task InternalStartListening(SpeechToTextOptions options, CancellationToken token
9191
}
9292
}
9393
});
94-
94+
9595
return Task.CompletedTask;
9696
}
9797
}

src/CommunityToolkit.Maui.Core/Essentials/SpeechToText/SpeechToTextImplementation.android.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public ValueTask DisposeAsync()
4040
static Intent CreateSpeechIntent(SpeechToTextOptions options)
4141
{
4242
var intent = new Intent(RecognizerIntent.ActionRecognizeSpeech);
43-
43+
4444
intent.PutExtra(RecognizerIntent.ExtraLanguageModel, RecognizerIntent.LanguageModelFreeForm);
4545
intent.PutExtra(RecognizerIntent.ExtraCallingPackage, Application.Context.PackageName);
4646
intent.PutExtra(RecognizerIntent.ExtraPartialResults, options.ShouldReportPartialResults);
47-
47+
4848
var javaLocale = Java.Util.Locale.ForLanguageTag(options.Culture.Name).ToLanguageTag();
4949
intent.PutExtra(RecognizerIntent.ExtraLanguage, javaLocale);
5050
intent.PutExtra(RecognizerIntent.ExtraLanguagePreference, javaLocale);

src/CommunityToolkit.Maui.Maps/Handler/Map/MapHandler.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected override FrameworkElement CreatePlatformView()
5151
}
5252

5353
/// <inheritdoc />
54-
protected override void ConnectHandler(FrameworkElement platformView)
54+
protected override void ConnectHandler(FrameworkElement platformView)
5555
{
5656
if (platformView is MauiWebView mauiWebView)
5757
{

src/CommunityToolkit.Maui.UnitTests/Behaviors/AnimationBehaviorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void AnimateCommandTokenCanceled()
162162
await animationEndedTcs.Task;
163163
});
164164
}
165-
catch(OperationCanceledException e)
165+
catch (OperationCanceledException e)
166166
{
167167
exception = e;
168168
}
@@ -205,7 +205,7 @@ public void AnimateCommandTokenExpired()
205205
await animationEndedTcs.Task;
206206
});
207207
}
208-
catch(OperationCanceledException e)
208+
catch (OperationCanceledException e)
209209
{
210210
exception = e;
211211
}

src/CommunityToolkit.Maui.UnitTests/Behaviors/BaseBehaviorTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@ public void AttachAndDetachCallsShouldCorrectlyAssignView()
1111
{
1212
var label = new Label();
1313
var mockBehavior = new MockBehavior();
14-
14+
1515
mockBehavior.AssertViewIsNull();
1616
mockBehavior.IsAttached.Should().BeFalse();
17-
17+
1818
label.Behaviors.Add(mockBehavior);
19-
19+
2020
mockBehavior.AssertViewIsEqual(label);
2121
mockBehavior.IsAttached.Should().BeTrue();
22-
22+
2323
label.Behaviors.Remove(mockBehavior);
24-
24+
2525
mockBehavior.AssertViewIsNull();
2626
mockBehavior.IsAttached.Should().BeFalse();
2727
}
28-
28+
2929
[Fact]
3030
public void ViewPropertyChangesShouldBeHandledWithinBehavior()
3131
{
3232
var label = new Label();
3333
var mockBehavior = new MockBehavior();
34-
34+
3535
label.Behaviors.Add(mockBehavior);
3636

3737
mockBehavior.PropertyChanges.Should().BeEmpty();
38-
38+
3939
label.Text = "Text";
40-
40+
4141
mockBehavior.PropertyChanges.Should().ContainSingle();
4242
var change = mockBehavior.PropertyChanges.Single();
43-
43+
4444
change.Should().NotBeNull();
4545
change.PropertyName.Should().Be(nameof(Label.Text));
4646
}

src/CommunityToolkit.Maui.UnitTests/Behaviors/UserStoppedTypingBehaviorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public async Task ShouldOnlyExecuteCommandOnceWhenTextChangedHasOccurredMultiple
7878
var commandTCS = new TaskCompletionSource();
7979
var timesExecuted = 0;
8080
var entry = CreateEntryWithBehavior(
81-
minimumLengthThreshold:4,
81+
minimumLengthThreshold: 4,
8282
command: new Command<string>(_ =>
8383
{
8484
timesExecuted++;

src/CommunityToolkit.Maui.UnitTests/Converters/BaseConverterOneWayTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Convert_ShouldCorrectlyReturnValueWithMatchingTargetType(object? inp
2626

2727
Assert.Equal("Two", converter.Convert(inputValue, targetType, null, CultureInfo.CurrentCulture));
2828
}
29-
29+
3030
[Fact]
3131
public void Setting_DefaultConvertBackReturnValue_WillThrowNotSupportedException()
3232
{
@@ -38,12 +38,12 @@ public void Setting_DefaultConvertBackReturnValue_WillThrowNotSupportedException
3838
DefaultConvertBackReturnValue = 1
3939
});
4040
}
41-
41+
4242
protected static BaseConverter<int, string> CreateConverter() => new MockOneWayConverter(["One", "Two", "Three"])
4343
{
4444
DefaultConvertReturnValue = "Three"
4545
};
46-
46+
4747
protected BaseConverterOneWayTests(bool suppressExceptions)
4848
{
4949
new Options().SetShouldSuppressExceptionsInConverters(suppressExceptions);
@@ -58,13 +58,13 @@ public class BaseConverterOneWayTestsWithExceptionsEnabled : BaseConverterOneWay
5858
public BaseConverterOneWayTestsWithExceptionsEnabled() : base(false)
5959
{
6060
}
61-
61+
6262
public override void Convert_WithMismatchedTargetType(object? inputValue, Type targetType)
6363
{
6464
ICommunityToolkitValueConverter converter = CreateConverter();
6565

6666
var exception = Assert.Throws<ArgumentException>(() => converter.Convert(inputValue, targetType, null, CultureInfo.CurrentCulture));
67-
67+
6868
exception.Message.Should().Be($"targetType needs to be assignable from {converter.ToType}. (Parameter 'targetType')");
6969
}
7070

@@ -73,7 +73,7 @@ public override void Convert_WithInvalidValueType(object? inputValue, Type targe
7373
ICommunityToolkitValueConverter converter = CreateConverter();
7474

7575
var exception = Assert.Throws<ArgumentException>(() => converter.Convert(inputValue, targetType, null, CultureInfo.CurrentCulture));
76-
76+
7777
exception.Message.Should().Be($"Value needs to be of type {converter.FromType} (Parameter 'value')");
7878
}
7979
}
@@ -93,7 +93,7 @@ public override void Convert_WithMismatchedTargetType(object? inputValue, Type t
9393

9494
converter.Convert(inputValue, targetType, null, CultureInfo.CurrentCulture).Should().Be(converter.DefaultConvertReturnValue);
9595
}
96-
96+
9797
public override void Convert_WithInvalidValueType(object? inputValue, Type targetType)
9898
{
9999
ICommunityToolkitValueConverter converter = CreateConverter();

0 commit comments

Comments
 (0)