|
| | MOCK_METHOD (void, FlutterViewHandlePlatformMessage,(std::unique_ptr< flutter::PlatformMessage > message, int responseId),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewHandlePlatformMessageResponse,(int responseId, std::unique_ptr< fml::Mapping > data),(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 (void, FlutterViewSetApplicationLocale,(std::string locale),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewUpdateCustomAccessibilityActions,(std::vector< uint8_t > actions_buffer, std::vector< std::string > strings),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewOnFirstFrame,(),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewOnPreEngineRestart,(),(override)) |
| |
| | MOCK_METHOD (void, SurfaceTextureAttachToGLContext,(JavaLocalRef surface_texture, int textureId),(override)) |
| |
| | MOCK_METHOD (bool, SurfaceTextureShouldUpdate,(JavaLocalRef surface_texture),(override)) |
| |
| | MOCK_METHOD (void, SurfaceTextureUpdateTexImage,(JavaLocalRef surface_texture),(override)) |
| |
| | MOCK_METHOD (SkM44, SurfaceTextureGetTransformMatrix,(JavaLocalRef surface_texture),(override)) |
| |
| | MOCK_METHOD (JavaLocalRef, ImageProducerTextureEntryAcquireLatestImage,(JavaLocalRef image_texture_entry),(override)) |
| |
| | MOCK_METHOD (JavaLocalRef, ImageGetHardwareBuffer,(JavaLocalRef image),(override)) |
| |
| | MOCK_METHOD (void, ImageClose,(JavaLocalRef image),(override)) |
| |
| | MOCK_METHOD (void, HardwareBufferClose,(JavaLocalRef hardware_buffer),(override)) |
| |
| | MOCK_METHOD (void, SurfaceTextureDetachFromGLContext,(JavaLocalRef surface_texture),(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, FlutterViewDisplayOverlaySurface,(int surface_id, int x, int y, int width, int height),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewBeginFrame,(),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewEndFrame,(),(override)) |
| |
| | MOCK_METHOD (std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata >, FlutterViewCreateOverlaySurface,(),(override)) |
| |
| | MOCK_METHOD (void, FlutterViewDestroyOverlaySurfaces,(),(override)) |
| |
| | MOCK_METHOD (ASurfaceTransaction *, createTransaction,(),(override)) |
| |
| | MOCK_METHOD (void, swapTransaction,(),(override)) |
| |
| | MOCK_METHOD (void, applyTransaction,(),(override)) |
| |
| | MOCK_METHOD (void, destroyOverlaySurface2,(),(override)) |
| |
| | MOCK_METHOD (std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata >, createOverlaySurface2,(),(override)) |
| |
| | MOCK_METHOD (void, onDisplayPlatformView2,(int32_t view_id, int32_t x, int32_t y, int32_t width, int32_t height, int32_t viewWidth, int32_t viewHeight, MutatorsStack mutators_stack),(override)) |
| |
| | MOCK_METHOD (void, hidePlatformView2,(int32_t view_id),(override)) |
| |
| | MOCK_METHOD (void, onEndFrame2,(),(override)) |
| |
| | MOCK_METHOD (void, hideOverlaySurface2,(),(override)) |
| |
| | MOCK_METHOD (void, showOverlaySurface2,(),(override)) |
| |
| | MOCK_METHOD (std::unique_ptr< std::vector< std::string > >, FlutterViewComputePlatformResolvedLocale,(std::vector< std::string > supported_locales_data),(override)) |
| |
| | MOCK_METHOD (double, GetDisplayRefreshRate,(),(override)) |
| |
| | MOCK_METHOD (double, GetDisplayWidth,(),(override)) |
| |
| | MOCK_METHOD (double, GetDisplayHeight,(),(override)) |
| |
| | MOCK_METHOD (double, GetDisplayDensity,(),(override)) |
| |
| | MOCK_METHOD (bool, RequestDartDeferredLibrary,(int loading_unit_id),(override)) |
| |
| | MOCK_METHOD (double, FlutterViewGetScaledFontSize,(double font_size, int configuration_id),(const, override)) |
| |
Public Member Functions inherited from flutter::PlatformViewAndroidJNI |
| virtual | ~PlatformViewAndroidJNI () |
| |
| virtual void | FlutterViewHandlePlatformMessage (std::unique_ptr< flutter::PlatformMessage > message, int responseId)=0 |
| | Sends a platform message. The message may be empty.
|
| |
| virtual void | FlutterViewHandlePlatformMessageResponse (int responseId, std::unique_ptr< fml::Mapping > data)=0 |
| | Responds to a platform message. The data may be a nullptr.
|
| |
| virtual void | FlutterViewUpdateSemantics (std::vector< uint8_t > buffer, std::vector< std::string > strings, std::vector< std::vector< uint8_t > > string_attribute_args)=0 |
| | Sends semantics tree updates.
|
| |
| virtual void | FlutterViewSetApplicationLocale (std::string locale)=0 |
| | Set application locale to a given language.
|
| |
| virtual void | FlutterViewUpdateCustomAccessibilityActions (std::vector< uint8_t > actions_buffer, std::vector< std::string > strings)=0 |
| | Sends new custom accessibility events.
|
| |
| virtual void | FlutterViewOnFirstFrame ()=0 |
| | Indicates that FlutterView should start painting pixels.
|
| |
| virtual void | FlutterViewOnPreEngineRestart ()=0 |
| | Indicates that a hot restart is about to happen.
|
| |
| virtual void | SurfaceTextureAttachToGLContext (JavaLocalRef surface_texture, int textureId)=0 |
| | Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread.
|
| |
| virtual bool | SurfaceTextureShouldUpdate (JavaLocalRef surface_texture)=0 |
| | Returns true if surface_texture should be updated.
|
| |
| virtual void | SurfaceTextureUpdateTexImage (JavaLocalRef surface_texture)=0 |
| | Updates the texture image to the most recent frame from the image stream.
|
| |
| virtual SkM44 | SurfaceTextureGetTransformMatrix (JavaLocalRef surface_texture)=0 |
| | Gets the transform matrix from the SurfaceTexture. Then, it updates the transform matrix, so it fill the canvas and preserve the aspect ratio.
|
| |
| virtual void | SurfaceTextureDetachFromGLContext (JavaLocalRef surface_texture)=0 |
| | Detaches a SurfaceTexture from the OpenGL ES context.
|
| |
| virtual JavaLocalRef | ImageProducerTextureEntryAcquireLatestImage (JavaLocalRef image_texture_entry)=0 |
| | Acquire the latest image available.
|
| |
| virtual JavaLocalRef | ImageGetHardwareBuffer (JavaLocalRef image)=0 |
| | Grab the HardwareBuffer from image.
|
| |
| virtual void | ImageClose (JavaLocalRef image)=0 |
| | Call close on image.
|
| |
| virtual void | HardwareBufferClose (JavaLocalRef hardware_buffer)=0 |
| | Call close on hardware_buffer.
|
| |
| virtual void | FlutterViewOnDisplayPlatformView (int view_id, int x, int y, int width, int height, int viewWidth, int viewHeight, MutatorsStack mutators_stack)=0 |
| | Positions and sizes a platform view if using hybrid composition.
|
| |
| virtual void | FlutterViewDisplayOverlaySurface (int surface_id, int x, int y, int width, int height)=0 |
| | Positions and sizes an overlay surface in hybrid composition.
|
| |
| virtual void | FlutterViewBeginFrame ()=0 |
| | Initiates a frame if using hybrid composition.
|
| |
| virtual void | FlutterViewEndFrame ()=0 |
| | Indicates that the current frame ended. It's used to clean up state.
|
| |
| virtual std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata > | FlutterViewCreateOverlaySurface ()=0 |
| | Instantiates an overlay surface in hybrid composition and provides the necessary metadata to operate the surface in C.
|
| |
| virtual void | FlutterViewDestroyOverlaySurfaces ()=0 |
| | Destroys the overlay surfaces.
|
| |
| virtual ASurfaceTransaction * | createTransaction ()=0 |
| |
| virtual void | swapTransaction ()=0 |
| |
| virtual void | applyTransaction ()=0 |
| |
| virtual std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata > | createOverlaySurface2 ()=0 |
| |
| virtual void | destroyOverlaySurface2 ()=0 |
| |
| virtual void | onEndFrame2 ()=0 |
| |
| virtual void | onDisplayPlatformView2 (int32_t view_id, int32_t x, int32_t y, int32_t width, int32_t height, int32_t viewWidth, int32_t viewHeight, MutatorsStack mutators_stack)=0 |
| |
| virtual void | hidePlatformView2 (int32_t view_id)=0 |
| |
| virtual void | showOverlaySurface2 ()=0 |
| |
| virtual void | hideOverlaySurface2 ()=0 |
| |
| virtual std::unique_ptr< std::vector< std::string > > | FlutterViewComputePlatformResolvedLocale (std::vector< std::string > supported_locales_data)=0 |
| | Computes the locale Android would select.
|
| |
| virtual double | GetDisplayRefreshRate ()=0 |
| |
| virtual double | GetDisplayWidth ()=0 |
| |
| virtual double | GetDisplayHeight ()=0 |
| |
| virtual double | GetDisplayDensity ()=0 |
| |
| virtual bool | RequestDartDeferredLibrary (int loading_unit_id)=0 |
| |
| virtual double | FlutterViewGetScaledFontSize (double unscaled_font_size, int configuration_id) const =0 |
| |
Mock for |PlatformViewAndroidJNI|. This implementation can be used in unit tests without requiring the Android toolchain.
Definition at line 17 of file jni_mock.h.