Home
last modified time | relevance | path

Searched refs:source_name (Results 1 – 25 of 32) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_linecache.py97 source_name = support.TESTFN + '.py'
98 self.addCleanup(support.unlink, source_name)
99 with open(source_name, 'w') as source:
101 getline(source_name, 1)
105 with open(source_name) as source:
107 self.assertEqual(line, getline(source_name, index + 1))
110 with open(source_name, 'w') as source:
118 self.assertEqual(line, getline(source_name, index + 1))
121 linecache.checkcache(source_name)
122 with open(source_name) as source:
[all …]
/external/tensorflow/tensorflow/python/tools/api/generator/
Dcreate_python_api.py130 def add_import(self, symbol, source_module_name, source_name, argument
149 import_str = self.format_import(source_module_name, source_name, dest_name)
172 priority += int(source_name == symbol.__name__)
198 source_name=import_from,
209 source_name=module_split[submodule_index],
275 def format_import(self, source_module_name, source_name, dest_name): argument
288 source_name)
291 if source_name == dest_name:
292 return 'from %s import %s' % (source_module_name, source_name)
294 return 'from %s import %s as %s' % (source_module_name, source_name,
[all …]
/external/python/cpython3/Lib/test/
Dtest_linecache.py154 source_name = os_helper.TESTFN + '.py'
155 self.addCleanup(os_helper.unlink, source_name)
156 with open(source_name, 'w', encoding='utf-8') as source:
158 getline(source_name, 1)
162 with open(source_name, encoding='utf-8') as source:
164 self.assertEqual(line, getline(source_name, index + 1))
167 with open(source_name, 'w', encoding='utf-8') as source:
175 self.assertEqual(line, getline(source_name, index + 1))
178 linecache.checkcache(source_name)
179 with open(source_name, encoding='utf-8') as source:
[all …]
/external/chromium-trace/catapult/systrace/systrace/
Dtrace_result.py15 def __init__(self, source_name, raw_data): argument
16 self.source_name = source_name
Doutput_generator.py40 trace.source_name)
170 merge_candidates.append(trace_result.TraceResult(result.source_name,
177 if not r.source_name in
178 [c.source_name for c in merge_candidates]]
201 trace_dict[trace.source_name] = trace.raw_data
Dtracing_controller.py215 if result.source_name in [r.source_name for r in all_results]:
217 result.source_name)
Doutput_generator_unittest.py42 if r.source_name == 'a':
44 elif r.source_name == 'b':
/external/chromium-trace/catapult/systrace/profile_chrome/
Dprofiler.py28 trace_results = [x for x in controller.all_results if not (x.source_name ==
39 html_file = output or trace_results[0].source_name + '.html'
43 result = output or trace_results[0].source_name + '.gz'
54 result = trace_results[0].source_name
Dutil.py25 trace_file = result.source_name + GetTraceTimestamp()
/external/ComputeLibrary/src/gpu/cl/
DClKernelLibrary.cpp1040 std::string source_name = _kernel_path + program_name; in program()
1041 std::string binary_name = source_name + "bin"; in program()
1050 else if(std::ifstream(source_name).is_open()) in program()
1052 program_source = read_file(source_name, false); in program()
1056 ARM_COMPUTE_ERROR_VAR("Kernel file %s does not exist.", source_name.c_str()); in program()
/external/perfetto/tools/
Dgen_amalgamated358 def _add_source(self, target_name, source_name): argument
359 if source_name in self._processed_sources:
361 self._processed_sources.add(source_name)
363 deps = self.source_deps[source_name]
364 full_path = os.path.join(gn_utils.repo_root(), source_name)
366 raise Error('Source file %s not found' % source_name)
373 source_name,
376 raise Error('Failed adding source %s: %s' % (source_name, e.message))
413 def _patch_source(self, source_name, lines): argument
416 os.path.splitext(os.path.basename(source_name))[0])
[all …]
/external/pigweed/pw_cli/py/pw_cli/
Dplugins.py132 def source_name(self) -> str: member in Plugin
265 plugin.source_name,
275 plugin.source_name,
284 plugin.source_name,
314 plugin.source_name,
/external/wayland/cursor/
Dconvert_font.c477 char *target_name, *source_name; member
509 find_cursor_and_mask(interesting_cursors[i].source_name, in output_interesting_cursors()
513 interesting_cursors[i].source_name); in output_interesting_cursors()
518 interesting_cursors[i].source_name); in output_interesting_cursors()
/external/tensorflow/tensorflow/python/framework/
Dconvert_to_constants.py321 source_name = name_elts[0]
322 if source_name[0] == "^":
323 source_name = source_name[1:]
329 return _EndPoint(self._enclosing_graph.nodes[source_name], source_index)
331 if source_index != 0 or source_name in self._function.nodes:
332 return _EndPoint(self._function.nodes[source_name], source_index)
335 return _EndPoint(self._function, inputs.index(source_name))
/external/antlr/runtime/Ruby/lib/antlr3/
Dstreams.rb528 alias source_name name alias in ANTLR3.StringStream
788 @source_name = options.fetch( :source_name ) { stream.source_name }
793 @source_name = options.fetch( :source_name ) { @token_source.source_name rescue nil }
Drecognizers.rb1066 def source_name
1067 @input.source_name
1308 def source_name
1309 @input.source_name
Dtoken.rb158 def source_name method
159 i = input and i.source_name
Dtree.rb119 def source_name method in ANTLR3.AST.TreeParser
120 @input.source_name
1075 def source_name method in CommonTreeNodeStream
1076 self.token_stream.source_name
/external/e2fsprogs/ext2ed/
Dmain.c540 void internal_error (char *description,char *source_name,char *function_name) in internal_error() argument
542 …wprintw (command_win,"Internal error - Found by source: %s.c , function: %s\n",source_name,functio… in internal_error()
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.h49 char *source_name; member
/external/libbrillo/brillo/files/
Dsafe_fd.cc406 const std::string& source_name, in Link() argument
412 SafeFD::Error err = IsValidFilename(source_name); in Link()
422 if (HANDLE_EINTR(linkat(source_dir.get(), source_name.c_str(), fd_.get(), in Link()
Dsafe_fd.h168 const std::string& source_name,
/external/antlr/runtime/Python3/antlr3/
Drecognizers.py410 source_name = self.getSourceName()
411 if source_name is not None:
412 return "{} line {}:{}".format(source_name, e.line, e.charPositionInLine)
/external/antlr/runtime/Python/antlr3/
Drecognizers.py418 source_name = self.getSourceName()
419 if source_name is not None:
420 return "%s line %d:%d" % (source_name, e.line, e.charPositionInLine)
/external/cronet/base/win/embedded_i18n/
Dcreate_string_rc.py297 source_name = os.path.splitext(os.path.basename(grd_file))[0]
300 '%s*.xtb' % source_name)

12