Home | History | Annotate | Download | only in binder

Lines Matching refs:mDataPos

413     return (mDataSize > mDataPos ? mDataSize : mDataPos);
427 return mDataPos;
460 mDataPos = pos;
500 int startPos = mDataPos;
541 memcpy(mData + mDataPos, data + offset, len);
542 mDataPos += len;
686 mDataPos += len;
687 ALOGV("finishWrite Setting data pos of %p to %zu", this, mDataPos);
688 if (mDataPos > mDataSize) {
689 mDataSize = mDataPos;
692 //printf("New pos=%d, size=%d\n", mDataPos, mDataSize);
704 size_t end = mDataPos + len;
705 if (end < mDataPos) {
712 memcpy(mData+mDataPos, data, len);
748 if (mDataPos+padded < mDataPos) {
752 if ((mDataPos+padded) <= mDataCapacity) {
755 uint8_t* const data = mData+mDataPos;
1314 const bool enoughData = (mDataPos+sizeof(val)) <= mDataCapacity;
1318 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val;
1331 mObjects[mObjectsSize] = mDataPos;
1374 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize
1376 memcpy(outData, mData+mDataPos, len);
1377 mDataPos += pad_size(len);
1378 ALOGV("read Setting data pos of %p to %zu", this, mDataPos);
1392 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize
1394 const void* data = mData+mDataPos;
1395 mDataPos += pad_size(len);
1396 ALOGV("readInplace Setting data pos of %p to %zu", this, mDataPos);
1406 if ((mDataPos+sizeof(T)) <= mDataSize) {
1407 const void* data = mData+mDataPos;
1408 mDataPos += sizeof(T);
1430 if ((mDataPos+sizeof(val)) <= mDataCapacity) {
1432 *reinterpret_cast<T*>(mData+mDataPos) = val;
1828 const size_t avail = mDataSize-mDataPos;
1830 const char* str = reinterpret_cast<const char*>(mData+mDataPos);
1835 mDataPos += pad_size(len+1);
1836 ALOGV("readCString Setting data pos of %p to %zu", this, mDataPos);
2099 const size_t DPOS = mDataPos;
2103 mDataPos = DPOS + sizeof(flat_binder_object);
2108 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
2135 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
2148 ALOGV("readObject Setting data pos of %p to %zu", this, mDataPos);
2182 return (mDataSize > mDataPos ? mDataSize : mDataPos);
2204 mDataPos = 0;
2205 ALOGV("setDataReference Setting data pos of %p to %zu", this, mDataPos);
2359 mDataSize = mDataPos = 0;
2361 ALOGV("restartWrite Setting data pos of %p to %zu", this, mDataPos);
2497 if (mDataPos > desired) {
2498 mDataPos = desired;
2499 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos);
2523 mDataSize = mDataPos = 0;
2525 ALOGV("continueWrite Setting data pos of %p to %zu", this, mDataPos);
2539 mDataPos = 0;
2541 ALOGV("initState Setting data pos of %p to %zu", this, mDataPos);