reconfigures bitmap after checking its allocation size . this method is here to overcome our testing framework limit . robolectric does not provide kitkat specific apis : bitmap #reconfigure and bitmap #getallocationbytecount are part of that . concode_field_sep Bitmap.Config BITMAP_CONFIG concode_elem_sep int BYTES_PER_PIXEL concode_field_sep void copyBitmap concode_elem_sep void pinBitmap concode_elem_sep void nativePinBitmap concode_elem_sep void nativeCopyBitmap
void function ( Bitmap arg0 , int arg1 , int arg2 ) { Preconditions . checkArgument ( arg0 . getAllocationByteCount ( ) >= arg1 * arg2 * BYTES_PER_PIXEL ) ; arg0 . reconfigure ( arg1 , arg2 , BITMAP_CONFIG ) ; }