27 {
28 final AccessibilityEventsDelegate mockAccessibilityDelegate =
29 mock(AccessibilityEventsDelegate.class);
30 when(mockAccessibilityDelegate.onAccessibilityHoverEvent(
any(),
eq(
true))).thenReturn(
true);
31
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,
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)
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
SIT bool any(const Vec< 1, T > &x)