/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/config/ifdef-mismatch/ |
D | extension.rb | 20 def initialize cursor, attributes, line 21 @cursor, @attributes, @line = cursor, attributes, line 30 def is_adoc_begin_conditional line 31 line.start_with?( 'ifdef::', 'ifndef::' ) && line.end_with?('[]') 34 def is_adoc_begin_conditional_eval line 35 line.start_with?( 'ifeval::[' ) && line.end_with?(']') 38 def is_adoc_end_conditional line 39 line.start_with?( 'endif::' ) && line.end_with?('[]') 42 def conditional_attributes line 43 …line.delete_prefix('ifdef::').delete_prefix('ifndef::').delete_prefix('endif::').delete_suffix('[]… [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/ |
D | comment_convert.py | 44 def output_line(self, line=None): argument 45 if line: 46 self.output_lines.append(line) 50 def output_normal_line(self, line): argument 53 self.output_line(line) 60 for line in self.comment_lines: 61 self.output_line(line) 64 for line in self.trailing_empty_lines: 65 self.output_line(line) 73 for line in self.trailing_empty_lines: [all …]
|
D | doctransformer.py | 124 def isOpenBlockDelimiter(self, line): argument 129 return line.rstrip() == '--' 137 def endBlock(self, line, transform, vuBlock): argument 142 if self.blockStack[-1] == line: 145 ':', line, end='') 149 if self.isOpenBlockDelimiter(line): 161 self.blockStack.append(line) 167 ':', line, end='') 169 def addLine(self, line, indent): argument 173 self.para = [line] [all …]
|
D | reflib.py | 42 def setLogLine(line): argument 44 logLine = line 160 def printPageInfoField(desc, line, file): argument 166 if line is not None: 167 logDiag(desc + ':', line + 1, '\t-> ', file[line], end='') 169 logDiag(desc + ':', line) 190 def prevPara(file, line): argument 200 while (line >= 0 and not isempty(file[line])): 201 line = line - 1 203 while (line >= 0 and isempty(file[line])): [all …]
|
/hardware/google/gchips/gralloc4/src/core/ |
D | align_structs.py | 11 def braces_match(line): argument 13 for c in line: 18 sys.exit("Too many close braces on line:\n{}", line) 25 def is_partial_comment(line): argument 26 stripped = line.strip() 37 for line in lines: 38 current_line = current_line + line 51 def is_line_ignored(line): argument 52 stripped = line.lstrip() 55 def pack(line): argument [all …]
|
/hardware/st/nfc/st21nfc/adaptation/ |
D | android_logmsg.cpp | 73 char line[100]; in DispHal() local 101 line[0] = 0; in DispHal() 113 STLOG_HAL_D("(#0%04X) Rx %s\n", frame_nb, line); in DispHal() 115 STLOG_HAL_D("(#0%04X) Tx %s\n", frame_nb, line); in DispHal() 117 STLOG_HAL_D("%s\n", line); in DispHal() 122 STLOG_HAL_D("(#0%04X) rx %s\n", frame_nb, line); in DispHal() 124 STLOG_HAL_D("(#0%04X) tx %s\n", frame_nb, line); in DispHal() 126 STLOG_HAL_D("%s\n", line); in DispHal() 130 line[k] = 0; in DispHal() 133 snprintf(&line[k * 3], sizeof(line) - (k * 3), "%02x ", d[i]); in DispHal() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/Retired/ |
D | insertTags.py | 41 line = len(file) - 1 42 while (line >= 0): 47 if (pi.begin == line): 50 …iag('Description already exists, but no refDesc found for', name, 'at', specFile + ':' + str(line)) 53 … logDiag('No refDesc found (this is OK) for embedded', name, 'at', specFile + ':' + str(line)) 55 logWarn('No refDesc found for', name, 'at', specFile + ':' + str(line)) 62 logDiag('Adding description for', name, 'at', specFile + ':' + str(line)) 66 if (file[line].find('// refBegin') == 0): 67 …Diag('Replacing existing refBegin without description for', name, 'at', specFile + ':' + str(line)) 68 file[line] = newLine [all …]
|
D | findBalance.py | 34 line = 1 57 'Opening -- block @', line, 59 blocks.append([ '--', line, None ]) 60 line = line + 1 66 line = line + 1 75 print('Matched self-closing if(n)def pattern @', line, 79 'Opening if(n)def block @', line, 82 blocks.append([ 'ifdef', line, condition ]) 84 line = line + 1 103 'Closing endif block @', line, [all …]
|
/hardware/st/secure_element/ese-spi-driver/utils-lib/ |
D | android_logmsg.cc | 59 char line[100]; in DispHal() local 63 line[0] = 0; in DispHal() 74 STLOG_HAL_D("spiRx %s\n", line); in DispHal() 76 STLOG_HAL_D("spiTx %s\n", line); in DispHal() 78 STLOG_HAL_D("%s\n", line); in DispHal() 81 STLOG_HAL_D("%s\n", line); in DispHal() 83 line[k] = 0; in DispHal() 85 sprintf(&line[k * 3], "%02x ", d[i]); in DispHal() 90 STLOG_HAL_D("spiRx %s\n", line); in DispHal() 92 STLOG_HAL_D("spiTx %s\n", line); in DispHal() [all …]
|
/hardware/st/nfc/1.0/adaptation/ |
D | android_logmsg.cpp | 64 char line[100]; in DispHal() local 68 line[0] = 0; in DispHal() 81 STLOG_HAL_D("Rx %s\n", line); in DispHal() 83 STLOG_HAL_D("Tx %s\n", line); in DispHal() 85 STLOG_HAL_D("%s\n", line); in DispHal() 88 STLOG_HAL_D("%s\n", line); in DispHal() 90 line[k] = 0; in DispHal() 92 sprintf(&line[k * 3], "%02x ", d[i]); in DispHal() 97 STLOG_HAL_D("Rx %s\n", line); in DispHal() 99 STLOG_HAL_D("Tx %s\n", line); in DispHal() [all …]
|
/hardware/qcom/sm7250/display/sde-drm/ |
D | drm_crtc.cpp | 313 string line = {}; in ParseCapabilities() local 359 while (std::getline(stream, line)) { in ParseCapabilities() 360 if (line.find(max_blendstages) != string::npos) { in ParseCapabilities() 361 crtc_info_.max_blend_stages = std::stoi(string(line, max_blendstages.length())); in ParseCapabilities() 362 } else if (line.find(qseed_type) != string::npos) { in ParseCapabilities() 363 if (string(line, qseed_type.length()) == "qseed2") { in ParseCapabilities() 365 } else if (string(line, qseed_type.length()) == "qseed3") { in ParseCapabilities() 367 } else if (string(line, qseed_type.length()) == "qseed3lite") { in ParseCapabilities() 370 } else if (line.find(has_src_split) != string::npos) { in ParseCapabilities() 371 crtc_info_.has_src_split = std::stoi(string(line, has_src_split.length())); in ParseCapabilities() [all …]
|
/hardware/google/gfxstream/guest/fuchsia/ |
D | port.cc | 28 static void linux_log_prefix(const char *prefix, const char *file, int line, const char *format, in linux_log_prefix() argument 36 snprintf(buf, sizeof(buf), "[%s(%d)]", basename(dup), line); in linux_log_prefix() 59 int __android_log_print(int priority, const char* tag, const char* file, int line, in __android_log_print() argument 73 gfxstream_fuchsia_log(FUCHSIA_LOG_DEBUG, local_tag, file, line, format, ap); in __android_log_print() 78 gfxstream_fuchsia_log(FUCHSIA_LOG_INFO, local_tag, file, line, format, ap); in __android_log_print() 82 gfxstream_fuchsia_log(FUCHSIA_LOG_WARNING, local_tag, file, line, format, ap); in __android_log_print() 85 gfxstream_fuchsia_log(FUCHSIA_LOG_ERROR, local_tag, file, line, format, ap); in __android_log_print() 88 gfxstream_fuchsia_log(FUCHSIA_LOG_FATAL, local_tag, file, line, format, ap); in __android_log_print() 91 gfxstream_fuchsia_log(FUCHSIA_LOG_INFO, local_tag, file, line, format, ap); in __android_log_print() 96 linux_log_prefix(local_tag, file, line, format, ap); in __android_log_print() [all …]
|
/hardware/qcom/sm8150/thermal/ |
D | thermal.c | 46 char *line = NULL; in get_num_cpus() local 59 if ((read = getline(&line, &len, file)) != -1) { in get_num_cpus() 60 if (strnlen(line, read) < 3 || strncmp(line, "0-", 2) != 0 || !isdigit(line[2])) in get_num_cpus() 63 cpus = atoi(&line[2]) + 1; in get_num_cpus() 65 free(line); in get_num_cpus() 84 char *line = NULL; in get_cpu_usages() local 105 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages() 106 if (strnlen(line, read) < 4 || strncmp(line, "cpu", 3) != 0 || !isdigit(line[3])) { in get_cpu_usages() 107 free(line); in get_cpu_usages() 108 line = NULL; in get_cpu_usages() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | u_debug_memory.c | 69 unsigned line; member 125 debug_malloc(const char *file, unsigned line, const char *function, in debug_malloc() argument 134 file, line, function, in debug_malloc() 141 hdr->line = line; in debug_malloc() 165 debug_free(const char *file, unsigned line, const char *function, in debug_free() argument 177 file, line, function, in debug_free() 186 hdr->file, hdr->line, hdr->function, in debug_free() 198 hdr->line = line; in debug_free() 213 debug_calloc(const char *file, unsigned line, const char *function, in debug_calloc() argument 216 void *ptr = debug_malloc( file, line, function, count * size ); in debug_calloc() [all …]
|
/hardware/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 | 287 static int callFromCLCCLine(char *line, RIL_Call *p_call) in callFromCLCCLine() argument 296 err = at_tok_start(&line); in callFromCLCCLine() 299 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 302 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 305 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 311 err = at_tok_nextint(&line, &mode); in callFromCLCCLine() 316 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine() 319 if (at_tok_hasmore(&line)) { in callFromCLCCLine() 320 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine() 333 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine() [all …]
|
/hardware/google/pixel/atrace/ |
D | generate_rc.py | 14 for line in f: 15 line = line.rstrip('\n') variable 16 if line.startswith(' ') or line.startswith('\t'): 17 path = line.lstrip(" \t") 21 print (" # {} trace points".format(line))
|
/hardware/google/apf/v7/ |
D | apf_interpreter_assemble.sh | 18 local line 19 while IFS='' read -r line; do 20 if [[ "${line}" =~ ${RE_INCLUDE} ]]; then 32 elif [[ "${line}" =~ ${RE_UNDEF} ]]; then 35 *) echo "${line}" ;; 37 elif [[ "${line}" =~ ${RE_DEFINE} ]]; then 40 *) echo "${line}" ;; 43 echo "${line}"
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 122 char line[4096], d; in parsing_proc_input() local 137 memset(line, 0, 100); in parsing_proc_input() 141 line[0] = 0; in parsing_proc_input() 144 sprintf(&line[i], "%c", d); in parsing_proc_input() 147 if(line[0] == 'N'){ in parsing_proc_input() 149 while(line[i] != '"'){ in parsing_proc_input() 157 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input() 164 if(!memcmp(&line[i], name, strlen(name))){ in parsing_proc_input() 171 if(line[0] == 'S'){ in parsing_proc_input() 174 while(line[i] != '=') i++; in parsing_proc_input() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 114 char line[4096], d; in parsing_proc_input() local 129 memset(line, 0, 100); in parsing_proc_input() 133 line[0] = 0; in parsing_proc_input() 136 sprintf(&line[i], "%c", d); in parsing_proc_input() 139 if(line[0] == 'N'){ in parsing_proc_input() 141 while(line[i] != '"'){ in parsing_proc_input() 149 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input() 156 if(!memcmp(&line[i], name, strlen(name))){ in parsing_proc_input() 163 if(line[0] == 'S'){ in parsing_proc_input() 166 while(line[i] != '=') i++; in parsing_proc_input() [all …]
|
/hardware/google/gfxstream/guest/mesa/bin/ |
D | perf-annotate-jit.py | 65 line = self._file.readline() 66 if not line: 71 self.__line = line.rstrip('\r\n') 79 line = self.__line 81 return line 94 for line in stream: 95 start, length, symbol = line.split() 111 line = stream.readline().strip() 112 while line: 113 addr, instr = line.split(':', 1) [all …]
|
D | symbols-check.py | 66 for line in output.splitlines(): 67 fields = line.split() 89 for line in output.splitlines(): 90 fields = line.split() 148 for line in symbols_file.readlines(): 151 line = line.split('#')[0] 152 line = line.strip() 153 if not line: 161 fields = line.split() 168 print(args.symbols_file + ': invalid format: ' + line)
|
/hardware/google/pixel/powerstats/dataproviders/ |
D | GenericStateResidencyDataProvider.cpp | 43 static bool extractStat(const char *line, const std::string &prefix, uint64_t *stat) { in extractStat() argument 44 char const *prefixStart = strstr(line, prefix.c_str()); in extractStat() 56 FILE *fp, char **line, size_t *len) { in parseState() argument 61 while ((numFieldsRead < numFields) && (getline(line, len, fp) != -1)) { in parseState() 64 if (config.entryCountSupported && extractStat(*line, config.entryCountPrefix, &stat)) { in parseState() 68 } else if (config.totalTimeSupported && extractStat(*line, config.totalTimePrefix, &stat)) { in parseState() 72 } else if (config.lastEntrySupported && extractStat(*line, config.lastEntryPrefix, &stat)) { in parseState() 90 static int32_t findNextIndex(const std::vector<T> &collection, FILE *fp, char **line, size_t *len, in findNextIndex() argument 97 while (getline(line, len, fp) != -1) { in findNextIndex() 99 if (pred(collection[i], *line)) { in findNextIndex() [all …]
|
/hardware/google/pixel/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() 84 for (std::string line; std::getline(calfile, line);) { in HwCalBase() local 85 if (line.empty() || line[0] == '#') { in HwCalBase() 88 std::istringstream is_line(line); in HwCalBase() 99 std::string line; in debug() local 128 while (std::getline(stream, line)) { in debug() 129 dprintf(fd, " %s\n", line.c_str()); in debug()
|
/hardware/interfaces/automotive/vehicle/tools/ |
D | translate_vehicle_props.py | 65 def parseLine(self, line): argument 67 self.recentComments.append(line) 68 if RE_COMMENT_END.match(line): 73 elif RE_COMMENT_BEGIN.match(line): 75 self.recentComments.append(line) 76 if RE_COMMENT_SINGLE_LINE.match(line): 86 if RE_ENUM_END.match(line): 91 matchElement = RE_ENUM_ELEMENT.match(line); 97 if RE_ENUM_END.match(line): 101 text = line.strip() [all …]
|