• Home
  • Raw
  • Download

Lines Matching refs:desired

1768 status_t Parcel::restartWrite(size_t desired)  in restartWrite()  argument
1770 if (desired > INT32_MAX) { in restartWrite()
1778 return continueWrite(desired); in restartWrite()
1781 uint8_t* data = reallocZeroFree(mData, mDataCapacity, desired, mDeallocZero); in restartWrite()
1782 if (!data && desired > mDataCapacity) { in restartWrite()
1789 if (data || desired == 0) { in restartWrite()
1790 LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired); in restartWrite()
1791 if (mDataCapacity > desired) { in restartWrite()
1792 gParcelGlobalAllocSize -= (mDataCapacity - desired); in restartWrite()
1794 gParcelGlobalAllocSize += (desired - mDataCapacity); in restartWrite()
1801 mDataCapacity = desired; in restartWrite()
1820 status_t Parcel::continueWrite(size_t desired) in continueWrite() argument
1822 if (desired > INT32_MAX) { in continueWrite()
1831 if (desired < mDataSize) { in continueWrite()
1832 if (desired == 0) { in continueWrite()
1836 if (mObjects[objectsSize-1] < desired) in continueWrite()
1845 if (desired == 0) { in continueWrite()
1852 uint8_t* data = (uint8_t*)malloc(desired); in continueWrite()
1877 memcpy(data, mData, mDataSize < desired ? mDataSize : desired); in continueWrite()
1886 LOG_ALLOC("Parcel %p: taking ownership of %zu capacity", this, desired); in continueWrite()
1887 gParcelGlobalAllocSize += desired; in continueWrite()
1892 mDataSize = (mDataSize < desired) ? mDataSize : desired; in continueWrite()
1894 mDataCapacity = desired; in continueWrite()
1930 if (desired > mDataCapacity) { in continueWrite()
1931 uint8_t* data = reallocZeroFree(mData, mDataCapacity, desired, mDeallocZero); in continueWrite()
1934 desired); in continueWrite()
1935 gParcelGlobalAllocSize += desired; in continueWrite()
1938 mDataCapacity = desired; in continueWrite()
1944 if (mDataSize > desired) { in continueWrite()
1945 mDataSize = desired; in continueWrite()
1948 if (mDataPos > desired) { in continueWrite()
1949 mDataPos = desired; in continueWrite()
1956 uint8_t* data = (uint8_t*)malloc(desired); in continueWrite()
1964 … ALOGE("continueWrite: %zu/%p/%zu/%zu", mDataCapacity, mObjects, mObjectsCapacity, desired); in continueWrite()
1967 LOG_ALLOC("Parcel %p: allocating with %zu capacity", this, desired); in continueWrite()
1968 gParcelGlobalAllocSize += desired; in continueWrite()
1975 mDataCapacity = desired; in continueWrite()