/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | IpUtils.java | 48 public static int checksum(ByteBuffer buf, int seed, int start, int end) { in checksum() 84 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4() 94 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv6() 102 private static byte ipversion(ByteBuffer buf, int headerOffset) { in ipversion() 106 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() 111 private static short transportChecksum(ByteBuffer buf, int protocol, in transportChecksum() 136 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { in udpChecksum() 144 public static short tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, in tcpChecksum() 152 public static short icmpChecksum(ByteBuffer buf, int transportOffset, int transportLen) { in icmpChecksum() 160 public static short icmpv6Checksum(ByteBuffer buf, int ipOffset, int transportOffset, in icmpv6Checksum()
|
D | DnsSvcbRecord.java | 116 final ByteBuffer buf = ByteBuffer.wrap(rdata).asReadOnlyBuffer(); in DnsSvcbRecord() local 211 private static SvcParam parseSvcParam(@NonNull ByteBuffer buf) throws ParseException { in parseSvcParam() 250 private SvcParamMandatory(@NonNull ByteBuffer buf) throws BufferUnderflowException, in SvcParamMandatory() 281 SvcParamAlpn(@NonNull ByteBuffer buf) throws BufferUnderflowException, ParseException { in SvcParamAlpn() 304 SvcParamNoDefaultAlpn(@NonNull ByteBuffer buf) throws BufferUnderflowException, in SvcParamNoDefaultAlpn() 328 SvcParamPort(@NonNull ByteBuffer buf) throws BufferUnderflowException, ParseException { in SvcParamPort() 352 private SvcParamIpHint(int key, @NonNull ByteBuffer buf, int addrLen) throws in SvcParamIpHint() 380 SvcParamIpv4Hint(@NonNull ByteBuffer buf) throws BufferUnderflowException, ParseException { in SvcParamIpv4Hint() 386 SvcParamIpv6Hint(@NonNull ByteBuffer buf) throws BufferUnderflowException, ParseException { in SvcParamIpv6Hint() 392 SvcParamEch(@NonNull ByteBuffer buf) throws BufferUnderflowException, ParseException { in SvcParamEch() [all …]
|
D | DnsPacketUtils.java | 102 final ByteArrayOutputStream buf = new ByteArrayOutputStream(); in domainNameToLabels() local 134 public static String parseName(final ByteBuffer buf, int depth, in parseName() 148 public static String parseName(final ByteBuffer buf, int depth, int maxLabelCount, in parseName()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | NduseroptMessageTest.java | 97 ByteBuffer buf = toBuffer(hexBytes); in testParseWithinNetlinkMessage() local 126 ByteBuffer buf = toBuffer(hexBytes); in testParseRdnssOptionWithinNetlinkMessage() local 148 ByteBuffer buf = toBuffer(truncatedHexBytes); in testParseTruncatedRdnssOptionWithinNetlinkMessage() local 162 ByteBuffer buf = toBuffer(hexBytes); in testParseUnknownOptionWithinNetlinkMessage() local 178 ByteBuffer buf = toBuffer(MSG_PREF64); in testUnknownOption() local 202 ByteBuffer buf = toBuffer(hexString); in testZeroLengthOption() local 214 ByteBuffer buf = toBuffer(hexString); in testTooLongOption() local 225 ByteBuffer buf = toBuffer(hexString); in testOptionsTooLong() local 240 ByteBuffer buf = toBuffer(MSG_PREF64.substring(0, len * 2)); in testTruncation() local 262 private NduseroptMessage parseNduseroptMessage(ByteBuffer buf) { in parseNduseroptMessage()
|
D | StructNdOptRdnssTest.java | 75 final ByteBuffer buf = ByteBuffer.allocate(8 + servers.length * 16) in makeRdnssOption() local 128 final ByteBuffer buf = makeRdnssOption((byte) 38, (byte) 5 /* length */, in testParsing_invalidType() local 135 final ByteBuffer buf = makeRdnssOption((byte) ICMPV6_ND_OPTION_RDNSS, in testParsing_smallOptionLength() local 142 final ByteBuffer buf = makeRdnssOption((byte) ICMPV6_ND_OPTION_RDNSS, in testParsing_oddOptionLength() local 149 ByteBuffer buf = makeRdnssOption((byte) ICMPV6_ND_OPTION_RDNSS, in testParsing_truncatedByteBuffer() local 167 final ByteBuffer buf = makeRdnssOption((byte) ICMPV6_ND_OPTION_RDNSS, in testParsing_invalidByteBufferLength() local 188 final ByteBuffer buf = RdnssOption.build(3600 /* lifetime */, DNS_SERVER1, DNS_SERVER2); in testToString() local
|
D | StructNdOptPioTest.java | 150 final ByteBuffer buf = makePioOption((byte) 24 /* wrong type:RIO */, in testParsing_invalidOptionType() local 158 final ByteBuffer buf = makePioOption((byte) 24 /* wrong type:RIO */, in testParsing_invalidOptionLength() local 167 final ByteBuffer buf = makePioOption((byte) 3 /* type */, (byte) 4 /* length */, in testParsing_truncatedByteBuffer() local 187 final ByteBuffer buf = makePioOption((byte) 3 /* type */, (byte) 4 /* length */, in testParsing_invalidByteBufferLength() local 196 final ByteBuffer buf = makePioOption((byte) 3 /* type */, (byte) 4 /* length */, in testToString() local
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 66 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 76 unsigned char buf[2] = {0xee, 0xee}; in TEST_P() local 108 unsigned char buf[6] = {0xee, 0xee, 0xee, 0xee, 0xee, 0xee}; in TEST_P() local 120 unsigned char buf[3] = {0xee, 0xee, 0xee}; in TEST_P() local 129 unsigned char buf[3] = {0xee, 0xee, 0xee}; in TEST_P() local 149 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 160 unsigned char buf[MAX_VALUE_SIZE + 1] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 172 unsigned char buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 202 unsigned char buf[MAX_VALUE_SIZE + 1]; in TEST_P() local 225 char buf[bufSize]; in TEST_P() local [all …]
|
/packages/modules/StatsD/tests/utils/src/android/util/ |
D | StatsEventTestUtils.java | 62 ByteBuffer buf = ByteBuffer.wrap(statsEvent.getBytes()).order(ByteOrder.LITTLE_ENDIAN); in getProtoBytes() local 113 byte typeId, long fieldCount, int tag, ByteBuffer buf, ProtoOutputStream proto) { in parseField() 163 private static byte[] getByteArrayFromByteBuffer(ByteBuffer buf) { in getByteArrayFromByteBuffer() 170 private static void skipAnnotations(ByteBuffer buf, int annotationCount) { in skipAnnotations() 184 private static FieldMetadata parseFieldMetadata(ByteBuffer buf) { in parseFieldMetadata()
|
/packages/modules/NeuralNetworks/driver/cache/nnCache/ |
D | nnCache_test.cpp | 62 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 72 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 83 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local 126 unsigned char buf[MAX_VALUE_SIZE]; in TEST_P() local 192 uint8_t buf[10]; in yesStringBlob() local 208 uint8_t buf[10]; in noStringBlob() local 221 uint8_t buf[4] = {0xee, 0xee, 0xee, 0xee}; in TEST_P() local
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | BufferDebug.java | 43 public static String debugString(byte[] buf, int max) { in debugString() 63 private static String toHex(byte[] buf, int len, int max) { in toHex() 87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() 132 private static boolean isPrintable(byte[] buf, int len) { in isPrintable()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | StructNdOptPref64.java | 112 private StructNdOptPref64(@NonNull ByteBuffer buf) { in StructNdOptPref64() 139 public static StructNdOptPref64 parse(@NonNull ByteBuffer buf) { in parse() 152 protected void writeToByteBuffer(ByteBuffer buf) { in writeToByteBuffer() 160 ByteBuffer buf = ByteBuffer.allocate(STRUCT_SIZE); in toByteBuffer() local
|
D | StructNdOptRdnss.java | 81 public static StructNdOptRdnss parse(@NonNull ByteBuffer buf) { in parse() 109 protected void writeToByteBuffer(ByteBuffer buf) { in writeToByteBuffer() 118 final ByteBuffer buf = ByteBuffer.allocate(Struct.getSize(RdnssOption.class) in toByteBuffer() local
|
D | StructNdOptPio.java | 81 public static StructNdOptPio parse(@NonNull ByteBuffer buf) { in parse() 102 protected void writeToByteBuffer(ByteBuffer buf) { in writeToByteBuffer() 108 final ByteBuffer buf = ByteBuffer.allocate(Struct.getSize(PrefixInformationOption.class)); in toByteBuffer() local
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 50 char buf[256]; in Java_android_net_cts_DnsTest_testNativeDns() local 83 char buf[256]; in Java_android_net_cts_DnsTest_testNativeDns() local 119 char buf[NI_MAXHOST]; in Java_android_net_cts_DnsTest_testNativeDns() local 160 char buf[256]; in Java_android_net_cts_DnsTest_testNativeDns() local
|
/packages/modules/Bluetooth/system/bta/hf_client/ |
D | bta_hf_client_at.cc | 130 tBTA_HF_CLIENT_AT_CMD cmd, const char* buf, in bta_hf_client_queue_at() 177 tBTA_HF_CLIENT_AT_CMD cmd, const char* buf, in bta_hf_client_send_at() 851 #define AT_CHECK_EVENT(buf, event) \ argument 859 #define AT_CHECK_RN(buf) \ argument 869 #define AT_SKIP_REST(buf) \ argument 1656 char* buf = client_cb->at_cb.buf; in bta_hf_client_at_parse_start() local 1726 void bta_hf_client_at_parse(tBTA_HF_CLIENT_CB* client_cb, char* buf, in bta_hf_client_at_parse() 1792 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_brsf() local 1807 const char* buf; in bta_hf_client_send_at_bac() local 1821 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_bcs() local [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEvent_test.cpp | 58 const uint8_t* buf = AStatsEvent_getBuffer(statsEvent, &size); in createFieldWithBoolAnnotationLogEvent() local 79 const uint8_t* buf = AStatsEvent_getBuffer(statsEvent, &size); in createFieldWithIntAnnotationLogEvent() local 101 const uint8_t* buf = AStatsEvent_getBuffer(statsEvent, &size); in createAtomLevelIntAnnotationLogEvent() local 123 const uint8_t* buf = AStatsEvent_getBuffer(statsEvent, &size); in createAtomLevelBoolAnnotationLogEvent() local 176 bool ParseBuffer(LogEvent& logEvent, const uint8_t* buf, size_t size) { in ParseBuffer() 211 const uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST_P() local 261 const uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST_P() local 287 const uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST() local 312 const uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST_P() local 349 const uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST_P() local [all …]
|
/packages/modules/adb/ |
D | adb_io_test.cpp | 54 char buf[sizeof(expected)] = {}; in POSIX_TEST() local 68 char buf[sizeof(expected) + 1] = {}; in POSIX_TEST() local 82 char buf[sizeof(input) - 1] = {}; in POSIX_TEST() local 106 const char buf[] = "Foobar"; in POSIX_TEST() local 126 char buf[] = "foo"; in POSIX_TEST() local
|
D | adb_io.cpp | 51 char buf[5]; in ReadProtocolString() local 76 bool ReadFdExactly(borrowed_fd fd, void* buf, size_t len) { in ReadFdExactly() 103 bool WriteFdExactly(borrowed_fd fd, const void* buf, size_t len) { in WriteFdExactly() 152 char buf[16]; in ReadOrderlyShutdown() local
|
/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 38 int getAsyncResponse(int fd, int timeoutMs, int* rcode, uint8_t* buf, size_t bufLen) { in getAsyncResponse() 58 std::vector<std::string> extractIpAddressAnswers(uint8_t* buf, size_t bufLen, int ipType) { in extractIpAddressAnswers() 81 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid() local 98 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid() local 169 uint8_t buf[MAXPACKET] = {}; in TEST_F() local 228 uint8_t buf[10] = {}; in TEST_F() local
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 274 ByteBuffer buf = ByteBuffer.wrap(packet); in maybeReplyArp() local 324 ByteBuffer buf = ByteBuffer.wrap(packet); in getRaPrefixOptions() local 389 ByteBuffer buf = ByteBuffer.wrap(packet); in maybeReplyNa() local 421 final ByteBuffer buf = ByteBuffer.wrap(packet); in isExpectedIcmpPacket() local 425 private static boolean isExpectedIcmpPacket(ByteBuffer buf, boolean hasEth, boolean isIpv4, in isExpectedIcmpPacket() 445 private static boolean hasExpectedEtherHeader(@NonNull final ByteBuffer buf, boolean isIpv4) in hasExpectedEtherHeader() 452 private static boolean hasExpectedIpHeader(@NonNull final ByteBuffer buf, boolean isIpv4, in hasExpectedIpHeader() 463 final ByteBuffer buf = ByteBuffer.wrap(rawPacket); in isExpectedUdpPacket() local 482 private static byte[] getRemaining(final ByteBuffer buf) { in getRemaining()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_util.cc | 47 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { in sock_send_all() 62 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { in sock_recv_all() 78 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd()
|
/packages/modules/Virtualization/microdroid/payload/metadata/src/ |
D | lib.rs | 32 let mut buf = [0u8; 4]; in read_metadata() localVariable 40 let mut buf = Vec::new(); in write_metadata() localVariable
|
/packages/modules/Bluetooth/system/osi/test/fuzzers/list/ |
D | fuzz_list.cc | 153 void* buf = generateBuffer(dataProvider, MAX_BUF_SIZE, false); in callArbitraryFunction() local 164 void* buf = generateBuffer(dataProvider, MAX_BUF_SIZE, false); in callArbitraryFunction() local 174 void* buf = generateBuffer(dataProvider, MAX_BUF_SIZE, false); in callArbitraryFunction() local 185 void* buf = getArbitraryElement(alloc_vector, dataProvider); in callArbitraryFunction() local
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketReflector.java | 92 private void processTcpPacket(@NonNull byte[] buf, int version, int len, int hdrLen) { in processTcpPacket() 106 private void processUdpPacket(@NonNull byte[] buf, int version, int len, int hdrLen) { in processUdpPacket() 122 private void processIcmpPacket(@NonNull byte[] buf, int version, int len, int hdrLen) { in processIcmpPacket() 184 private void writePacket(@NonNull byte[] buf, int len) { in writePacket()
|
D | PacketForwarderBase.java | 115 abstract void remapPort(@NonNull byte[] buf, int version); in remapPort() 125 int getRemappedPort(@NonNull byte[] buf, int transportOffset) { in getRemappedPort() 134 private void forwardPacket(@NonNull byte[] buf, int len) { in forwardPacket()
|