/system/connectivity/wifilogd/tests/ |
D | main_loop_unittest.cpp | 47 : 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::__anona2ae2bfe0111::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 …]
|
D | command_processor_unittest.cpp | 69 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::__anon58f5881e0111::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 …]
|
D | os_unittest.cpp | 60 os_ = std::unique_ptr<Os>(new Os(std::unique_ptr<RawOs>(raw_os_))); in OsTest() 64 std::unique_ptr<Os> os_; member in android::wifilogd::__anonf09ed4820111::OsTest 102 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F() 112 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F() 122 const Os::Timestamp received = os_->GetTimestamp(CLOCK_REALTIME); in TEST_F() 131 os_->Nanosleep(kSleepTimeNsec); in TEST_F() 137 os_->Nanosleep(Os::kMaxNanos); in TEST_F() 142 os_->Nanosleep(0); in TEST_F() 148 os_->Nanosleep(Os::kMaxNanos + 1); in TEST_F() 160 os_->Nanosleep(Os::kMaxNanos); in TEST_F() [all …]
|
/system/connectivity/wifilogd/ |
D | main_loop.cpp | 43 : 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()
|
D | command_processor.cpp | 125 : 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()
|
D | main_loop.h | 44 std::unique_ptr<Os> os_; variable
|
D | command_processor.h | 86 const std::unique_ptr<Os> os_; variable
|
/system/tools/aidl/ |
D | aidl_language.h | 99 AidlError(bool fatal, const std::string& filename) : AidlError(fatal) { os_ << filename << ": "; } in AidlError() 101 os_ << location << ": "; in AidlError() 109 os_ << std::endl; in ~AidlError() 113 std::ostream& os_; variable 123 #define AIDL_ERROR(CONTEXT) ::AidlError(false /*fatal*/, (CONTEXT)).os_ 124 #define AIDL_FATAL(CONTEXT) ::AidlError(true /*fatal*/, (CONTEXT)).os_
|
D | aidl_language.cpp | 73 AidlError::AidlError(bool fatal) : os_(std::cerr), fatal_(fatal) { in AidlError() 74 os_ << "ERROR: "; in AidlError()
|