Home
last modified time | relevance | path

Searched refs:mMemoryFile (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DMemoryFileTest.java29 MemoryFile mMemoryFile; field in MemoryFileTest
34 mMemoryFile = null; in setUp()
43 mMemoryFile = new MemoryFile("Test File", 1024); in testWriteBytes()
45 mMemoryFile.writeBytes(data, 0, 0, 512); in testWriteBytes()
59 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter()
69 mMemoryFile = new MemoryFile("Test File", 1024); in testGetOutputStream()
70 OutputStream out = mMemoryFile.getOutputStream(); in testGetOutputStream()
74 InputStream in = mMemoryFile.getInputStream(); in testGetOutputStream()
83 mMemoryFile = new MemoryFile("Test File", 1024); in testAllowPurging()
85 assertFalse(mMemoryFile.allowPurging(true)); in testAllowPurging()
[all …]
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorTest.java115 private MemoryFile mMemoryFile; field in VirtualSensorTest
167 mMemoryFile = new MemoryFile("Sensor Channel", SHARED_MEMORY_SIZE); in setUpDirectChannel()
168 mDirectChannel = mVirtualDeviceSensorManager.createDirectChannel(mMemoryFile); in setUpDirectChannel()
173 if (mMemoryFile != null) { in tearDown()
174 mMemoryFile.close(); in tearDown()
804 assertThat(mMemoryFile.readBytes(byteBuffer.array(), offset, 0, SENSOR_EVENT_SIZE)) in verifyDirectChannelEvents()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java143 private MemoryFile mMemoryFile; field in SensorDirectReportTest
196 + (mMemoryFile == null) + ", " + (mMemoryFileSecondary == null), in testSharedMemoryAllocation()
197 !mNeedMemoryFile || (mMemoryFile != null && mMemoryFileSecondary != null)); in testSharedMemoryAllocation()
1292 MemoryFile memoryFile = secondary ? mMemoryFileSecondary : mMemoryFile; in prepareDirectChannel()
1321 MemoryFile f = secondary ? mMemoryFileSecondary : mMemoryFile; in readSharedMemory()
1565 mMemoryFile = allocateMemoryFile(); in allocateSharedMemory()
1576 if (mMemoryFile != null) { in freeSharedMemory()
1577 mMemoryFile.close(); in freeSharedMemory()
1578 mMemoryFile = null; in freeSharedMemory()