Home
last modified time | relevance | path

Searched refs:source_file (Results 1 – 25 of 169) sorted by relevance

1234567

/external/rust/crates/grpcio-sys/grpc/bazel/
Dprotobuf.bzl62 def get_include_directory(source_file):
63 """Returns the include directory path for the source_file. I.e. all of the
64 include statements within the given source_file are calculated relative to
71 source_file: A proto file.
74 The include directory path for the source_file.
76 directory = source_file.path
79 if is_in_virtual_imports(source_file):
80 root, relative = source_file.path.split(_VIRTUAL_IMPORTS, 2)
84 if not source_file.is_source and directory.startswith(source_file.root.path):
85 prefix_len = len(source_file.root.path) + 1
[all …]
/external/tensorflow/third_party/systemlibs/
Dgrpc.bazel.protobuf.bzl60 def get_include_directory(source_file):
61 """Returns the include directory path for the source_file.
63 I.e. all of the include statements within the given source_file
70 source_file: A proto file.
73 The include directory path for the source_file.
75 directory = source_file.path
78 if is_in_virtual_imports(source_file):
79 root, relative = source_file.path.split(_VIRTUAL_IMPORTS, 2)
83 if not source_file.is_source and directory.startswith(source_file.root.path):
84 prefix_len = len(source_file.root.path) + 1
[all …]
/external/selinux/checkpolicy/
Dpolicy_scan.l45 char source_file[PATH_MAX]; variable
317 if (source_file[0])
319 source_file, source_lineno);
336 if (source_file[0])
338 source_file, source_lineno);
352 strncpy(source_file, name, sizeof(source_file)-1);
353 source_file[sizeof(source_file)-1] = '\0';
354 if (strlen(source_file) && source_file[strlen(source_file)-1] == '"')
355 source_file[strlen(source_file)-1] = '\0';
/external/python/bumble/scripts/
Dprocess_android_emulator_protos.sh22 for source_file in "${python_files[@]}" "${stub_files[@]}"
24 head -14 $LICENSE_FILE_INPUT > $PROTOC_OUT/${source_file}.lic
25 cat $PROTOC_OUT/$source_file >> $PROTOC_OUT/${source_file}.lic
26 mv $PROTOC_OUT/${source_file}.lic $PROTOC_OUT/$source_file
/external/protobuf/php/src/Google/Protobuf/Internal/GeneratedCodeInfo/
DAnnotation.php30 protected $source_file = null; variable in Google\\Protobuf\\Internal\\GeneratedCodeInfo\\Annotation
108 return isset($this->source_file) ? $this->source_file : '';
113 return isset($this->source_file);
118 unset($this->source_file);
131 $this->source_file = $var;
/external/cronet/third_party/protobuf/php/src/Google/Protobuf/Internal/GeneratedCodeInfo/
DAnnotation.php30 protected $source_file = null; variable in Google\\Protobuf\\Internal\\GeneratedCodeInfo\\Annotation
108 return isset($this->source_file) ? $this->source_file : '';
113 return isset($this->source_file);
118 unset($this->source_file);
131 $this->source_file = $var;
/external/golang-protobuf/cmd/protoc-gen-go/testdata/annotations/
Dannotations.pb.go.meta1source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:470 end:489} annotati…
/external/AFLplusplus/instrumentation/
Dafl-llvm-common.cc449 std::string source_file = getSourceName(F); in isInInstrumentList() local
451 if (source_file.empty()) { source_file = Filename; } in isInInstrumentList()
453 if (!source_file.empty()) { in isInInstrumentList()
464 if (source_file.length() >= it->length()) { in isInInstrumentList()
466 if (fnmatch(("*" + *it).c_str(), source_file.c_str(), 0) == 0) { in isInInstrumentList()
531 std::string source_file = getSourceName(F); in isInInstrumentList() local
533 if (source_file.empty()) { source_file = Filename; } in isInInstrumentList()
535 if (!source_file.empty()) { in isInInstrumentList()
546 if (source_file.length() >= it->length()) { in isInInstrumentList()
548 if (fnmatch(("*" + *it).c_str(), source_file.c_str(), 0) == 0) { in isInInstrumentList()
[all …]
/external/pigweed/pw_toolchain/py/
Dclang_tidy_test.py31 source_file = (
40 source_file,
56 source_file = (
65 source_file,
/external/pigweed/pw_toolchain/py/pw_toolchain/
Dclang_tidy.py141 source_file: Path,
147 command: List[Union[str, Path]] = [clang_tidy, source_file, '--use-color']
187 source_file: Path,
198 relative_source_file = source_file.relative_to(source_root)
200 relative_source_file = source_file
206 source_file_path = source_file.resolve()
/external/google-breakpad/src/processor/
Dbasic_source_line_resolver_unittest.cc571 long source_file; in TEST() local
575 &line_number, &source_file)); in TEST()
579 EXPECT_EQ(4, source_file); in TEST()
584 &line_number, &source_file)); in TEST()
588 EXPECT_EQ(4, source_file); in TEST()
593 &line_number, &source_file)); in TEST()
597 EXPECT_EQ(4, source_file); in TEST()
606 long source_file; in TEST() local
611 &line_number, &source_file)); in TEST()
615 &line_number, &source_file)); in TEST()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dallocator_registry.cc39 void AllocatorFactoryRegistry::Register(const char* source_file, in Register() argument
53 << " priority=" << priority << " at location " << source_file in Register()
56 << existing->source_file << ":" << existing->source_line; in Register()
60 entry.source_file = source_file; in Register()
/external/protobuf/src/google/protobuf/compiler/
Dannotation_test_util.cc103 const GeneratedCodeInfo& info, const std::string& source_file, in FindAnnotationsOnPath() argument
108 if (annotation->source_file() != source_file || in FindAnnotationsOnPath()
125 const GeneratedCodeInfo& info, const std::string& source_file, in FindAnnotationOnPath() argument
128 FindAnnotationsOnPath(info, source_file, path, &annotations); in FindAnnotationOnPath()
/external/cronet/third_party/protobuf/src/google/protobuf/compiler/
Dannotation_test_util.cc103 const GeneratedCodeInfo& info, const std::string& source_file, in FindAnnotationsOnPath() argument
108 if (annotation->source_file() != source_file || in FindAnnotationsOnPath()
125 const GeneratedCodeInfo& info, const std::string& source_file, in FindAnnotationOnPath() argument
128 FindAnnotationsOnPath(info, source_file, path, &annotations); in FindAnnotationOnPath()
/external/tensorflow/tensorflow/core/util/
Ddebug_events_writer_test.cc293 SourceFile actual_source_file_1 = actuals[0].source_file(); in TEST_F()
302 SourceFile actual_source_file_2 = actuals[1].source_file(); in TEST_F()
436 SourceFile* source_file = new SourceFile(); in TEST_F() local
437 source_file->set_file_path(file_path); in TEST_F()
438 source_file->set_host_name("localhost.localdomain"); in TEST_F()
439 TF_ASSERT_OK(writer->WriteSourceFile(source_file)); in TEST_F()
454 file_paths.push_back(actuals[i].source_file().file_path()); in TEST_F()
455 host_names.push_back(actuals[i].source_file().host_name()); in TEST_F()
477 SourceFile* source_file = new SourceFile(); in TEST_F() local
478 source_file->set_file_path(file_path); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc245 EXPECT_EQ("path_1", foo->source_file()); in TEST()
246 EXPECT_EQ("path_2", bar->source_file()); in TEST()
285 EXPECT_EQ("path_1", foo->source_file()); in TEST()
286 EXPECT_EQ("path_2", bar->source_file()); in TEST()
312 EXPECT_EQ("path", foobar->source_file()); in TEST()
337 EXPECT_EQ("path", bazbam->source_file()); in TEST()
361 EXPECT_EQ("path", bar->source_file()); in TEST()
398 EXPECT_EQ("path", foo->source_file()); in TEST()
404 EXPECT_EQ("path", bar->source_file()); in TEST()
410 EXPECT_EQ("path", braces->source_file()); in TEST()
[all …]
/external/cronet/third_party/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc245 EXPECT_EQ("path_1", foo->source_file()); in TEST()
246 EXPECT_EQ("path_2", bar->source_file()); in TEST()
285 EXPECT_EQ("path_1", foo->source_file()); in TEST()
286 EXPECT_EQ("path_2", bar->source_file()); in TEST()
312 EXPECT_EQ("path", foobar->source_file()); in TEST()
337 EXPECT_EQ("path", bazbam->source_file()); in TEST()
361 EXPECT_EQ("path", bar->source_file()); in TEST()
398 EXPECT_EQ("path", foo->source_file()); in TEST()
404 EXPECT_EQ("path", bar->source_file()); in TEST()
410 EXPECT_EQ("path", braces->source_file()); in TEST()
[all …]
/external/rust/crates/proc-macro2/tests/
Dtest.rs363 let source_file = Span::call_site().source_file(); in default_span() localVariable
364 assert_eq!(source_file.path().to_string_lossy(), "<unspecified>"); in default_span()
365 assert!(!source_file.is_real()); in default_span()
382 assert!(source1[0].span().source_file() != source2[0].span().source_file()); in span_join()
384 source1[0].span().source_file(), in span_join()
385 source1[1].span().source_file() in span_join()
401 joined1.unwrap().source_file(), in span_join()
402 source1[0].span().source_file() in span_join()
/external/webrtc/tools_webrtc/sslroots/
Dgenerate_sslroots.py61 def _SplitCrt(source_file, options): argument
65 root_dir = os.path.dirname(os.path.abspath(source_file)) + '/'
68 with open(source_file) as f:
146 def _CreateCertSection(root_dir, source_file, label, options): argument
147 command = 'openssl x509 -in %s%s -noout -C' % (root_dir, source_file)
/external/webrtc/tools_webrtc/presubmit_checks_lib/
Dcheck_orphan_headers.py111 source_file = source_file_match.group('source_file')
112 if source_file.endswith('.h'):
113 source_file_tokens = source_file.split('/')
/external/angle/build/android/gyp/
Djacoco_instr.py73 return list(set(os.path.dirname(source_file) for source_file in source_files))
139 for source_file in source_files:
140 if source_file.endswith(
/external/cronet/third_party/googletest/src/googletest/test/
Dgtest_xml_test_utils.py174 source_file = element.getAttributeNode('file')
175 if source_file:
176 source_file.value = re.sub(r'^.*[/\\](.*)', '\\1', source_file.value)
/external/cronet/build/android/gyp/
Djacoco_instr.py73 return list(set(os.path.dirname(source_file) for source_file in source_files))
139 for source_file in source_files:
140 if source_file.endswith(
Dcompile_java.py289 def _ParsePackageAndClassNames(source_file): argument
293 with open(source_file) as f:
317 def _ProcessSourceFileForInfo(source_file): argument
318 package_name, class_names = _ParsePackageAndClassNames(source_file)
319 return source_file, package_name, class_names
355 def _CheckPathMatchesClassName(self, source_file, package_name, class_name): argument
356 if source_file.endswith('.java'):
361 if not source_file.endswith(expected_suffix):
364 (source_file, expected_suffix))
/external/tensorflow/tensorflow/python/debug/lib/
Ddebug_events_writer.py56 def WriteSourceFile(self, source_file): argument
64 debug_event = debug_event_pb2.DebugEvent(source_file=source_file)

1234567