HomeSort by relevance Sort by last modified time
    Searched refs:fileLength (Results 1 - 25 of 47) sorted by null

1 2

  /external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
FileUtils.java 93 int fileLength = (int) longLength;
94 if (fileLength != longLength) {
99 length = fileLength - offset;
102 if (offset + length > fileLength) {
  /external/oprofile/libpopt/
poptconfig.c 102 off_t fileLength;
108 fileLength = lseek(fd, 0, SEEK_END);
109 if (fileLength == -1 || lseek(fd, 0, 0) == -1) {
116 file = alloca(fileLength + 1);
117 if (read(fd, (char *)file, fileLength) != fileLength) {
127 dst = buf = alloca(fileLength + 1);
130 end = (file + fileLength);
  /external/chromium_org/third_party/WebKit/public/platform/
WebHTTPBody.h 55 long long fileLength; // -1 means to the end of the file.
89 // Passing -1 to fileLength means to the end of the file.
90 WEBKIT_EXPORT void appendFileRange(const WebString&, long long fileStart, long long fileLength, double modificationTime);
  /frameworks/base/libs/androidfw/
ObbFile.cpp 119 off64_t fileLength = lseek64(fd, 0, SEEK_END);
121 if (fileLength < kFooterMinSize) {
122 if (fileLength < 0) {
125 ALOGW("file is only %lld (less than %d minimum)\n", fileLength, kFooterMinSize);
134 lseek64(fd, fileLength - kFooterTagSize, SEEK_SET);
151 if (footerSize > (size_t)fileLength - kFooterTagSize
154 footerSize, fileLength);
165 off64_t fileOffset = fileLength - footerSize - kFooterTagSize;
Asset.cpp 383 off64_t fileLength;
384 fileLength = lseek64(fd, 0, SEEK_END);
385 if (fileLength == (off64_t) -1) {
391 if ((off64_t) (offset + length) > fileLength) {
393 (long) offset, (long) length, (long) fileLength);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/
ScannerParseLargeFileBenchmarkTest.java 45 static long fileLength = (8 << 21) * 12;
59 if (count >= fileLength) {
  /external/chromium_org/third_party/WebKit/Source/core/platform/chromium/support/
WebHTTPBody.cpp 80 result.fileLength = 0;
94 result.fileLength = element.m_fileLength;
106 result.fileLength = element.m_fileLength;
131 void WebHTTPBody::appendFileRange(const WebString& filePath, long long fileStart, long long fileLength, double modificationTime)
134 m_private->appendFileRange(filePath, fileStart, fileLength, modificationTime);
  /bootable/recovery/minzip/
SysUtil.c 153 size_t fileLength, actualLength;
160 if (getFileStartAndLength(fd, &dummy, &fileLength) < 0)
163 if (start + length > (long)fileLength) {
165 (int) start, length, (int) fileLength);
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
TraceFileParserTask.java 138 long fileLength;
140 fileLength = mFile.length();
142 fileLength = 0;
146 fileLength > 0 ? 100 : IProgressMonitor.UNKNOWN);
173 if (fileLength > 0) {
174 int percentParsedNow = (int)((filePointer * 100) / fileLength);
  /external/smali/dexlib/src/main/java/org/jf/dexlib/
DexFile.java 285 long fileLength;
301 fileLength = zipEntry.getSize();
302 if (fileLength < 40) {
305 } else if (fileLength > Integer.MAX_VALUE) {
316 fileLength = file.length();
317 if (fileLength < 40) {
320 if (fileLength < 40) {
322 } else if (fileLength > Integer.MAX_VALUE) {
370 in = new ByteArrayInput(FileUtils.readStream(inputStream, (int)fileLength));
    [all...]
  /packages/apps/Camera/tests/src/com/android/camera/functional/
ImageCaptureIntentTest.java 86 int fileLength = (int) file.length();
87 assertTrue(fileLength > 0);
88 jpegData = new byte[fileLength];
  /packages/apps/Camera2/tests/src/com/android/camera/functional/
ImageCaptureIntentTest.java 86 int fileLength = (int) file.length();
87 assertTrue(fileLength > 0);
88 jpegData = new byte[fileLength];
  /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
ImageCaptureIntentTest.java 91 int fileLength = (int) file.length();
92 assertTrue(fileLength > 0);
93 jpegData = new byte[fileLength];
  /external/chromium_org/third_party/icu/source/common/
umapfile.c 235 int32_t fileLength;
246 fileLength=umap_fsize(file);
247 if(ferror(file) || fileLength<=20) {
253 p=uprv_malloc(fileLength);
260 if(fileLength!=fread(p, 1, fileLength, file)) {
  /external/icu4c/common/
umapfile.c 231 int32_t fileLength;
242 fileLength=umap_fsize(file);
243 if(ferror(file) || fileLength<=20) {
249 p=uprv_malloc(fileLength);
256 if(fileLength!=fread(p, 1, fileLength, file)) {
  /dalvik/libdex/
ZipArchive.cpp 156 ZipArchive* pArchive, off64_t fileLength, size_t readAmount, u1* scanBuf)
190 off64_t searchStart = fileLength - readAmount;
225 assert(eocdOffset < fileLength);
254 if (((size_t) commentSize > (fileLength - kEOCDLen))
255 || (eocdOffset > (fileLength - kEOCDLen) - commentSize)) {
294 off64_t fileLength = lseek64(fd, 0, SEEK_END);
295 if (fileLength < kEOCDLen) {
296 ALOGV("Zip: length %ld is too small to be zip", (long) fileLength);
313 if (fileLength < off_t(readAmount))
314 readAmount = fileLength;
    [all...]
  /external/chromium_org/third_party/icu/source/tools/toolutil/
unewdata.c 143 uint32_t fileLength=0;
152 fileLength=T_FileStream_size(pData->file);
156 fileLength-=pData->headerSize;
163 return fileLength;
package.cpp 311 int32_t fileLength, typeEnum;
323 fileLength=getFileLength(file);
324 if(ferror(file) || fileLength<=0) {
331 length=(fileLength+0xf)&~0xf;
339 if(fileLength!=(int32_t)fread(data, 1, fileLength, file)) {
347 if(fileLength<length) {
348 memset(data+fileLength, 0xaa, length-fileLength);
    [all...]
  /external/icu4c/tools/toolutil/
unewdata.c 143 uint32_t fileLength=0;
152 fileLength=T_FileStream_size(pData->file);
156 fileLength-=pData->headerSize;
163 return fileLength;
package.cpp 311 int32_t fileLength, typeEnum;
323 fileLength=getFileLength(file);
324 if(ferror(file) || fileLength<=0) {
331 length=(fileLength+0xf)&~0xf;
340 if(fileLength!=(int32_t)fread(data, 1, fileLength, file)) {
348 if(fileLength<length) {
349 memset(data+fileLength, 0xaa, length-fileLength);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/network/
FormData.h 43 FormDataElement(const String& filename, long long fileStart, long long fileLength, double expectedFileModificationTime) : m_type(encodedFile), m_filename(filename), m_fileStart(fileStart), m_fileLength(fileLength), m_expectedFileModificationTime(expectedFileModificationTime) { }
  /frameworks/av/media/mtp/
MtpServer.cpp 721 int64_t fileLength;
723 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format);
734 mfr.length = fileLength;
784 int64_t fileLength;
786 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format);
789 if (offset + length > fileLength)
790 length = fileLength - offset;
    [all...]
  /external/chromium_org/content/public/renderer/
history_item_serialization.cc 41 output->file_length = input.fileLength;
47 output->file_length = input.fileLength;
  /build/tools/zipalign/
ZipFile.cpp 208 off_t fileLength, seekStart;
213 fileLength = ftell(mZipFp);
217 if (fileLength < EndOfCentralDir::kEOCDLen) {
218 ALOGD("Length is %ld -- too small\n", (long)fileLength);
231 if (fileLength > EndOfCentralDir::kMaxEOCDSearch) {
232 seekStart = fileLength - EndOfCentralDir::kMaxEOCDSearch;
236 readAmount = (long) fileLength;
    [all...]
  /frameworks/base/tools/aapt/
ZipFile.cpp 208 off_t fileLength, seekStart;
213 fileLength = ftell(mZipFp);
217 if (fileLength < EndOfCentralDir::kEOCDLen) {
218 ALOGD("Length is %ld -- too small\n", (long)fileLength);
231 if (fileLength > EndOfCentralDir::kMaxEOCDSearch) {
232 seekStart = fileLength - EndOfCentralDir::kMaxEOCDSearch;
236 readAmount = (long) fileLength;
    [all...]

Completed in 1468 milliseconds

1 2