Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 6 of 6) sorted by relevance

/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaPooledImageRegionDecoder.java74 private long fileLength = Long.MAX_VALUE; field in SkiaPooledImageRegionDecoder
124 if (lazyInited.compareAndSet(false, true) && fileLength < Long.MAX_VALUE) { in lazyInit()
129 … while (decoderPool != null && allowAdditionalDecoder(decoderPool.size(), fileLength)) { in lazyInit()
158 long fileLength = Long.MAX_VALUE; in initialiseDecoder() local
183 fileLength = descriptor.getLength(); in initialiseDecoder()
192 fileLength = descriptor.getLength(); in initialiseDecoder()
202 fileLength = file.length(); in initialiseDecoder()
216 fileLength = descriptor.getLength(); in initialiseDecoder()
228 this.fileLength = fileLength; in initialiseDecoder()
318 protected boolean allowAdditionalDecoder(int numberOfDecoders, long fileLength) { in allowAdditionalDecoder() argument
[all …]
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DRandomAccessFileInputStream.java60 private final long fileLength; field in RandomAccessFileInputStream
85 fileLength = file.length(); in RandomAccessFileInputStream()
113 if (rangeOffset + rangeLength > fileLength) { in setRange()
221 return fileLength; in length()
/external/icu/icu4c/source/common/
Dumapfile.cpp288 int32_t fileLength; in uprv_mapFile() local
303 fileLength=umap_fsize(file); in uprv_mapFile()
304 if(ferror(file) || fileLength<=20) { in uprv_mapFile()
310 p=uprv_malloc(fileLength); in uprv_mapFile()
318 if(fileLength!=fread(p, 1, fileLength, file)) { in uprv_mapFile()
/external/icu/icu4c/source/tools/toolutil/
Dunewdata.cpp145 uint32_t fileLength=0; in udata_finish() local
154 fileLength=T_FileStream_size(pData->file); in udata_finish()
158 fileLength-=pData->headerSize; in udata_finish()
165 return fileLength; in udata_finish()
Dpackage.cpp310 int32_t fileLength, typeEnum; in readFile() local
322 fileLength=getFileLength(file); in readFile()
323 if(ferror(file) || fileLength<=0) { in readFile()
330 length=(fileLength+0xf)&~0xf; in readFile()
339 if(fileLength!=(int32_t)fread(data.getAlias(), 1, fileLength, file)) { in readFile()
346 if(fileLength<length) { in readFile()
347 memset(data.getAlias()+fileLength, 0xaa, length-fileLength); in readFile()
1132 int32_t fileLength; in extractItem() local
1175 fileLength=(int32_t)fwrite(pItem->data, 1, pItem->length, file); in extractItem()
1177 if(ferror(file) || fileLength!=pItem->length) { in extractItem()
Dxmlparser.cpp172 int32_t fileLength, bytesLength, length, capacity; in parseFile() local
188 fileLength=bytesLength; in parseFile()
191 fileLength=T_FileStream_size(f); in parseFile()
272 capacity=fileLength; // estimated capacity in parseFile()