Lines Matching refs:mDataPos
387 return (mDataSize > mDataPos ? mDataSize : mDataPos); in dataSize()
401 return mDataPos; in dataPosition()
434 mDataPos = pos; in setDataPosition()
475 int startPos = mDataPos; in appendFrom()
516 memcpy(mData + mDataPos, data + offset, len); in appendFrom()
517 mDataPos += len; in appendFrom()
669 mDataPos += len; in finishWrite()
670 ALOGV("finishWrite Setting data pos of %p to %zu", this, mDataPos); in finishWrite()
671 if (mDataPos > mDataSize) { in finishWrite()
672 mDataSize = mDataPos; in finishWrite()
687 size_t end = mDataPos + len; in writeUnpadded()
688 if (end < mDataPos) { in writeUnpadded()
695 memcpy(mData+mDataPos, data, len); in writeUnpadded()
731 if (mDataPos+padded < mDataPos) { in writeInplace()
735 if ((mDataPos+padded) <= mDataCapacity) { in writeInplace()
738 uint8_t* const data = mData+mDataPos; in writeInplace()
1307 const bool enoughData = (mDataPos+sizeof(val)) <= mDataCapacity; in writeObject()
1311 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val; in writeObject()
1324 mObjects[mObjectsSize] = mDataPos; in writeObject()
1484 if (mDataPos < mObjects[nextObject] + sizeof(flat_binder_object)) { in validateReadData()
1534 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in read()
1537 status_t err = validateReadData(mDataPos + pad_size(len)); in read()
1540 mDataPos += pad_size(len); in read()
1541 ALOGV("read Setting data pos of %p to %zu", this, mDataPos); in read()
1545 memcpy(outData, mData+mDataPos, len); in read()
1546 mDataPos += pad_size(len); in read()
1547 ALOGV("read Setting data pos of %p to %zu", this, mDataPos); in read()
1561 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in readInplace()
1564 status_t err = validateReadData(mDataPos + pad_size(len)); in readInplace()
1567 mDataPos += pad_size(len); in readInplace()
1568 ALOGV("readInplace Setting data pos of %p to %zu", this, mDataPos); in readInplace()
1573 const void* data = mData+mDataPos; in readInplace()
1574 mDataPos += pad_size(len); in readInplace()
1575 ALOGV("readInplace Setting data pos of %p to %zu", this, mDataPos); in readInplace()
1585 if ((mDataPos+sizeof(T)) <= mDataSize) { in readAligned()
1587 status_t err = validateReadData(mDataPos + sizeof(T)); in readAligned()
1590 mDataPos += sizeof(T); in readAligned()
1595 const void* data = mData+mDataPos; in readAligned()
1596 mDataPos += sizeof(T); in readAligned()
1618 if ((mDataPos+sizeof(val)) <= mDataCapacity) { in writeAligned()
1620 *reinterpret_cast<T*>(mData+mDataPos) = val; in writeAligned()
2016 const size_t avail = mDataSize-mDataPos; in readCString()
2018 const char* str = reinterpret_cast<const char*>(mData+mDataPos); in readCString()
2023 mDataPos += pad_size(len+1); in readCString()
2024 ALOGV("readCString Setting data pos of %p to %zu", this, mDataPos); in readCString()
2341 const size_t DPOS = mDataPos; in readObject()
2345 mDataPos = DPOS + sizeof(flat_binder_object); in readObject()
2350 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
2377 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
2390 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos); in readObject()
2424 return (mDataSize > mDataPos ? mDataSize : mDataPos); in ipcDataSize()
2446 mDataPos = 0; in ipcSetDataReference()
2447 ALOGV("setDataReference Setting data pos of %p to %zu", this, mDataPos); in ipcSetDataReference()
2602 mDataSize = mDataPos = 0; in restartWrite()
2604 ALOGV("restartWrite Setting data pos of %p to %zu", this, mDataPos); in restartWrite()
2743 if (mDataPos > desired) { in continueWrite()
2744 mDataPos = desired; in continueWrite()
2745 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos); in continueWrite()
2769 mDataSize = mDataPos = 0; in continueWrite()
2771 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos); in continueWrite()
2785 mDataPos = 0; in initState()
2787 ALOGV("initState Setting data pos of %p to %zu", this, mDataPos); in initState()