Searched refs:makeSlice (Results 1 – 13 of 13) sorted by relevance
/system/netd/libnetdutils/ |
D | SliceTest.cpp | 35 Slice s1 = makeSlice(mRaw); in TEST_F() 36 Slice s2 = makeSlice(mRaw); in TEST_F() 57 Slice s1 = makeSlice(mRaw); in TEST_F() 70 makeSlice(anon); in TEST_F() 99 Slice buffer = makeSlice(mRaw); in TEST_F() 100 copy(buffer, makeSlice(origA1)); in TEST_F() 101 copy(drop(buffer, sizeof(origA1)), makeSlice(origB)); in TEST_F() 102 copy(drop(buffer, sizeof(origA1) + sizeof(origB)), makeSlice(origA2)); in TEST_F()
|
D | SyscallsTest.cpp | 168 const auto slice = makeSlice(payload); in TEST_F() 182 const auto dst = makeSlice(payload); in TEST_F()
|
D | Log.cpp | 133 mArgs.push_back('{' + toHex(makeSlice(val)) + '}'); in arg()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Slice.h | 71 inline const Slice makeSlice(const T& ref) { in makeSlice() function 78 inline const Slice makeSlice(const std::string& s) { in makeSlice() function 85 inline const Slice makeSlice(const std::vector<T>& v) { in makeSlice() function 91 inline const Slice makeSlice(const std::array<U, V>& a) { in makeSlice() function 121 return copy(makeSlice(head), src); in extract()
|
/system/netd/server/ |
D | NetlinkListener.cpp | 39 using netdutils::makeSlice; 81 expectOk(sys.write(mEvent, makeSlice(data)).status()); in ~NetlinkListener() 136 auto rx = sys.recvfrom(mSock, makeSlice(rxbuf), 0); in run()
|
D | NFLogListener.cpp | 37 using netdutils::makeSlice; 76 return send(makeSlice(msg)); in cfgCmdPfUnbind() 99 return send(makeSlice(msg)); in cfgMode() 119 return send(makeSlice(msg)); in cfgCmdBind() 139 return send(makeSlice(msg)); in cfgCmdUnbind()
|
D | XfrmControllerTest.cpp | 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() 595 Slice responseSlice = netdutils::makeSlice(response); in TEST_P() 614 Slice nlMsgSlice = netdutils::makeSlice(nlMsgBuf); in TEST_P() 645 Slice responseSlice = netdutils::makeSlice(response); in TEST_P() 665 Slice nlMsgSlice = netdutils::makeSlice(nlMsgBuf); in TEST_P() 719 Slice responseSlice = netdutils::makeSlice(response); in TEST_P() 740 Slice nlMsgSlice = netdutils::makeSlice(nlMsgBuf); in TEST_P() [all …]
|
D | Process.cpp | 46 using netdutils::makeSlice; 111 const auto rval = sys.write(pidFd, makeSlice(pid_buf)); in writePidFile()
|
D | NFLogListenerTest.cpp | 43 using netdutils::makeSlice; 92 mPacketFn(msg.nlmsg, drop(makeSlice(msg), sizeof(msg.nlmsg))); in sendEmptyMsg()
|
D | WakeupControllerTest.cpp | 130 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, uidAttr)); in TEST_F() 206 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, uidAttr)); in TEST_F() 256 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, uidAttr)); in TEST_F() 278 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, prefixAttr)); in TEST_F()
|
D | InterfaceControllerTest.cpp | 44 using netdutils::makeSlice; 82 return take(buf, copy(buf, makeSlice(data))); in expectReadFromDevRandom()
|
D | InterfaceController.cpp | 50 using android::netdutils::makeSlice; 85 RETURN_IF_NOT_OK(sys.read(fd, makeSlice(addr))); in randomIPv6Address() 228 RETURN_IF_NOT_OK(sys.write(procFd.value(), makeSlice(secret))); in enableStablePrivacyAddresses()
|
D | XfrmController.cpp | 312 getSyscallInstance().read(Fd(mSock), netdutils::makeSlice(response)); in sendMessage() 1517 netdutils::makeSlice(binaryLocalAddress)); in ipSecAddVirtualTunnelInterface() 1524 netdutils::makeSlice(binaryRemoteAddress)); in ipSecAddVirtualTunnelInterface()
|