Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DMemoryFile.java49 private SharedMemory mSharedMemory; field in MemoryFile
62 mSharedMemory = SharedMemory.create(name, length); in MemoryFile()
63 mMapping = mSharedMemory.mapReadWrite(); in MemoryFile()
75 mSharedMemory.close(); in close()
102 if (native_pin(mSharedMemory.getFileDescriptor(), true)) { in beginAccess()
110 native_pin(mSharedMemory.getFileDescriptor(), false); in endAccess()
120 return mSharedMemory.getSize(); in length()
152 native_pin(mSharedMemory.getFileDescriptor(), !allowPurging); in allowPurging()
231 return mSharedMemory.getFileDescriptor(); in getFileDescriptor()
255 if (mOffset >= mSharedMemory.getSize()) { in available()
[all …]
/frameworks/av/services/oboeservice/
DSharedRingBuffer.cpp36 if (mSharedMemory != nullptr) { in ~SharedRingBuffer()
37 munmap(mSharedMemory, mSharedMemorySizeInBytes); in ~SharedRingBuffer()
38 mSharedMemory = nullptr; in ~SharedRingBuffer()
74 mSharedMemory = tmpPtr; in allocate()
77 auto readCounterAddress = (fifo_counter_t *) &mSharedMemory[SHARED_RINGBUFFER_READ_OFFSET]; in allocate()
78 auto writeCounterAddress = (fifo_counter_t *) &mSharedMemory[SHARED_RINGBUFFER_WRITE_OFFSET]; in allocate()
79 uint8_t *dataAddress = &mSharedMemory[SHARED_RINGBUFFER_DATA_OFFSET]; in allocate()
DSharedMemoryWrapper.cpp87 mSharedMemory = tmpPtr; in setupFifoBuffer()
91 mWriteCounterAddress, mSharedMemory); in setupFifoBuffer()
97 if (mSharedMemory != nullptr) { in reset()
98 munmap(mSharedMemory, mSharedMemorySizeInBytes); in reset()
99 mSharedMemory = nullptr; in reset()
DSharedRingBuffer.h67 uint8_t *mSharedMemory = nullptr; // mmap variable
DSharedMemoryWrapper.h82 uint8_t* mSharedMemory = nullptr; variable
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensorDirectChannelWriter.java223 private final SharedMemory mSharedMemory; field in VirtualSensorDirectChannelWriter.SharedMemoryWrapper
233 mSharedMemory = sharedMemory; in SharedMemoryWrapper()
234 mMemoryMapping = mSharedMemory.mapReadWrite(); in SharedMemoryWrapper()
240 mSharedMemory.close(); in close()
266 if (mWriteOffset + SENSOR_EVENT_SIZE >= mSharedMemory.getSize()) { in write()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt37068 Landroid/os/MemoryFile;->mSharedMemory:Landroid/os/SharedMemory;