Searched refs:GetMaxVal (Results 1 – 7 of 7) sorted by relevance
/system/connectivity/wifilogd/tests/ |
D | local_utils_unittest.cpp | 30 using local_utils::GetMaxVal; 61 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal<uint8_t>()); in TEST() 62 EXPECT_EQ(std::numeric_limits<uint16_t>::max(), GetMaxVal<uint16_t>()); in TEST() 63 EXPECT_EQ(std::numeric_limits<uint32_t>::max(), GetMaxVal<uint32_t>()); in TEST() 64 EXPECT_EQ(std::numeric_limits<uint64_t>::max(), GetMaxVal<uint64_t>()); in TEST() 68 EXPECT_EQ(std::numeric_limits<int8_t>::max(), GetMaxVal<int8_t>()); in TEST() 69 EXPECT_EQ(std::numeric_limits<int16_t>::max(), GetMaxVal<int16_t>()); in TEST() 70 EXPECT_EQ(std::numeric_limits<int32_t>::max(), GetMaxVal<int32_t>()); in TEST() 71 EXPECT_EQ(std::numeric_limits<int64_t>::max(), GetMaxVal<int64_t>()); in TEST() 75 EXPECT_EQ(std::numeric_limits<uint8_t>::max(), GetMaxVal(uint8_t{})); in TEST() [all …]
|
D | command_processor_unittest.cpp | 53 using local_utils::GetMaxVal; 95 GetMaxVal<decltype(protocol::AsciiMessage::tag_len)>())) in BuildAsciiMessageCommandWithAdjustments() 98 GetMaxVal<decltype(protocol::AsciiMessage::data_len)>())) in BuildAsciiMessageCommandWithAdjustments() 111 GetMaxVal<decltype(protocol::Command::payload_len)>())); in BuildAsciiMessageCommandWithAdjustments() 221 constexpr auto invalid_opcode = GetMaxVal<opcode_integral_t>(); in TEST_F()
|
D | memory_reader_unittest.cpp | 28 using local_utils::GetMaxVal; 95 } second_message{0, GetMaxVal(second_message.b)}; in TEST()
|
D | os_unittest.cpp | 55 using local_utils::GetMaxVal; 335 os_->ReceiveDatagram(kFakeFd, buffer.data(), GetMaxVal<size_t>()), in TEST_F() 342 EXPECT_DEATH(os_->Write(kFakeFd, buffer.data(), GetMaxVal<size_t>()), in TEST_F()
|
/system/connectivity/wifilogd/ |
D | os.cpp | 30 using local_utils::GetMaxVal; 66 std::min(static_cast<uintmax_t>(GetMaxVal(now_timestamp.secs)), in GetTimestamp() 67 static_cast<uintmax_t>(GetMaxVal(now_timespec.tv_sec)))); in GetTimestamp() 98 CHECK(buflen <= GetMaxVal<ssize_t>()); in ReceiveDatagram() 117 CHECK(buflen <= GetMaxVal<ssize_t>()); in Write() 126 GetMaxVal<ssize_t>())); // Abort on buffer overflow. in Write()
|
D | local_utils.h | 88 constexpr T GetMaxVal() { in GetMaxVal() function 99 constexpr T GetMaxVal(const T& /* t_instance */) { in GetMaxVal() function 100 return GetMaxVal<T>(); in GetMaxVal()
|
D | command_processor.cpp | 40 using local_utils::GetMaxVal; 173 static_assert(GetMaxVal(total_size) > sizeof(TimestampHeader) && in CopyCommandToLog() 174 GetMaxVal(total_size) - sizeof(TimestampHeader) >= in CopyCommandToLog() 200 SAFELY_CLAMP(message_buf.size(), uint16_t, 0, GetMaxVal<uint16_t>())); in CopyCommandToLog()
|