Home | History | Annotate | Download | only in binder

Lines Matching refs:mDataPos

311     return (mDataSize > mDataPos ? mDataSize : mDataPos);
327 return mDataPos;
348 mDataPos = pos;
376 int startPos = mDataPos;
411 memcpy(mData + mDataPos, data + offset, len);
412 mDataPos += len;
544 mDataPos += len;
545 ALOGV("finishWrite Setting data pos of %p to %zu", this, mDataPos);
546 if (mDataPos > mDataSize) {
547 mDataSize = mDataPos;
550 //printf("New pos=%d, size=%d\n", mDataPos, mDataSize);
556 mDataPos + len;
557 if (end < mDataPos) {
564 memcpy(mData+mDataPos, data, len);
588 if (mDataPos+padded < mDataPos) {
592 if ((mDataPos+padded) <= mDataCapacity) {
595 uint8_t* const data = mData+mDataPos;
916 const bool enoughData = (mDataPos+sizeof(val)) <= mDataCapacity;
920 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val;
924 mObjects[mObjectsSize] = mDataPos;
967 if ((mDataPos+PAD_SIZE(len)) >= mDataPos && (mDataPos+PAD_SIZE(len)) <= mDataSize
969 memcpy(outData, mData+mDataPos, len);
970 mDataPos += PAD_SIZE(len);
971 ALOGV("read Setting data pos of %p to %zu", this, mDataPos);
979 if ((mDataPos+PAD_SIZE(len)) >= mDataPos && (mDataPos+PAD_SIZE(len)) <= mDataSize
981 const void* data = mData+mDataPos;
982 mDataPos += PAD_SIZE(len);
983 ALOGV("readInplace Setting data pos of %p to %zu", this, mDataPos);
993 if ((mDataPos+sizeof(T)) <= mDataSize) {
994 const void* data = mData+mDataPos;
995 mDataPos += sizeof(T);
1017 if ((mDataPos+sizeof(val)) <= mDataCapacity) {
1019 *reinterpret_cast<T*>(mData+mDataPos) = val;
1130 const size_t avail = mDataSize-mDataPos;
1132 const char* str = reinterpret_cast<const char*>(mData+mDataPos);
1137 mDataPos += PAD_SIZE(len+1);
1138 ALOGV("readCString Setting data pos of %p to %zu", this, mDataPos);
1340 const size_t DPOS = mDataPos;
1344 mDataPos = DPOS + sizeof(flat_binder_object);
1349 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
1376 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
1389 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
1423 return (mDataSize > mDataPos ? mDataSize : mDataPos);
1445 mDataPos = 0;
1446 ALOGV("setDataReference Setting data pos of %p to %zu", this, mDataPos);
1565 mDataSize = mDataPos = 0;
1567 ALOGV("restartWrite Setting data pos of %p to %zu", this, mDataPos);
1685 if (mDataPos > desired) {
1686 mDataPos = desired;
1687 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos);
1705 mDataSize = mDataPos = 0;
1707 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos);
1720 mDataPos = 0;
1722 ALOGV("initState Setting data pos of %p to %zu", this, mDataPos);