Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformOverlayViewTest Class Reference

Public Member Functions

void platformOverlayView_forwardsHover ()
 

Detailed Description

Definition at line 23 of file PlatformOverlayViewTest.java.

Member Function Documentation

◆ platformOverlayView_forwardsHover()

void io.flutter.plugin.platform.PlatformOverlayViewTest.platformOverlayView_forwardsHover ( )
inline

Definition at line 27 of file PlatformOverlayViewTest.java.

27 {
28 final AccessibilityEventsDelegate mockAccessibilityDelegate =
29 mock(AccessibilityEventsDelegate.class);
30 when(mockAccessibilityDelegate.onAccessibilityHoverEvent(any(), eq(true))).thenReturn(true);
31
32 final int size = 10;
33 final PlatformOverlayView imageView =
34 new PlatformOverlayView(ctx, size, size, mockAccessibilityDelegate);
35 MotionEvent event =
36 MotionEvent.obtain(
37 SystemClock.uptimeMillis(),
38 SystemClock.uptimeMillis(),
39 MotionEvent.ACTION_HOVER_MOVE,
40 size / 2,
41 size / 2,
42 0);
43 imageView.onHoverEvent(event);
44
45 verify(mockAccessibilityDelegate, times(1)).onAccessibilityHoverEvent(event, true);
46 }
static SkISize times(const SkISize &size, float factor)
static bool eq(const SkM44 &a, const SkM44 &b, float tol)
Definition: M44Test.cpp:18
FlKeyEvent * event
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
SIT bool any(const Vec< 1, T > &x)
Definition: SkVx.h:530

The documentation for this class was generated from the following file: