Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/tests/
Dtest_marshalling.cpp73 SharedMemoryParcelable sharedMemoryA; in TEST() local
77 sharedMemoryA.setup(fd, memSizeBytes); in TEST()
79 EXPECT_EQ(AAUDIO_OK, sharedMemoryA.resolve(0, 16, &region1)); // fits in region in TEST()
80 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(-2, 16, &region1)); // offset is negative in TEST()
81 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(0, memSizeBytes + 8, &region1)); // size too big in TEST()
82 … EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(memSizeBytes - 8, 16, &region1)); // goes past the end in TEST()
88 writeToParcel(sharedMemoryA, &parcel); in TEST()
92 EXPECT_EQ(sharedMemoryA.getSizeInBytes(), sharedMemoryB.getSizeInBytes()); in TEST()