/system/netd/libnetdutils/include/netdutils/ |
D | Slice.h | 40 class Slice { 42 Slice() = default; 45 Slice(void* base, void* limit) : mBase(toUint8(base)), mLimit(toUint8(limit)) {} in Slice() function 48 Slice(void* base, size_t size) : Slice(base, toUint8(base) + size) {} in Slice() function 71 inline const Slice makeSlice(const T& ref) { in makeSlice() 78 inline const Slice makeSlice(const std::string& s) { in makeSlice() 85 inline const Slice makeSlice(const std::vector<T>& v) { in makeSlice() 91 inline const Slice makeSlice(const std::array<U, V>& a) { in makeSlice() 96 inline std::pair<const Slice, const Slice> split(const Slice s, size_t cut) { in split() 102 inline const Slice take(const Slice s, size_t cut) { in take() [all …]
|
D | Netlink.h | 34 void forEachNetlinkMessage(const Slice buf, 35 const std::function<void(const nlmsghdr&, const Slice)>& onMsg); 42 void forEachNetlinkAttribute(const Slice buf, 43 const std::function<void(const nlattr&, const Slice)>& onAttr);
|
D | MemBlock.h | 39 explicit MemBlock(Slice src) : MemBlock(src.size()) { in MemBlock() 53 Slice get() const noexcept { return Slice(mData.get(), mLen); } in get() 57 operator const Slice() const noexcept { return get(); } in Slice() function
|
D | Syscalls.h | 70 virtual StatusOr<size_t> write(Fd fd, const Slice buf) const = 0; 72 virtual StatusOr<Slice> read(Fd fd, const Slice buf) const = 0; 74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, 77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, 162 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { in sendto() 167 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom() 172 StatusOr<std::pair<Slice, SockaddrT>> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
|
D | MockSyscalls.h | 54 MOCK_CONST_METHOD2(write, StatusOr<size_t>(Fd fd, const Slice buf)); 55 MOCK_CONST_METHOD2(read, StatusOr<Slice>(Fd fd, const Slice buf)); 56 MOCK_CONST_METHOD5(sendto, StatusOr<size_t>(Fd sock, const Slice buf, int flags, 58 MOCK_CONST_METHOD5(recvfrom, StatusOr<Slice>(Fd sock, const Slice dst, int flags, sockaddr* src,
|
/system/netd/libnetdutils/ |
D | SliceTest.cpp | 35 Slice s1 = makeSlice(mRaw); in TEST_F() 36 Slice s2 = makeSlice(mRaw); in TEST_F() 40 ss << Slice(); in TEST_F() 57 Slice s1 = makeSlice(mRaw); in TEST_F() 58 Slice s2(s1); in TEST_F() 59 Slice s3 = s2; in TEST_F() 60 const Slice s4(s3); in TEST_F() 61 const Slice s5 = s4; in TEST_F() 63 Slice s6(mRaw.data(), mRaw.size()); in TEST_F() 64 Slice s7(mRaw.data(), mRaw.data() + mRaw.size()); in TEST_F() [all …]
|
D | MemBlockTest.cpp | 37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) { in makeArbitraryMemBlock() 43 void checkAllZeros(Slice slice) { in checkAllZeros() 50 Slice slice = block.get(); in checkArbitraryMemBlock() 58 void checkHelloMello(Slice dest, Slice src) { in checkHelloMello() 85 Slice slice = dnsPacket.get(); in TEST() 127 Slice dataSlice(Slice(data, sizeof(data) / sizeof(data[0]))); in TEST() 135 Slice dataSlice(Slice(data, sizeof(data) / sizeof(data[0]))); in TEST()
|
D | Netlink.cpp | 26 void forEachNetlinkMessage(const Slice buf, in forEachNetlinkMessage() 27 const std::function<void(const nlmsghdr&, const Slice)>& onMsg) { in forEachNetlinkMessage() 28 Slice tail = buf; in forEachNetlinkMessage() 38 void forEachNetlinkAttribute(const Slice buf, in forEachNetlinkAttribute() 39 const std::function<void(const nlattr&, const Slice)>& onAttr) { in forEachNetlinkAttribute() 40 Slice tail = buf; in forEachNetlinkAttribute()
|
D | Slice.cpp | 34 std::string toString(const Slice s) { in toString() 38 std::string toHex(const Slice s, int wrap) { in toHex() 39 Slice tail = s; in toHex() 54 std::ostream& operator<<(std::ostream& os, const Slice& slice) { in operator <<()
|
D | Syscalls.cpp | 137 StatusOr<size_t> write(Fd fd, const Slice buf) const override { in write() 145 StatusOr<Slice> read(Fd fd, const Slice buf) const override { in read() 150 return Slice(buf.base(), rv); in read() 153 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, in sendto() 162 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, in recvfrom()
|
D | Android.bp | 10 "Slice.cpp",
|
D | SyscallsTest.cpp | 190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F() argument
|
/system/netd/server/ |
D | NFLogListenerTest.cpp | 41 using netdutils::Slice; 53 MOCK_METHOD1(send, netdutils::Status(const Slice msg)); 75 static StatusOr<size_t> sendOk(const Slice buf) { return buf.size(); } in sendOk() 104 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) {}; in TEST_F() argument 110 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) {}; in TEST_F() argument 119 const Slice) { in TEST_F() argument 131 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const Slice) { in TEST_F() argument
|
D | NFLogListener.cpp | 38 using netdutils::Slice; 52 const nfgenmsg& nfmsg, const Slice msg) { in __anone8b324600202() 58 using SendFn = std::function<Status(const Slice msg)>; 147 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice msg) { in NFLogListener() 157 const auto rxDoneHandler = [](const nlmsghdr&, const Slice msg) { in NFLogListener() 169 const auto sendFn = [this](const Slice msg) { return mListener->send(msg); }; in ~NFLogListener() 181 const auto sendFn = [this](const Slice msg) { return mListener->send(msg); }; in subscribe() 195 const auto sendFn = [this](const Slice msg) { return mListener->send(msg); }; in unsubscribe() 218 const auto sendFn = [&listener](const Slice msg) { return listener->send(msg); }; in makeNFLogListener()
|
D | NetlinkListener.cpp | 34 using netdutils::Slice; 52 const NetlinkListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, const Slice) { in __anon58b9c2bf0202() argument 62 const auto rxErrorHandler = [](const nlmsghdr& nlmsg, const Slice msg) { in NetlinkListener() 85 Status NetlinkListener::send(const Slice msg) { in send() 113 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice& buf) { in run()
|
D | NetlinkListener.h | 36 using DispatchFn = std::function<void(const nlmsghdr& nlmsg, const netdutils::Slice msg)>; 43 virtual netdutils::Status send(const netdutils::Slice msg) = 0; 82 netdutils::Status send(const netdutils::Slice msg) override;
|
D | XfrmControllerTest.cpp | 59 using android::netdutils::Slice; 76 Slice orig = ::testing::get<N>(args); in ACTION_TEMPLATE() 264 Slice responseSlice = netdutils::makeSlice(response); in TEST_P() 285 Slice nlMsgSlice = netdutils::makeSlice(nlMsgBuf); in TEST_P() 322 Slice responseSlice = netdutils::makeSlice(response); in testIpSecAddSecurityAssociation() 366 Slice nlMsgSlice = netdutils::makeSlice(nlMsgBuf); in testIpSecAddSecurityAssociation() 389 Slice attr_buf = drop(nlMsgSlice, NLA_ALIGN(sizeof(xfrm_usersa_info))); in testIpSecAddSecurityAssociation() 398 const nlattr& attr, const Slice& attr_payload) { in testIpSecAddSecurityAssociation() 399 Slice buf = attr_payload; in testIpSecAddSecurityAssociation() 570 XfrmController::nlattr_xfrm_interface_id* xfrm_if_id, Slice attr_buf) { in parseTunnelNetlinkAttrs() [all …]
|
D | WakeupController.cpp | 45 using netdutils::Slice; 53 static void extractIpPorts(WakeupController::ReportArgs& args, Slice payload) { in extractIpPorts() 78 static void extractIpHeader(WakeupController::ReportArgs& args, Slice payload) { in extractIpHeader() 122 const auto msgHandler = [this](const nlmsghdr&, const nfgenmsg&, const Slice msg) { in init() 135 const auto attrHandler = [&args, &parseAgain](const nlattr attr, const Slice payload) { in init()
|
D | InterfaceControllerTest.cpp | 40 using netdutils::Slice; 80 EXPECT_CALL(mSyscalls, read(kDevRandomFd, _)).WillOnce(Invoke([data](Fd, const Slice buf) { in expectReadFromDevRandom() 102 .WillOnce(Invoke([val, err](Fd, const Slice buf) -> StatusOr<size_t> { in expectWriteToFile()
|
D | NFLogListener.h | 32 const netdutils::Slice msg)>;
|
D | TrafficController.cpp | 65 using netdutils::Slice; 281 const auto rxHandler = [this](const nlmsghdr&, const Slice msg) { in start() 301 const auto rxDoneHandler = [](const nlmsghdr&, const Slice msg) { in start()
|
D | XfrmController.cpp | 74 using android::netdutils::Slice; 194 Slice ipAddress) { in fillNlAttrIpAddress() 311 StatusOr<Slice> readResult = in sendMessage()
|
/system/bt/gd/packet/ |
D | packet_view_unittest.cc | 402 PacketView<true> Slice(size_t header, size_t tail) { in Slice() function in bluetooth::packet::SubviewBaseTest::SubPacketView 420 auto single_slice = single_view.Slice(header, tail); in TEST_P() 421 auto multi_slice = multi_view.Slice(header, tail); in TEST_P() 461 ASSERT_DEATH(auto single_slice = single_view.Slice(header, tail), ""); in TEST_P() 462 ASSERT_DEATH(auto multi_slice = multi_view.Slice(header, tail), ""); in TEST_P()
|
/system/media/audio_utils/ |
D | Doxyfile | 290 # Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice 303 # Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
|