5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_JNI_JNI_MOCK_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_JNI_JNI_MOCK_H_
8#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
9#include "gmock/gmock.h"
21 (std::unique_ptr<flutter::PlatformMessage>
message,
27 (
int responseId, std::unique_ptr<fml::Mapping>
data),
32 (std::vector<uint8_t>
buffer,
33 std::vector<std::string> strings,
34 std::vector<std::vector<uint8_t>> string_attribute_args),
39 (std::vector<uint8_t> actions_buffer,
40 std::vector<std::string> strings),
110 MOCK_METHOD(std::unique_ptr<PlatformViewAndroidJNI::OverlayMetadata>,
119 (std::vector<std::string> supported_locales_data),
129 (
int loading_unit_id),
134 (
double font_size,
int configuration_id),
MOCK_METHOD(double, GetDisplayWidth,(),(override))
MOCK_METHOD(void, FlutterViewOnDisplayPlatformView,(int view_id, int x, int y, int width, int height, int viewWidth, int viewHeight, MutatorsStack mutators_stack),(override))
MOCK_METHOD(void, SurfaceTextureAttachToGLContext,(JavaLocalRef surface_texture, int textureId),(override))
MOCK_METHOD(void, FlutterViewEndFrame,(),(override))
MOCK_METHOD(JavaLocalRef, ImageProducerTextureEntryAcquireLatestImage,(JavaLocalRef image_texture_entry),(override))
MOCK_METHOD(JavaLocalRef, ImageGetHardwareBuffer,(JavaLocalRef image),(override))
MOCK_METHOD(void, HardwareBufferClose,(JavaLocalRef hardware_buffer),(override))
MOCK_METHOD(void, FlutterViewUpdateSemantics,(std::vector< uint8_t > buffer, std::vector< std::string > strings, std::vector< std::vector< uint8_t > > string_attribute_args),(override))
MOCK_METHOD(std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata >, FlutterViewCreateOverlaySurface,(),(override))
MOCK_METHOD(bool, RequestDartDeferredLibrary,(int loading_unit_id),(override))
MOCK_METHOD(void, SurfaceTextureGetTransformMatrix,(JavaLocalRef surface_texture, SkMatrix &transform),(override))
MOCK_METHOD(double, GetDisplayDensity,(),(override))
MOCK_METHOD(void, FlutterViewDisplayOverlaySurface,(int surface_id, int x, int y, int width, int height),(override))
MOCK_METHOD(void, FlutterViewBeginFrame,(),(override))
MOCK_METHOD(double, GetDisplayHeight,(),(override))
MOCK_METHOD(double, GetDisplayRefreshRate,(),(override))
MOCK_METHOD(void, ImageClose,(JavaLocalRef image),(override))
MOCK_METHOD(void, FlutterViewOnFirstFrame,(),(override))
MOCK_METHOD(std::unique_ptr< std::vector< std::string > >, FlutterViewComputePlatformResolvedLocale,(std::vector< std::string > supported_locales_data),(override))
MOCK_METHOD(void, SurfaceTextureUpdateTexImage,(JavaLocalRef surface_texture),(override))
MOCK_METHOD(bool, SurfaceTextureShouldUpdate,(JavaLocalRef surface_texture),(override))
MOCK_METHOD(void, FlutterViewHandlePlatformMessage,(std::unique_ptr< flutter::PlatformMessage > message, int responseId),(override))
MOCK_METHOD(void, SurfaceTextureDetachFromGLContext,(JavaLocalRef surface_texture),(override))
MOCK_METHOD(void, FlutterViewDestroyOverlaySurfaces,(),(override))
MOCK_METHOD(void, FlutterViewHandlePlatformMessageResponse,(int responseId, std::unique_ptr< fml::Mapping > data),(override))
MOCK_METHOD(double, FlutterViewGetScaledFontSize,(double font_size, int configuration_id),(const, override))
MOCK_METHOD(void, FlutterViewUpdateCustomAccessibilityActions,(std::vector< uint8_t > actions_buffer, std::vector< std::string > strings),(override))
MOCK_METHOD(void, FlutterViewOnPreEngineRestart,(),(override))
sk_sp< const SkImage > image
std::nullptr_t JavaLocalRef
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)