Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 611fb98e authored by Mark Harman's avatar Mark Harman
Browse files

Remove outdated Android version checks.

parent 922b82e5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -411,11 +411,6 @@ public class InstrumentedTest {
    public void testDROZero() throws IOException, InterruptedException {
        Log.d(TAG, "testDROZero");

        if( Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ) {
            Log.d(TAG, "renderscript requires Android Lollipop or better");
            return;
        }

        setToDefault();

        mActivityRule.getScenario().onActivity(activity -> { // for simplicity, run the entire test on the UI thread
+0 −10
Original line number Diff line number Diff line
@@ -407,11 +407,6 @@ public class TestUtils {
    public static HistogramDetails subTestHDR(MainActivity activity, List<Bitmap> inputs, String output_name, boolean test_dro, int iso, long exposure_time, HDRProcessor.TonemappingAlgorithm tonemapping_algorithm/*, HDRTestCallback test_callback*/) {
        Log.d(TAG, "subTestHDR");

        if( Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ) {
            Log.d(TAG, "renderscript requires Android Lollipop or better");
            return null;
        }

        try {
            Thread.sleep(1000); // wait for camera to open
        }
@@ -519,11 +514,6 @@ public class TestUtils {
    public static HistogramDetails subTestAvg(MainActivity activity, List<String> inputs, String output_name, int iso, long exposure_time, float zoom_factor, TestAvgCallback cb) {
        Log.d(TAG, "subTestAvg");

        if( Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ) {
            Log.d(TAG, "renderscript requires Android Lollipop or better");
            return null;
        }

        try {
            Thread.sleep(1000); // wait for camera to open
        }
+0 −5
Original line number Diff line number Diff line
@@ -13991,11 +13991,6 @@ public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActiv
    public void testDROZero() throws IOException, InterruptedException {
        Log.d(TAG, "testDROZero");
        if( Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ) {
            Log.d(TAG, "renderscript requires Android Lollipop or better");
            return;
        }
        setToDefault();
        Bitmap bitmap = getBitmapFromFile(TestUtils.hdr_images_path + "testHDR3/input1.jpg");