/aosp12/system/bt/stack/test/hci/ |
H A D | stack_hci_test.cc | 53 HciDataPreamble preamble; in TEST_F() local 68 preamble.Serialize(act); in TEST_F() 73 HciDataPreamble preamble; in TEST_F() local 74 preamble.raw.word0 = in TEST_F() 85 preamble.Serialize(act); in TEST_F() 89 HciDataPreamble preamble; in TEST_F() local 100 preamble.Serialize(act); in TEST_F() 105 HciDataPreamble preamble; in TEST_F() local 107 preamble.raw.word1 = 0x0; in TEST_F() 116 preamble.Serialize(act); in TEST_F() [all …]
|
/aosp12/hardware/interfaces/bluetooth/1.0/default/test/ |
H A D | h4_protocol_unittest.cc | 122 preamble[3] = length & 0xFF; in WriteAndExpectInboundAclData() 123 preamble[4] = (length >> 8) & 0xFF; in WriteAndExpectInboundAclData() 126 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundAclData() 132 EXPECT_CALL(acl_cb_, Call(HidlVecMatches(preamble + 1, sizeof(preamble) - 1, in WriteAndExpectInboundAclData() 151 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundScoData() 157 EXPECT_CALL(sco_cb_, Call(HidlVecMatches(preamble + 1, sizeof(preamble) - 1, in WriteAndExpectInboundScoData() 175 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundEvent() 195 preamble[3] = length & 0xFF; in WriteAndExpectInboundIsoData() 196 preamble[4] = (length >> 8) & 0x3F; in WriteAndExpectInboundIsoData() 199 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundIsoData() [all …]
|
H A D | mct_protocol_unittest.cc | 48 MATCHER_P3(HidlVecMatches, preamble, preamble_length, payload, "") { 54 if (memcmp(preamble, arg.data(), preamble_length) != 0) { 121 char preamble[4] = {19, 92, 0, 0}; in WriteAndExpectInboundAclData() local 123 preamble[2] = length & 0xFF; in WriteAndExpectInboundAclData() 124 preamble[3] = (length >> 8) & 0xFF; in WriteAndExpectInboundAclData() 128 write(fake_uart_[CH_ACL_IN], preamble, sizeof(preamble))); in WriteAndExpectInboundAclData() 135 Call(HidlVecMatches(preamble, sizeof(preamble), payload))) in WriteAndExpectInboundAclData() 149 char preamble[2] = {9, 0}; in WriteAndExpectInboundEvent() local 150 preamble[1] = strlen(payload) & 0xFF; in WriteAndExpectInboundEvent() 153 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], preamble, sizeof(preamble))); in WriteAndExpectInboundEvent() [all …]
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
H A D | ResponderConfig.java | 184 public final int preamble; field in ResponderConfig 222 this.preamble = preamble; in ResponderConfig() 257 this.preamble = preamble; in ResponderConfig() 296 this.preamble = preamble; in ResponderConfig() 312 int preamble; in fromScanResult() local 329 preamble = PREAMBLE_HE; in fromScanResult() 331 preamble = PREAMBLE_VHT; in fromScanResult() 333 preamble = PREAMBLE_HT; in fromScanResult() 342 preamble = PREAMBLE_HT; in fromScanResult() 420 dest.writeInt(preamble); in writeToParcel() [all …]
|
/aosp12/system/chre/platform/shared/include/chre/platform/shared/ |
H A D | memory_debug.h | 75 auto *preamble = static_cast<MemoryDebugPreamble *>(mem); in debugAlloc() local 76 preamble->allocSize = size; in debugAlloc() 77 preamble->guard = kPreambleGuard; in debugAlloc() 78 mem = static_cast<void *>(preamble + 1); in debugAlloc() 98 auto *preamble = static_cast<MemoryDebugPreamble *>(pointer) - 1; in debugFree() local 99 if (preamble->allocSize > kMaxAllocSize) { in debugFree() 100 FATAL_ERROR("Invalid allocation size %zu", preamble->allocSize); in debugFree() 101 } else if (preamble->guard != kPreambleGuard) { in debugFree() 105 uint8_t *trailer = static_cast<uint8_t *>(pointer) + preamble->allocSize; in debugFree() 114 freeFunc(preamble); in debugFree()
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
H A D | MimeMultipart.java | 28 protected String preamble; field in MimeMultipart 68 return preamble; in getPreamble() 71 public void setPreamble(String preamble) throws MessagingException { in setPreamble() argument 72 this.preamble = preamble; in setPreamble() 89 if (preamble != null) { in writeTo() 90 writer.write(preamble + "\r\n"); in writeTo()
|
/aosp12/hardware/interfaces/bluetooth/1.0/default/ |
H A D | hci_packetizer.cc | 42 size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument 45 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType() 47 return ((((preamble[offset + 1]) & 0x3f) << 8) | preamble[offset]); in HciGetPacketLengthForType() 49 return preamble[offset]; in HciGetPacketLengthForType()
|
/aosp12/system/media/audio_utils/spdif/ |
H A D | SPDIFEncoder.cpp | 218 uint16_t preamble[4]; in startDataBurst() local 226 preamble[0] = kSPDIFSync1; in startDataBurst() 227 preamble[1] = kSPDIFSync2; in startDataBurst() 228 preamble[2] = burstInfo; in startDataBurst() 229 preamble[3] = 0; // lengthCode - This will get set after the buffer is full. in startDataBurst() 230 writeBurstBufferShorts(preamble, 4); in startDataBurst()
|
/aosp12/system/bt/vendor_libs/linux/interface/ |
H A D | hci_packetizer.cc | 35 size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument 37 if (type != HCI_PACKET_TYPE_ACL_DATA) return preamble[offset]; in HciGetPacketLengthForType() 38 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType()
|
/aosp12/frameworks/native/libs/vr/libpdx_uds/ |
H A D | ipc_helper.cpp | 192 MessagePreamble preamble; in Send() local 193 preamble.magic = kMagicPreamble; in Send() 194 preamble.data_size = buffer_.size(); in Send() 195 preamble.fd_count = file_handles_.size(); in Send() 200 msg.msg_iov[0].iov_base = &preamble; in Send() 201 msg.msg_iov[0].iov_len = sizeof(preamble); in Send() 286 MessagePreamble preamble; in Receive() local 288 iovec recv_vect = {&preamble, sizeof(preamble)}; in Receive() 299 if (preamble.magic != kMagicPreamble) { in Receive() 305 buffer_.resize(preamble.data_size); in Receive() [all …]
|
/aosp12/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
H A D | h4_parser.cc | 38 const uint8_t* preamble) const { in HciGetPacketLengthForType() 50 size_t size = preamble[offset]; in HciGetPacketLengthForType() 52 size |= ((size_t)preamble[offset + 1]) << 8u; in HciGetPacketLengthForType() 55 size |= ((size_t)preamble[offset + 1] & 0x0fu) << 8u; in HciGetPacketLengthForType()
|
H A D | h4_parser.h | 103 const uint8_t* preamble) const;
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/ |
H A D | RttNative.java | 410 config.preamble = halRttPreambleFromResponderPreamble(responder.preamble); in convertRangingRequestToRttConfigs() 411 validateBwAndPreambleCombination(config.bw, config.preamble); in convertRangingRequestToRttConfigs() 436 config.preamble = halRttPreambleCapabilityLimiter(config.preamble, cap); in convertRangingRequestToRttConfigs() 450 private static void validateBwAndPreambleCombination(int bw, int preamble) { in validateBwAndPreambleCombination() argument 454 if (bw == RttBw.BW_40MHZ && preamble >= RttPreamble.HT) { in validateBwAndPreambleCombination() 457 if (bw >= RttBw.BW_80MHZ && preamble >= RttPreamble.VHT) { in validateBwAndPreambleCombination() 461 "bw and preamble combination is invalid, bw: " + bw + " preamble: " + preamble); in validateBwAndPreambleCombination() 494 config.preamble = halRttPreamble14FromResponderPreamble(responder.preamble); in convertRangingRequestToRttConfigs14() 519 config.preamble = halRttPreambleCapabilityLimiter(config.preamble, cap); in convertRangingRequestToRttConfigs14()
|
/aosp12/system/bt/main/shim/ |
H A D | helpers.h | 119 const std::vector<uint8_t>& preamble) { in MakeLegacyBtHdrPacket() argument 122 osi_calloc(packet_vector.size() + preamble.size() + sizeof(BT_HDR))); in MakeLegacyBtHdrPacket() 123 std::copy(preamble.begin(), preamble.end(), buffer->data); in MakeLegacyBtHdrPacket() 125 buffer->data + preamble.size()); in MakeLegacyBtHdrPacket() 126 buffer->len = preamble.size() + packet_vector.size(); in MakeLegacyBtHdrPacket()
|
/aosp12/system/bt/btif/src/ |
H A D | btif_debug_btsnoop.cc | 212 btsnooz_preamble_t preamble; in btif_debug_btsnoop_dump() local 213 preamble.version = BTSNOOZ_CURRENT_VERSION; in btif_debug_btsnoop_dump() 214 preamble.last_timestamp_ms = last_timestamp_ms; in btif_debug_btsnoop_dump() 215 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in btif_debug_btsnoop_dump()
|
/aosp12/system/extras/memory_replay/ |
H A D | NativeInfo.cpp | 103 void NativePrintInfo(const char* preamble) { in NativePrintInfo() argument 117 NativePrintf("%sNative RSS: %zu bytes %sMB\n", preamble, rss_bytes, buffer); in NativePrintInfo() 119 NativePrintf("%sNative VA Space: %zu bytes %sMB\n", preamble, va_bytes, buffer); in NativePrintInfo()
|
H A D | NativeInfo.h | 21 void NativePrintInfo(const char* preamble);
|
/aosp12/hardware/interfaces/wifi/1.4/vts/functional/ |
H A D | wifi_rtt_controller_hidl_test.cpp | 178 config.preamble = RttPreamble::HT; in TEST_P() 211 int preamble = 1; in TEST_P() local 215 preamble <<= 1; in TEST_P() 231 config.preamble = (RttPreamble)preamble; in TEST_P()
|
/aosp12/system/nfc/src/adaptation/ |
H A D | debug_nfcsnoop.cc | 172 nfcsnooz_preamble_t preamble; in debug_nfcsnoop_dump() local 173 preamble.version = NFCSNOOZ_CURRENT_VERSION; in debug_nfcsnoop_dump() 174 preamble.last_timestamp_ms = last_timestamp_ms; in debug_nfcsnoop_dump() 175 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in debug_nfcsnoop_dump()
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/ |
H A D | RttManager.java | 458 public int preamble; field in RttManager.RttParams 478 preamble = PREAMBLE_HT; in RttParams() 505 sb.append(", preamble=" + preamble); in toString() 554 dest.writeInt(params.preamble); in writeToParcel() 585 params[i].preamble = in.readInt(); 1132 public int preamble; field in RttManager.ResponderConfig 1143 .append(" preamble = ").append(preamble); in toString() 1159 dest.writeInt(preamble); in writeToParcel() 1173 config.preamble = in.readInt();
|
/aosp12/hardware/libhardware_legacy/include/hardware_legacy/ |
H A D | rtt.h | 106 wifi_rtt_preamble preamble; // RTT preamble to be used in the RTT frames member 285 wifi_rtt_preamble preamble; member
|
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
H A D | WifiRttManagerTest.java | 478 assertEquals(ResponderConfig.PREAMBLE_VHT, config.preamble); in testResponderPreambleSelection() 489 assertEquals(ResponderConfig.PREAMBLE_VHT, config.preamble); in testResponderPreambleSelection() 497 assertEquals(ResponderConfig.PREAMBLE_LEGACY, config.preamble); in testResponderPreambleSelection() 505 assertEquals(ResponderConfig.PREAMBLE_HT, config.preamble); in testResponderPreambleSelection()
|
/aosp12/hardware/interfaces/wifi/1.4/ |
H A D | types.hal | 363 * RTT preamble to be used in the RTT frames. 365 RttPreamble preamble; 403 * Bit mask indicates what preamble is supported by initiator. 427 RttPreamble preamble; 437 WifiRatePreamble preamble;
|
/aosp12/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | wifilogger_diag.cpp | 1368 switch (mcs.mcs_s.preamble) { in get_rate_v1() 1432 ALOGE("Unexpected preamble %d", mcs.mcs_s.preamble); in get_rate_v1() 1467 switch(mcs.mcs_s.preamble) in get_rate() 1620 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_CCK; in parse_rx_stats_v2() 1632 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_HT; in parse_rx_stats_v2() 1641 mcs->mcs_s.preamble = WIFI_HW_RATECODE_PREAM_VHT; in parse_rx_stats_v2() 1750 mcs->mcs_s.preamble = WL_PREAMBLE_OFDM; in parse_rx_stats() 1757 mcs->mcs_s.preamble = WL_PREAMBLE_HT; in parse_rx_stats() 1766 mcs->mcs_s.preamble = WL_PREAMBLE_VHT; in parse_rx_stats() 1809 mcs.mcs_s.preamble = (rate_code.rateCode >> 6) & 0x3; in get_tx_mcs_v1() [all …]
|
/aosp12/system/chre/chpp/ |
H A D | README.md | 33 CHPP packets consist of a 2-byte preamble (packet start delimiter) and 8 bytes of header informatio… 37 - uint16_t preamble; 50 …preamble as the packet start delimiter. If the receiving side is not actively within a packet, it … 108 …e that is run over of the entire CHPP packet, i.e. anything between the preamble and the checksum …
|