Lines Matching defs:SharedMemoryParcelable

30 #include "binding/SharedMemoryParcelable.h"
39 SharedMemoryParcelable::SharedMemoryParcelable() {}
40 SharedMemoryParcelable::~SharedMemoryParcelable() {};
42 void SharedMemoryParcelable::setup(int fd, int32_t sizeInBytes) {
48 status_t SharedMemoryParcelable::writeToParcel(Parcel* parcel) const {
53 ALOGE_IF(status != NO_ERROR, "SharedMemoryParcelable writeDupFileDescriptor failed : %d",
59 status_t SharedMemoryParcelable::readFromParcel(const Parcel* parcel) {
68 ALOGV("SharedMemoryParcelable::readFromParcel() LEAK? mOriginalFd = %d\n", mOriginalFd);
70 ALOGV("SharedMemoryParcelable::readFromParcel() LEAK? mFd = %d\n", mFd);
73 ALOGE("SharedMemoryParcelable readFromParcel fcntl() failed : %d", status);
79 aaudio_result_t SharedMemoryParcelable::close() {
83 ALOGE("SharedMemoryParcelable::close() munmap() failed %d", err);
89 ALOGV("SharedMemoryParcelable::close() LEAK? mFd = %d\n", mFd);
94 ALOGV("SharedMemoryParcelable::close() LEAK? mOriginalFd = %d\n", mOriginalFd);
101 aaudio_result_t SharedMemoryParcelable::resolve(int32_t offsetInBytes, int32_t sizeInBytes,
105 ALOGE("SharedMemoryParcelable illegal offsetInBytes = %d", offsetInBytes);
108 ALOGE("SharedMemoryParcelable out of range, offsetInBytes = %d, "
117 ALOGE("SharedMemoryParcelable mmap failed for fd = %d, errno = %s",
123 ALOGV("SharedMemoryParcelable mResolvedAddress = %p", mResolvedAddress);
124 ALOGV("SharedMemoryParcelable offset by %d, *regionAddressPtr = %p",
129 int32_t SharedMemoryParcelable::getSizeInBytes() {
133 aaudio_result_t SharedMemoryParcelable::validate() {
135 ALOGE("SharedMemoryParcelable invalid mSizeInBytes = %d", mSizeInBytes);
140 ALOGE("SharedMemoryParcelable uninitialized mFd = %d", mFd);
147 void SharedMemoryParcelable::dump() {
148 ALOGD("SharedMemoryParcelable mFd = %d", mFd);
149 ALOGD("SharedMemoryParcelable mSizeInBytes = %d", mSizeInBytes);
150 ALOGD("SharedMemoryParcelable mResolvedAddress = %p", mResolvedAddress);