HomeSort by relevance Sort by last modified time
    Searched refs:SharedBufferHandle (Results 1 - 14 of 14) sorted by null

  /external/libmojo/mojo/public/cpp/system/
buffer.cc 10 ScopedSharedBufferHandle SharedBufferHandle::Create(uint64_t num_bytes) {
13 SharedBufferHandle handle;
18 ScopedSharedBufferHandle SharedBufferHandle::Clone(
19 SharedBufferHandle::AccessMode access_mode) const {
28 SharedBufferHandle result_handle;
34 ScopedSharedBufferMapping SharedBufferHandle::Map(uint64_t size) const {
38 ScopedSharedBufferMapping SharedBufferHandle::MapAtOffset(
buffer.h 38 class SharedBufferHandle;
40 typedef ScopedHandleBase<SharedBufferHandle> ScopedSharedBufferHandle;
44 class SharedBufferHandle : public Handle {
51 SharedBufferHandle() {}
52 explicit SharedBufferHandle(MojoHandle value) : Handle(value) {}
56 // Creates a new SharedBufferHandle. Returns an invalid handle on failure.
73 static_assert(sizeof(SharedBufferHandle) == sizeof(Handle),
74 "Bad size for C++ SharedBufferHandle");
75 static_assert(sizeof(ScopedSharedBufferHandle) == sizeof(SharedBufferHandle),
platform_handle.cc 87 return ScopedSharedBufferHandle(SharedBufferHandle(mojo_handle));
  /external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/
SharedBufferHandleImpl.java 7 import org.chromium.mojo.system.SharedBufferHandle;
12 * Implementation of {@link SharedBufferHandle}.
14 class SharedBufferHandleImpl extends HandleBase implements SharedBufferHandle {
31 * @see org.chromium.mojo.system.SharedBufferHandle#pass()
34 public SharedBufferHandle pass() {
39 * @see SharedBufferHandle#duplicate(DuplicateOptions)
42 public SharedBufferHandle duplicate(DuplicateOptions options) {
47 * @see SharedBufferHandle#map(long, long, MapFlags)
55 * @see SharedBufferHandle#unmap(ByteBuffer)
UntypedHandleImpl.java 10 import org.chromium.mojo.system.SharedBufferHandle;
68 public SharedBufferHandle toSharedBufferHandle() {
CoreImpl.java 22 import org.chromium.mojo.system.SharedBufferHandle;
23 import org.chromium.mojo.system.SharedBufferHandle.DuplicateOptions;
24 import org.chromium.mojo.system.SharedBufferHandle.MapFlags;
192 * @see Core#createSharedBuffer(SharedBufferHandle.CreateOptions, long)
195 public SharedBufferHandle createSharedBuffer(
196 SharedBufferHandle.CreateOptions options, long numBytes) {
424 * @see SharedBufferHandle#duplicate(DuplicateOptions)
426 SharedBufferHandle duplicate(SharedBufferHandleImpl handle, DuplicateOptions options) {
441 * @see SharedBufferHandle#map(long, long, MapFlags)
453 * @see SharedBufferHandle#unmap(ByteBuffer
    [all...]
  /external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/
UntypedHandle.java 40 * Returns the underlying handle, as a {@link SharedBufferHandle}, invalidating this
43 public SharedBufferHandle toSharedBufferHandle();
SharedBufferHandle.java 12 public interface SharedBufferHandle extends Handle {
89 * |SharedBufferHandle#duplicate|
136 public SharedBufferHandle pass();
143 public SharedBufferHandle duplicate(DuplicateOptions options);
InvalidHandle.java 19 ProducerHandle, SharedBufferHandle {
116 public SharedBufferHandle toSharedBufferHandle() {
121 * @see SharedBufferHandle#duplicate(SharedBufferHandle.DuplicateOptions)
124 public SharedBufferHandle duplicate(DuplicateOptions options) {
129 * @see SharedBufferHandle#map(long, long, SharedBufferHandle.MapFlags)
137 * @see SharedBufferHandle#unmap(java.nio.ByteBuffer)
Core.java 291 * |SharedBufferHandle.duplicate()| -- and passing it over a message pipe). To access the
292 * buffer, one must call |SharedBufferHandle.map|.
294 * @return the new |SharedBufferHandle|.
296 public SharedBufferHandle createSharedBuffer(SharedBufferHandle.CreateOptions options,
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/
HandleMock.java 16 import org.chromium.mojo.system.SharedBufferHandle;
27 ProducerHandle, ConsumerHandle, SharedBufferHandle {
199 public SharedBufferHandle toSharedBufferHandle() {
204 * @see SharedBufferHandle#duplicate(SharedBufferHandle.DuplicateOptions)
207 public SharedBufferHandle duplicate(DuplicateOptions options) {
213 * @see SharedBufferHandle#map(long, long, SharedBufferHandle.MapFlags)
222 * @see SharedBufferHandle#unmap(java.nio.ByteBuffer)
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/system/impl/
CoreImplTest.java 26 import org.chromium.mojo.system.SharedBufferHandle;
168 private static void checkSharing(SharedBufferHandle in, SharedBufferHandle out) {
171 ByteBuffer buffer1 = in.map(0, 8, SharedBufferHandle.MapFlags.NONE);
173 ByteBuffer buffer2 = out.map(0, 8, SharedBufferHandle.MapFlags.NONE);
246 SharedBufferHandle handle = core.createSharedBuffer(null, 100);
247 SharedBufferHandle handle2 = handle.duplicate(null);
497 * Testing {@link SharedBufferHandle}.
505 core.createSharedBuffer(new SharedBufferHandle.CreateOptions(), 8).close();
509 * Testing {@link SharedBufferHandle}
    [all...]
  /external/libmojo/mojo/public/cpp/system/tests/
core_unittest.cc 138 EXPECT_FALSE(MakeScopedHandle(SharedBufferHandle()).is_valid());
468 ScopedSharedBufferHandle buffer1 = SharedBufferHandle::Create(1024);
471 ScopedSharedBufferHandle buffer2 = SharedBufferHandle::Create(1024);
483 ScopedSharedBufferHandle h0 = SharedBufferHandle::Create(100);
493 h0->Clone(SharedBufferHandle::AccessMode::READ_ONLY);
518 EXPECT_FALSE(SharedBufferHandle::Create(1ULL << 60).is_valid());
  /external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
Decoder.java 12 import org.chromium.mojo.system.SharedBufferHandle;
463 * Deserializes a |SharedBufferHandle| at the given offset.
465 public SharedBufferHandle readSharedBufferHandle(int offset, boolean nullable) {
621 * Deserializes an array of |SharedBufferHandle| at the given offset.
623 public SharedBufferHandle[] readSharedBufferHandles(
630 SharedBufferHandle[] result = new SharedBufferHandle[si.elementsOrVersion];

Completed in 734 milliseconds