/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | reference-ril.c | 470 static int callFromCLCCLine(char *line, RIL_Call *p_call) in callFromCLCCLine() argument 479 err = at_tok_start(&line); in callFromCLCCLine() 482 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 485 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 488 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 494 err = at_tok_nextint(&line, &mode); in callFromCLCCLine() 499 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine() 502 if (at_tok_hasmore(&line)) { in callFromCLCCLine() 503 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine() 516 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine() [all …]
|
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 …]
|
/device/google/gs-common/powerstats/ |
D | DisplayMrrStateResidencyDataProvider.cpp | 43 char *line = nullptr; in DisplayMrrStateResidencyDataProvider() local 46 while (getline(&line, &len, fp.get()) != -1) { in DisplayMrrStateResidencyDataProvider() 47 if (parseAvailableState(line, &config)) { in DisplayMrrStateResidencyDataProvider() 50 PLOG(ERROR) << "Failed to parse display config for [" << std::string(line) in DisplayMrrStateResidencyDataProvider() 56 free(line); in DisplayMrrStateResidencyDataProvider() 63 char const *line, Config *config, uint64_t *duration) { in parseConfig() argument 64 std::vector<std::string> parts = Split(line, " "); in parseConfig() 83 char const *line, Config *config) { in parseAvailableState() argument 84 return parseConfig(line, config, nullptr); in parseAvailableState() 88 char const *line, Config *config, uint64_t *duration) { in parseTimeInState() argument [all …]
|
D | CpupmStateResidencyDataProvider.cpp | 46 int32_t CpupmStateResidencyDataProvider::matchState(char const *line) { in matchState() argument 48 if (mConfig.states[i].second == Trim(std::string(line))) { in matchState() 55 int32_t CpupmStateResidencyDataProvider::matchEntity(char const *line) { in matchEntity() argument 57 if (StartsWith(Trim(std::string(line)), mConfig.entities[i].second)) { in matchEntity() 65 char const *line, uint64_t *duration, uint64_t *count) { in parseState() argument 66 std::vector<std::string> parts = Split(line, " "); in parseState() 102 char *line = nullptr; in getStateResidencies() local 110 while (getline(&line, &len, sleepFp.get()) != -1) { in getStateResidencies() 111 std::string trimedLine = Trim(std::string(line)); in getStateResidencies() 128 while (getline(&line, &len, fp.get()) != -1) { in getStateResidencies() [all …]
|
D | DvfsStateResidencyDataProvider.cpp | 42 int32_t DvfsStateResidencyDataProvider::matchEntity(char const *line) { in matchEntity() argument 44 if (mPowerEntities[i].powerEntityName == Trim(std::string(line))) { in matchEntity() 51 int32_t DvfsStateResidencyDataProvider::matchState(char const *line, const Config& powerEntity) { in matchState() argument 53 if (StartsWith(Trim(std::string(line)), powerEntity.states[i].second)) { in matchState() 60 bool DvfsStateResidencyDataProvider::parseState(char const *line, uint64_t *duration, in parseState() argument 62 std::vector<std::string> parts = Split(line, " "); in parseState() 92 char *line = nullptr; in getStateResidencies() local 98 while (getline(&line, &len, fp.get()) != -1) { in getStateResidencies() 99 temp = matchEntity(line); in getStateResidencies() 107 if (StartsWith(Trim(std::string(line)), "last_freq_change_time_ns:")) in getStateResidencies() [all …]
|
/device/google/felix/vibrator/common/ |
D | HardwareBase.cpp | 53 std::string line; in debug() local 56 while (std::getline(stream, line)) { in debug() 57 dprintf(fd, " %s\n", line.c_str()); in debug() 85 for (std::string line; std::getline(calfile, line);) { in HwCalBase() local 86 if (line.empty() || line[0] == '#') { in HwCalBase() 89 std::istringstream is_line(line); in HwCalBase() 98 for (std::string line; std::getline(calfile_dual, line);) { in HwCalBase() local 99 if (line.empty() || line[0] == '#') { in HwCalBase() 102 std::istringstream is_line(line); in HwCalBase() 114 std::string line; in debug() local [all …]
|
/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 …]
|
D | ApiGen.cpp | 1464 char line[1000]; in readSpec() local 1466 while (fgets(line, sizeof(line), specfp) != NULL) { in readSpec() 1469 if (ref.parse(lc, std::string(line))) { in readSpec() 1495 std::string line(buf); in readAttributes() local 1496 if (line.size() == 0) continue; // could that happen? in readAttributes() 1498 if (line.at(0) == '#') continue; // comment in readAttributes() 1500 size_t first = line.find_first_not_of(" \t\n"); in readAttributes() 1503 line = trim(line); in readAttributes() 1504 if (line.size() == 0 || line.at(0) == '#') continue; in readAttributes() 1508 if (line == "GLOBAL") { in readAttributes() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | gen_entries.py | 83 for line in lines: 85 line = line.strip() 86 if len(line) == 0: # Ignore empty lines 88 if line[0] == "#": # Ignore comments 90 if line[0] == "!": # Prefix name 91 prefix_name = line[1:] 93 if line[0] == "%": # Verbatim line copy 94 verbatim.append(line[1:]) 97 m = re_func.match(line) 99 errors.append("%d: '%s'" % (lineno, line)) [all …]
|
/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/linaro/dragonboard/shared/utils/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/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/sunfish/vibrator/common/ |
D | HardwareBase.cpp | 50 std::string line; in debug() local 53 while (std::getline(stream, line)) { in debug() 54 dprintf(fd, " %s\n", line.c_str()); in debug() 81 for (std::string line; std::getline(calfile, line);) { in HwCalBase() local 82 if (line.empty() || line[0] == '#') { in HwCalBase() 85 std::istringstream is_line(line); in HwCalBase() 96 std::string line; in debug() local 125 while (std::getline(stream, line)) { in debug() 126 dprintf(fd, " %s\n", line.c_str()); in debug()
|
/device/google/gs101/uwb/calibration/ |
D | country_conf_gen.sh | 10 while read line ; do 11 if [[ "$line" =~ ^"*" ]]; then 12 header=${line:1} 13 elif [[ "$line" =~ ^"\"" ]]; then 14 line=$(echo ${line/,} | tr -d "\"") 15 country[count]=$(echo $line | cut -d ':' -f1) 16 code[count]=$(echo $line | cut -d ':' -f2 | tr -d " ")
|
/device/google/cuttlefish/host/commands/gnss_grpc_proxy/ |
D | gnss_grpc_proxy.cpp | 211 std::string line; in ReadFixedLocationFromLocalFile() local 212 while (std::getline(file, line)) { in ReadFixedLocationFromLocalFile() 223 cached_fixed_location = line; in ReadFixedLocationFromLocalFile() 239 std::string line; in ReadGnssRawMeasurement() local 243 while (!cached_line.empty() || std::getline(file, line)) { in ReadGnssRawMeasurement() 245 line = cached_line; in ReadGnssRawMeasurement() 250 if (header.empty() && android::base::StartsWith(line, "# Raw")) { in ReadGnssRawMeasurement() 251 header = line; in ReadGnssRawMeasurement() 257 if (!android::base::StartsWith(line, "Raw")) { in ReadGnssRawMeasurement() 263 cached_gnss_raw = header + "\n" + line; in ReadGnssRawMeasurement() [all …]
|
/device/generic/goldfish/tools/ |
D | mk_combined_img.py | 29 for line in lines: 30 line = line.strip() 31 if not line or line[0] == "#": 33 params = line.split() 42 for line in parsed_lines: 44 partition_info["path"] = line[0] 45 partition_info["label"] = line[1] 47 sizeByMb = str(math.ceil(os.path.getsize(line[0]) / 1024 / 1024)) 51 partition_info["num"] = int(line[2])
|
/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/common/libs/utils/ |
D | proc_file_utils.cpp | 64 for (const std::string& line : in OwnerUids() local 67 if (!std::regex_match(line, matches, uid_pattern)) { in OwnerUids() 72 fmt::format("Error in the Uid line: \"{}\"", line)); in OwnerUids() 194 for (const std::string& line : in CheckExecNameFromStatus() local 196 std::string_view line_view(line); in CheckExecNameFromStatus() 284 for (const auto& line : lines) { in GetEnvs() local 285 auto pos = line.find_first_of('='); in GetEnvs() 287 LOG(ERROR) << "Found an invalid env: " << line << " and ignored."; in GetEnvs() 290 std::string key = line.substr(0, pos); in GetEnvs() 291 std::string value = line.substr(pos + 1); in GetEnvs() [all …]
|
/device/sample/etc/ |
D | fix_apns_full_conf.py | 70 for line in ifile: 71 if re.match(RE_TYPE, line): 73 ofile.write(re.sub(RE_IA_DEFAULT, "default,ia", line)) 74 elif re.search(RE_BEAR_BITMASK, line): 76 rats = line.split("\"")[1].strip().split("|") 82 ofile.write(re.sub(RE_BEAR_BITMASK, res, line)) 84 ofile.write(line)
|
/device/google/gs-common/touch/gti/ |
D | touch_gti_ical.cpp | 34 char *line = NULL; in main() local 110 getline(&line, &len, ical_fd); in main() 111 if (line != NULL) { in main() 121 ical_sysfs_path, line); in main() 125 property_set(ical_result_prop_path, line); in main() 126 ALOGI("read: %s => %s", ical_sysfs_path, line); in main() 128 free(line); in main()
|
/device/google/tangorpro/uwb/ |
D | country_conf_gen.sh | 36 while read line ; do 37 if [[ "$line" =~ ^"*" ]]; then 38 header=${line:1} 39 elif [[ "$line" =~ ^"\"" ]]; then 41 country[count]=$(echo $line | cut -d ':' -f1 | tr -d "\"") 42 code[count]=$(echo $line | cut -d ':' -f2 | tr -d "\"" | tr -d " ")
|
/device/google/raviole/uwb/ |
D | country_conf_gen.sh | 36 while read line ; do 37 if [[ "$line" =~ ^"*" ]]; then 38 header=${line:1} 39 elif [[ "$line" =~ ^"\"" ]]; then 41 country[count]=$(echo $line | cut -d ':' -f1 | tr -d "\"") 42 code[count]=$(echo $line | cut -d ':' -f2 | tr -d "\"" | tr -d " ")
|
/device/google/pantah/uwb/ |
D | country_conf_gen.sh | 36 while read line ; do 37 if [[ "$line" =~ ^"*" ]]; then 38 header=${line:1} 39 elif [[ "$line" =~ ^"\"" ]]; then 41 country[count]=$(echo $line | cut -d ':' -f1 | tr -d "\"") 42 code[count]=$(echo $line | cut -d ':' -f2 | tr -d "\"" | tr -d " ")
|
/device/google/felix/uwb/ |
D | country_conf_gen.sh | 36 while read line ; do 37 if [[ "$line" =~ ^"*" ]]; then 38 header=${line:1} 39 elif [[ "$line" =~ ^"\"" ]]; then 41 country[count]=$(echo $line | cut -d ':' -f1 | tr -d "\"") 42 code[count]=$(echo $line | cut -d ':' -f2 | tr -d "\"" | tr -d " ")
|
/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()
|