Uh oh!
There was an error while loading. Please reload this page.
[camerax] Use AspectRatioStrategy and ResolutionFilter to help automatic selection of expected resolution - #6357
Conversation
| getProxyForTestingResolutionPreset(mockProcessCameraProvider); | ||
| when(mockProcessCameraProvider.bindToLifecycle(mockBackCameraSelector, any)) | ||
| when(mockProcessCameraProvider.bindToLifecycle(any, any)) |
There was a problem hiding this comment.
I removed similar testing of this particular call in a couple of tests in this PR and felt comfortable doing so because it is tested in other createCamera tests.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Gray Mackall <34871572+gmackall@users.noreply.github.com>
auto label is removed for flutter/packages/6357, due to - The status or check suite Linux_android android_device_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
I was going to try to fix the linked issue in two PRs but tests are failing because I didn't implement a resolution filter for the one resolution preset that this PR does not address. Will work on implementing the filter and getting the tests to pass to avoid disabling/changing any tests. |
@gmackall if you are willing to take another look at this, I would greatly appreciate it! Overview of the new changes:
|
gmackall
left a comment
There was a problem hiding this comment.
I left some comments about documentation/a class name but LGTM outside that!
Uh oh!
There was an error while loading. Please reload this page.
| * <p>This class handles instantiating and adding native object instances that are attached to a | ||
| * Dart instance or handle method calls on the associated native class or an instance of the class. | ||
| */ | ||
| public class ResolutionFilterHostApiImpl implements ResolutionFilterHostApi { |
There was a problem hiding this comment.
(I don't think this matters that much but just for my understanding) Isn't this more of a ResolutionFilterConstructor/FactoryHostApiImpl? Because we aren't wrapping the methods of the ResolutionFilter interface but rather of a class that defines and creates an instance of a ResolutionFilter?
There was a problem hiding this comment.
Ooo yes I like this, thank you! I will rename the proxy class it uses to clarify that this calls into a factory of sorts.
Uh oh!
There was an error while loading. Please reload this page.
AspectRatioStrategy to help automatic selection of expected resolutionAspectRatioStrategy and ResolutionFilter to help automatic selection of expected resolution…on of expected resolution (flutter/packages#6357)
…on of expected resolution (flutter/packages#6357)
flutter/packages@e6b3e11...924c7e6 2024-03-28 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[ci] Temporarily allow-warnings in podspec_check_command.dart (#6416)" (flutter/packages#6419) 2024-03-28 ditman@gmail.com [ci] Temporarily allow-warnings in podspec_check_command.dart (flutter/packages#6416) 2024-03-28 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[interactive_media_ads] Creates and adds the `interactive_media_ads` plugin (#6060)" (flutter/packages#6417) 2024-03-27 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Creates and adds the `interactive_media_ads` plugin (flutter/packages#6060) 2024-03-27 43054281+camsim99@users.noreply.github.com [camerax] Use `AspectRatioStrategy` to help automatic selection of expected resolution (flutter/packages#6357) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@e6b3e11...924c7e6 2024-03-28 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[ci] Temporarily allow-warnings in podspec_check_command.dart (flutter#6416)" (flutter/packages#6419) 2024-03-28 ditman@gmail.com [ci] Temporarily allow-warnings in podspec_check_command.dart (flutter/packages#6416) 2024-03-28 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[interactive_media_ads] Creates and adds the `interactive_media_ads` plugin (flutter#6060)" (flutter/packages#6417) 2024-03-27 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Creates and adds the `interactive_media_ads` plugin (flutter/packages#6060) 2024-03-27 43054281+camsim99@users.noreply.github.com [camerax] Use `AspectRatioStrategy` to help automatic selection of expected resolution (flutter/packages#6357) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…pected resolution (flutter#6357) Defines `AspectRatioStategy`s that will help CameraX select the resolution we expect. Fixesflutter/flutter#144363.
…pected resolution (flutter#6357) Defines `AspectRatioStategy`s that will help CameraX select the resolution we expect. Fixesflutter/flutter#144363.
Defines
AspectRatioStategys that will help CameraX select the resolution we expect.Fixesflutter/flutter#144363.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).