Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dev.flutter.scenariosui.GetBitmapTests Class Reference

Public Member Functions

void getBitmap () throws Exception
 

Public Attributes

ActivityTestRule< GetBitmapActivity > activityRule
 

Detailed Description

Definition at line 22 of file GetBitmapTests.java.

Member Function Documentation

◆ getBitmap()

void dev.flutter.scenariosui.GetBitmapTests.getBitmap ( ) throws Exception
inline

Definition at line 29 of file GetBitmapTests.java.

29 {
30 Intent intent = new Intent(Intent.ACTION_MAIN);
31 intent.putExtra("scenario_name", "get_bitmap");
32 GetBitmapActivity activity = activityRule.launchActivity(intent);
33 Bitmap bitmap = activity.getBitmap();
34
35 assertEquals(bitmap.getPixel(10, 10), 0xFFFF0000);
36 assertEquals(bitmap.getPixel(10, bitmap.getHeight() - 10), 0xFF0000FF);
37 }
ActivityTestRule< GetBitmapActivity > activityRule

Member Data Documentation

◆ activityRule

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

Definition at line 24 of file GetBitmapTests.java.


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