/device/linaro/dragonboard/qcom/rmtfs/ |
D | util.c | 17 char line[16 * 3 + 16 + 1]; in print_hex_dump() local 28 line[li++] = to_hex(ch >> 4); in print_hex_dump() 29 line[li++] = to_hex(ch); in print_hex_dump() 30 line[li++] = ' '; in print_hex_dump() 34 line[li++] = ' '; in print_hex_dump() 35 line[li++] = ' '; in print_hex_dump() 36 line[li++] = ' '; in print_hex_dump() 41 line[li++] = isprint(ch) ? ch : '.'; in print_hex_dump() 44 line[li] = '\0'; in print_hex_dump() 46 printf("%s %04x: %s\n", prefix, i, line); in print_hex_dump()
|
/device/generic/goldfish/radio/ril/ |
D | atchannel.c | 122 static void addIntermediate(const char *line) in addIntermediate() argument 128 p_new->line = strdup(line); in addIntermediate() 151 static int isFinalResponseError(const char *line) in isFinalResponseError() argument 156 if (strStartsWith(line, s_finalResponsesError[i])) { in isFinalResponseError() 173 static int isFinalResponseSuccess(const char *line) in isFinalResponseSuccess() argument 178 if (strStartsWith(line, s_finalResponsesSuccess[i])) { in isFinalResponseSuccess() 191 static int isFinalResponse(const char *line) in isFinalResponse() argument 193 return isFinalResponseSuccess(line) || isFinalResponseError(line); in isFinalResponse() 206 static int isSMSUnsolicited(const char *line) in isSMSUnsolicited() argument 211 if (strStartsWith(line, s_smsUnsoliciteds[i])) { in isSMSUnsolicited() [all …]
|
D | reference-ril.c | 319 static int callFromCLCCLine(char *line, RIL_Call *p_call) in callFromCLCCLine() argument 328 err = at_tok_start(&line); in callFromCLCCLine() 331 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 334 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 337 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 343 err = at_tok_nextint(&line, &mode); in callFromCLCCLine() 348 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine() 351 if (at_tok_hasmore(&line)) { in callFromCLCCLine() 352 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine() 365 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine() [all …]
|
D | misc.c | 21 int strStartsWith(const char *line, const char *prefix) in strStartsWith() argument 23 for ( ; *line != '\0' && *prefix != '\0' ; line++, prefix++) { in strStartsWith() 24 if (*line != *prefix) { in strStartsWith()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | atchannel.c | 121 static void addIntermediate(const char *line) in addIntermediate() argument 127 p_new->line = strdup(line); in addIntermediate() 150 static int isFinalResponseError(const char *line) in isFinalResponseError() argument 155 if (strStartsWith(line, s_finalResponsesError[i])) { in isFinalResponseError() 172 static int isFinalResponseSuccess(const char *line) in isFinalResponseSuccess() argument 177 if (strStartsWith(line, s_finalResponsesSuccess[i])) { in isFinalResponseSuccess() 190 static int isFinalResponse(const char *line) in isFinalResponse() argument 192 return isFinalResponseSuccess(line) || isFinalResponseError(line); in isFinalResponse() 205 static int isSMSUnsolicited(const char *line) in isSMSUnsolicited() argument 210 if (strStartsWith(line, s_smsUnsoliciteds[i])) { in isSMSUnsolicited() [all …]
|
D | reference-ril.c | 430 static int callFromCLCCLine(char *line, RIL_Call *p_call) in callFromCLCCLine() argument 439 err = at_tok_start(&line); in callFromCLCCLine() 442 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 445 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 448 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 454 err = at_tok_nextint(&line, &mode); in callFromCLCCLine() 459 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine() 462 if (at_tok_hasmore(&line)) { in callFromCLCCLine() 463 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine() 476 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine() [all …]
|
D | misc.c | 22 int strStartsWith(const char *line, const char *prefix) in strStartsWith() argument 24 for ( ; *line != '\0' && *prefix != '\0' ; line++, prefix++) { in strStartsWith() 25 if (*line != *prefix) { in strStartsWith()
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | exti.c | 37 void extiEnableIntLine(const enum ExtiLine line, enum ExtiTrigger trigger) in extiEnableIntLine() argument 40 EXTI->RTSR |= (1UL << line); in extiEnableIntLine() 41 EXTI->FTSR |= (1UL << line); in extiEnableIntLine() 43 EXTI->RTSR |= (1UL << line); in extiEnableIntLine() 44 EXTI->FTSR &= ~(1UL << line); in extiEnableIntLine() 46 EXTI->RTSR &= ~(1UL << line); in extiEnableIntLine() 47 EXTI->FTSR |= (1UL << line); in extiEnableIntLine() 51 extiClearPendingLine(line); in extiEnableIntLine() 54 EXTI->IMR |= (1UL << line); in extiEnableIntLine() 57 void extiDisableIntLine(const enum ExtiLine line) in extiDisableIntLine() argument [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | gen_entries.py | 79 for line in lines: 81 line = line.strip() 82 if len(line) == 0: # Ignore empty lines 84 if line[0] == '#': # Ignore comments 86 if line[0] == '!': # Prefix name 87 prefix_name = line[1:] 89 if line[0] == '%': # Verbatim line copy 90 verbatim.append(line[1:]) 93 m = re_func.match(line) 95 errors.append("%d: '%s'" % (lineno, line)) [all …]
|
/device/google/cuttlefish/tools/ |
D | tombstone_to_line.py | 59 def simple_match(line, info, indent, out_file): argument 61 line, info.file_name, info.line_number), file=out_file) 64 def source_match(line, info, indent, out_file): argument 72 simple_match(line, info, indent, out_file) 74 print(line, file=out_file) 82 for line in in_file: 83 line = line.rstrip() 86 groups = p[0].match(line) 93 print(line, file=out_file) 96 source_match(line, info, len(groups.group(p[1])), out_file) [all …]
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | misc_info.cc | 26 for (auto& line : lines) { in ParseMiscInfo() local 27 line = android::base::Trim(line); in ParseMiscInfo() 28 if (line.size() == 0) { in ParseMiscInfo() 31 auto eq_pos = line.find('='); in ParseMiscInfo() 33 LOG(WARNING) << "Line in unknown format: \"" << line << "\""; in ParseMiscInfo() 37 auto key = android::base::Trim(line.substr(0, eq_pos)); in ParseMiscInfo() 38 auto value = android::base::Trim(line.substr(eq_pos + 1)); in ParseMiscInfo()
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | EntryPoint.cpp | 203 int EntryPoint::setAttribute(const std::string &line, size_t lc) in setAttribute() argument 207 std::string token = getNextToken(line, 0, &last, WHITESPACE); in setAttribute() 213 std::string varname = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() 220 v->setLenExpression(line.substr(pos)); in setAttribute() 223 std::string varname = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() 229 v->setParamCheckExpression(line.substr(pos)); in setAttribute() 233 std::string varname = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() 240 std::string pointerDirStr = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() 258 std::string varname = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() 266 std::string flag = getNextToken(line, pos, &last, WHITESPACE); in setAttribute() [all …]
|
/device/generic/goldfish/tools/ |
D | mk_combined_img.py | 34 for line in lines: 35 line = line.strip() 36 if not line or line[0] == "#": 38 params = line.split() 47 for line in parsed_lines: 49 partition_info["path"] = line[0] 50 partition_info["label"] = line[1] 52 sizeByMb = str((1024 * 1024 - 1 + os.path.getsize(line[0])) / 1024 / 1024) 56 partition_info["num"] = int(line[2]) 58 print("'%s' cannot be converted to int" % (line[2]))
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | HTTPRequestResponse.cpp | 44 std::string line( in setTo() 50 if (!parseRequestResponseLine(line)) { in setTo() 58 if (!std::regex_match(line, match, re)) { in setTo() 67 sawEmptyLine = line.empty(); in setTo() 126 bool HTTPRequest::parseRequestResponseLine(const std::string &line) { in parseRequestResponseLine() argument 130 if (!std::regex_match(line, match, re)) { in parseRequestResponseLine() 155 bool HTTPResponse::parseRequestResponseLine(const std::string &line) { in parseRequestResponseLine() argument 161 if (!std::regex_match(line, match, re)) { in parseRequestResponseLine()
|
/device/google/cuttlefish/host/commands/tpm_simulator_manager/ |
D | tpm_simulator_manager.cpp | 81 std::string line(lineptr); in main() local 82 line = line.substr(0, line.size() - 1); in main() 83 if (HasSubstrings(line, {"TPM", "command", "server", "listening", "on", "port"})) { in main() 86 if (HasSubstrings(line, {"Platform", "server", "listening", "on", "port"})) { in main() 106 LOG(INFO) << "TPM2SIM: " << line; in main()
|
/device/google/coral/vibrator/ |
D | Hardware.cpp | 162 std::string line; in debug() local 165 while (std::getline(stream, line)) { in debug() 166 dprintf(fd, " %s\n", line.c_str()); in debug() 193 for (std::string line; std::getline(calfile, line);) { in HwCal() local 194 if (line.empty() || line[0] == '#') { in HwCal() 197 std::istringstream is_line(line); in HwCal() 225 std::string line; in debug() local 232 while (std::getline(stream, line)) { in debug() 233 dprintf(fd, " %s\n", line.c_str()); in debug()
|
/device/google/contexthub/util/nanotool/ |
D | log.cpp | 76 char line[32]; in DebugBuf() local 83 offset += snprintf(&line[offset], sizeof(line) - offset, "%02x ", in DebugBuf() 89 Log::Debug(" %s\t%s", line, line_chars); in DebugBuf() 93 offset += snprintf(&line[offset], sizeof(line) - offset, " "); in DebugBuf() 103 Log::Debug(" %s%s%s", line, tabs.c_str(), line_chars); in DebugBuf()
|
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/ |
D | exti.h | 62 void extiEnableIntLine(const enum ExtiLine line, enum ExtiTrigger trigger); 63 void extiDisableIntLine(const enum ExtiLine line); 64 bool extiIsPendingLine(const enum ExtiLine line); 65 void extiClearPendingLine(const enum ExtiLine line);
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 216 char *line = NULL; in parseInstalledAppInfo() local 226 while ((numRead = getline(&line, &len, fp)) != -1) { in parseInstalledAppInfo() 228 …sscanf(line, "app: %d id: %" PRIx64 " ver: %" PRIx32 " size: %" PRIx32 "\n", &currApp->num, &currA… in parseInstalledAppInfo() 233 if (line) in parseInstalledAppInfo() 234 free(line); in parseInstalledAppInfo() 253 char *line = NULL; in findAppIdByName() local 262 while ((numRead = getline(&line, &len, fp)) != -1) { in findAppIdByName() 266 …sscanf(line, "%" STRINGIFY(MAX_APP_NAME_LEN) "s %" PRIx64 " %" PRIx32 "\n", entry, appId, &appVers… in findAppIdByName() 276 if (line) in findAppIdByName() 277 free(line); in findAppIdByName() [all …]
|
/device/google/cuttlefish_vmm/ |
D | policy-inliner.sh | 27 while IFS= read -r line 29 …if echo "$line" | egrep "@include[[:space:]]+/usr/share/policy/crosvm/common_device.policy" > /dev… 33 echo $line >> $output
|
/device/google/crosshatch/vibrator/ |
D | impl.cpp | 78 for (std::string line; std::getline(cal_data, line);) { in loadCalibrationData() local 79 if (line.empty() || line[0] == '#') { in loadCalibrationData() 82 std::istringstream is_line(line); in loadCalibrationData()
|
/device/linaro/hikey/hifi/xaf/host-apf/include/ |
D | xf-debug.h | 70 #define __xf_stub(tag, line) __xf_stub2(tag, line) argument 71 #define __xf_stub2(tag, line) typedef int __xf_##tag##_##line argument
|
/device/google/coral/powerstats/ |
D | GpuStateResidencyDataProvider.cpp | 41 std::string line; in getTotalTime() local 42 std::getline(inFile, line); in getTotalTime() 43 std::istringstream lineStream(line, std::istringstream::in); in getTotalTime()
|
/device/google/cuttlefish/common/libs/utils/ |
D | network.cpp | 146 for (const auto& line : lines) { in TapInterfacesInUse() local 147 if (line == "") { in TapInterfacesInUse() 150 if (!android::base::StartsWith(line, "iff:\t")) { in TapInterfacesInUse() 151 LOG(ERROR) << "Unexpected line \"" << line << "\""; in TapInterfacesInUse() 154 tap_interfaces.insert(line.substr(std::string("iff:\t").size())); in TapInterfacesInUse() 168 for (const auto& line : lease_file_lines) { in ParseDnsmasqLeases() local 169 if (line == "") { in ParseDnsmasqLeases() 172 auto line_elements = android::base::Split(line, " "); in ParseDnsmasqLeases() 174 LOG(WARNING) << "Could not parse lease line: \"" << line << "\"\n"; in ParseDnsmasqLeases()
|
/device/google/cuttlefish/host/frontend/gcastv2/https/include/https/ |
D | HTTPRequestResponse.h | 39 virtual bool parseRequestResponseLine(const std::string &line) = 0; 61 bool parseRequestResponseLine(const std::string &line) override; 75 bool parseRequestResponseLine(const std::string &line) override;
|