Searched refs:scaledBitmap (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/ |
D | OvicDetectorBenchmarker.java | 34 private Bitmap scaledBitmap = null; // Preallocate bitmap for scaling. field in OvicDetectorBenchmarker 147 scaledBitmap = Bitmap.createScaledBitmap(bitmap, imgWidth, imgHeight, true); in convertBitmapToInput() 150 scaledBitmap.getPixels(intValues, 0, imgWidth, 0, 0, imgWidth, imgHeight); in convertBitmapToInput() 151 scaledBitmap.recycle(); in convertBitmapToInput()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowBitmap.java | 213 Bitmap scaledBitmap = ReflectionHelpers.callConstructor(Bitmap.class); in createBitmap() local 214 ShadowBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createBitmap() 225 return scaledBitmap; in createBitmap() 242 Bitmap scaledBitmap = ReflectionHelpers.callConstructor(Bitmap.class); in createScaledBitmap() local 243 ShadowBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createScaledBitmap() 257 return scaledBitmap; in createScaledBitmap()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowBitmapTest.java | 34 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); in shouldCreateScaledBitmap() local 35 assertThat(shadowOf(scaledBitmap).getDescription()) in shouldCreateScaledBitmap() 37 assertThat(scaledBitmap.getWidth()).isEqualTo(100); in shouldCreateScaledBitmap() 38 assertThat(scaledBitmap.getHeight()).isEqualTo(200); in shouldCreateScaledBitmap() 39 scaledBitmap.getPixels(new int[20000], 0, 0, 0, 0, 100, 200); in shouldCreateScaledBitmap()
|