Home | History | Annotate | Download | only in tools

Lines Matching refs:line

48       line = self.sections[self.current - 1].pop()
49 self.sections[self.current].insert(0, line)
61 def handle_line(self, line):
69 for line in lines:
70 self.sections[self.current].append(line)
73 self.handle_line(line)
106 def handle_line(self, line):
107 if "enum OperandType" in line:
110 elif "enum OperationType" in line:
113 elif "OEM" in line and self.current == self.OPERAND:
116 elif "OEM specific" in line and self.current == self.OPERATION:
139 def handle_line(self, line):
140 if "enum OperationType" in line:
144 # it cannot be the last line, can match with \n
145 elif line == "};\n":
179 def handle_line(self, line):
180 if line == "typedef enum {\n":
182 elif line == "} OperandCode;\n":
186 elif self.current == self.OPERATION_V10 and "#if __ANDROID_API__ >" in line:
191 elif line == "} OperationCode;\n":
214 for line in nn.sections[nn.OPERAND]:
215 line = line.replace("ANEURALNETWORKS_", "")
216 operand.append(line)
220 for line in from_nn:
221 if "TODO" in line:
225 if re.match("^ */\*\* \w.*[^/]$", line):
227 line = line.replace("/** ", " * ")
229 line = line.replace("@link OperandCode", "@link OperandType")
230 line = line.replace("@link ANEURALNETWORKS_", "@link OperandType::")
231 line = line.replace("ANEURALNETWORKS_", "")
232 line = line.replace("FuseCode", "FusedActivationFunc")
234 line = line.replace("{@link PaddingCode} values",
236 hal.append(line)