Lines Matching refs:desired

1706 status_t Parcel::restartWrite(size_t desired)  in restartWrite()  argument
1708 if (desired > INT32_MAX) { in restartWrite()
1716 return continueWrite(desired); in restartWrite()
1719 uint8_t* data = (uint8_t*)realloc(mData, desired); in restartWrite()
1720 if (!data && desired > mDataCapacity) { in restartWrite()
1728 LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired); in restartWrite()
1729 if (mDataCapacity > desired) { in restartWrite()
1730 gParcelGlobalAllocSize -= (mDataCapacity - desired); in restartWrite()
1732 gParcelGlobalAllocSize += (desired - mDataCapacity); in restartWrite()
1739 mDataCapacity = desired; in restartWrite()
1758 status_t Parcel::continueWrite(size_t desired) in continueWrite() argument
1760 if (desired > INT32_MAX) { in continueWrite()
1769 if (desired < mDataSize) { in continueWrite()
1770 if (desired == 0) { in continueWrite()
1774 if (mObjects[objectsSize-1] < desired) in continueWrite()
1783 if (desired == 0) { in continueWrite()
1790 uint8_t* data = (uint8_t*)malloc(desired); in continueWrite()
1815 memcpy(data, mData, mDataSize < desired ? mDataSize : desired); in continueWrite()
1824 LOG_ALLOC("Parcel %p: taking ownership of %zu capacity", this, desired); in continueWrite()
1825 gParcelGlobalAllocSize += desired; in continueWrite()
1830 mDataSize = (mDataSize < desired) ? mDataSize : desired; in continueWrite()
1832 mDataCapacity = desired; in continueWrite()
1862 if (desired > mDataCapacity) { in continueWrite()
1863 uint8_t* data = (uint8_t*)realloc(mData, desired); in continueWrite()
1866 desired); in continueWrite()
1867 gParcelGlobalAllocSize += desired; in continueWrite()
1870 mDataCapacity = desired; in continueWrite()
1876 if (mDataSize > desired) { in continueWrite()
1877 mDataSize = desired; in continueWrite()
1880 if (mDataPos > desired) { in continueWrite()
1881 mDataPos = desired; in continueWrite()
1888 uint8_t* data = (uint8_t*)malloc(desired); in continueWrite()
1896 … ALOGE("continueWrite: %zu/%p/%zu/%zu", mDataCapacity, mObjects, mObjectsCapacity, desired); in continueWrite()
1899 LOG_ALLOC("Parcel %p: allocating with %zu capacity", this, desired); in continueWrite()
1900 gParcelGlobalAllocSize += desired; in continueWrite()
1907 mDataCapacity = desired; in continueWrite()