Home
last modified time | relevance | path

Searched refs:mSizeInBytes (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp47 mSizeInBytes = sizeInBytes; in setup()
54 status = parcel->writeInt32(mSizeInBytes); in writeToParcel()
56 if (mSizeInBytes > 0) { in writeToParcel()
66 status_t status = parcel->readInt32(&mSizeInBytes); in readFromParcel()
69 if (mSizeInBytes > 0) { in readFromParcel()
93 int err = munmap(mResolvedAddress, mSizeInBytes); in close()
104 mResolvedAddress = (uint8_t *) mmap(0, mSizeInBytes, PROT_READ | PROT_WRITE, in resolveSharedMemory()
108 fd.get(), mSizeInBytes, strerror(errno)); in resolveSharedMemory()
119 } else if ((offsetInBytes + sizeInBytes) > mSizeInBytes) { in resolve()
122 offsetInBytes, sizeInBytes, mSizeInBytes); in resolve()
[all …]
DSharedRegionParcelable.cpp47 mSizeInBytes = sizeInBytes; in setup()
54 status = parcel->writeInt32(mSizeInBytes); in writeToParcel()
56 if (mSizeInBytes > 0) { in writeToParcel()
70 status_t status = parcel->readInt32(&mSizeInBytes); in readFromParcel()
72 if (mSizeInBytes > 0) { in readFromParcel()
87 if (mSizeInBytes == 0) { in resolve()
96 return memoryParcel->resolve(mOffsetInBytes, mSizeInBytes, regionAddressPtr); in resolve()
100 if (mSizeInBytes < 0 || mSizeInBytes >= MAX_MMAP_SIZE_BYTES) { in validate()
101 ALOGE("invalid mSizeInBytes = %d", mSizeInBytes); in validate()
104 if (mSizeInBytes > 0) { in validate()
[all …]
DSharedRegionParcelable.h55 int32_t mSizeInBytes = 0; variable
DSharedMemoryParcelable.h73 int32_t mSizeInBytes = 0; variable
/frameworks/native/services/surfaceflinger/
DSurfaceTracing.h69 size_t size() const { return mSizeInBytes; } in size()
73 void setSize(size_t newSize) { mSizeInBytes = newSize; } in setSize()
80 size_t mSizeInBytes = 0U; variable
DSurfaceTracing.cpp86 mSizeInBytes = newSize; in reset()
92 while (mUsedInBytes + protoSize > mSizeInBytes) { in emplace()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java277 private int mSizeInBytes; field in PageContentRepository.PageContentLruCache
290 mSizeInBytes -= page.getSizeInBytes(); in removeRenderedPage()
303 if (mSizeInBytes + contentSizeInBytes > mMaxSizeInBytes) { in putRenderedPage()
307 mSizeInBytes += contentSizeInBytes; in putRenderedPage()
330 mSizeInBytes -= renderedPage.getSizeInBytes(); in removeLeastNeeded()
338 mSizeInBytes -= renderedPage.getSizeInBytes(); in removeLeastNeeded()
343 return mSizeInBytes; in getSizeInBytes()