Lines Matching refs:mLength
400 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
454 mLength = length; in openChunk()
478 mLength = dataMap->getDataLength(); in openChunk()
492 assert(mOffset >= 0 && mOffset <= mLength); in read()
506 maxLen = mLength - mOffset; in read()
559 newPosn = handleSeek(offset, whence, mOffset, mLength); in seek()
623 if (mLength < kReadVsMapThreshold) { in getBuffer()
629 allocLen = mLength; in getBuffer()
630 if (mLength == 0) in getBuffer()
640 if (mLength > 0) { in getBuffer()
643 if (fread(buf, 1, mLength, mFp) != (size_t) mLength) { in getBuffer()
644 ALOGE("failed reading %ld bytes\n", (long) mLength); in getBuffer()
659 if (!map->create(NULL, fileno(mFp), mStart, mLength, true)) { in getBuffer()
692 *outLength = mLength; in openFileDescriptor()
709 getAssetSource(), (int)mLength); in ensureAlignment()
710 unsigned char* buf = new unsigned char[mLength]; in ensureAlignment()
712 ALOGE("alloc of %ld bytes failed\n", (long) mLength); in ensureAlignment()
715 memcpy(buf, data, mLength); in ensureAlignment()