/device/google/contexthub/contexthubhal/ |
D | message_buf.h | 43 size_t pos; variable 48 pos = 0; in MessageBuf() 54 pos = 0; in MessageBuf() 58 void reset() { pos = 0; } in reset() 61 size_t getPos() const { return pos; } in getPos() 62 size_t getRoom() const { return size - pos; } in getRoom() 64 if (pos == size) { in readU8() 67 return data[pos++]; in readU8() 70 if (pos == size || readOnly) in writeU8() 72 data[pos++] = val; in writeU8() [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/ |
D | AndroidMessageChannel.h | 123 const size_t pos = beforeWrite(); in send() local 126 mItems[pos] = msg; in send() 133 const size_t pos = beforeWrite(); in send() local 136 mItems[pos] = std::move(msg); in send() 143 const auto pos = beforeTryWrite(); in trySend() local 144 if (pos) { in trySend() 145 mItems[*pos] = msg; in trySend() 147 afterWrite(pos); in trySend() 148 return pos; in trySend() 152 const auto pos = beforeTryWrite(); in trySend() local [all …]
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | EntryPoint.cpp | 48 size_t pos, last; in parse() local 59 pos = last + 1; in parse() 61 field = getNextToken(linestr, pos, &last, ",)"); in parse() 73 pos = last + 1; in parse() 88 m_name = getNextToken(linestr, pos, &last, ",)"); in parse() 89 pos = last + 1; in parse() 93 while (pos < linestr.size() - 1) { in parse() 94 field = getNextToken(linestr, pos, &last, ",)"); in parse() 123 pos = last + 1; in parse() 205 size_t pos = 0; in setAttribute() local [all …]
|
D | strUtils.cpp | 21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken() argument 23 if (str.size() == 0 || pos >= str.size()) return ""; in getNextToken() 25 pos = str.find_first_not_of(WHITESPACE, pos); in getNextToken() 26 if (pos == std::string::npos) return ""; in getNextToken() 28 *last = str.find_first_of(delim, pos); in getNextToken() 30 std::string retval = str.substr(pos, *last - pos); in getNextToken()
|
D | Parser.cpp | 33 size_t pos = 0U; in parseTypeTokens() local 39 pos = input.find_first_not_of(WHITESPACE, pos); in parseTypeTokens() 40 if (pos == std::string::npos) { in parseTypeTokens() 46 if (input[pos] == '*') { in parseTypeTokens() 48 pos += 1U; in parseTypeTokens() 53 size_t end = input.find_first_of(WHITESPACE "*", pos); in parseTypeTokens() 58 std::string str = input.substr(pos, end - pos); in parseTypeTokens() 68 pos = end; in parseTypeTokens()
|
D | TypeFactory.cpp | 70 size_t pos = 0, last; in initFromFile() local 72 name = getNextToken(str, pos, &last, WHITESPACE); in initFromFile() 78 pos = last + 1; in initFromFile() 80 size = getNextToken(str, pos, &last, WHITESPACE); in initFromFile() 85 pos = last + 1; in initFromFile() 87 printString = getNextToken(str, pos, &last, WHITESPACE); in initFromFile() 98 pos = last + 1; in initFromFile() 100 pointerDef = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
|
D | ApiGen.cpp | 1534 size_t pos = 0; in setGlobalAttribute() local 1536 std::string token = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute() 1537 pos = last; in setGlobalAttribute() 1540 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute() 1547 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute() 1548 pos = last; in setGlobalAttribute() 1551 str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute() 1552 pos = last; in setGlobalAttribute() 1555 std::string str = getNextToken(line, pos, &last, WHITESPACE); in setGlobalAttribute() 1556 pos = last; in setGlobalAttribute() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | eventQ.c | 29 #define for_each_item_safe(head, pos, tmp) \ argument 30 for (pos = (head)->next; tmp = (pos)->next, (pos) != (head); pos = (tmp)) 87 struct EvtList *pos, *tmp; in evtQueueFree() local 89 for_each_item_safe (&q->head, pos, tmp) { in evtQueueFree() 90 struct EvtRecord * rec = container_of(pos, struct EvtRecord, item); in evtQueueFree() 112 struct EvtList *pos; in evtQueueEnqueue() local 116 for (pos = q->head.next; pos != &q->head; pos = pos->next) { in evtQueueEnqueue() 117 rec = container_of(pos, struct EvtRecord, item); in evtQueueEnqueue() 121 evtListDel(pos); in evtQueueEnqueue() 122 item = pos; in evtQueueEnqueue() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | pdu_parser.cpp | 56 size_t pos = 0; in DecodePDU() local 60 pos += 2; in DecodePDU() 63 pos += smsc_length * 2; // Skip SMSC Address in DecodePDU() 67 pdu_type_ = pdu_view.substr(std::min(pos, pdu_total_length), 2); in DecodePDU() 68 pos += 2; in DecodePDU() 71 message_reference_ = pdu_view.substr(std::min(pos, pdu_total_length), 2); in DecodePDU() 72 pos += 2; in DecodePDU() 75 temp = pdu_view.substr(std::min(pos, pdu_total_length), 2); in DecodePDU() 80 originator_address_ = pdu_view.substr(std::min(pos, pdu_total_length), (oa_length + 4)); in DecodePDU() 81 pos += (oa_length + 4); in DecodePDU() [all …]
|
D | command_parser.h | 61 auto pos = command_.find('='); in SkipPrefix() local 62 if (pos != std::string_view::npos) { in SkipPrefix() 63 command_.remove_prefix(std::min(pos + 1, command_.size())); in SkipPrefix() 80 auto pos = command_.find(','); in SkipComma() local 81 if (pos != std::string_view::npos) { in SkipComma() 82 command_.remove_prefix(std::min(pos + 1, command_.size())); in SkipComma() 91 auto pos = command_.find(' '); in SkipWhiteSpace() local 92 if (pos != std::string_view::npos) { in SkipWhiteSpace() 93 command_.remove_prefix(std::min(pos + 1, command_.size())); in SkipWhiteSpace()
|
D | command_parser.cpp | 52 auto pos = command_.find(flag); in GetNextStr() local 53 auto str = command_.substr(0, pos); in GetNextStr() 54 if (pos != std::string_view::npos) pos += 1; // npos + 1 = 0 in GetNextStr() 55 command_.remove_prefix(std::min(pos, command_.size())); in GetNextStr()
|
D | channel_monitor.cpp | 142 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommand() local 145 r_pos = commands.find('\032', pos); // In sms, find ctrl-z in ReadCommand() 147 r_pos = commands.find('\r', pos); in ReadCommand() 150 auto command = commands.substr(pos, r_pos - pos); in ReadCommand() 155 pos = r_pos + 1; // Skip '\r' in ReadCommand() 156 } else if (pos < commands.length()) { // Incomplete command in ReadCommand() 157 incomplete_command = commands.substr(pos); in ReadCommand()
|
D | call_service.cpp | 136 auto pos = cmd->find_last_of('@'); in HandleDial() local 137 if (pos != std::string_view::npos) { in HandleDial() 139 number = cmd->substr(1, pos -1); // Skip 'D' and ignore category, clir in HandleDial() 141 pos = cmd->find_last_of('i'); in HandleDial() 142 if (pos == std::string_view::npos) { in HandleDial() 143 pos = cmd->find_last_of('I'); in HandleDial() 144 if (pos == std::string_view::npos) { in HandleDial() 145 pos = cmd->find_last_of(';'); in HandleDial() 148 if (pos == std::string_view::npos) { in HandleDial() 151 number = cmd->substr(1, pos -1); in HandleDial()
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | cpp_bindings.h | 109 struct nlattr *pos; variable 113 pos = (struct nlattr *)nla_data(attr); in nl_iterator() 117 return nla_ok(pos, rem); in has_next() 120 pos = (struct nlattr *)nla_next(pos, &(rem)); in next() 123 return pos; in get() 126 return pos->nla_type; in get_type() 129 return nla_get_u8(pos); in get_u8() 132 return nla_get_u16(pos); in get_u16() 135 return nla_get_u32(pos); in get_u32() 138 return nla_get_u64(pos); in get_u64() [all …]
|
/device/google/cuttlefish_kernel/scripts/ |
D | extract-vmlinux | 38 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"` 40 pos=${pos%%:*} 41 tail -c+$pos "$img" | $3 > $tmp 2> /dev/null
|
/device/google/contexthub/firmware/os/cpu/x86/ |
D | atomicBitset.c | 63 uint32_t pos, i, numWords = (set->numBits + 31) / 32; in atomicBitsetFindClearAndSet() local 74 …pos = __builtin_ctz(~old); /* This will allocate in diff order than ARM. Since we never made any p… in atomicBitsetFindClearAndSet() 75 new = old | (1 << pos); in atomicBitsetFindClearAndSet() 78 return 32 * i + pos; in atomicBitsetFindClearAndSet()
|
/device/google/contexthub/lib/nanohub/ |
D | nanoapp.c | 104 int pos; in doPrintHash() local 106 for (i = 0, pos = 0; i < size; ++i, pos += increment) in doPrintHash() 107 fprintf(out, "%08" PRIx32, hash[pos]); in doPrintHash()
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | VirtioGpuStream.cpp | 377 size_t pos = 0U, numFlushed = 0U; in commitAll() local 378 while (pos < m_flushPos) { in commitAll() 379 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[pos]); in commitAll() 382 if (pos + cmd->cmdSize > m_bufSize) { in commitAll() 384 "error, exiting.", __func__, pos, cmd->cmdSize, m_bufSize); in commitAll() 407 pos += cmd->cmdSize; in commitAll() 411 if (pos > m_flushPos) { in commitAll() 413 m_flushPos, pos); in commitAll()
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | cache.h | 143 iterator erase(const_iterator pos) { in erase() argument 144 return iterator(mMap.erase(pos.internal())); in erase() 147 iterator erase(iterator pos) { in erase() argument 148 return iterator(mMap.erase(pos.internal())); in erase()
|
/device/google/coral/json-c/ |
D | json_object.c | 102 int pos = 0, start_offset = 0; in json_escape_str() local 106 c = str[pos]; in json_escape_str() 117 if(pos - start_offset > 0) in json_escape_str() 118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 129 start_offset = ++pos; in json_escape_str() 134 if(pos - start_offset > 0) in json_escape_str() 135 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 139 start_offset = ++pos; in json_escape_str() 141 pos++; in json_escape_str() 144 if (pos - start_offset > 0) in json_escape_str() [all …]
|
/device/google/bonito/json-c/ |
D | json_object.c | 102 int pos = 0, start_offset = 0; in json_escape_str() local 106 c = str[pos]; in json_escape_str() 117 if(pos - start_offset > 0) in json_escape_str() 118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 129 start_offset = ++pos; in json_escape_str() 134 if(pos - start_offset > 0) in json_escape_str() 135 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 139 start_offset = ++pos; in json_escape_str() 141 pos++; in json_escape_str() 144 if (pos - start_offset > 0) in json_escape_str() [all …]
|
/device/google/crosshatch/json-c/ |
D | json_object.c | 102 int pos = 0, start_offset = 0; in json_escape_str() local 106 c = str[pos]; in json_escape_str() 117 if(pos - start_offset > 0) in json_escape_str() 118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 129 start_offset = ++pos; in json_escape_str() 134 if(pos - start_offset > 0) in json_escape_str() 135 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str() 139 start_offset = ++pos; in json_escape_str() 141 pos++; in json_escape_str() 144 if (pos - start_offset > 0) in json_escape_str() [all …]
|
/device/google/cuttlefish/host/commands/kernel_log_monitor/ |
D | kernel_log_server.cc | 112 auto pos = line_.find(match); in HandleIncomingMessage() local 113 if (std::string::npos != pos) { in HandleIncomingMessage() 114 LOG(INFO) << prefix << line_.substr(pos + match.size()); in HandleIncomingMessage()
|
/device/google/contexthub/util/common/ |
D | file.cpp | 85 off64_t File::seekTo(off64_t pos, int whence) { in seekTo() argument 86 off64_t new_pos = lseek64(mFd, pos, whence); in seekTo()
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | SSLSocket.cpp | 345 const size_t pos = mOutBuffer.size(); in queueOutputData() local 346 mOutBuffer.resize(pos + size); in queueOutputData() 347 memcpy(mOutBuffer.data() + pos, data, size); in queueOutputData() 417 const size_t pos = mOutBufferPlain.size(); in sendto() local 418 mOutBufferPlain.resize(pos + size); in sendto() 419 memcpy(&mOutBufferPlain[pos], data, size); in sendto()
|