Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 25 of 82) sorted by relevance

1234

/external/chromium_org/third_party/skia/src/utils/win/
DSkDWriteFontFileStream.cpp37 size_t fileSize = this->getLength(); in read() local
39 if (fPos + size > fileSize) { in read()
40 size_t skipped = fileSize - fPos; in read()
41 fPos = fileSize; in read()
60 size_t fileSize = this->getLength(); in read() local
61 if (fPos + size <= fileSize) { in read()
66 size_t read = fileSize - fPos; in read()
71 fPos = fileSize; in read()
126 UINT64 fileSize; in getMemoryBase() local
127 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase()
[all …]
/external/skia/src/utils/win/
DSkDWriteFontFileStream.cpp37 size_t fileSize = this->getLength(); in read() local
39 if (fPos + size > fileSize) { in read()
40 size_t skipped = fileSize - fPos; in read()
41 fPos = fileSize; in read()
60 size_t fileSize = this->getLength(); in read() local
61 if (fPos + size <= fileSize) { in read()
66 size_t read = fileSize - fPos; in read()
71 fPos = fileSize; in read()
126 UINT64 fileSize; in getMemoryBase() local
127 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase()
[all …]
/external/smack/src/org/jivesoftware/smackx/filetransfer/
DFileTransfer.java41 private long fileSize; field in FileTransfer
71 protected void setFileInfo(String fileName, long fileSize) { in setFileInfo() argument
73 this.fileSize = fileSize; in setFileInfo()
76 protected void setFileInfo(String path, String fileName, long fileSize) { in setFileInfo() argument
79 this.fileSize = fileSize; in setFileInfo()
88 return fileSize; in getFileSize()
125 if (amountWritten <= 0 || fileSize <= 0) { in getProgress()
128 return (double) amountWritten / (double) fileSize; in getProgress()
234 && amountWritten != fileSize) { in writeToStream()
DOutgoingFileTransfer.java115 public synchronized OutputStream sendFile(String fileName, long fileSize, in sendFile() argument
123 setFileInfo(fileName, fileSize); in sendFile()
124 this.outputStream = negotiateStream(fileName, fileSize, description); in sendFile()
151 final long fileSize, final String description, in sendFile() argument
163 setFileInfo(fileName, fileSize); in sendFile()
169 fileName, fileSize, description); in sendFile()
276 …void sendStream(final InputStream in, final String fileName, final long fileSize, final String des… in sendStream() argument
279 setFileInfo(fileName, fileSize); in sendStream()
282 setFileInfo(fileName, fileSize); in sendStream()
285 outputStream = negotiateStream(fileName, fileSize, description); in sendStream()
[all …]
/external/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp29 int32_t fileSize; in readFile() local
47 fileSize = ftell(f); in readFile()
81 fileSize -= signatureLength; in readFile()
83 byteBuffer = new char[fileSize]; in readFile()
92 fread(byteBuffer, sizeof(char), fileSize, f); in readFile()
102 UnicodeString myText(byteBuffer, fileSize, cp); in readFile()
/external/lzma/CPP/7zip/Bundles/LzmaCon/
DLzmaAlone.cpp305 UInt64 fileSize; in main2() local
306 inStreamSpec->File.GetLength(fileSize); in main2()
307 if (fileSize > 0xF0000000) in main2()
309 size_t inSize = (size_t)fileSize; in main2()
326 outSize = (size_t)fileSize / 20 * 21 + (1 << 16); in main2()
358 if (inSize != (size_t)fileSize) in main2()
371 UInt64 fileSize; in main2() local
449 fileSize = (UInt64)(Int64)-1; in main2()
451 inStreamSpec->File.GetLength(fileSize); in main2()
455 Byte b = Byte(fileSize >> (8 * i)); in main2()
[all …]
/external/sonivox/arm-fm-22k/host_src/
Deas_hostmm.c83 EAS_I32 fileSize; member
229 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile()
235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile()
243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile()
284 count = file->fileSize - file->filePos; in EAS_HWReadFile()
317 if (file->filePos >= file->fileSize) in EAS_HWGetByte()
427 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek()
453 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeekOfs()
477 *pLength = file->fileSize; in EAS_HWFileLength()
508 dupFile->fileSize = file->fileSize; in EAS_HWDupHandle()
/external/sonivox/arm-hybrid-22k/host_src/
Deas_hostmm.c83 EAS_I32 fileSize; member
229 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile()
235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile()
243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile()
284 count = file->fileSize - file->filePos; in EAS_HWReadFile()
317 if (file->filePos >= file->fileSize) in EAS_HWGetByte()
427 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek()
453 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeekOfs()
477 *pLength = file->fileSize; in EAS_HWFileLength()
508 dupFile->fileSize = file->fileSize; in EAS_HWDupHandle()
/external/qemu/android/utils/
Dfile_data.c72 long fileSize = ftell(f); in fileData_initFromFile() local
73 if (fileSize < 0) { in fileData_initFromFile()
78 if (fileSize == 0) { in fileData_initFromFile()
88 char* buffer = malloc((size_t)fileSize); in fileData_initFromFile()
94 size_t readLen = fread(buffer, 1, (size_t)fileSize, f); in fileData_initFromFile()
95 if (readLen != (size_t)fileSize) { in fileData_initFromFile()
/external/chromium_org/third_party/sqlite/src/tool/
Dshowjournal.c16 static int fileSize = 0; variable
122 fileSize = ftell(db); in main()
123 printf("journal file size: %d bytes\n", fileSize); in main()
126 while( iOfst<fileSize ){ in main()
129 cnt = (fileSize - sectorSize)/(pageSize+8); in main()
132 while( cnt && iOfst<fileSize ){ in main()
/external/chromium_org/third_party/icu/source/tools/gencfu/
Dgencfu.cpp304 long fileSize; in readFile() local
312 fileSize = ftell(file); in readFile()
314 result = new char[fileSize+10]; in readFile()
319 long t = fread(result, 1, fileSize, file); in readFile()
320 if (t != fileSize) { in readFile()
325 result[fileSize]=0; in readFile()
326 *len = static_cast<int32_t>(fileSize); in readFile()
/external/icu/icu4c/source/tools/gencfu/
Dgencfu.cpp304 long fileSize; in readFile() local
312 fileSize = ftell(file); in readFile()
314 result = new char[fileSize+10]; in readFile()
320 long t = fread(result, 1, fileSize, file); in readFile()
321 if (t != fileSize) { in readFile()
326 result[fileSize]=0; in readFile()
327 *len = static_cast<int32_t>(fileSize); in readFile()
/external/sonivox/arm-wt-22k/host_src/
Deas_hostmm.c88 EAS_I32 fileSize; member
273 if ((file->fileSize = lseek(fd, 0, SEEK_CUR)) == -1L) { in EAS_HWOpenFile()
281 file->fileSize = (EAS_I32) locator->length; in EAS_HWOpenFile()
323 count = file->fileSize - file->filePos; in EAS_HWReadFile()
457 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek()
483 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeekOfs()
507 *pLength = file->fileSize; in EAS_HWFileLength()
537 dupFile->fileSize = file->fileSize; in EAS_HWDupHandle()
/external/skia/src/ports/
DSkOSFile_win.cpp74 LARGE_INTEGER fileSize; in sk_fdmmap() local
75 if (0 == GetFileSizeEx(file, &fileSize)) { in sk_fdmmap()
79 if (!SkTFitsIn<size_t>(fileSize.QuadPart)) { in sk_fdmmap()
96 *length = static_cast<size_t>(fileSize.QuadPart); in sk_fdmmap()
DSkOSFile_posix.cpp58 size_t fileSize = static_cast<size_t>(status.st_size); in sk_fdmmap() local
60 void* addr = mmap(NULL, fileSize, PROT_READ, MAP_PRIVATE, fd, 0); in sk_fdmmap()
65 *size = fileSize; in sk_fdmmap()
/external/chromium_org/third_party/skia/src/ports/
DSkOSFile_win.cpp74 LARGE_INTEGER fileSize; in sk_fdmmap() local
75 if (0 == GetFileSizeEx(file, &fileSize)) { in sk_fdmmap()
79 if (!SkTFitsIn<size_t>(fileSize.QuadPart)) { in sk_fdmmap()
96 *length = static_cast<size_t>(fileSize.QuadPart); in sk_fdmmap()
DSkOSFile_posix.cpp58 size_t fileSize = static_cast<size_t>(status.st_size); in sk_fdmmap() local
60 void* addr = mmap(NULL, fileSize, PROT_READ, MAP_PRIVATE, fd, 0); in sk_fdmmap()
65 *size = fileSize; in sk_fdmmap()
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/
DEASLibVst.c75 EAS_I32 fileSize; member
82 EAS_I32 fileSize; member
524 if ((result = EAS_HWFileLength(hwInstData, file, &file->fileSize)) != EAS_SUCCESS) in EAS_HWOpenFile()
795 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek()
841 if ((temp < 0) || (temp > file->fileSize)) in EAS_HWFileSeekOfs()
917 dupfile->fileSize = file->fileSize; in EAS_HWDupHandle()
1037 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile()
1043 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile()
1051 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile()
1096 count = file->fileSize - file->filePos; in EAS_HWReadFile()
[all …]
DEASLib.c77 EAS_I32 fileSize; member
84 EAS_I32 fileSize; member
829 if ((result = EAS_HWFileLength(hwInstData, file, &file->fileSize)) != EAS_SUCCESS) in EAS_HWOpenFile()
1100 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek()
1146 if ((temp < 0) || (temp > file->fileSize)) in EAS_HWFileSeekOfs()
1222 dupfile->fileSize = file->fileSize; in EAS_HWDupHandle()
1342 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile()
1348 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile()
1356 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile()
1401 count = file->fileSize - file->filePos; in EAS_HWReadFile()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Ditspoof.cpp334 int32_t fileSize = ftell(f.getAlias()); in testConfData() local
335 LocalArray<char> fileBuf(new char[fileSize]); in testConfData()
337 int32_t amt_read = fread(fileBuf.getAlias(), 1, fileSize, f.getAlias()); in testConfData()
338 TEST_ASSERT_EQ(amt_read, fileSize); in testConfData()
339 TEST_ASSERT(fileSize>0); in testConfData()
340 if (amt_read != fileSize || fileSize <=0) { in testConfData()
343 … UnicodeString confusablesTxt = UnicodeString::fromUTF8(StringPiece(fileBuf.getAlias(), fileSize)); in testConfData()
Ddcfmtest.cpp460 int32_t fileSize; in ReadAndConvertFile() local
465 fileSize = ftell(f); in ReadAndConvertFile()
466 fileBuf = new char[fileSize]; in ReadAndConvertFile()
468 amtRead = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
469 if (amtRead != fileSize || fileSize <= 0) { in ReadAndConvertFile()
483 if (fileSize<3 || uprv_strncmp(fileBuf, "\xEF\xBB\xBF", 3) != 0) { in ReadAndConvertFile()
/external/icu/icu4c/source/tools/toolutil/
Dpkg_gencmn.c84 uint32_t basenameLength, basenameOffset, fileSize, fileOffset; member
228 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile()
267 …("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile()
285 length=files[i].fileSize; in createCommonDataFile()
287 if (nread != files[i].fileSize) { in createCommonDataFile()
288 …ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile()
465 files[fileCount].fileSize=length; in addFile()
/external/chromium_org/third_party/icu/source/tools/toolutil/
Dpkg_gencmn.c84 uint32_t basenameLength, basenameOffset, fileSize, fileOffset; member
207 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile()
246 …("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile()
264 length=files[i].fileSize; in createCommonDataFile()
266 if (nread != files[i].fileSize) { in createCommonDataFile()
267 …ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile()
445 files[fileCount].fileSize=length; in addFile()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DDexFile.java103 private int fileSize; field in DexFile
138 fileSize = -1; in DexFile()
248 if (fileSize < 0) { in getFileSize()
252 return fileSize; in getFileSize()
555 fileSize = offset; in toDex0()
556 byte[] barr = new byte[fileSize]; in toDex0()
585 if (out.getCursor() != fileSize) { in toDex0()
/external/expat/tests/benchmark/
Dbenchmark.c31 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local
70 fileSize = fread (XMLBuf, sizeof (char), fileAttr.st_size, fd); in main()
79 XMLBufEnd = XMLBuf + fileSize; in main()

1234