Searched refs:handles (Results 1 - 25 of 259) sorted by relevance

1234567891011

/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/system/impl/
H A DCoreImplTest.java71 private void addHandlePairToClose(Pair<? extends Handle, ? extends Handle> handles) { argument
72 mHandlesToClose.add(handles.first);
73 mHandlesToClose.add(handles.second);
177 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(null);
178 addHandlePairToClose(handles);
183 new Pair<Handle, Core.HandleSignals>(handles.second, Core.HandleSignals.READABLE));
185 new Pair<Handle, Core.HandleSignals>(handles.first, Core.HandleSignals.WRITABLE));
192 new Pair<Handle, Core.HandleSignals>(handles.first, Core.HandleSignals.WRITABLE));
194 new Pair<Handle, Core.HandleSignals>(handles.second, Core.HandleSignals.READABLE));
207 Pair<? extends Handle, ? extends Handle> handles
[all...]
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Dbindings_serialization.h48 // Handles are encoded as indices into a vector of handles. These functions
50 void EncodeHandle(Handle* handle, std::vector<Handle>* handles);
52 void DecodeHandle(Handle* handle, std::vector<Handle>* handles);
58 inline void Encode(T* obj, std::vector<Handle>* handles) { argument
60 obj->ptr->EncodePointersAndHandles(handles);
66 inline void Decode(T* obj, std::vector<Handle>* handles) { argument
69 obj->ptr->DecodePointersAndHandles(handles);
H A Dbindings_serialization.cc63 void EncodeHandle(Handle* handle, std::vector<Handle>* handles) { argument
65 handles->push_back(*handle);
66 handle->set_value(static_cast<MojoHandle>(handles->size() - 1));
72 void DecodeHandle(Handle* handle, std::vector<Handle>* handles) { argument
77 MOJO_DCHECK(handle->value() < handles->size());
79 *handle = FetchAndReset(&handles->at(handle->value()));
H A Darray_internal.cc60 std::vector<Handle>* handles) {
62 EncodeHandle(&elements[i], handles);
69 std::vector<Handle>* handles) {
71 DecodeHandle(&elements[i], handles);
57 EncodePointersAndHandles( const ArrayHeader* header, ElementType* elements, std::vector<Handle>* handles) argument
66 DecodePointersAndHandles( const ArrayHeader* header, ElementType* elements, std::vector<Handle>* handles) argument
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dw32_CancelableWait.c60 HANDLE handles[2]; local
64 handles[0] = waitHandle;
77 if ((handles[1] = sp->cancelEvent) != NULL)
85 handles[1] = NULL;
88 status = WaitForMultipleObjects (nHandles, handles, PTW32_FALSE, timeout);
95 * In the event that both handles are signalled, the smallest index
106 * In the event that both handles are signaled, the cancel will
109 ResetEvent (handles[1]);
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
H A DMessage.java25 * The handles of the message.
38 * @param handles The list of handles to send.
40 public Message(ByteBuffer buffer, List<? extends Handle> handles) { argument
43 mHandle = handles;
54 * The handles of the message.
/external/chromium_org/mojo/public/c/system/
H A Dfunctions.h77 // Waits on |handles[0]|, ..., |handles[num_handles-1]| until (at least) one
96 // handles satisfying any of its signals.
99 MOJO_SYSTEM_EXPORT MojoResult MojoWaitMany(const MojoHandle* handles,
H A Dmessage_pipe.h80 // handles.
85 // handles for the two endpoints (ports) for the message pipe.
102 // handles specified by |handles| of count |num_handles|, and options specified
104 // |num_bytes| must be zero. If there are no attached handles, |handles| may be
107 // If handles are attached, on success the handles will no longer be valid (the
108 // receiver will receive equivalent, but logically different, handles). Handles
117 // the number of handles t
[all...]
/external/chromium_org/mojo/python/tests/
H A Dasync_wait_unittest.py18 self.handles = system.MessagePipe()
19 self.cancel = self.handles.handle0.AsyncWait(system.HANDLE_SIGNAL_READABLE,
25 self.handles = None
33 self.handles.handle1.WriteMessage()
H A Dsystem_unittest.py82 def _TestMessageHandleCreation(self, handles):
83 self._testHandlesCreation(handles.handle0, handles.handle1)
96 handles = system.MessagePipe()
97 handle = handles.handle0
104 handles.handle1.WriteMessage()
113 handles = system.MessagePipe()
114 handle0 = handles.handle0
115 handle1 = handles.handle1
139 handles
[all...]
/external/chromium_org/mojo/system/
H A Dhandle_table.h65 // Adds a pair of dispatchers (which must be valid), return a pair of handles
67 // handles will be |MOJO_HANDLE_INVALID|, and neither dispatcher will be
74 // |kMaxMessageNumHandles|). |handles| must point to an array of size at least
78 // |handles[...]| untouched (and all dispatchers unadded).
80 MojoHandle* handles);
82 // Tries to mark the given handles as busy and start transport on them (i.e.,
88 const MojoHandle* handles,
92 // Remove the given handles, which must all be present and which should have
94 void RemoveBusyHandles(const MojoHandle* handles, uint32_t num_handles);
96 // Restores the given handles, whic
[all...]
H A Dhandle_table.cc77 MojoHandle* handles) {
79 DCHECK(handles);
93 handles[i] = AddDispatcherNoSizeCheck(dispatchers[i]);
96 handles[i] = MOJO_HANDLE_INVALID;
104 const MojoHandle* handles,
108 DCHECK(handles);
115 // First verify all the handles and get their dispatchers.
121 if (handles[i] == disallowed_handle) {
126 HandleToEntryMap::iterator it = handle_to_entry_map_.find(handles[i]);
149 "to transfer handle " << handles[
76 AddDispatcherVector(const DispatcherVector& dispatchers, MojoHandle* handles) argument
102 MarkBusyAndStartTransport( MojoHandle disallowed_handle, const MojoHandle* handles, uint32_t num_handles, std::vector<DispatcherTransport>* transports) argument
212 RemoveBusyHandles(const MojoHandle* handles, uint32_t num_handles) argument
226 RestoreBusyHandles(const MojoHandle* handles, uint32_t num_handles) argument
[all...]
H A Dcore_unittest.cc250 MojoHandle handles[2] = {MOJO_HANDLE_INVALID, MOJO_HANDLE_INVALID}; local
254 core()->WaitMany(MakeUserPointer(handles),
286 core()->WaitMany(MakeUserPointer(handles),
293 core()->WaitMany(MakeUserPointer(handles),
304 core()->WaitMany(MakeUserPointer(handles),
317 handles[0] = CreateMockHandle(&info[0]);
322 core()->WaitMany(MakeUserPointer(handles),
336 core()->WaitMany(MakeUserPointer(handles),
347 handles[1] = handles[
388 MojoHandle handles[2] = {MOJO_HANDLE_INVALID, MOJO_HANDLE_INVALID}; local
853 MojoHandle handles[10]; local
1209 MojoHandle handles[10]; local
[all...]
/external/chromium_org/chrome/browser/chromeos/memory/
H A Doom_priority_manager_unittest.cc147 std::vector<base::ProcessHandle> handles; local
149 // Empty stats list gives empty handles list.
151 handles = OomPriorityManager::GetProcessHandles(empty_list);
152 EXPECT_EQ(0u, handles.size());
154 // Two tabs in two different processes generates two handles out.
160 handles = OomPriorityManager::GetProcessHandles(two_list);
161 EXPECT_EQ(2u, handles.size());
162 EXPECT_EQ(100, handles[0]);
163 EXPECT_EQ(101, handles[1]);
165 // Zero handles ar
[all...]
/external/chromium_org/mojo/common/
H A Dmessage_pump_mojo.cc41 std::vector<Handle> handles; member in struct:mojo::common::MessagePumpMojo::WaitState
144 // There isn't a good way to know if there are more handles ready, we assume
173 WaitMany(wait_state.handles, wait_state.wait_signals, deadline);
181 DCHECK(handlers_.find(wait_state.handles[index]) != handlers_.end());
182 handlers_[wait_state.handles[index]].handler->OnHandleReady(
183 wait_state.handles[index]);
217 for (size_t i = 0; i < wait_state.handles.size(); ++i) {
219 Wait(wait_state.handles[i], wait_state.wait_signals[i], 0);
231 CHECK(handlers_.find(wait_state.handles[i]) != handlers_.end());
233 handlers_[wait_state.handles[
[all...]
/external/chromium_org/mojo/public/cpp/utility/lib/
H A Drun_loop.cc28 std::vector<Handle> handles; member in struct:mojo::RunLoop::WaitState
146 if (wait_state.handles.empty() && delayed_tasks_.empty()) {
151 const MojoResult result = WaitMany(wait_state.handles,
156 assert(handler_data_.find(wait_state.handles[index]) !=
158 handler_data_[wait_state.handles[index]].handler->OnHandleReady(
159 wait_state.handles[index]);
207 for (size_t i = 0; i < wait_state.handles.size(); ++i) {
209 mojo::Wait(wait_state.handles[i], wait_state.handle_signals[i],
215 assert(handler_data_.find(wait_state.handles[i]) != handler_data_.end());
217 handler_data_[wait_state.handles[
[all...]
/external/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/
H A DMessagePipeHandleImpl.java44 public void writeMessage(ByteBuffer bytes, List<? extends Handle> handles, WriteFlags flags) { argument
45 mCore.writeMessage(this, bytes, handles, flags);
/external/chromium_org/mojo/public/cpp/system/
H A Dmessage_pipe.h52 // ownership of handles (especially when writing messages).
57 const MojoHandle* handles,
60 return MojoWriteMessage(message_pipe.value(), bytes, num_bytes, handles,
67 MojoHandle* handles,
70 return MojoReadMessage(message_pipe.value(), bytes, num_bytes, handles,
75 // handles.
54 WriteMessageRaw(MessagePipeHandle message_pipe, const void* bytes, uint32_t num_bytes, const MojoHandle* handles, uint32_t num_handles, MojoWriteMessageFlags flags) argument
64 ReadMessageRaw(MessagePipeHandle message_pipe, void* bytes, uint32_t* num_bytes, MojoHandle* handles, uint32_t* num_handles, MojoReadMessageFlags flags) argument
H A Dhandle.h73 // provide the desired level of flexibility/safety: a vector of handles would
208 inline MojoResult WaitMany(const HandleVectorType& handles, argument
211 if (signals.size() != handles.size())
213 if (handles.size() > std::numeric_limits<uint32_t>::max())
216 if (handles.size() == 0)
219 const Handle& first_handle = handles[0];
224 static_cast<uint32_t>(handles.size()),
/external/chromium_org/sync/internal_api/
H A Dwrite_transaction.cc86 syncable::Directory::Metahandles handles; local
88 transaction_, attachment_id.GetProto(), &handles);
89 for (syncable::Directory::Metahandles::iterator iter = handles.begin();
90 iter != handles.end();
/external/chromium_org/mojo/public/java/system/src/org/chromium/mojo/system/
H A DMessagePipeHandle.java12 * can contain plain data and/or Mojo handles.
144 * If a message was read, the number of handles contained in the message, otherwise the
145 * number of handles contained in the next message.
149 * If a message was read, the handles contained in the message, undefined otherwise.
196 * @return the handles
203 * @param handles the handles to set
205 public void setHandles(List<UntypedHandle> handles) { argument
206 mHandles = handles;
218 * attached handles specifie
226 writeMessage(ByteBuffer bytes, List<? extends Handle> handles, WriteFlags flags) argument
[all...]
/external/chromium_org/sync/syncable/
H A Dsyncable_util.cc22 std::vector<int64> *handles) {
23 trans->directory()->GetUnsyncedMetaHandles(trans, handles);
24 DVLOG_IF(1, !handles->empty()) << "Have " << handles->size()
26 return handles->size();
21 GetUnsyncedEntries(BaseTransaction* trans, std::vector<int64> *handles) argument
/external/chromium_org/base/
H A Dsync_socket_posix.cc72 Handle handles[2] = { kInvalidHandle, kInvalidHandle }; local
73 if (socketpair(AF_UNIX, SOCK_STREAM, 0, handles) != 0) {
74 CloseHandle(handles[0]);
75 CloseHandle(handles[1]);
82 if (0 != setsockopt(handles[0], SOL_SOCKET, SO_NOSIGPIPE,
84 0 != setsockopt(handles[1], SOL_SOCKET, SO_NOSIGPIPE,
86 CloseHandle(handles[0]);
87 CloseHandle(handles[1]);
92 // Copy the handles out for successful return.
93 socket_a->handle_ = handles[
[all...]
/external/chromium_org/mojo/public/js/bindings/
H A Dconnector.js43 message.handles,
47 // The handles were successfully transferred, so we don't own them
49 message.handles = [];
100 var message = new codec.Message(messageBuffer, read.handles);
/external/chromium_org/mojo/public/platform/native/
H A Dsystem_thunks.cc32 MojoResult MojoWaitMany(const MojoHandle* handles, argument
37 return g_thunks.WaitMany(handles, signals, num_handles, deadline);
51 const MojoHandle* handles,
55 return g_thunks.WriteMessage(message_pipe_handle, bytes, num_bytes, handles,
62 MojoHandle* handles,
66 return g_thunks.ReadMessage(message_pipe_handle, bytes, num_bytes, handles,
48 MojoWriteMessage(MojoHandle message_pipe_handle, const void* bytes, uint32_t num_bytes, const MojoHandle* handles, uint32_t num_handles, MojoWriteMessageFlags flags) argument
59 MojoReadMessage(MojoHandle message_pipe_handle, void* bytes, uint32_t* num_bytes, MojoHandle* handles, uint32_t* num_handles, MojoReadMessageFlags flags) argument

Completed in 6558 milliseconds

1234567891011