public static void fallocateIfSupported ( FileDescriptor fd , long length ) throws IOException { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { LollipopSysdeps . fallocateIfSupported ( fd , length ) ; } }
Pre - allocate disk space for a file if we can do that on this version of the OS .