Definition at line 22 of file GetBitmapTests.java.
◆ 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
◆ 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:
- testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/GetBitmapTests.java