| /developtools/hdc/scripts/ |
| D | hdc_test.py | 139 def command_callback(cmd, head, need_del, res=""): argument 144 check_file_send(cmd_parts[2], cmd_parts[3], head, need_del) 148 check_file_recv(cmd_parts[2], cmd_parts[3], head, need_del) 150 check_install(head, res) 153 check_root(head) 156 check_user(head) 161 def check_file_send(local_file, remote_file, head, need_del): argument 169 " ] && echo yes || echo no\""), head) 172 rm_send_file(remote_file, head, need_del) 175 remote_md5 = get_md5(remote_file, head) [all …]
|
| /developtools/integration_verification/tools/fotff/vcs/gitee/ |
| D | compare.go | 68 head := branchResp.Commit 69 head.Owner = owner 70 head.Repo = repo 71 for head.Commit.Committer.Date > before { 72 if head, err = GetCommit(owner, repo, head.Parents[0].SHA); err != nil { 76 return head, nil 86 head := branchResp.Commit 87 head.Owner = owner 88 head.Repo = repo 89 for head.Commit.Committer.Date > fromStr { [all …]
|
| /developtools/hdc/src/common/ |
| D | uart.cpp | 579 UartHead *head = reinterpret_cast<UartHead *>(data); in UartSendToHdcStream() local 581 head->ToDebugString().c_str(), *(data + sizeof(UartHead)), in UartSendToHdcStream() 585 if (head->sessionId != hSession->sessionId) { in UartSendToHdcStream() 588 head->sessionId); in UartSendToHdcStream() 589 SendUartSoftReset(hSession, head->sessionId); in UartSendToHdcStream() 596 hSession->hUART->streamSize += head->dataSize; // this is only for debug, in UartSendToHdcStream() 600 data + sizeof(UartHead), head->dataSize) < 0) { in UartSendToHdcStream() 661 UartHead *head = reinterpret_cast<UartHead *>(data); in RequestSendPackage() local 662 bool response = head->IsResponsePackage(); in RequestSendPackage() 665 slots.Wait(head->sessionId); in RequestSendPackage() [all …]
|
| D | usb.cpp | 68 USBHead head; in BuildPacketHeader() local 69 head.sessionId = htonl(sessionId); in BuildPacketHeader() 70 for (size_t i = 0; i < sizeof(head.flag); i++) { in BuildPacketHeader() 71 head.flag[i] = USB_PACKET_FLAG.data()[i]; in BuildPacketHeader() 73 head.option = option; in BuildPacketHeader() 74 head.dataSize = htonl(dataSize); in BuildPacketHeader() 75 vecData.insert(vecData.end(), (uint8_t *)&head, (uint8_t *)&head + sizeof(USBHead)); in BuildPacketHeader()
|
| D | uart.h | 108 const uint8_t *head = reinterpret_cast<const uint8_t *>(this); in UpdateCheckSum() local 110 headCheckSum = std::accumulate(head, head + headCheckSumLen, 0u); in UpdateCheckSum() 116 const uint8_t *head = reinterpret_cast<const uint8_t *>(this); in ValidateHead() local 118 return (headCheckSum == std::accumulate(head, head + headCheckSumLen, 0u)); in ValidateHead() 233 virtual void ProcessResponsePackage(const UartHead &head);
|
| /developtools/hdc/hdc_rust/src/cffi/ |
| D | usb_util.cpp | 50 USBHead head; in BuildPacketHeader() local 51 head.sessionId = htonl(sessionId); in BuildPacketHeader() 52 for (size_t i = 0; i < sizeof(head.flag); i++) { in BuildPacketHeader() 53 head.flag[i] = USB_PACKET_FLAG.data()[i]; in BuildPacketHeader() 55 head.option = option; in BuildPacketHeader() 56 head.data_size = htonl(data_size); in BuildPacketHeader() 57 vecData.insert(vecData.end(), (uint8_t *)&head, (uint8_t *)&head + sizeof(USBHead)); in BuildPacketHeader()
|
| D | oh_usb.cpp | 30 descUsbFfs.head.magic = LONG_LE(FUNCTIONFS_DESCRIPTORS_MAGIC_V2); in FillUsbV2Head() 31 descUsbFfs.head.length = LONG_LE(sizeof(descUsbFfs)); in FillUsbV2Head() 32 descUsbFfs.head.flags = FUNCTIONFS_HAS_FS_DESC | FUNCTIONFS_HAS_HS_DESC | in FillUsbV2Head()
|
| D | usb_ffs.h | 53 struct usb_functionfs_strings_head head; member 59 .head = 231 struct usb_functionfs_descs_head_v2 head; member
|
| /developtools/hdc/hdc_rust/src/transfer/ |
| D | uart.rs | 82 pub head: Option<UartHead>, field 120 let mut head = serializer::native_struct::UartHead::default(); in check_protocol_head() localVariable 122 if let Err(e) = head.parse(buf) { in check_protocol_head() 128 self.head = Some(head.clone()); in check_protocol_head() 130 Ok((head.data_size, head.package_index)) in check_protocol_head() 135 let head = self.head.clone(); in process_head() localVariable 136 if let Some(head) = head { in process_head() 138 uart_wrapper::on_read_head(head).await; in process_head()
|
| D | base.rs | 75 let (head, body) = data.split_at(serializer::HEAD_SIZE); in unpack_task_message_lock() 76 let payload_head = serializer::unpack_payload_head(head.to_vec()); in unpack_task_message_lock() 176 let (head, body) = data.split_at(serializer::HEAD_SIZE); in unpack_task_message() 177 let payload_head = serializer::unpack_payload_head(head.to_vec())?; in unpack_task_message()
|
| D | usb.rs | 136 let mut head = serializer::native_struct::UsbHead::default(); in check_protocol_head() localVariable 138 if let Err(e) = head.parse(buf) { in check_protocol_head() 142 Ok((u32::from_be(head.data_size), 0)) in check_protocol_head()
|
| /developtools/hdc/hdc_rust/src/ |
| D | utils.rs | 118 let head = format!("{}:{}", file!().split('/').last().unwrap(), line!()); localVariable 119 hilog_rust::info!(LOG_LABEL, "{} {}", @public(head), @public(format!($($arg)+))); 136 let head = format!("{}:{}", file!().split('/').last().unwrap(), line!()); localVariable 137 hilog_rust::info!(LOG_LABEL, "{} {}", @public(head), @public(format!($($arg)+))); 154 let head = format!("{}:{}", file!().split('/').last().unwrap(), line!()); localVariable 155 hilog_rust::info!(LOG_LABEL, "{} {}", @public(head), @public(format!($($arg)+))); 172 let head = format!("{}:{}", file!().split('/').last().unwrap(), line!()); localVariable 173 hilog_rust::warn!(LOG_LABEL, "{} {}", @public(head), @public(format!($($arg)+))); 190 let head = format!("{}:{}", file!().split('/').last().unwrap(), line!()); localVariable 191 hilog_rust::error!(LOG_LABEL, "{} {}", @public(head), @public(format!($($arg)+))); [all …]
|
| /developtools/profiler/hiebpf/include/ |
| D | hiebpf_macros.h | 136 #define list_for_each(pos, head) \ argument 137 for (pos = (head)->next; pos != (head); pos = pos->next) 154 #define hlist_for_each(pos, head) \ argument 155 for (pos = (head)->first; pos ; pos = pos->next)
|
| /developtools/smartperf_host/trace_streamer/src/parser/bytrace_parser/ |
| D | bytrace_parser.cpp | 198 int32_t head = rawDataHead_; in ParseTraceDataItem() local 200 if (dataSegArray_[head].status.load() != TS_PARSE_STATUS_INIT) { in ParseTraceDataItem() 202 filterHead_, dataSegArray_[head].status.load()); in ParseTraceDataItem() 206 dataSegArray_[head].seg = std::move(buffer); in ParseTraceDataItem() 207 dataSegArray_[head].status = TS_PARSE_STATUS_SEPRATED; in ParseTraceDataItem() 231 int32_t head; in GetNextSegment() local 233 head = parseHead_; in GetNextSegment() 234 DataSegment& seg = dataSegArray_[head]; in GetNextSegment() 251 return head; in GetNextSegment() 298 int32_t head = GetNextSegment(); in ParseThread() local [all …]
|
| /developtools/hdc/hdc_rust/src/daemon/ |
| D | main.rs | 142 let head = rd.head.clone().unwrap(); in uart_handshake() localVariable 143 uart_wrapper::on_read_head(head).await; in uart_handshake() 161 let mut rd = transfer::uart::UartReader { fd, head: None }; in uart_handle_client() 165 let mut rd = transfer::uart::UartReader { fd, head: None }; in uart_handle_client() 190 let head = rd.head.clone().unwrap(); in uart_handle_client() localVariable 191 let package_index = head.package_index; in uart_handle_client() 192 let session_id = head.session_id; in uart_handle_client() 193 uart_wrapper::on_read_head(head).await; in uart_handle_client() 203 let mut rd = transfer::uart::UartReader { fd, head: None }; in uart_handle_client()
|
| /developtools/smartperf_host/ide/src/base-ui/table/ |
| D | LitPageTable.ts | 290 let head = document.createElement('div'); variable 291 head.classList.add('td'); 292 head.style.justifyContent = a.getAttribute('align'); 293 head.style.borderBottom = '1px solid #f0f0f0'; 294 head.style.gridArea = key; 295 head.innerText = a.title; 297 fixed(head, a.getAttribute('fixed'), '#42b983'); 299 rowElement.append(head); 326 resolvingAreaColumnOrder(column: any, index: number, key: string,head: any): void { 328 (head as any).sortType = 0; [all …]
|
| D | LitTableHtml.ts | 517 export function createDownUpSvg(index: number, head: any) { 542 head.sortType = 0; // 默认以第一列 降序排序 作为默认排序 548 head.appendChild(upSvg); 549 head.appendChild(downSvg);
|
| D | lit-table.ts | 372 let head = this.resolvingAreaColumn(rowElement, a, i, key); variable 379 head.appendChild(titleLabel); 382 fixed(head, a.getAttribute('fixed'), '#42b983'); 384 rowElement.append(head); 390 let head: any = document.createElement('div'); variable 391 head.classList.add('td'); 395 head.appendChild(resizeDiv); 398 this.resolvingAreaColumnRetract(column, head); 399 this.resolvingAreaColumnOrder(column, index, key, head); 400 this.resolvingAreaColumnButton(column, key, head); [all …]
|
| /developtools/hiperf/src/ |
| D | ring_buffer.cpp | 73 size_t head = head_.load(std::memory_order_relaxed); in EndWrite() local 74 head += writeSize_; in EndWrite() 75 head_.store(head, std::memory_order_release); in EndWrite()
|
| /developtools/hdc/test/unittest/common/ |
| D | uart_test.cpp | 35 bool MakeData(std::vector<uint8_t> &data, UartHead &head); 135 UartHead head; in MakeRndData() local 136 head.option = PKG_OPTION_TAIL; in MakeRndData() 137 head.sessionId = sessionId; in MakeRndData() 138 head.packageIndex = packageIndex; in MakeRndData() 146 return MakeData(data, head); in MakeRndData() 151 UartHead head; in MakeDemoData() local 152 head.option = PKG_OPTION_TAIL; in MakeDemoData() 153 head.sessionId = sessionId; in MakeDemoData() 154 head.packageIndex = packageIndex; in MakeDemoData() [all …]
|
| /developtools/profiler/device/plugins/memory_plugin/src/ |
| D | smaps_stats.cpp | 172 bool SmapsStats::SetMapAddrInfo(std::string& line, MapPiecesInfo& head) in SetMapAddrInfo() argument 176 head.startAddr = strtoull(pStr, &end, HEX_BASE); in SetMapAddrInfo() 179 head.endAddr = strtoull(pStr, &end, HEX_BASE); in SetMapAddrInfo() 184 bool SmapsStats::ParseMapHead(std::string& line, MapPiecesInfo& head, SmapsHeadInfo& smapsHeadInfo) in ParseMapHead() argument 197 head.startAddr = strtoull(smapsHeadInfo.startAddrStr.c_str(), nullptr, HEX_BASE); in ParseMapHead() 198 head.endAddr = strtoull(smapsHeadInfo.endAddrStr.c_str(), nullptr, HEX_BASE); in ParseMapHead() 208 head.name = newline.substr(0, newline.size() - 1); in ParseMapHead() 209 smapsHeadInfo.path = head.name; in ParseMapHead()
|
| /developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/ |
| D | htrace_parser.cpp | 184 int32_t head = rawDataHead_; in ParseTraceDataItem() local 186 dataSegArray_[head].seg = std::make_shared<std::string>(std::move(buffer)); in ParseTraceDataItem() 187 dataSegArray_[head].status = TS_PARSE_STATUS_SEPRATED; in ParseTraceDataItem() 188 ParserData(dataSegArray_[head], traceDataCache_->isSplitFile_); in ParseTraceDataItem() 192 if (dataSegArray_[head].status.load() != TS_PARSE_STATUS_INIT) { in ParseTraceDataItem() 196 dataSegArray_[head].seg = std::make_shared<std::string>(std::move(buffer)); in ParseTraceDataItem() 197 dataSegArray_[head].status = TS_PARSE_STATUS_SEPRATED; in ParseTraceDataItem() 409 int32_t head = GetNextSegment(); in ParseThread() local 410 if (head < 0) { in ParseThread() 411 if (head == ERROR_CODE_EXIT) { in ParseThread() [all …]
|
| /developtools/smartperf_host/ide/src/hdc/transmission/ |
| D | DataProcessing.ts | 121 let head: USBHead = new USBHead( 127 let dataView = head.getDataView();
|
| /developtools/hdc/src/daemon/ |
| D | usb_ffs.h | 52 struct usb_functionfs_strings_head head; member 58 .head = 228 struct usb_functionfs_descs_head_v2 head; member
|
| /developtools/integration_verification/tools/fotff/rec/ |
| D | report.go | 30 const css = `<head> 55 </head>
|