Home
last modified time | relevance | path

Searched refs:os_ (Results 1 – 8 of 8) sorted by relevance

/system/tools/aidl/
Dlogging.h34 : os_(std::cerr), fatal_(fatal), location_(location) { in AidlErrorLog()
37 os_ << "ERROR: "; in AidlErrorLog()
38 os_ << location << ": "; in AidlErrorLog()
48 os_ << std::endl; in ~AidlErrorLog()
51 os_ << "Logging an internal location should not happen. Offending location: " << location_ in ~AidlErrorLog()
63 std::ostream& os_; variable
82 #define AIDL_ERROR(CONTEXT) ::AidlErrorLog(false /*fatal*/, (CONTEXT)).os_
84 (::AidlAbortOnDestruction(), ::AidlErrorLog(true /*fatal*/, (CONTEXT)).os_)
/system/connectivity/wifilogd/tests/
Dmain_loop_unittest.cpp47 : os_(new StrictMock<MockOs>()), in MainLoopTest()
49 EXPECT_CALL(*os_, GetControlSocket(kFakeSocketName)) in MainLoopTest()
52 kFakeSocketName, std::unique_ptr<Os>{os_}, in MainLoopTest()
60 StrictMock<MockOs>* os_; member in android::wifilogd::__anon0ad6bc950111::MainLoopTest
67 EXPECT_CALL(*os_, ReceiveDatagram(kControlSocketFd, _, _)); in TEST_F()
73 EXPECT_CALL(*os_, ReceiveDatagram(_, _, Ge(protocol::kMaxMessageSize))); in TEST_F()
79 EXPECT_CALL(*os_, ReceiveDatagram(_, _, _)) in TEST_F()
88 EXPECT_CALL(*os_, ReceiveDatagram(_, _, _)) in TEST_F()
97 EXPECT_CALL(*os_, ReceiveDatagram(_, _, _)) in TEST_F()
104 EXPECT_CALL(*os_, ReceiveDatagram(_, _, _)) in TEST_F()
[all …]
Dcommand_processor_unittest.cpp69 os_ = new StrictMock<MockOs>(); in CommandProcessorTest()
71 ON_CALL(*os_, Write(_, _, _)) in CommandProcessorTest()
78 new CommandProcessor(kBufferSizeBytes, std::unique_ptr<Os>(os_))); in CommandProcessorTest()
133 EXPECT_CALL(*os_, GetTimestamp(CLOCK_MONOTONIC)); in SendAsciiMessageWithAdjustments()
134 EXPECT_CALL(*os_, GetTimestamp(CLOCK_BOOTTIME)); in SendAsciiMessageWithAdjustments()
135 EXPECT_CALL(*os_, GetTimestamp(CLOCK_REALTIME)); in SendAsciiMessageWithAdjustments()
158 StrictMock<MockOs>* os_; member in android::wifilogd::__anon1e14bfb50111::CommandProcessorTest
247 EXPECT_CALL(*os_, GetTimestamp(CLOCK_MONOTONIC)) in TEST_F()
249 EXPECT_CALL(*os_, GetTimestamp(CLOCK_BOOTTIME)) in TEST_F()
251 EXPECT_CALL(*os_, GetTimestamp(CLOCK_REALTIME)) in TEST_F()
[all …]
Dos_unittest.cpp61 os_ = std::unique_ptr<Os>(new Os(std::unique_ptr<RawOs>(raw_os_))); in OsTest()
65 std::unique_ptr<Os> os_; member in android::wifilogd::__anonf5a4f0f90111::OsTest
103 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F()
113 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F()
123 const Os::Timestamp received = os_->GetTimestamp(CLOCK_REALTIME); in TEST_F()
132 os_->Nanosleep(kSleepTimeNsec); in TEST_F()
138 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
143 os_->Nanosleep(0); in TEST_F()
149 os_->Nanosleep(Os::kMaxNanos + 1); in TEST_F()
161 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
[all …]
/system/connectivity/wifilogd/
Dmain_loop.cpp43 : os_(std::move(os)), command_processor_(std::move(command_processor)) { in MainLoop()
45 std::tie(sock_fd_, err) = os_->GetControlSocket(socket_name); in MainLoop()
56 os_->ReceiveDatagram(sock_fd_, input_buf.data(), input_buf.size()); in RunOnce()
76 os_->Nanosleep(kTransientErrorSleepTimeNsec); in ProcessError()
Dcommand_processor.cpp125 : current_log_buffer_(buffer_size_bytes), os_(new Os()) {} in CommandProcessor()
129 : current_log_buffer_(buffer_size_bytes), os_(std::move(os)) {} in CommandProcessor()
191 .set_since_boot_awake_only(os_->GetTimestamp(CLOCK_MONOTONIC)) in CopyCommandToLog()
192 .set_since_boot_with_sleep(os_->GetTimestamp(CLOCK_BOOTTIME)) in CopyCommandToLog()
193 .set_since_epoch(os_->GetTimestamp(CLOCK_REALTIME)); in CopyCommandToLog()
238 os_->Write(dump_fd, output_string.data(), output_string.size()); in Dump()
Dmain_loop.h44 std::unique_ptr<Os> os_; variable
Dcommand_processor.h86 const std::unique_ptr<Os> os_; variable