Lines Matching defs:file
5 * you may not use this file except in compliance with the License.
47 * Zip file constants.
53 #define kEOCDNumEntries 8 // offset to #of entries in file
57 #define kEOCDCommentSize 20 // offset to the length of the file comment
119 * Open the specified file read-only. We memory-map the entire thing and
120 * close the file before returning.
129 * Open and map the specified file.
184 ALOGW("File too short to be a zip file");
224 * need to read the last part of the file into a buffer, dig through
228 * We start by pulling in the last part of the file.
299 ALOGW("comment size runs off end of file");
549 * have is the offset to the Local File Header, which is variable size,
559 * if they don't have the file offset, they're not likely to be doing
573 * This file descriptor might be from zygote's preloaded assets,
575 * guarantee atomicity across the processes with the shared file
595 * an offset in a file. Android should never run on those platforms.
596 * File descriptors inherited from a fork() share file offsets and
687 * sub-regions of a file to be mapped. A reference-counting scheme
689 * new mapping off of the Zip archive file descriptor.
737 FileMap *file;
743 file = createEntryFileMap(entry);
744 if (file == NULL) {
748 ptr = (const unsigned char*) file->getDataPtr();
751 * Experiment with madvise hint. When we want to uncompress a file,
755 * the end of the file. We could end up doing lots of extra disk
756 * access if the file we're prying open is small. Bottom line is we
759 * So, if the compressed size of the file is above a certain minimum
764 file->advise(FileMap::SEQUENTIAL);
774 file->advise(FileMap::NORMAL);
779 file->release();
785 * Uncompress an entry, in its entirety, to an open file descriptor.
801 FileMap *file;
807 file = createEntryFileMap(entry);
808 if (file == NULL) {
812 ptr = (const unsigned char*) file->getDataPtr();
835 file->release();
891 ALOGW("Size mismatch on inflated file (%ld vs " ZD ")\n",
906 * Uncompress "deflate" data from one buffer to an open file descriptor.
983 ALOGW("Size mismatch on inflated file (%ld vs " ZD ")\n",