Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dev.flutter.scenariosui.PlatformViewWithTextureViewUiTest 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
 

Public Attributes

ActivityTestRule< PlatformViewsActivity > activityRule
 

Detailed Description

Definition at line 23 of file PlatformViewWithTextureViewUiTest.java.

Member Function Documentation

◆ setUp()

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

Definition at line 37 of file PlatformViewWithTextureViewUiTest.java.

37 {
38 instrumentation = InstrumentationRegistry.getInstrumentation();
39 intent = new Intent(Intent.ACTION_MAIN);
40 intent.putExtra("view_type", PlatformViewsActivity.TEXTURE_VIEW_PV);
41 }

◆ testPlatformView()

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

Definition at line 44 of file PlatformViewWithTextureViewUiTest.java.

44 {
45 intent.putExtra("scenario_name", "platform_view");
46 ScreenshotUtil.capture(activityRule.launchActivity(intent), goldName("testPlatformView"));
47 }

◆ testPlatformViewClippath()

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

Definition at line 79 of file PlatformViewWithTextureViewUiTest.java.

79 {
80 intent.putExtra("scenario_name", "platform_view_clippath");
81 ScreenshotUtil.capture(
82 activityRule.launchActivity(intent), goldName("testPlatformViewClippath"));
83 }

◆ testPlatformViewCliprect()

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

Definition at line 65 of file PlatformViewWithTextureViewUiTest.java.

65 {
66 intent.putExtra("scenario_name", "platform_view_cliprect");
67 ScreenshotUtil.capture(
68 activityRule.launchActivity(intent), goldName("testPlatformViewCliprect"));
69 }

◆ testPlatformViewCliprrect()

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

Definition at line 72 of file PlatformViewWithTextureViewUiTest.java.

72 {
73 intent.putExtra("scenario_name", "platform_view_cliprrect");
74 ScreenshotUtil.capture(
75 activityRule.launchActivity(intent), goldName("testPlatformViewCliprrect"));
76 }

◆ testPlatformViewMultiple()

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

Definition at line 50 of file PlatformViewWithTextureViewUiTest.java.

50 {
51 intent.putExtra("scenario_name", "platform_view_multiple");
52 ScreenshotUtil.capture(
53 activityRule.launchActivity(intent), goldName("testPlatformViewMultiple"));
54 }

◆ testPlatformViewMultipleBackgroundForeground()

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

Definition at line 57 of file PlatformViewWithTextureViewUiTest.java.

57 {
58 intent.putExtra("scenario_name", "platform_view_multiple_background_foreground");
59 ScreenshotUtil.capture(
60 activityRule.launchActivity(intent),
61 goldName("testPlatformViewMultipleBackgroundForeground"));
62 }

◆ testPlatformViewMultipleWithoutOverlays()

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

Definition at line 109 of file PlatformViewWithTextureViewUiTest.java.

109 {
110 intent.putExtra("scenario_name", "platform_view_multiple_without_overlays");
111 ScreenshotUtil.capture(
112 activityRule.launchActivity(intent), goldName("testPlatformViewMultipleWithoutOverlays"));
113 }

◆ testPlatformViewOpacity()

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

Definition at line 93 of file PlatformViewWithTextureViewUiTest.java.

93 {
94 intent.putExtra("scenario_name", "platform_view_opacity");
95 ScreenshotUtil.capture(
96 activityRule.launchActivity(intent), goldName("testPlatformViewOpacity"));
97 }

◆ testPlatformViewRotate()

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

Definition at line 100 of file PlatformViewWithTextureViewUiTest.java.

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

◆ testPlatformViewTransform()

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

Definition at line 86 of file PlatformViewWithTextureViewUiTest.java.

86 {
87 intent.putExtra("scenario_name", "platform_view_transform");
88 ScreenshotUtil.capture(
89 activityRule.launchActivity(intent), goldName("testPlatformViewTransform"));
90 }

◆ testPlatformViewTwoIntersectingOverlays()

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

Definition at line 116 of file PlatformViewWithTextureViewUiTest.java.

116 {
117 intent.putExtra("scenario_name", "platform_view_two_intersecting_overlays");
118 ScreenshotUtil.capture(
119 activityRule.launchActivity(intent), goldName("testPlatformViewTwoIntersectingOverlays"));
120 }

◆ testPlatformViewWithoutOverlayIntersection()

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

Definition at line 123 of file PlatformViewWithTextureViewUiTest.java.

123 {
124 intent.putExtra("scenario_name", "platform_view_no_overlay_intersection");
125 ScreenshotUtil.capture(
126 activityRule.launchActivity(intent),
127 goldName("testPlatformViewWithoutOverlayIntersection"));
128 }

Member Data Documentation

◆ activityRule

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

Definition at line 28 of file PlatformViewWithTextureViewUiTest.java.


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