Lines Matching refs:desired
1352 status_t Parcel::restartWrite(size_t desired)
1356 return continueWrite(desired);
1359 uint8_t* data = (uint8_t*)realloc(mData, desired);
1360 if (!data && desired > mDataCapacity) {
1369 mDataCapacity = desired;
1387 status_t Parcel::continueWrite(size_t desired)
1392 if (desired < mDataSize) {
1393 if (desired == 0) {
1397 if (mObjects[objectsSize-1] < desired)
1406 if (desired == 0) {
1413 uint8_t* data = (uint8_t*)malloc(desired);
1436 memcpy(data, mData, mDataSize < desired ? mDataSize : desired);
1447 mDataSize = (mDataSize < desired) ? mDataSize : desired;
1449 mDataCapacity = desired;
1476 if (desired > mDataCapacity) {
1477 uint8_t* data = (uint8_t*)realloc(mData, desired);
1480 mDataCapacity = desired;
1481 } else if (desired > mDataCapacity) {
1486 if (mDataSize > desired) {
1487 mDataSize = desired;
1490 if (mDataPos > desired) {
1491 mDataPos = desired;
1498 uint8_t* data = (uint8_t*)malloc(desired);
1506 LOGE("continueWrite: %d/%p/%d/%d", mDataCapacity, mObjects, mObjectsCapacity, desired);
1513 mDataCapacity = desired;