Home
last modified time | relevance | path

Searched refs:makeSlice (Results 1 – 13 of 13) sorted by relevance

/system/netd/libnetdutils/
DSliceTest.cpp35 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()
DSyscallsTest.cpp168 const auto slice = makeSlice(payload); in TEST_F()
182 const auto dst = makeSlice(payload); in TEST_F()
DLog.cpp133 mArgs.push_back('{' + toHex(makeSlice(val)) + '}'); in arg()
/system/netd/libnetdutils/include/netdutils/
DSlice.h71 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/
DNetlinkListener.cpp39 using netdutils::makeSlice;
81 expectOk(sys.write(mEvent, makeSlice(data)).status()); in ~NetlinkListener()
136 auto rx = sys.recvfrom(mSock, makeSlice(rxbuf), 0); in run()
DNFLogListener.cpp37 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()
DXfrmControllerTest.cpp264 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 …]
DProcess.cpp46 using netdutils::makeSlice;
111 const auto rval = sys.write(pidFd, makeSlice(pid_buf)); in writePidFile()
DNFLogListenerTest.cpp43 using netdutils::makeSlice;
92 mPacketFn(msg.nlmsg, drop(makeSlice(msg), sizeof(msg.nlmsg))); in sendEmptyMsg()
DWakeupControllerTest.cpp130 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()
DInterfaceControllerTest.cpp44 using netdutils::makeSlice;
82 return take(buf, copy(buf, makeSlice(data))); in expectReadFromDevRandom()
DInterfaceController.cpp50 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()
DXfrmController.cpp312 getSyscallInstance().read(Fd(mSock), netdutils::makeSlice(response)); in sendMessage()
1517 netdutils::makeSlice(binaryLocalAddress)); in ipSecAddVirtualTunnelInterface()
1524 netdutils::makeSlice(binaryRemoteAddress)); in ipSecAddVirtualTunnelInterface()