Home
last modified time | relevance | path

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

/external/libchrome/mojo/public/cpp/system/
Dbuffer.cc10 ScopedSharedBufferHandle SharedBufferHandle::Create(uint64_t num_bytes) { in Create()
13 SharedBufferHandle handle; in Create()
18 ScopedSharedBufferHandle SharedBufferHandle::Clone( in Clone()
19 SharedBufferHandle::AccessMode access_mode) const { in Clone()
28 SharedBufferHandle result_handle; in Clone()
34 ScopedSharedBufferMapping SharedBufferHandle::Map(uint64_t size) const { in Map()
38 ScopedSharedBufferMapping SharedBufferHandle::MapAtOffset( in MapAtOffset()
46 uint64_t SharedBufferHandle::GetSize() const { in GetSize()
Dbuffer.h39 class SharedBufferHandle; variable
41 typedef ScopedHandleBase<SharedBufferHandle> ScopedSharedBufferHandle;
45 class MOJO_CPP_SYSTEM_EXPORT SharedBufferHandle : public Handle {
52 SharedBufferHandle() {} in SharedBufferHandle() function
53 explicit SharedBufferHandle(MojoHandle value) : Handle(value) {} in SharedBufferHandle() function
77 static_assert(sizeof(SharedBufferHandle) == sizeof(Handle),
79 static_assert(sizeof(ScopedSharedBufferHandle) == sizeof(SharedBufferHandle),
Dplatform_handle.cc96 return ScopedSharedBufferHandle(SharedBufferHandle(mojo_handle)); in WrapPlatformSharedMemoryRegion()
280 return ScopedSharedBufferHandle(SharedBufferHandle(mojo_handle)); in WrapSharedMemoryHandle()
DREADME.md25 handle types: `MessagePipeHandle`, `SharedBufferHandle`,
131 mojo::SharedBufferHandle::Create(4096);
140 buffer->Clone(mojo::SharedBufferHandle::AccessMode::READ_ONLY);
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/impl/
DSharedBufferHandleImpl.java7 import org.chromium.mojo.system.SharedBufferHandle;
14 class SharedBufferHandleImpl extends HandleBase implements SharedBufferHandle {
33 public SharedBufferHandle pass() { in pass()
41 public SharedBufferHandle duplicate(DuplicateOptions options) { in duplicate()
DUntypedHandleImpl.java10 import org.chromium.mojo.system.SharedBufferHandle;
67 public SharedBufferHandle toSharedBufferHandle() { in toSharedBufferHandle()
DCoreImpl.java22 import org.chromium.mojo.system.SharedBufferHandle;
23 import org.chromium.mojo.system.SharedBufferHandle.DuplicateOptions;
24 import org.chromium.mojo.system.SharedBufferHandle.MapFlags;
140 public SharedBufferHandle createSharedBuffer( in createSharedBuffer()
141 SharedBufferHandle.CreateOptions options, long numBytes) { in createSharedBuffer()
361 SharedBufferHandle duplicate(SharedBufferHandleImpl handle, DuplicateOptions options) { in duplicate()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/system/impl/
DCoreImplTest.java27 import org.chromium.mojo.system.SharedBufferHandle;
142 private static void checkSharing(SharedBufferHandle in, SharedBufferHandle out) { in checkSharing()
145 ByteBuffer buffer1 = in.map(0, 8, SharedBufferHandle.MapFlags.NONE); in checkSharing()
147 ByteBuffer buffer2 = out.map(0, 8, SharedBufferHandle.MapFlags.NONE); in checkSharing()
181 SharedBufferHandle handle = core.createSharedBuffer(null, 100); in testGetCore()
182 SharedBufferHandle handle2 = handle.duplicate(null); in testGetCore()
385 core.createSharedBuffer(new SharedBufferHandle.CreateOptions(), 8).close(); in testSharedBufferCreation()
395 SharedBufferHandle handle = core.createSharedBuffer(null, 8); in testSharedBufferDuplication()
401 handle.duplicate(new SharedBufferHandle.DuplicateOptions()).close(); in testSharedBufferDuplication()
411 SharedBufferHandle handle = core.createSharedBuffer(null, 8); in testSharedBufferSending()
[all …]
/external/libchrome/mojo/public/java/base/src/org/chromium/mojo_base/
DBigBufferUtil.java8 import org.chromium.mojo.system.SharedBufferHandle;
29 region.bufferHandle.map(0, region.size, SharedBufferHandle.MapFlags.NONE); in getBytesFromBigBuffer()
47 core.createSharedBuffer(new SharedBufferHandle.CreateOptions(), bytes.length); in createBigBufferFromBytes()
50 region.bufferHandle.map(0, bytes.length, SharedBufferHandle.MapFlags.NONE); in createBigBufferFromBytes()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/
DHandleMock.java16 import org.chromium.mojo.system.SharedBufferHandle;
27 SharedBufferHandle {
191 public SharedBufferHandle toSharedBufferHandle() { in toSharedBufferHandle()
199 public SharedBufferHandle duplicate(DuplicateOptions options) { in duplicate()
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/
DSharedBufferHandle.java12 public interface SharedBufferHandle extends Handle { interface
136 public SharedBufferHandle pass(); in pass()
143 public SharedBufferHandle duplicate(DuplicateOptions options); in duplicate()
DInvalidHandle.java18 ProducerHandle, SharedBufferHandle {
115 public SharedBufferHandle toSharedBufferHandle() { in toSharedBufferHandle()
123 public SharedBufferHandle duplicate(DuplicateOptions options) { in duplicate()
DCore.java158 public SharedBufferHandle createSharedBuffer(SharedBufferHandle.CreateOptions options, in createSharedBuffer()
DUntypedHandle.java43 public SharedBufferHandle toSharedBufferHandle(); in toSharedBufferHandle()
/external/libchrome/mojo/public/cpp/system/tests/
Dcore_unittest.cc130 EXPECT_FALSE(MakeScopedHandle(SharedBufferHandle()).is_valid()); in TEST()
374 ScopedSharedBufferHandle buffer1 = SharedBufferHandle::Create(1024); in TEST()
377 ScopedSharedBufferHandle buffer2 = SharedBufferHandle::Create(1024); in TEST()
389 ScopedSharedBufferHandle h0 = SharedBufferHandle::Create(100); in TEST()
400 h0->Clone(SharedBufferHandle::AccessMode::READ_ONLY); in TEST()
425 EXPECT_FALSE(SharedBufferHandle::Create(1ULL << 60).is_valid()); in TEST()
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java12 import org.chromium.mojo.system.SharedBufferHandle;
486 public SharedBufferHandle readSharedBufferHandle(int offset, boolean nullable) { in readSharedBufferHandle()
644 public SharedBufferHandle[] readSharedBufferHandles( in readSharedBufferHandles()
651 SharedBufferHandle[] result = new SharedBufferHandle[si.elementsOrVersion]; in readSharedBufferHandles()
/external/libchrome/mojo/public/cpp/base/
Dbig_buffer.cc96 auto buffer = mojo::SharedBufferHandle::Create(bytes.size()); in BigBufferView()
/external/libchrome/mojo/public/java/
DBUILD.gn19 "system/src/org/chromium/mojo/system/SharedBufferHandle.java",
/external/libchrome/mojo/core/
Dmessage_unittest.cc826 handles[4] = SharedBufferHandle::Create(64).release().value(); in TEST_F()
879 handles[3] = SharedBufferHandle::Create(64).release().value(); in TEST_F()