Home
last modified time | relevance | path

Searched refs:optLen (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DSyscallsTest.cpp115 socklen_t optLen = 0; in TEST_F() local
119 EXPECT_CALL(mSyscalls, getsockopt(kFd, kLevel, kOptname, &expected, &optLen)) in TEST_F()
121 EXPECT_EQ(status::ok, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
125 EXPECT_CALL(mSyscalls, getsockopt(kFd, kLevel, kOptname, &expected, &optLen)) in TEST_F()
127 EXPECT_EQ(kError, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
/packages/modules/Bluetooth/tools/rootcanal/net/posix/
Dposix_async_socket_connector.cc107 socklen_t optLen = sizeof(err); in ConnectToRemoteServer() local
109 &optLen) || in ConnectToRemoteServer()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNduseroptMessageTest.java238 final int optLen = MSG_PREF64.length() / 2; // 1 byte = 2 hex chars in testTruncation() local
239 for (int len = 0; len < optLen; len++) { in testTruncation()
242 if (len < optLen) { in testTruncation()
/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java671 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString() local
672 if (optLen < 24) return; // Malformed or empty. in rdnssOptionToString()
674 int numServers = (optLen - 8) / 16; in rdnssOptionToString()
683 int optLen = getUint8(mPacket, offset + 1) * 8; in rioOptionToString() local
684 if (optLen < 8 || optLen > 24) return; // Malformed or empty. in rioOptionToString()
692 System.arraycopy(mPacket.array(), offset + 8, prefix, 0, optLen - 8); in rioOptionToString()
DApfFilter.java774 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString() local
775 if (optLen < 24) return; // Malformed or empty. in rdnssOptionToString()
777 int numServers = (optLen - 8) / 16; in rdnssOptionToString()
786 int optLen = getUint8(mPacket, offset + 1) * 8; in rioOptionToString() local
787 if (optLen < 8 || optLen > 24) return; // Malformed or empty. in rioOptionToString()
795 System.arraycopy(mPacket.array(), offset + 8, prefix, 0, optLen - 8); in rioOptionToString()