/libcore/luni/src/main/java/android/system/ |
StructIcmpHdr.java | 29 private byte[] packet; field in class:StructIcmpHdr 32 packet = new byte[8]; 50 hdr.packet[0] = ipv4 ? (byte) ICMP_ECHO : (byte) ICMP6_ECHO_REQUEST; 51 // packet[1]: Code is always zero. 52 // packet[2,3]: Checksum is computed by kernel. 53 // packet[4,5]: ID (= port) inserted by kernel. 54 hdr.packet[6] = (byte) (seq >> 8); 55 hdr.packet[7] = (byte) seq; 60 return packet.clone();
|
/system/core/debuggerd/tombstoned/ |
tombstoned_client.cpp | 45 TombstonedCrashPacket packet = {}; local 46 packet.packet_type = CrashPacketType::kDumpRequest; 47 packet.packet.dump_request.pid = pid; 48 packet.packet.dump_request.dump_type = dump_type; 49 if (TEMP_FAILURE_RETRY(write(sockfd, &packet, sizeof(packet))) != sizeof(packet)) { 50 async_safe_format_log(ANDROID_LOG_ERROR, "libc", "failed to write DumpRequest packet: %s" 84 TombstonedCrashPacket packet = {}; local [all...] |
/external/webrtc/webrtc/modules/video_coding/ |
decoding_state_unittest.cc | 18 #include "webrtc/modules/video_coding/packet.h" 34 VCMPacket packet; local 35 packet.isFirstPacket = true; 36 packet.timestamp = 1; 37 packet.seqNum = 0xffff; 38 packet.frameType = kVideoFrameDelta; 39 packet.codecSpecificHeader.codec = kRtpVideoVp8; 40 packet.codecSpecificHeader.codecHeader.VP8.pictureId = 0x007F; 44 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); 48 packet.frameType = kVideoFrameKey 166 VCMPacket packet; local 212 VCMPacket packet; local 365 VCMPacket packet; local 400 VCMPacket packet; local 419 VCMPacket packet; local 452 VCMPacket packet; local 495 VCMPacket packet; local 550 VCMPacket packet; local [all...] |
/system/connectivity/wificond/net/ |
mlme_event.cpp | 34 bool GetCommonFields(const NL80211Packet* packet, 37 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, if_index)) { 42 if (!packet->GetAttributeValue(NL80211_ATTR_MAC, bssid)) { 51 const NL80211Packet* packet) { 52 if (packet->GetCommand() != NL80211_CMD_ASSOCIATE) { 57 if (!GetCommonFields(packet, 67 associate_event->is_timeout_ = packet->HasAttribute(NL80211_ATTR_TIMED_OUT); 73 const NL80211Packet* packet) { 74 if (packet->GetCommand() != NL80211_CMD_CONNECT) { 78 if (!GetCommonFields(packet, [all...] |
/system/core/lmkd/include/ |
lmkd.h | 41 * Max packet length in bytes. 42 * Longest packet is LMK_TARGET followed by MAX_TARGETS 47 /* LMKD packet - first int is lmk_cmd followed by payload */ 50 /* Get LMKD packet command */ 55 /* LMK_TARGET packet payload */ 62 * For LMK_TARGET packet get target_idx-th payload. 65 inline void lmkd_pack_get_target(LMKD_CTRL_PACKET packet, 67 target->minfree = ntohl(packet[target_idx * 2 + 1]); 68 target->oom_adj_score = ntohl(packet[target_idx * 2 + 2]); 72 * Prepare LMK_TARGET packet and return packet size in bytes [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/tic6x/ |
parallel-bad-4.l | 2 [^:]*:28: Error: too many instructions in execute packet 3 [^:]*:30: Error: too many instructions in execute packet
|
parallel-bad-3.l | 2 [^:]*:13: Error: too many instructions in execute packet
|
resource-func-unit-1.l | 2 [^:]*:9: Error: functional unit already used in this execute packet
|
resource-func-unit-2.l | 2 [^:]*:17: Error: functional unit already used in this execute packet 3 [^:]*:19: Error: functional unit already used in this execute packet
|
sploop-bad-2.l | 2 [^:]*:7: Error: 'sploop' instruction not at start of execute packet 3 [^:]*:11: Error: 'sploopd' instruction not at start of execute packet 4 [^:]*:15: Error: 'sploopw' instruction not at start of execute packet 5 [^:]*:20: Error: 'spkernel' instruction not at start of execute packet 6 [^:]*:23: Error: 'spkernel' instruction not at start of execute packet 7 [^:]*:26: Error: 'spkernelr' instruction not at start of execute packet 8 [^:]*:28: Error: 'spmask' instruction not at start of execute packet 9 [^:]*:30: Error: 'spmaskr' instruction not at start of execute packet
|
/external/perfetto/src/tracing/core/ |
packet_stream_validator.cc | 35 protos::TrustedPacket packet; local 36 if (!packet.ParseFromBoundedZeroCopyStream(&stream, static_cast<int>(size))) 40 if (packet.optional_trusted_uid_case() != 46 if (packet.has_trace_config()) 50 if (packet.has_trace_stats())
|
/frameworks/av/media/mtp/ |
MtpObjectInfo.cpp | 58 bool MtpObjectInfo::read(MtpDataPacket& packet) { 62 if (!packet.getUInt32(mStorageID)) return false; 63 if (!packet.getUInt16(mFormat)) return false; 64 if (!packet.getUInt16(mProtectionStatus)) return false; 65 if (!packet.getUInt32(mCompressedSize)) return false; 66 if (!packet.getUInt16(mThumbFormat)) return false; 67 if (!packet.getUInt32(mThumbCompressedSize)) return false; 68 if (!packet.getUInt32(mThumbPixWidth)) return false; 69 if (!packet.getUInt32(mThumbPixHeight)) return false; 70 if (!packet.getUInt32(mImagePixWidth)) return false [all...] |
MtpDeviceInfo.cpp | 62 bool MtpDeviceInfo::read(MtpDataPacket& packet) { 66 if (!packet.getUInt16(mStandardVersion)) return false; 67 if (!packet.getUInt32(mVendorExtensionID)) return false; 68 if (!packet.getUInt16(mVendorExtensionVersion)) return false; 70 if (!packet.getString(string)) return false; 74 if (!packet.getUInt16(mFunctionalMode)) return false; 75 mOperations = packet.getAUInt16(); 77 mEvents = packet.getAUInt16(); 79 mDeviceProperties = packet.getAUInt16(); 81 mCaptureFormats = packet.getAUInt16() [all...] |
/system/bt/hci/include/ |
packet_fragmenter.h | 25 typedef void (*transmit_finished_cb)(BT_HDR* packet, bool all_fragments_sent); 26 typedef void (*packet_reassembled_cb)(BT_HDR* packet); 27 typedef void (*packet_fragmented_cb)(BT_HDR* packet, 31 // Called for every packet fragment. 34 // Called for every completely reassembled packet. 38 // but the packet has not been entirely sent. 49 // Fragments |packet| if necessary and hands off everything to the fragmented 51 void (*fragment_and_dispatch)(BT_HDR* packet); 52 // If |packet| is a complete packet, forwards to the reassembled callback [all...] |
/system/bt/packet/tests/base/ |
packet_builder_test.cc | 20 #include "packet.h" 30 auto packet = TestPacket::Make(); local 32 builder->Serialize(packet); 35 ASSERT_EQ(test_l2cap_data[i], (*packet)[i]); 46 auto packet = TestPacket::Make(); local 47 ASSERT_EQ(packet->GetData().capacity(), 0u); 50 builder->ReserveSpace(packet, test_l2cap_data.size()); 52 ASSERT_GE(packet->GetData().capacity(), test_l2cap_data.size()); 57 auto packet = TestPacket::Make(); local 59 builder->AddPayloadOctets1(packet, 0x01u) [all...] |
packet_test.cc | 19 #include "packet.h" 25 // Test making a packet from another packet. The new packet should have the 26 // same payload bounds as the old packet. 28 // Create a packet with payload bounds 29 auto packet = TestPacket::Make( local 32 // Create packet from bounded packet 33 auto new_packet = TestPacket::Make(packet); 44 auto packet = TestPacket::Make(test_avctp_data); local 54 auto packet = TestPacket::Make(test_l2cap_data); local 68 auto packet = local 75 auto packet = TestPacket::Make( local 97 auto packet = TestPacket::Make(test_l2cap_data); local 112 auto packet = TestPacket::Make(test_l2cap_data); local [all...] |
iterator_test.cc | 20 #include "packet.h" 51 auto packet = local 53 ASSERT_DEATH(Iterator(packet, 0), "index_ >= packet->packet_start_index_"); 54 ASSERT_DEATH(Iterator(packet, test_l2cap_data.size()), 55 "index_ <= packet->packet_end_index_"); 59 auto packet = TestPacket::Make(test_l2cap_data); local 60 Iterator general_case = packet->begin(); 69 auto packet = GetTestPacket(); local 70 ASSERT_EQ(static_cast<size_t>(packet->end() - packet->begin()) 80 auto packet = GetTestPacket(); local 93 auto packet = GetTestPacket(); local 102 auto packet = GetTestPacket(); local 115 auto packet = GetTestPacket(); local 125 auto packet = GetTestPacket(); local 135 auto packet = GetTestPacket(); local 146 auto packet = GetTestPacket(); local 159 auto packet = GetTestPacket(); local 170 auto packet = GetTestPacket(); local 182 auto packet = GetTestPacket(); local 194 auto packet = GetTestPacket(); local 204 auto packet = GetTestPacket(); local 215 auto packet = GetTestPacket(); local 225 auto packet = GetTestPacket(); local 235 auto packet = GetTestPacket(); local 246 auto packet = GetTestPacket(); local 256 auto packet = GetTestPacket(); local 266 auto packet = GetTestPacket(); local [all...] |
/system/bt/hci/src/ |
btsnoop_mem.cc | 27 void btsnoop_mem_capture(const BT_HDR* packet, uint64_t timestamp_us) { 30 CHECK(packet); 32 const uint8_t* data = &packet->data[packet->offset]; 33 const uint16_t type = packet->event & BT_EVT_MASK; 38 if (packet->len > 2) length = data[2] + 3; 42 if (packet->len > 1) length = data[1] + 2; 47 if (packet->len > 3) length = (data[2] | (data[3] << 8)) + 4; 52 if (packet->len > 2) length = data[2] + 3;
|
packet_fragmenter.cc | 60 static void fragment_and_dispatch(BT_HDR* packet) { 61 CHECK(packet != NULL); 63 uint16_t event = packet->event & MSG_EVT_MASK; 64 uint8_t* stream = packet->data + packet->offset; 68 callbacks->fragmented(packet, true); 73 SUB_EVENT(packet->event) == LOCAL_BR_EDR_CONTROLLER_ID 78 uint16_t remaining_length = packet->len; 85 // Make sure we use the right ACL packet size 86 stream = packet->data + packet->offset [all...] |
/frameworks/base/tests/net/java/android/net/util/ |
ConnectivityPacketSummaryTest.java | 50 final String packet = local 67 assertEquals(expected, getSummary(packet)); 72 final String packet = local 89 assertEquals(expected, getSummary(packet)); 94 final String packet = local 122 assertEquals(expected, getSummary(packet)); 127 final String packet = local 145 assertEquals(expected, getSummary(packet)); 150 final String packet = local 170 assertEquals(expected, getSummary(packet)); 175 final String packet = local 196 final String packet = local 215 final String packet = local 236 final String packet = local 282 final String packet = local 328 final String packet = local 376 final String packet = local [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
ParsedEvent.java | 44 protected ParsedEvent(byte suspendPolicy, Packet packet, byte eventKind) { 46 this.requestID = packet.getNextValueAsInt(); 86 * @param packet 88 protected EventThread(byte suspendPolicy, Packet packet, byte eventKind) { 89 super(suspendPolicy, packet, eventKind); 90 this.threadID = packet.getNextValueAsThreadID(); 112 * @param packet 114 protected EventThreadLocation(byte suspendPolicy, Packet packet [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
RTPtimeshift.cc | 51 NETEQTEST_RTPpacket packet; local 52 int packLen = packet.readFromFile(inFile); 58 uint32_t TSdiff = atoi(argv[3]) - packet.timeStamp(); 64 SNdiff = startSN - packet.sequenceNumber(); 68 ATdiff = startTS - packet.time(); 73 packet.setTimeStamp(packet.timeStamp() + TSdiff); 74 packet.setSequenceNumber(packet.sequenceNumber() + SNdiff); 75 packet.setTime(packet.time() + ATdiff) [all...] |
/external/webrtc/webrtc/modules/video_coding/test/ |
stream_generator.cc | 18 #include "webrtc/modules/video_coding/packet.h" 61 VCMPacket packet; local 62 packet.seqNum = sequence_number; 63 packet.timestamp = timestamp; 64 packet.frameType = type; 65 packet.isFirstPacket = first_packet; 66 packet.markerBit = marker_bit; 67 packet.sizeBytes = size; 68 packet.dataPtr = packet_buffer_; 69 if (packet.isFirstPacket [all...] |
/external/webrtc/webrtc/test/ |
null_transport.cc | 15 bool NullTransport::SendRtp(const uint8_t* packet, 21 bool NullTransport::SendRtcp(const uint8_t* packet, size_t length) {
|
/external/ppp/pppd/plugins/rp-pppoe/ |
common.c | 35 * packet -- the PPPoE discovery packet to parse 36 * func -- function called for each tag in the packet 41 * Parses a PPPoE discovery packet, calling "func" for each tag in the packet. 45 parsePacket(PPPoEPacket *packet, ParseFunc *func, void *extra) 47 UINT16_t len = ntohs(packet->length); 51 if (PPPOE_VER(packet->vertype) != 1) { 52 error("Invalid PPPoE version (%d)", PPPOE_VER(packet->vertype)); 55 if (PPPOE_TYPE(packet->vertype) != 1) 98 PPPoEPacket packet; local [all...] |