Home
last modified time | relevance | path

Searched refs:satisfied_signals (Results 1 – 22 of 22) sorted by relevance

/external/libchrome/mojo/public/cpp/system/
Dhandle_signals_state.h17 satisfied_signals = MOJO_HANDLE_SIGNAL_NONE; in HandleSignalsState()
23 satisfied_signals = satisfied; in HandleSignalsState()
28 return satisfied_signals == other.satisfied_signals &&
34 return satisfied_signals == other.satisfied_signals && in equals()
39 return !!(satisfied_signals & signals); in satisfies_any()
43 return (satisfied_signals & signals) == signals; in satisfies_all()
Dsimple_watcher.cc97 HandleSignalsState state(signals_state.satisfied_signals, in Notify()
221 HandleSignalsState(blocking_event.signals_state.satisfied_signals, in Arm()
DREADME.md195 if (state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE) {
/external/libchrome/mojo/core/
Dsignals_unittest.cc38 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST_F()
46 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST_F()
58 state.satisfied_signals); in TEST_F()
68 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST_F()
80 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST_F()
93 EXPECT_FALSE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
97 EXPECT_FALSE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
101 EXPECT_FALSE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
105 EXPECT_FALSE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
118 EXPECT_FALSE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
[all …]
Dhandle_signals_state.h21 satisfied_signals = MOJO_HANDLE_SIGNAL_NONE; in HandleSignalsState()
27 satisfied_signals = satisfied; in HandleSignalsState()
32 return satisfied_signals == other.satisfied_signals &&
38 return satisfied_signals == other.satisfied_signals && in equals()
43 return !!(satisfied_signals & signals); in satisfies_any()
47 return (satisfied_signals & signals) == signals; in satisfies_all()
Ddata_pipe_unittest.cc183 state.satisfied_signals); in TEST_F()
267 hss.satisfied_signals); in TEST_F()
355 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss.satisfied_signals); in TEST_F()
370 hss.satisfied_signals); in TEST_F()
429 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
450 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
471 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
489 EXPECT_EQ(0u, hss.satisfied_signals); in TEST_F()
505 hss.satisfied_signals); in TEST_F()
520 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE, hss.satisfied_signals); in TEST_F()
[all …]
Dquota_unittest.cc152 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
167 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
174 EXPECT_TRUE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
188 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
211 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
226 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
233 EXPECT_TRUE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
247 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
289 EXPECT_FALSE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
297 EXPECT_TRUE(signals.satisfied_signals & MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED); in TEST_F()
Dcore_unittest.cc157 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss[0].satisfied_signals); in TEST_F()
159 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss[1].satisfied_signals); in TEST_F()
192 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss[0].satisfied_signals); in TEST_F()
212 hss[1].satisfied_signals); in TEST_F()
217 hss[1].satisfied_signals); in TEST_F()
227 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss[1].satisfied_signals); in TEST_F()
261 hss.satisfied_signals); in TEST_F()
291 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss.satisfied_signals); in TEST_F()
299 EXPECT_EQ(0u, hss.satisfied_signals); in TEST_F()
320 hss.satisfied_signals); in TEST_F()
[all …]
Dmultiprocess_message_pipe_unittest.cc143 CHECK_EQ(hss.satisfied_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
147 CHECK((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in DEFINE_TEST_CLIENT_WITH_PIPE()
188 EXPECT_TRUE((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P()
227 ASSERT_TRUE((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P()
251 ASSERT_FALSE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_P()
266 CHECK(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_WITH_PIPE()
267 CHECK(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_WRITABLE); in DEFINE_TEST_CLIENT_WITH_PIPE()
302 CHECK(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_WITH_PIPE()
303 CHECK(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_WRITABLE); in DEFINE_TEST_CLIENT_WITH_PIPE()
360 EXPECT_TRUE((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F()
[all …]
Dmessage_pipe_dispatcher.cc366 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock()
372 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_WRITABLE; in GetHandleSignalsStateNoLock()
377 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_REMOTE; in GetHandleSignalsStateNoLock()
379 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
383 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED; in GetHandleSignalsStateNoLock()
386 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED; in GetHandleSignalsStateNoLock()
Dmessage_pipe_unittest.cc253 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, hss.satisfied_signals); in TEST_F()
265 hss.satisfied_signals); in TEST_F()
272 hss.satisfied_signals); in TEST_F()
283 ASSERT_TRUE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
291 ASSERT_FALSE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_WRITABLE); in TEST_F()
298 ASSERT_TRUE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_F()
311 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
Ddata_pipe_consumer_dispatcher.cc479 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock()
481 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE; in GetHandleSignalsStateNoLock()
494 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
498 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_REMOTE; in GetHandleSignalsStateNoLock()
Dmojo_core_unittest.cc26 EXPECT_TRUE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST()
Ddata_pipe_producer_dispatcher.cc440 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_WRITABLE; in GetHandleSignalsStateNoLock()
442 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_REMOTE; in GetHandleSignalsStateNoLock()
446 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
Dtrap_unittest.cc281 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
477 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
487 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
504 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
724 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
757 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
838 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
848 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
850 EXPECT_TRUE(blocking_events[1].signals_state.satisfied_signals & in TEST_F()
882 EXPECT_TRUE(blocking_events[0].signals_state.satisfied_signals & in TEST_F()
Dembedder_unittest.cc223 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST_F()
267 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
/external/libchrome/mojo/public/c/system/tests/
Dcore_api_unittest.cc89 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST()
112 EXPECT_EQ(kSignalReadadableWritable, states[0].satisfied_signals); in TEST()
126 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST()
142 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
166 EXPECT_EQ(MOJO_HANDLE_SIGNAL_NONE, state.satisfied_signals); in TEST()
174 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST()
205 states[0].satisfied_signals); in TEST()
234 state.satisfied_signals); in TEST()
251 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
/external/libchrome/mojo/public/cpp/system/tests/
Dcore_unittest.cc166 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); in TEST()
182 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, states[0].satisfied_signals); in TEST()
184 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, states[1].satisfied_signals); in TEST()
198 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
221 EXPECT_EQ(kSignalReadableWritable, state.satisfied_signals); in TEST()
256 EXPECT_EQ(kSignalReadableWritable, state.satisfied_signals); in TEST()
273 EXPECT_EQ(kSignalReadableWritable, state.satisfied_signals); in TEST()
Dwait_unittest.cc92 c_hss.satisfied_signals); in TEST_F()
198 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, c_hss[0].satisfied_signals); in TEST_F()
200 c_hss[1].satisfied_signals); in TEST_F()
/external/libchrome/mojo/public/c/system/
Dtypes.h216 MojoHandleSignals satisfied_signals; member
DREADME.md606 The `MojoHandleSignalsState` structure exposes two fields: `satisfied_signals`
611 The `satisfied_signals` bitmask indicates signals which were satisfied on the
617 (satisfied_signals | satisfiable_signals) == satisfiable_signals
630 | `satisfied_signals` | `MOJO_HANDLE_SIGNAL_WRITABLE`
639 | `satisfied_signals` | `MOJO_HANDLE_SIGNAL_READABLE + MOJO_HANDLE_SIGNAL_PEER_CLOSED`
650 | `satisfied_signals` | `MOJO_HANDLE_SIGNAL_PEER_CLOSED`
/external/libchrome/mojo/public/cpp/bindings/tests/
Dhandle_passing_unittest.cc118 ASSERT_TRUE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in DoStuff2()