boolean function ( StorageType arg0 , long arg1 ) { ensureInitialized ( ) ; long loc0 = getAvailableStorageSpace ( arg0 ) ; if ( loc0 > 0 ) { return loc0 < arg1 ; } return true ; }
check if free space available in the filesystem is greater than the given threshold . note that the free space stats are cached and updated in intervals of restat_interval_ms . if the amount of free space has crossed over the threshold since the last update , it will return incorrect results till the space stats are updated again . concode_field_sep File mInternalPath concode_elem_sep StatFsHelper sStatsFsHelper concode_elem_sep StatFs mExternalStatFs concode_elem_sep long RESTAT_INTERVAL_MS concode_elem_sep StatFs mInternalStatFs concode_elem_sep Lock lock concode_elem_sep File mExternalPath concode_elem_sep boolean mInitialized concode_elem_sep long mLastRestatTime concode_field_sep void ensureInitialized concode_elem_sep long getAvailableStorageSpace concode_elem_sep StatFs updateStatsHelper concode_elem_sep void maybeUpdateStats concode_elem_sep void resetStats concode_elem_sep StatFsHelper getInstance concode_elem_sep void updateStats concode_elem_sep StatFs createStatFs