Lines Matching refs:file

5  * you may not use this file except in compliance with the License.
69 * Zip file constants.
73 #define kEOCDNumEntries 8 // offset to #of entries in file
131 * Open the specified file read-only. We memory-map the entire thing and
132 * close the file before returning.
141 * Open and map the specified file.
237 * need to read the last part of the file into a buffer, dig through
241 * We start by pulling in the last part of the file.
524 * if they don't have the file offset, they're not likely to be doing
538 * This file descriptor might be from zygote's preloaded assets,
540 * guarantee atomicity across the processes with the shared file
560 * an offset in a file. Android should never run on those platforms.
561 * File descriptors inherited from a fork() share file offsets and
645 * sub-regions of a file to be mapped. A reference-counting scheme
647 * new mapping off of the Zip archive file descriptor.
687 FileMap* file = createEntryFileMap(entry);
688 if (file == NULL) {
692 ptr = (const unsigned char*) file->getDataPtr();
695 * Experiment with madvise hint. When we want to uncompress a file,
699 * the end of the file. We could end up doing lots of extra disk
700 * access if the file we're prying open is small. Bottom line is we
703 * So, if the compressed size of the file is above a certain minimum
708 file->advise(FileMap::SEQUENTIAL);
718 file->advise(FileMap::NORMAL);
723 file->release();
729 * Uncompress an entry, in its entirety, to an open file descriptor.
747 FileMap* file = createEntryFileMap(entry);
748 if (file == NULL) {
752 ptr = (const unsigned char*) file->getDataPtr();
774 file->release();
830 LOGW("Size mismatch on inflated file (%ld vs " ZD ")\n",
845 * Uncompress "deflate" data from one buffer to an open file descriptor.
919 LOGW("Size mismatch on inflated file (%ld vs " ZD ")\n",