Loading apct-tests/perftests/core/src/android/graphics/perftests/CanvasPerfTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,8 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } @Test Loading @@ -141,6 +143,8 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } @Test Loading @@ -158,5 +162,7 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } } Loading
apct-tests/perftests/core/src/android/graphics/perftests/CanvasPerfTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,8 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } @Test Loading @@ -141,6 +143,8 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } @Test Loading @@ -158,5 +162,7 @@ public class CanvasPerfTest { Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true) .recycle(); } source.recycle(); Runtime.getRuntime().gc(); } }