Lines Matching refs:NULL

50 static Asset* gHead = NULL;
51 static Asset* gTail = NULL;
64 while (cur != NULL) { in getAssetAllocations()
84 mNext = mPrev = NULL; in Asset()
85 if (gTail == NULL) { in Asset()
105 if (mNext != NULL) { in ~Asset()
108 if (mPrev != NULL) { in ~Asset()
111 mNext = mPrev = NULL; in ~Asset()
130 return NULL; in createFromFile()
143 return NULL; in createFromFile()
150 return NULL; in createFromFile()
155 return NULL; in createFromFile()
163 return NULL; in createFromFile()
191 return NULL; in createFromCompressedFile()
196 return NULL; in createFromCompressedFile()
202 if (fp == NULL) { in createFromCompressedFile()
204 return NULL; in createFromCompressedFile()
215 return NULL; in createFromCompressedFile()
223 return NULL; in createFromCompressedFile()
242 result = pAsset->openChunk(NULL, fd, offset, length);
244 return NULL;
264 return NULL;
283 return NULL; in createFromUncompressedMap()
301 return NULL; in createFromCompressedMap()
356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
375 assert(mFp == NULL); // no reopen in openChunk()
376 assert(mMap == NULL); in openChunk()
399 if (mFp == NULL) in openChunk()
411 mFileName = fileName != NULL ? strdup(fileName) : NULL; in openChunk()
421 assert(mFp == NULL); // no reopen in openChunk()
422 assert(mMap == NULL); in openChunk()
423 assert(dataMap != NULL); in openChunk()
450 if (mBuf == NULL) in read()
462 if (mMap != NULL) { in read()
467 } else if (mBuf != NULL) { in read()
514 if (mFp != NULL) { in seek()
528 if (mMap != NULL) { in close()
530 mMap = NULL; in close()
532 if (mBuf != NULL) { in close()
534 mBuf = NULL; in close()
537 if (mFileName != NULL) { in close()
539 mFileName = NULL; in close()
542 if (mFp != NULL) { in close()
546 mFp = NULL; in close()
561 if (mBuf != NULL) in getBuffer()
563 if (mMap != NULL) { in getBuffer()
570 assert(mFp != NULL); in getBuffer()
583 if (buf == NULL) { in getBuffer()
585 return NULL; in getBuffer()
595 return NULL; in getBuffer()
608 if (!map->create(NULL, fileno(mFp), mStart, mLength, true)) { in getBuffer()
610 return NULL; in getBuffer()
625 if (mMap != NULL) { in openFileDescriptor()
627 if (fname == NULL) { in openFileDescriptor()
630 if (fname == NULL) { in openFileDescriptor()
637 if (mFileName == NULL) { in openFileDescriptor()
660 if (buf == NULL) { in ensureAlignment()
662 return NULL; in ensureAlignment()
680 mMap(NULL), mFd(-1), mZipInflater(NULL), mBuf(NULL) in _CompressedAsset()
702 assert(mMap == NULL); in openChunk()
717 assert(mBuf == NULL); in openChunk()
735 assert(mMap == NULL); in openChunk()
736 assert(dataMap != NULL); in openChunk()
771 if (mBuf == NULL) { in read()
772 if (getBuffer(false) == NULL) in read()
775 assert(mBuf != NULL); in read()
823 if (mMap != NULL) { in close()
825 mMap = NULL; in close()
829 mBuf = NULL; in close()
832 mZipInflater = NULL; in close()
848 unsigned char* buf = NULL; in getBuffer()
850 if (mBuf != NULL) in getBuffer()
857 if (buf == NULL) { in getBuffer()
862 if (mMap != NULL) { in getBuffer()
888 mZipInflater = NULL; in getBuffer()
891 buf = NULL; in getBuffer()