From acdc8a5c8b2bffec4669435fd2c7d5fc699b3ff0 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Thu, 28 Oct 2021 05:30:31 +0200 Subject: [PATCH] Fix typos (flutter/engine#29280) --- engine/src/flutter/build/dart/tools/dart_pkg.py | 2 +- engine/src/flutter/lib/ui/painting/immutable_buffer.h | 2 +- engine/src/flutter/lib/ui/text.dart | 4 ++-- engine/src/flutter/lib/web_ui/lib/src/engine/assets.dart | 2 +- engine/src/flutter/runtime/runtime_controller.h | 6 +++--- .../io/flutter/embedding/android/KeyboardManager.java | 6 +++--- .../embedding/engine/systemchannels/RestorationChannel.java | 2 +- .../darwin/common/framework/Headers/FlutterTexture.h | 2 +- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 2 +- engine/src/flutter/shell/platform/darwin/ios/ios_context.h | 2 +- .../src/lib/ui/base_view/embedded_view_utils.h | 2 +- .../linux/public/flutter_linux/fl_plugin_registry.h | 4 ++-- engine/src/flutter/shell/profiling/sampling_profiler.h | 4 ++-- engine/src/flutter/third_party/accessibility/README.md | 2 +- engine/src/flutter/tools/fuchsia/fidl/gen_response_file.py | 4 ++-- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/engine/src/flutter/build/dart/tools/dart_pkg.py b/engine/src/flutter/build/dart/tools/dart_pkg.py index 09c7403eab7..9e7d38c8c47 100755 --- a/engine/src/flutter/build/dart/tools/dart_pkg.py +++ b/engine/src/flutter/build/dart/tools/dart_pkg.py @@ -202,7 +202,7 @@ def main(): default=[]) parser.add_argument('--sdk-ext-files', metavar='sdk_ext_files', - help='List of .dart files that are part of of sdk_ext.', + help='List of .dart files that are part of sdk_ext.', nargs='*', default=[]) parser.add_argument('--sdk-ext-mappings', diff --git a/engine/src/flutter/lib/ui/painting/immutable_buffer.h b/engine/src/flutter/lib/ui/painting/immutable_buffer.h index a3a382e63bd..6306dd99f0a 100644 --- a/engine/src/flutter/lib/ui/painting/immutable_buffer.h +++ b/engine/src/flutter/lib/ui/painting/immutable_buffer.h @@ -30,7 +30,7 @@ class ImmutableBuffer : public RefCountedDartWrappable { /// Initializes a new ImmutableData from a Dart Uint8List. /// - /// The zero indexed argument is the the caller that will be registered as the + /// The zero indexed argument is the caller that will be registered as the /// Dart peer of the native ImmutableBuffer object. /// /// The first indexed argumented is a tonic::Uint8List of bytes to copy. diff --git a/engine/src/flutter/lib/ui/text.dart b/engine/src/flutter/lib/ui/text.dart index 4dc0de493b8..7d3b406955d 100644 --- a/engine/src/flutter/lib/ui/text.dart +++ b/engine/src/flutter/lib/ui/text.dart @@ -1157,7 +1157,7 @@ class FontFeature { /// /// {@tool sample --template=stateless_widget} /// - /// The Piazzolla font supports the `ssXX` feature for for more + /// The Piazzolla font supports the `ssXX` feature for more /// elaborate stylistic effects. Set 1 turns some Latin characters /// into Roman numerals, set 2 enables some ASCII characters to be /// used to create pretty arrows, and so forth. @@ -3479,7 +3479,7 @@ class ParagraphBuilder extends NativeFieldWrapperClass1 { /// [PlaceholderAlignment.aboveBaseline], and [PlaceholderAlignment.belowBaseline] /// alignment modes are used, the baseline needs to be set with the `baseline`. /// When using [PlaceholderAlignment.baseline], `baselineOffset` indicates the distance - /// of the baseline down from the top of of the rectangle. The default `baselineOffset` + /// of the baseline down from the top of the rectangle. The default `baselineOffset` /// is the `height`. /// /// Examples: diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/assets.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/assets.dart index a1bbfcc5eb9..93913ca7702 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/assets.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/assets.dart @@ -83,7 +83,7 @@ class AssetManager { class AssetManagerException implements Exception { /// Http request url for asset. final String url; - /// Http status of of response. + /// Http status of response. final int httpStatus; /// Initializes exception with request url and http status. diff --git a/engine/src/flutter/runtime/runtime_controller.h b/engine/src/flutter/runtime/runtime_controller.h index 37e5eadcfe7..a8b5a84be4e 100644 --- a/engine/src/flutter/runtime/runtime_controller.h +++ b/engine/src/flutter/runtime/runtime_controller.h @@ -145,7 +145,7 @@ class RuntimeController : public PlatformConfigurationClient { std::unique_ptr isolate_configuration); //---------------------------------------------------------------------------- - /// @brief Clone the the runtime controller. Launching an isolate with a + /// @brief Clone the runtime controller. Launching an isolate with a /// cloned runtime controller will use the same snapshots and /// copies all window data to the new instance. This is usually /// only used in the debug runtime mode to support the @@ -311,7 +311,7 @@ class RuntimeController : public PlatformConfigurationClient { /// the VM. There is a “small” pause that occurs when the concurrent mark is /// initiated and another pause when the mark concludes and a sweep is /// initiated. - /// * If the total allocations exceeds the the hard threshold, a “big” + /// * If the total allocations exceeds the hard threshold, a “big” /// stop-the-world pause is initiated. /// * If after either the sweep after the concurrent mark, or, the /// stop-the-world pause, the consumption returns to be below the soft @@ -334,7 +334,7 @@ class RuntimeController : public PlatformConfigurationClient { /// the concurrent mark initiated by either reaching the soft threshold or /// an explicit NotifyIdle. /// * If you are running out of memory, its because too many large objects - /// were allocation and remained reachable such that the the old space kept + /// were allocation and remained reachable such that the old space kept /// growing till it could grow no more. /// * At the edges of allocation thresholds, failures can occur gracefully if /// the instigating allocation was made in the Dart VM or rather gracelessly diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/KeyboardManager.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/KeyboardManager.java index 8327324d900..b2a10184f66 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/KeyboardManager.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/KeyboardManager.java @@ -60,9 +60,9 @@ public class KeyboardManager { * Constructor for {@link KeyboardManager} that takes a list of {@link * KeyboardManager.Responder}s. * - *

The view is used as the destination to send the synthesized key to. This means that the the - * next thing in the focus chain will get the event when the {@link KeyboardManager.Responder}s - * return false from onKeyDown/onKeyUp. + *

The view is used as the destination to send the synthesized key to. This means that the next + * thing in the focus chain will get the event when the {@link KeyboardManager.Responder}s return + * false from onKeyDown/onKeyUp. * *

It is possible that that in the middle of the async round trip, the focus chain could * change, and instead of the native widget that was "next" when the event was fired getting the diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/RestorationChannel.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/RestorationChannel.java index 2c484365b37..7249620ecdd 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/RestorationChannel.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/RestorationChannel.java @@ -62,7 +62,7 @@ public class RestorationChannel { */ public final boolean waitForRestorationData; - // Holds the the most current restoration data which may have been provided by the engine + // Holds the most current restoration data which may have been provided by the engine // via "setRestorationData" or by the framework via the method channel. This is the data the // framework should be restored to in case the app is terminated. private byte[] restorationData; diff --git a/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h b/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h index 7ff23739186..59d2ced808d 100644 --- a/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h +++ b/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h @@ -50,7 +50,7 @@ FLUTTER_DARWIN_EXPORT - (void)textureFrameAvailable:(int64_t)textureId; /** * Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`. Textures - * must be unregistered on the the platform thread. + * must be unregistered on the platform thread. * * @param textureId The result that was previously returned from `registerTexture:`. */ diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index 333d12f3f92..4556798a4ed 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -611,7 +611,7 @@ std::shared_ptr FlutterPlatformViewsController::GetLay UIView* overlay_view = layer->overlay_view.get(); // Set the size of the overlay view. - // This size is equal to the the device screen size. + // This size is equal to the device screen size. overlay_view.frame = flutter_view_.get().bounds; std::unique_ptr frame = layer->surface->AcquireFrame(frame_size_); diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_context.h b/engine/src/flutter/shell/platform/darwin/ios/ios_context.h index c08b6b9c729..7e0e5e2c23b 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_context.h +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_context.h @@ -22,7 +22,7 @@ namespace flutter { /// contexts on iOS. On-screen contexts are used by Flutter for /// rendering into the surface. The lifecycle of this context may be /// tied to the lifecycle of the surface. On the other hand, the -/// lifecycle of the the off-screen context it tied to that of the +/// lifecycle of the off-screen context it tied to that of the /// platform view. This one object used to manage both context /// because GPU handles may need to be shared between the two /// context. To achieve this, context may need references to one diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/lib/ui/base_view/embedded_view_utils.h b/engine/src/flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/lib/ui/base_view/embedded_view_utils.h index 716bfa6606c..ff087d4a03c 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/lib/ui/base_view/embedded_view_utils.h +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/integration_flutter_tests/fuchsia_testing/src/lib/ui/base_view/embedded_view_utils.h @@ -47,7 +47,7 @@ struct EmbeddedViewInfo { // returned EmbeddedViewInfo, which the caller can use to embed the child. // For example, an interface to a ViewProvider is obtained, a pair of // zx::eventpairs is created, CreateView is called, etc. This encapsulates -// the boilerplate the the client would otherwise write themselves. +// the boilerplate the client would otherwise write themselves. EmbeddedViewInfo LaunchComponentAndCreateView( const fuchsia::sys::LauncherPtr& launcher, const std::string& component_url, diff --git a/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h b/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h index bfc860e7691..ac16aba26ad 100644 --- a/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h +++ b/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h @@ -35,7 +35,7 @@ struct _FlPluginRegistryInterface { * @registry: an #FlPluginRegistry. * @name: plugin name. * - * Gets the plugin registrar for the the plugin with @name. + * Gets the plugin registrar for the plugin with @name. * * Returns: (transfer full): an #FlPluginRegistrar. */ @@ -48,7 +48,7 @@ struct _FlPluginRegistryInterface { * @registry: an #FlPluginRegistry. * @name: plugin name. * - * Gets the plugin registrar for the the plugin with @name. + * Gets the plugin registrar for the plugin with @name. * * Returns: (transfer full): an #FlPluginRegistrar. */ diff --git a/engine/src/flutter/shell/profiling/sampling_profiler.h b/engine/src/flutter/shell/profiling/sampling_profiler.h index 8b4b06c0076..d68f88a643d 100644 --- a/engine/src/flutter/shell/profiling/sampling_profiler.h +++ b/engine/src/flutter/shell/profiling/sampling_profiler.h @@ -31,10 +31,10 @@ struct CpuUsageInfo { }; /** - * @brief Memory usage stats. `dirty_memory_usage` is the the memory usage (in + * @brief Memory usage stats. `dirty_memory_usage` is the memory usage (in * MB) such that the app uses its physical memory for dirty memory. Dirty memory * is the memory data that cannot be paged to disk. `owned_shared_memory_usage` - * is the memory usage (in MB) such that the app uses its physicaal memory for + * is the memory usage (in MB) such that the app uses its physical memory for * shared memory, including loaded frameworks and executables. On iOS, it's * `physical memory - dirty memory`. */ diff --git a/engine/src/flutter/third_party/accessibility/README.md b/engine/src/flutter/third_party/accessibility/README.md index d8c51892fca..5b4b7609498 100644 --- a/engine/src/flutter/third_party/accessibility/README.md +++ b/engine/src/flutter/third_party/accessibility/README.md @@ -14,7 +14,7 @@ For the main ax code, the following parts were not imported: Update to this Library ============== -Bug fixes to the forked files in the the four directories should proceed as usual. +Bug fixes to the forked files in the four directories should proceed as usual. New features or changes that change the behaviors of these classes are discouraged. If you do need to make such change, please log the change at the end of this file. diff --git a/engine/src/flutter/tools/fuchsia/fidl/gen_response_file.py b/engine/src/flutter/tools/fuchsia/fidl/gen_response_file.py index beeeae4878f..8be6ebea329 100755 --- a/engine/src/flutter/tools/fuchsia/fidl/gen_response_file.py +++ b/engine/src/flutter/tools/fuchsia/fidl/gen_response_file.py @@ -30,11 +30,11 @@ def main(): description="Generate response file for FIDL frontend") parser.add_argument( "--out-response-file", - help="The path for for the response file to generate", + help="The path for the response file to generate", required=True) parser.add_argument( "--out-libraries", - help="The path for for the libraries file to generate", + help="The path for the libraries file to generate", required=True) parser.add_argument( "--json", help="The path for the JSON file to generate, if any")