Home
last modified time | relevance | path

Searched refs:MojoResult (Results 1 – 25 of 124) sorted by relevance

12345

/external/libchrome/mojo/public/c/system/
Dtypes.h85 typedef uint32_t MojoResult; typedef
88 const MojoResult MOJO_RESULT_OK = 0;
89 const MojoResult MOJO_RESULT_CANCELLED = 1;
90 const MojoResult MOJO_RESULT_UNKNOWN = 2;
91 const MojoResult MOJO_RESULT_INVALID_ARGUMENT = 3;
92 const MojoResult MOJO_RESULT_DEADLINE_EXCEEDED = 4;
93 const MojoResult MOJO_RESULT_NOT_FOUND = 5;
94 const MojoResult MOJO_RESULT_ALREADY_EXISTS = 6;
95 const MojoResult MOJO_RESULT_PERMISSION_DENIED = 7;
96 const MojoResult MOJO_RESULT_RESOURCE_EXHAUSTED = 8;
[all …]
Dthunks.h35 MojoResult (*Initialize)(const struct MojoInitializeOptions* options);
40 MojoResult (*Close)(MojoHandle handle);
41 MojoResult (*QueryHandleSignalsState)(
46 MojoResult (*CreateMessagePipe)(
50 MojoResult (*WriteMessage)(MojoHandle message_pipe_handle,
53 MojoResult (*ReadMessage)(MojoHandle message_pipe_handle,
56 MojoResult (*FuseMessagePipes)(
62 MojoResult (*CreateMessage)(const struct MojoCreateMessageOptions* options,
64 MojoResult (*DestroyMessage)(MojoMessageHandle message);
65 MojoResult (*SerializeMessage)(
[all …]
Dthunks.cc38 MojoResult NotImplemented(const char* name) { in NotImplemented()
146 MojoResult MojoInitialize(const struct MojoInitializeOptions* options) { in MojoInitialize()
158 MojoResult MojoClose(MojoHandle handle) { in MojoClose()
162 MojoResult MojoQueryHandleSignalsState( in MojoQueryHandleSignalsState()
168 MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options, in MojoCreateMessagePipe()
175 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, in MojoWriteMessage()
182 MojoResult MojoReadMessage(MojoHandle message_pipe_handle, in MojoReadMessage()
189 MojoResult MojoFuseMessagePipes(MojoHandle handle0, in MojoFuseMessagePipes()
195 MojoResult MojoCreateDataPipe(const MojoCreateDataPipeOptions* options, in MojoCreateDataPipe()
202 MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle, in MojoWriteData()
[all …]
Dmessage_pipe.h264 MOJO_SYSTEM_EXPORT MojoResult MojoCreateMessagePipe(
286 MOJO_SYSTEM_EXPORT MojoResult
307 MOJO_SYSTEM_EXPORT MojoResult
335 MOJO_SYSTEM_EXPORT MojoResult
357 MOJO_SYSTEM_EXPORT MojoResult
371 MOJO_SYSTEM_EXPORT MojoResult MojoDestroyMessage(MojoMessageHandle message);
394 MOJO_SYSTEM_EXPORT MojoResult
445 MOJO_SYSTEM_EXPORT MojoResult
502 MOJO_SYSTEM_EXPORT MojoResult
552 MOJO_SYSTEM_EXPORT MojoResult
[all …]
Ddata_pipe.h209 MOJO_SYSTEM_EXPORT MojoResult
242 MOJO_SYSTEM_EXPORT MojoResult
276 MOJO_SYSTEM_EXPORT MojoResult
305 MOJO_SYSTEM_EXPORT MojoResult
357 MOJO_SYSTEM_EXPORT MojoResult
389 MOJO_SYSTEM_EXPORT MojoResult
416 MOJO_SYSTEM_EXPORT MojoResult
/external/libchrome/mojo/core/
Dcore.h134 MojoResult AcquireDispatchersForTransit(
169 MojoResult Close(MojoHandle handle);
170 MojoResult QueryHandleSignalsState(MojoHandle handle,
172 MojoResult CreateTrap(MojoTrapEventHandler handler,
175 MojoResult AddTrigger(MojoHandle trap_handle,
181 MojoResult RemoveTrigger(MojoHandle trap_handle,
184 MojoResult ArmTrap(MojoHandle trap_handle,
188 MojoResult CreateMessage(const MojoCreateMessageOptions* options,
190 MojoResult DestroyMessage(MojoMessageHandle message_handle);
191 MojoResult SerializeMessage(MojoMessageHandle message_handle,
[all …]
Dentrypoints.cc23 MojoResult MojoInitializeImpl(const struct MojoInitializeOptions* options) { in MojoInitializeImpl()
32 MojoResult MojoCloseImpl(MojoHandle handle) { in MojoCloseImpl()
36 MojoResult MojoQueryHandleSignalsStateImpl( in MojoQueryHandleSignalsStateImpl()
42 MojoResult MojoCreateMessagePipeImpl( in MojoCreateMessagePipeImpl()
50 MojoResult MojoWriteMessageImpl(MojoHandle message_pipe_handle, in MojoWriteMessageImpl()
56 MojoResult MojoReadMessageImpl(MojoHandle message_pipe_handle, in MojoReadMessageImpl()
62 MojoResult MojoFuseMessagePipesImpl( in MojoFuseMessagePipesImpl()
69 MojoResult MojoCreateMessageImpl(const MojoCreateMessageOptions* options, in MojoCreateMessageImpl()
74 MojoResult MojoDestroyMessageImpl(MojoMessageHandle message) { in MojoDestroyMessageImpl()
78 MojoResult MojoSerializeMessageImpl( in MojoSerializeMessageImpl()
[all …]
Ddispatcher.h74 virtual MojoResult Close() = 0;
78 virtual MojoResult WatchDispatcher(scoped_refptr<Dispatcher> dispatcher,
82 virtual MojoResult CancelWatch(uintptr_t context);
83 virtual MojoResult Arm(uint32_t* num_blocking_events,
88 virtual MojoResult WriteMessage(
91 virtual MojoResult ReadMessage(
99 virtual MojoResult DuplicateBufferHandle(
103 virtual MojoResult MapBuffer(
108 virtual MojoResult GetBufferInfo(MojoSharedBufferInfo* info);
112 virtual MojoResult ReadData(const MojoReadDataOptions& options,
[all …]
Ddispatcher.cc26 MojoResult Dispatcher::WatchDispatcher(scoped_refptr<Dispatcher> dispatcher, in WatchDispatcher()
33 MojoResult Dispatcher::CancelWatch(uintptr_t context) { in CancelWatch()
37 MojoResult Dispatcher::Arm(uint32_t* num_blocking_events, in Arm()
42 MojoResult Dispatcher::WriteMessage( in WriteMessage()
47 MojoResult Dispatcher::ReadMessage( in ReadMessage()
52 MojoResult Dispatcher::DuplicateBufferHandle( in DuplicateBufferHandle()
58 MojoResult Dispatcher::MapBuffer( in MapBuffer()
65 MojoResult Dispatcher::GetBufferInfo(MojoSharedBufferInfo* info) { in GetBufferInfo()
69 MojoResult Dispatcher::ReadData(const MojoReadDataOptions& options, in ReadData()
75 MojoResult Dispatcher::BeginReadData(const void** buffer, in BeginReadData()
[all …]
Dmessage_pipe_dispatcher.h50 MojoResult Close() override;
51 MojoResult WriteMessage(
53 MojoResult ReadMessage(
55 MojoResult SetQuota(MojoQuotaType type, uint64_t limit) override;
56 MojoResult QueryQuota(MojoQuotaType type,
60 MojoResult AddWatcherRef(const scoped_refptr<WatcherDispatcher>& watcher,
62 MojoResult RemoveWatcherRef(WatcherDispatcher* watcher,
87 MojoResult CloseNoLock();
Dshared_buffer_dispatcher.h37 static MojoResult ValidateCreateOptions(
45 static MojoResult Create(
52 static MojoResult CreateFromPlatformSharedMemoryRegion(
76 MojoResult Close() override;
77 MojoResult DuplicateBufferHandle(
80 MojoResult MapBuffer(
84 MojoResult GetBufferInfo(MojoSharedBufferInfo* info) override;
108 static MojoResult ValidateDuplicateOptions(
Dcore.cc252 MojoResult Core::AcquireDispatchersForTransit( in AcquireDispatchersForTransit()
257 MojoResult rv = handles_->BeginTransit(handles, num_handles, dispatchers); in AcquireDispatchersForTransit()
291 MojoResult Core::Close(MojoHandle handle) { in Close()
296 MojoResult rv = handles_->GetAndRemoveDispatcher(handle, &dispatcher); in Close()
304 MojoResult Core::QueryHandleSignalsState( in QueryHandleSignalsState()
315 MojoResult Core::CreateTrap(MojoTrapEventHandler handler, in CreateTrap()
330 MojoResult Core::AddTrigger(MojoHandle trap_handle, in AddTrigger()
352 MojoResult Core::RemoveTrigger(MojoHandle trap_handle, in RemoveTrigger()
365 MojoResult Core::ArmTrap(MojoHandle trap_handle, in ArmTrap()
379 MojoResult Core::CreateMessage(const MojoCreateMessageOptions* options, in CreateMessage()
[all …]
Ddata_pipe_consumer_dispatcher.h43 MojoResult Close() override;
44 MojoResult ReadData(const MojoReadDataOptions& validated_options,
47 MojoResult BeginReadData(const void** buffer,
49 MojoResult EndReadData(uint32_t num_bytes_read) override;
51 MojoResult AddWatcherRef(const scoped_refptr<WatcherDispatcher>& watcher,
53 MojoResult RemoveWatcherRef(WatcherDispatcher* watcher,
85 MojoResult CloseNoLock();
Ddata_pipe_producer_dispatcher.h43 MojoResult Close() override;
44 MojoResult WriteData(const void* elements,
47 MojoResult BeginWriteData(void** buffer, uint32_t* buffer_num_bytes) override;
48 MojoResult EndWriteData(uint32_t num_bytes_written) override;
50 MojoResult AddWatcherRef(const scoped_refptr<WatcherDispatcher>& watcher,
52 MojoResult RemoveWatcherRef(WatcherDispatcher* watcher,
84 MojoResult CloseNoLock();
Dcore_test_base.cc38 MojoResult Close() override { in Close()
43 MojoResult WriteMessage( in WriteMessage()
49 MojoResult ReadMessage( in ReadMessage()
55 MojoResult WriteData(const void* elements, in WriteData()
62 MojoResult BeginWriteData(void** buffer, in BeginWriteData()
68 MojoResult EndWriteData(uint32_t num_bytes_written) override { in EndWriteData()
73 MojoResult ReadData(const MojoReadDataOptions& options, in ReadData()
80 MojoResult BeginReadData(const void** buffer, in BeginReadData()
86 MojoResult EndReadData(uint32_t num_bytes_read) override { in EndReadData()
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/
DInvalidHandle.java44 throw new MojoException(MojoResult.INVALID_ARGUMENT); in querySignalsState()
124 throw new MojoException(MojoResult.INVALID_ARGUMENT); in duplicate()
132 throw new MojoException(MojoResult.INVALID_ARGUMENT); in map()
140 throw new MojoException(MojoResult.INVALID_ARGUMENT); in unmap()
148 throw new MojoException(MojoResult.INVALID_ARGUMENT); in writeData()
157 throw new MojoException(MojoResult.INVALID_ARGUMENT); in beginWriteData()
165 throw new MojoException(MojoResult.INVALID_ARGUMENT); in endWriteData()
173 throw new MojoException(MojoResult.INVALID_ARGUMENT); in discardData()
181 throw new MojoException(MojoResult.INVALID_ARGUMENT); in readData()
190 throw new MojoException(MojoResult.INVALID_ARGUMENT); in beginReadData()
[all …]
/external/libchrome/mojo/public/cpp/system/
Dwait_set.cc28 MojoResult rv = CreateTrap(&Context::OnNotification, &trap_handle_); in State()
39 MojoResult AddEvent(base::WaitableEvent* event) { in AddEvent()
46 MojoResult RemoveEvent(base::WaitableEvent* event) { in RemoveEvent()
54 MojoResult AddHandle(Handle handle, MojoHandleSignals signals) { in AddHandle()
76 MojoResult rv = in AddHandle()
94 MojoResult RemoveHandle(Handle handle) { in RemoveHandle()
120 MojoResult rv = MojoRemoveTrigger(trap_handle_.get().value(), in RemoveHandle()
134 MojoResult* ready_results, in Wait()
157 MojoResult rv = MojoArmTrap(trap_handle_.get().value(), nullptr, in Wait()
253 void Notify(MojoResult result, MojoHandleSignalsState signals_state) { in Notify()
[all …]
Dmessage_pipe.h47 inline MojoResult CreateMessagePipe(const MojoCreateMessagePipeOptions* options, in CreateMessagePipe()
54 MojoResult rv = MojoCreateMessagePipe( in CreateMessagePipe()
68 MOJO_CPP_SYSTEM_EXPORT MojoResult
83 MOJO_CPP_SYSTEM_EXPORT MojoResult
91 inline MojoResult WriteMessageNew(MessagePipeHandle message_pipe, in WriteMessageNew()
103 inline MojoResult ReadMessageNew(MessagePipeHandle message_pipe, in ReadMessageNew()
110 MojoResult rv = MojoReadMessage(message_pipe.value(), &options, &raw_message); in ReadMessageNew()
120 inline MojoResult FuseMessagePipes(ScopedMessagePipeHandle message_pipe0, in FuseMessagePipes()
139 MojoResult result = CreateMessagePipe(nullptr, &handle0, &handle1); in MessagePipe()
146 MojoResult result = CreateMessagePipe(&options, &handle0, &handle1); in MessagePipe()
Ddata_pipe.h32 MojoResult WriteData(const void* elements, in WriteData()
43 MojoResult BeginWriteData(void** buffer, in BeginWriteData()
54 MojoResult EndWriteData(uint32_t num_bytes_written) const { in EndWriteData()
77 MojoResult ReadData(void* elements, in ReadData()
88 MojoResult BeginReadData(const void** buffer, in BeginReadData()
99 MojoResult EndReadData(uint32_t num_bytes_read) const { in EndReadData()
116 inline MojoResult CreateDataPipe( in CreateDataPipe()
124 MojoResult rv = MojoCreateDataPipe(options, in CreateDataPipe()
150 MojoResult result = in DataPipe()
163 MojoResult result = in DataPipe()
[all …]
Dsimple_watcher.h53 using ReadyCallback = base::RepeatingCallback<void(MojoResult result)>;
58 base::RepeatingCallback<void(MojoResult result,
120 MojoResult Watch(Handle handle,
130 MojoResult Watch(Handle handle, in Watch()
165 MojoResult Arm(MojoResult* ready_result = nullptr,
192 MojoResult result, in DiscardReadyState()
198 MojoResult result,
Dsimple_watcher.cc33 MojoResult* result) { in Create()
81 void Notify(MojoResult result, in Notify()
133 MojoResult rv = CreateTrap(&Context::CallNotify, &trap_handle_); in SimpleWatcher()
148 MojoResult SimpleWatcher::Watch(Handle handle, in Watch()
160 MojoResult result = MOJO_RESULT_UNKNOWN; in Watch()
197 MojoResult rv = in Cancel()
206 MojoResult SimpleWatcher::Arm(MojoResult* ready_result, in Arm()
211 MojoResult rv = MojoArmTrap(trap_handle_.get().value(), nullptr, in Arm()
236 MojoResult ready_result; in ArmOrNotify()
238 MojoResult rv = Arm(&ready_result, &ready_state); in ArmOrNotify()
[all …]
Dwait.cc26 MojoResult wait_result() const { return wait_result_; } in wait_result()
44 void Notify(MojoResult result, MojoHandleSignalsState state) { in Notify()
59 MojoResult wait_result_ = MOJO_RESULT_UNKNOWN;
67 MojoResult Wait(Handle handle, in Wait()
72 MojoResult rv = CreateTrap(&TriggerContext::OnNotification, &trap); in Wait()
104 MojoResult ready_result = context->wait_result(); in Wait()
113 MojoResult WaitMany(const Handle* handles, in WaitMany()
122 MojoResult rv = CreateTrap(&TriggerContext::OnNotification, &trap); in WaitMany()
134 MojoResult rv = in WaitMany()
157 MojoResult ready_result = MOJO_RESULT_UNKNOWN; in WaitMany()
Dwait_set.h48 MojoResult AddEvent(base::WaitableEvent* event);
55 MojoResult RemoveEvent(base::WaitableEvent* event);
66 MojoResult AddHandle(Handle handle, MojoHandleSignals signals);
74 MojoResult RemoveHandle(Handle handle);
110 MojoResult* ready_results,
Dstring_data_pipe_producer.cc21 MojoResult WriteDataToProducerHandle(DataPipeProducerHandle producer, in WriteDataToProducerHandle()
31 MojoResult result; in WriteDataToProducerHandle()
45 MojoResult end_result = producer.EndWriteData(capacity); in WriteDataToProducerHandle()
77 MojoResult result = in Write()
99 void StringDataPipeProducer::InvokeCallback(MojoResult result) { in InvokeCallback()
105 MojoResult ready_result, in OnProducerHandleReady()
110 MojoResult write_result = in OnProducerHandleReady()
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/impl/
DCoreImpl.java18 import org.chromium.mojo.system.MojoResult;
106 if (result.getMojoResult() != MojoResult.OK) { in createMessagePipe()
128 if (result.getMojoResult() != MojoResult.OK) { in createDataPipe()
149 if (result.getMojoResult() != MojoResult.OK) { in createSharedBuffer()
177 throw new MojoException(MojoResult.FAILED_PRECONDITION); in createDefaultRunLoop()
205 if (mojoResult != MojoResult.OK) { in close()
213 if (result != MojoResult.OK) throw new MojoException(result); in queryHandleSignalsState()
233 if (mojoResult != MojoResult.OK) { in writeMessage()
253 if (result.getMojoResult() != MojoResult.OK in readMessage()
254 && result.getMojoResult() != MojoResult.SHOULD_WAIT) { in readMessage()
[all …]

12345