Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest Class Reference

Public Member Functions

void setUp ()
 
void testPlatformView () throws Exception
 
void testPlatformViewMultiple () throws Exception
 
void testPlatformViewMultipleBackgroundForeground () throws Exception
 
void testPlatformViewCliprect () throws Exception
 
void testPlatformViewCliprrect () throws Exception
 
void testPlatformViewClippath () throws Exception
 
void testPlatformViewTransform () throws Exception
 
void testPlatformViewOpacity () throws Exception
 
void testPlatformViewRotate () throws Exception
 
void testPlatformViewMultipleWithoutOverlays () throws Exception
 
void testPlatformViewTwoIntersectingOverlays () throws Exception
 
void testPlatformViewWithoutOverlayIntersection () throws Exception
 
void testPlatformViewLargerThanDisplaySize () throws Exception
 

Public Attributes

ActivityTestRule< PlatformViewsActivityactivityRule
 

Detailed Description

Definition at line 24 of file PlatformViewWithSurfaceViewUiTest.java.

Member Function Documentation

◆ setUp()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.setUp ( )
inline

Definition at line 38 of file PlatformViewWithSurfaceViewUiTest.java.

38 {
39 instrumentation = InstrumentationRegistry.getInstrumentation();
40 intent = new Intent(Intent.ACTION_MAIN);
41 // Render a texture.
42 intent.putExtra("use_android_view", false);
43 intent.putExtra("view_type", PlatformViewsActivity.SURFACE_VIEW_PV);
44 }

◆ testPlatformView()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformView ( ) throws Exception
inline

Definition at line 47 of file PlatformViewWithSurfaceViewUiTest.java.

47 {
48 intent.putExtra("scenario_name", "platform_view");
49 ScreenshotUtil.capture(activityRule.launchActivity(intent), goldName("testPlatformView"));
50 }

◆ testPlatformViewClippath()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewClippath ( ) throws Exception
inline

Definition at line 82 of file PlatformViewWithSurfaceViewUiTest.java.

82 {
83 intent.putExtra("scenario_name", "platform_view_clippath");
84 ScreenshotUtil.capture(
85 activityRule.launchActivity(intent), goldName("testPlatformViewClippath"));
86 }

◆ testPlatformViewCliprect()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewCliprect ( ) throws Exception
inline

Definition at line 68 of file PlatformViewWithSurfaceViewUiTest.java.

68 {
69 intent.putExtra("scenario_name", "platform_view_cliprect");
70 ScreenshotUtil.capture(
71 activityRule.launchActivity(intent), goldName("testPlatformViewCliprect"));
72 }

◆ testPlatformViewCliprrect()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewCliprrect ( ) throws Exception
inline

Definition at line 75 of file PlatformViewWithSurfaceViewUiTest.java.

75 {
76 intent.putExtra("scenario_name", "platform_view_cliprrect");
77 ScreenshotUtil.capture(
78 activityRule.launchActivity(intent), goldName("testPlatformViewCliprrect"));
79 }

◆ testPlatformViewLargerThanDisplaySize()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewLargerThanDisplaySize ( ) throws Exception
inline

Definition at line 137 of file PlatformViewWithSurfaceViewUiTest.java.

137 {
138 // Regression test for https://github.com/flutter/flutter/issues/28978.
139 intent.putExtra("scenario_name", "platform_view_larger_than_display_size");
140 ScreenshotUtil.capture(
141 activityRule.launchActivity(intent), goldName("testPlatformViewLargerThanDisplaySize"));
142 }

◆ testPlatformViewMultiple()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewMultiple ( ) throws Exception
inline

Definition at line 53 of file PlatformViewWithSurfaceViewUiTest.java.

53 {
54 intent.putExtra("scenario_name", "platform_view_multiple");
55 ScreenshotUtil.capture(
56 activityRule.launchActivity(intent), goldName("testPlatformViewMultiple"));
57 }

◆ testPlatformViewMultipleBackgroundForeground()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewMultipleBackgroundForeground ( ) throws Exception
inline

Definition at line 60 of file PlatformViewWithSurfaceViewUiTest.java.

60 {
61 intent.putExtra("scenario_name", "platform_view_multiple_background_foreground");
62 ScreenshotUtil.capture(
63 activityRule.launchActivity(intent),
64 goldName("testPlatformViewMultipleBackgroundForeground"));
65 }

◆ testPlatformViewMultipleWithoutOverlays()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewMultipleWithoutOverlays ( ) throws Exception
inline

Definition at line 112 of file PlatformViewWithSurfaceViewUiTest.java.

112 {
113 intent.putExtra("scenario_name", "platform_view_multiple_without_overlays");
114 ScreenshotUtil.capture(
115 activityRule.launchActivity(intent), goldName("testPlatformViewMultipleWithoutOverlays"));
116 }

◆ testPlatformViewOpacity()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewOpacity ( ) throws Exception
inline

Definition at line 96 of file PlatformViewWithSurfaceViewUiTest.java.

96 {
97 intent.putExtra("scenario_name", "platform_view_opacity");
98 ScreenshotUtil.capture(
99 activityRule.launchActivity(intent), goldName("testPlatformViewOpacity"));
100 }

◆ testPlatformViewRotate()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewRotate ( ) throws Exception
inline

Definition at line 103 of file PlatformViewWithSurfaceViewUiTest.java.

103 {
104 intent.putExtra("scenario_name", "platform_view_rotate");
105 PlatformViewsActivity activity = activityRule.launchActivity(intent);
106 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
107 instrumentation.waitForIdleSync();
108 ScreenshotUtil.capture(activity, goldName("testPlatformViewRotate"));
109 }

◆ testPlatformViewTransform()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewTransform ( ) throws Exception
inline

Definition at line 89 of file PlatformViewWithSurfaceViewUiTest.java.

89 {
90 intent.putExtra("scenario_name", "platform_view_transform");
91 ScreenshotUtil.capture(
92 activityRule.launchActivity(intent), goldName("testPlatformViewTransform"));
93 }

◆ testPlatformViewTwoIntersectingOverlays()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewTwoIntersectingOverlays ( ) throws Exception
inline

Definition at line 119 of file PlatformViewWithSurfaceViewUiTest.java.

119 {
120 intent.putExtra("scenario_name", "platform_view_two_intersecting_overlays");
121 ScreenshotUtil.capture(
122 activityRule.launchActivity(intent), goldName("testPlatformViewTwoIntersectingOverlays"));
123 }

◆ testPlatformViewWithoutOverlayIntersection()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.testPlatformViewWithoutOverlayIntersection ( ) throws Exception
inline

Definition at line 126 of file PlatformViewWithSurfaceViewUiTest.java.

126 {
127 intent.putExtra("scenario_name", "platform_view_no_overlay_intersection");
128 ScreenshotUtil.capture(
129 activityRule.launchActivity(intent),
130 goldName("testPlatformViewWithoutOverlayIntersection"));
131 }

Member Data Documentation

◆ activityRule

ActivityTestRule<PlatformViewsActivity> dev.flutter.scenariosui.PlatformViewWithSurfaceViewUiTest.activityRule
Initial value:
=
new ActivityTestRule<>(
PlatformViewsActivity.class, false, false)

Definition at line 29 of file PlatformViewWithSurfaceViewUiTest.java.


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