Searched defs:loop (Results 1 - 19 of 19) sorted by relevance

/system/extras/simpleperf/runtest/
H A Dfunction_recursive.cpp3 void FunctionRecursive(int loop) { argument
6 if (loop > 0) {
7 FunctionRecursive(loop - 1);
H A Dfunction_indirect_recursive.cpp3 void FunctionRecursiveTwo(int loop);
5 void FunctionRecursiveOne(int loop) { argument
8 if (loop >= 0) {
9 FunctionRecursiveTwo(loop);
13 void FunctionRecursiveTwo(int loop) { argument
16 if (loop > 0) {
17 FunctionRecursiveOne(loop - 1);
/system/extras/simpleperf/
H A Dworkload_test.cpp26 IOEventLoop loop; local
27 ASSERT_TRUE(loop.AddSignalEvent(SIGCHLD, [&]() {
28 return loop.ExitLoop();
34 ASSERT_TRUE(loop.RunLoop());
45 IOEventLoop loop; local
46 ASSERT_TRUE(loop.AddSignalEvent(SIGCHLD, [&]() {
47 return loop.ExitLoop();
53 ASSERT_TRUE(loop.RunLoop());
66 IOEventLoop loop; local
67 ASSERT_TRUE(loop
[all...]
H A DIOEventLoop_test.cpp28 IOEventLoop loop; local
31 ASSERT_NE(nullptr, loop.AddReadEvent(fd[0], [&]() {
37 return loop.ExitLoop();
55 ASSERT_TRUE(loop.RunLoop());
67 IOEventLoop loop; local
69 ASSERT_NE(nullptr, loop.AddWriteEvent(fd[1], [&]() {
76 loop.ExitLoop();
92 ASSERT_TRUE(loop.RunLoop());
101 IOEventLoop loop; local
103 ASSERT_TRUE(loop
127 IOEventLoop loop; local
160 IOEventLoop loop; local
185 IOEventLoop loop; local
[all...]
H A DUnixSocket_test.cpp83 IOEventLoop loop; local
95 auto close_connection_callback = [&]() { return loop.ExitLoop(); };
96 ASSERT_TRUE(client->PrepareForIO(loop, receive_message_callback,
98 ASSERT_TRUE(loop.RunLoop());
112 IOEventLoop loop; local
129 auto close_connection_callback = [&]() { return loop.ExitLoop(); };
130 ASSERT_TRUE(conn->PrepareForIO(loop, receive_message_callback,
136 ASSERT_TRUE(loop.RunLoop());
146 IOEventLoop loop; local
154 auto close_connection_callback = [&]() { return loop
181 IOEventLoop loop; local
[all...]
H A DIOEventLoop.cpp25 IOEventLoop* loop; member in struct:IOEvent
30 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback) argument
31 : loop(loop), e(nullptr), callback(callback), enabled(false) {}
78 e->loop->has_error_ = true;
79 e->loop->ExitLoop();
191 IOEventLoop* loop = ref->loop; local
192 for (auto it = loop->events_.begin(); it != loop
[all...]
H A DInplaceSamplerClient.cpp70 bool InplaceSamplerClient::StartPolling(IOEventLoop& loop, argument
78 if (!conn_->PrepareForIO(loop, read_callback, close_callback)) {
95 return loop.AddPeriodicEvent(tv, check_reply_callback);
125 bool InplaceSamplerClient::StopProfiling(IOEventLoop& loop, argument
130 if (!conn_->PrepareForIO(loop, read_callback, close_callback)) {
H A DUnixSocket.cpp106 IOEventLoop& loop, const std::function<bool(const UnixSocketMessage&)>&
111 read_event_ = loop.AddReadEvent(fd_, [&]() { return ReadData(); });
116 write_event_ = loop.AddWriteEvent(fd_, [&]() { return WriteData(); });
105 PrepareForIO( IOEventLoop& loop, const std::function<bool(const UnixSocketMessage&)>& receive_message_callback, const std::function<bool()>& close_connection_callback) argument
H A Devent_fd.cpp275 bool EventFd::StartPolling(IOEventLoop& loop, argument
277 ioevent_ref_ = loop.AddReadEvent(perf_event_fd_, callback);
H A Dcmd_stat.cpp419 IOEventLoop* loop = event_selection_set_.GetIOEventLoop(); local
421 if (!loop->UsePreciseTimer()) {
435 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM, SIGHUP},
436 [&]() { return loop->ExitLoop(); })) {
440 if (!loop->AddPeriodicEvent(SecondToTimeval(duration_in_sec_),
441 [&]() { return loop->ExitLoop(); })) {
461 if (!loop->AddPeriodicEvent(SecondToTimeval(interval_in_ms_ / 1000.0),
472 if (!loop->RunLoop()) {
H A Dcmd_record.cpp431 IOEventLoop* loop = event_selection_set_.GetIOEventLoop(); local
432 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM},
433 [loop]() { return loop->ExitLoop(); })) {
439 if (!loop->AddSignalEvent(SIGHUP, [loop]() { return loop->ExitLoop(); })) {
445 if (!loop->AddPeriodicEvent(SecondToTimeval(duration_in_sec_),
446 [loop]() { return loop
[all...]
H A Denvironment.cpp633 IOEventLoop loop; local
635 if (!loop.AddSignalEvents({SIGINT, SIGTERM, SIGHUP},
636 [&]() { need_to_kill_child = true; return loop.ExitLoop(); })) {
639 if (!loop.AddSignalEvent(SIGCHLD, [&]() { return loop.ExitLoop(); })) {
647 if (!loop.RunLoop()) {
/system/core/libappfuse/tests/
H A DFuseAppLoopTest.cc43 FuseAppLoop* loop; member in class:android::fuse::__anon1653::Callback
47 EXPECT_TRUE(loop->ReplyGetAttr(seq, inode, kTestFileSize, S_IFREG | 0777));
52 EXPECT_TRUE(loop->ReplyLookup(unique, inode, kTestFileSize));
57 loop->ReplySimple(seq, 0);
63 loop->ReplyWrite(seq, 0);
69 loop->ReplySimple(seq, 0);
74 loop->ReplyOpen(seq, inode);
79 loop->ReplySimple(seq, 0);
96 callback_.loop = loop_.get();
286 // Ensure that the loop starte
[all...]
/system/core/libappfuse/
H A DFuseAppLoop.cc32 bool HandleLookUp(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { argument
37 return loop->ReplySimple(buffer->request.header.unique, -ENOENT);
44 return loop->ReplySimple(buffer->request.header.unique, -ENOENT);
50 return loop->ReplySimple(buffer->request.header.unique, -ENOENT);
57 bool HandleGetAttr(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { argument
59 return loop->ReplyGetAttr(buffer->request.header.unique, buffer->request.header.nodeid, 0,
67 bool HandleRead(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { argument
69 return loop->ReplySimple(buffer->request.header.unique, -EINVAL);
77 bool HandleWrite(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { argument
79 return loop
88 HandleMessage(FuseAppLoop* loop, FuseBuffer* buffer, int fd, FuseAppLoopCallback* callback) argument
[all...]
/system/update_engine/
H A Dsideload_main.cc144 brillo::BaseMessageLoop loop; local
145 loop.SetAsCurrent();
180 loop.Run();
/system/core/libpixelflinger/codeflinger/
H A Ddisassem.c577 int loop; local
585 for (loop = 0; loop < 17; ++loop) {
587 if (loop == 16 || !(insn & (1 << loop))) {
592 if (start == loop - 1)
595 di->di_printf("r%d-r%d", start, loop - 1);
599 if (insn & (1 << loop))
600 start = loop;
[all...]
/system/netd/server/dns/
H A DDnsTlsSocket.cpp178 // Start the I/O loop.
179 mLoopThread.reset(new std::thread(&DnsTlsSocket::loop, this));
342 void DnsTlsSocket::loop() { function in class:android::net::DnsTlsSocket
407 ALOGV("Ending loop");
412 // This will trigger an orderly shutdown in loop().
423 ALOGV("Waiting for loop thread to terminate");
/system/tpm/attestation/client/
H A Dmain.cc92 // The Daemon class works well as a client loop as well.
481 attestation::ClientLoop loop; local
482 return loop.Run();
/system/tpm/tpm_manager/client/
H A Dmain.cc208 // Posts tasks on to the message loop based on command line flags.
512 tpm_manager::ClientLoop loop; local
513 return loop.Run();

Completed in 438 milliseconds