/external/libchrome/mojo/public/cpp/system/ |
D | handle_signals_state.h | 17 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()
|
D | simple_watcher.cc | 97 HandleSignalsState state(signals_state.satisfied_signals, in Notify() 221 HandleSignalsState(blocking_event.signals_state.satisfied_signals, in Arm()
|
D | README.md | 195 if (state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE) {
|
/external/libchrome/mojo/core/ |
D | signals_unittest.cc | 38 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 …]
|
D | handle_signals_state.h | 21 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()
|
D | data_pipe_unittest.cc | 183 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 …]
|
D | quota_unittest.cc | 152 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()
|
D | core_unittest.cc | 157 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 …]
|
D | multiprocess_message_pipe_unittest.cc | 143 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 …]
|
D | message_pipe_dispatcher.cc | 366 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()
|
D | message_pipe_unittest.cc | 253 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()
|
D | data_pipe_consumer_dispatcher.cc | 479 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()
|
D | mojo_core_unittest.cc | 26 EXPECT_TRUE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST()
|
D | data_pipe_producer_dispatcher.cc | 440 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()
|
D | trap_unittest.cc | 281 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()
|
D | embedder_unittest.cc | 223 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/ |
D | core_api_unittest.cc | 89 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/ |
D | core_unittest.cc | 166 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()
|
D | wait_unittest.cc | 92 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/ |
D | types.h | 216 MojoHandleSignals satisfied_signals; member
|
D | README.md | 606 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/ |
D | handle_passing_unittest.cc | 118 ASSERT_TRUE(state.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in DoStuff2()
|