Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/native/libs/vr/libbroadcastring/
Dbroadcast_ring_test.cc52 void* mmap() { return static_cast<void*>(data.get()); } in mmap() function
57 FakeMmap mmap(Ring::MemorySize(count)); in CreateRing() local
58 *ring = Ring::Create(mmap.mmap(), mmap.size, count); in CreateRing()
59 return mmap; in CreateRing()
132 auto mmap = CreateRing(&ring, Ring::Traits::MinCount()); in TYPED_TEST() local
141 auto mmap = CreateRing(&ring, Ring::Traits::MinCount()); in TYPED_TEST() local
173 auto mmap = CreateRing(&ring, Ring::Traits::MinCount()); in TYPED_TEST() local
199 auto mmap = CreateRing(&ring, Ring::Traits::MinCount()); in TYPED_TEST() local
293 auto mmap = CreateRing(&ring, Ring::Traits::MinCount()); in TYPED_TEST() local
305 std::tie(imported_ring, import_ok) = Ring::Import(mmap.mmap(), mmap.size); in TYPED_TEST()
[all …]
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/
Dbroadcast_ring.h177 static BroadcastRing Create(void* mmap, size_t mmap_size, in Create() argument
179 BroadcastRing ring(mmap); in Create()
189 static BroadcastRing Create(void* mmap, size_t mmap_size) { in Create() argument
190 return Create(mmap, mmap_size, in Create()
200 static std::tuple<BroadcastRing, bool> Import(void* mmap, size_t mmap_size) { in Import() argument
201 BroadcastRing ring(mmap); in Import()
373 bool is_valid() const { return !!data_.mmap; } in is_valid()
464 explicit BroadcastRing(void* mmap) { in BroadcastRing() argument
465 CHECK_EQ(0U, reinterpret_cast<uintptr_t>(mmap) % alignof(Mmap)); in BroadcastRing()
466 data_.mmap = reinterpret_cast<Mmap*>(mmap); in BroadcastRing()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java62 private static ByteBuffer mmap(AssetManager am, String path) { in mmap() method in FontFileUtilTest
68 return mmap(file); in mmap()
77 private static ByteBuffer mmap(File file) { in mmap() method in FontFileUtilTest
108 ByteBuffer buffer = mmap(am, path); in testRegularFonts()
119 ByteBuffer buffer = mmap(am, path); in testTtcFont()
135 ByteBuffer buffer = mmap(am, path); in testVariationFont()
/frameworks/av/services/oboeservice/
DSharedMemoryProxy.cpp60 mOriginalSharedMemory = (uint8_t *) mmap(0, mSharedMemorySizeInBytes, in open()
71 mProxySharedMemory = (uint8_t *) mmap(mOriginalSharedMemory, mSharedMemorySizeInBytes, in open()
DSharedRingBuffer.cpp62 mSharedMemory = (uint8_t *) mmap(0, mSharedMemorySizeInBytes, in allocate()
/frameworks/ml/nn/runtime/test/
DTestMemoryInternal.cpp109 uint8_t* weightsData = (uint8_t*)mmap(nullptr, weightsSize, PROT_READ | PROT_WRITE, in TEST_F()
142 uint8_t* inputData = (uint8_t*)mmap(nullptr, inputSize, in TEST_F()
153 uint8_t* outputData = (uint8_t*)mmap(nullptr, outputSize, in TEST_F()
187 uint8_t* buf = (uint8_t*)mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in TEST_F()
/frameworks/compile/mclinker/lib/Support/Windows/
DFileSystem.inc150 bool FileHandle::mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength) {
151 // FIXME: This implementation reduces mmap to read. Use Windows APIs.
157 // FIXME: This implementation reduces mmap to read. Use Windows APIs.
/frameworks/av/services/mediacodec/seccomp_policy/
Dmediaswcodec-arm64.policy23 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
76 #mmap: arg2 in 0x1|0x2
Dmediacodec-x86.policy27 mmap: 1
Dmediaswcodec-x86_64.policy27 mmap: 1
Dmediaswcodec-x86.policy27 mmap: 1
/frameworks/minikin/tests/perftests/
Dmain.cpp31 void* data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in main()
/frameworks/av/services/mediaextractor/seccomp_policy/
Dmediaextractor-arm64.policy10 mmap: 1
Dmediaextractor-x86_64.policy11 mmap: 1
/frameworks/base/libs/hwui/
DProfileDataContainer.cpp66 mmap(NULL, sizeof(ProfileData), PROT_READ | PROT_WRITE, MAP_SHARED, ashmemfd, 0)); in switchStorageToAshmem()
/frameworks/av/media/bufferpool/1.0/vts/
Dallocator.cpp169 unsigned char *ptr = (unsigned char *)mmap( in Fill()
187 unsigned char *ptr = (unsigned char *)mmap( in Verify()
/frameworks/av/media/bufferpool/2.0/tests/
Dallocator.cpp169 unsigned char *ptr = (unsigned char *)mmap( in Fill()
187 unsigned char *ptr = (unsigned char *)mmap( in Verify()
/frameworks/minikin/tests/unittest/
DICUEnvironment.h47 void* mData = mmap(nullptr, mSize, PROT_READ, MAP_SHARED, fd, 0); in SetUp()
/frameworks/base/core/java/android/util/apk/
DMemoryMappedFileDataSource.java80 mmapPtr = Os.mmap( in feedIntoDataDigester()
/frameworks/native/libs/ui/
DBufferHubMetadata.cpp78 auto metadataHeader = static_cast<MetadataHeader*>(mmap(nullptr, metadataSize, kAshmemProt, in import()
/frameworks/compile/mclinker/include/mcld/Support/
DFileHandle.h89 bool mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength);
DFileSystem.h99 void* mmap(void* pAddr,
/frameworks/compile/mclinker/lib/Support/Unix/
DFileSystem.inc154 bool FileHandle::mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength) {
182 pMemBuffer = ::mmap(NULL, pLength, prot, flag, m_Handler, pStartOffset);
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp71 mFontData = mmap(NULL, mFontSize, PROT_READ, MAP_SHARED, fd, 0); in FreeTypeMinikinFontForTest()
/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp104 mResolvedAddress = (uint8_t *) mmap(0, mSizeInBytes, PROT_READ | PROT_WRITE, in resolveSharedMemory()

123