Home
last modified time | relevance | path

Searched refs:source_name (Results 1 – 25 of 31) 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/python/cpython3/Lib/test/
Dtest_linecache.py153 source_name = support.TESTFN + '.py'
154 self.addCleanup(support.unlink, source_name)
155 with open(source_name, 'w') as source:
157 getline(source_name, 1)
161 with open(source_name) as source:
163 self.assertEqual(line, getline(source_name, index + 1))
166 with open(source_name, 'w') as source:
174 self.assertEqual(line, getline(source_name, index + 1))
177 linecache.checkcache(source_name)
178 with open(source_name) as source:
[all …]
/external/tensorflow/tensorflow/python/tools/api/generator/
Dcreate_python_api.py59 def format_import(source_module_name, source_name, dest_name): argument
71 if source_name == dest_name:
72 return 'from %s import %s' % (source_module_name, source_name)
75 source_module_name, source_name, dest_name)
77 if source_name == dest_name:
78 return 'import %s' % source_name
80 return 'import %s as %s' % (source_name, dest_name)
95 self, symbol_id, dest_module_name, source_module_name, source_name, argument
110 import_str = format_import(source_module_name, source_name, dest_name)
224 source_name, argument
[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.py39 trace.source_name)
157 merge_candidates.append(trace_result.TraceResult(result.source_name,
164 if not r.source_name in
165 [c.source_name for c in merge_candidates]]
188 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.py41 if r.source_name == 'a':
43 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/v8/src/
Dsource-position.cc81 Object* source_name = nullptr; in Print() local
84 source_name = script->name(); in Print()
88 if (source_name != nullptr && source_name->IsString()) { in Print()
89 out << String::cast(source_name) in Print()
/external/perfetto/tools/
Dgen_binary_descriptors71 _, source_name = os.path.split(source)
73 assert source_name.replace('.proto', '.descriptor.h') == target_name
84 proto_name = source_name[:-len('.proto')].title().replace("_", "")
/external/wayland/cursor/
Dconvert_font.c477 char *target_name, *source_name; member
504 find_cursor_and_mask(interesting_cursors[i].source_name, in output_interesting_cursors()
508 interesting_cursors[i].source_name); in output_interesting_cursors()
513 interesting_cursors[i].source_name); in output_interesting_cursors()
/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
Derror.rb114 @source_name = @input.source_name rescue nil
/external/v8/tools/ignition/
Dbytecode_dispatches_report.py120 for source_name, counter, ratio in top_sources:
121 print "{:>12d}\t{:>5.1f}%\t{}".format(counter, ratio * 100, source_name)
/external/v8/src/compiler/
Dgraph-visualizer.cc73 Object* source_name = script->name(); in JsonPrintFunctionSource() local
75 if (source_name->IsString()) { in JsonPrintFunctionSource()
76 os << String::cast(source_name)->ToCString().get(); in JsonPrintFunctionSource()
186 Object* source_name = Script::cast(info->shared_info()->script())->name(); in GetVisualizerLogFileName() local
187 if (source_name->IsString()) { in GetVisualizerLogFileName()
188 String* str = String::cast(source_name); in GetVisualizerLogFileName()
/external/e2fsprogs/ext2ed/
Dmain.c538 void internal_error (char *description,char *source_name,char *function_name) in internal_error() argument
540 …wprintw (command_win,"Internal error - Found by source: %s.c , function: %s\n",source_name,functio… in internal_error()
Dext2ed.h293 extern void internal_error (char *description,char *source_name,char *function_name);
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.h49 char *source_name; member
/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/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/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.cc509 const string& source_name = input_to_rename.first; in RenameNodeInputs() local
513 if (str_util::EndsWith(source_name, ":*")) { in RenameNodeInputs()
522 is_match = (CanonicalInputName(source_name) == in RenameNodeInputs()

12