| /external/perfetto/tools/ |
| D | gen_c_protos | 8 # http://www.apache.org/licenses/LICENSE-2.0 28 'protos/perfetto/common/builtin_clock.proto', 29 'protos/perfetto/common/data_source_descriptor.proto', 30 'protos/perfetto/config/data_source_config.proto', 31 'protos/perfetto/config/trace_config.proto', 32 'protos/perfetto/config/track_event/track_event_config.proto', 33 'protos/perfetto/trace/android/android_track_event.proto', 34 'protos/perfetto/trace/clock_snapshot.proto', 35 'protos/perfetto/trace/interned_data/interned_data.proto', 36 'protos/perfetto/trace/test_event.proto', [all …]
|
| /external/grpc-grpc/bazel/ |
| D | protobuf.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 16 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 18 _PROTO_EXTENSION = ".proto" 45 # We include both the alias path and the underlying path to be resilient to 72 return proto_filename[:-len(_PROTO_EXTENSION)] 75 """Calculates the name of a generated file for a protobuf path. 77 For example, "examples/protos/helloworld.proto" might map to 81 proto_path: The path to the .proto file. 91 """Returns the include directory path for the source_file. 96 The returned directory path can be used as the "--proto_path=" argument [all …]
|
| D | generate_cc.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 20 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 37 if not file.is_source and file.path.startswith(file.root.path): 38 prefix_len = len(file.root.path) + 1 40 path = file.path 42 return path 43 if not path.startswith(label_package + "/", prefix_len): 44 fail("'{}' does not lie within '{}'.".format(path, label_package)) 45 return path[prefix_len + len(label_package + "/"):] 48 if not file.is_source and file.path.startswith(file.root.path): [all …]
|
| /external/rust/android-crates-io/crates/grpcio-sys/grpc/bazel/ |
| D | protobuf.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 16 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 18 _PROTO_EXTENSION = ".proto" 45 # We include both the alias path and the underlying path to be resilient to 72 return proto_filename[:-len(_PROTO_EXTENSION)] 75 """Calculates the name of a generated file for a protobuf path. 77 For example, "examples/protos/helloworld.proto" might map to 81 proto_path: The path to the .proto file. 91 """Returns the include directory path for the source_file. 96 The returned directory path can be used as the "--proto_path=" argument [all …]
|
| D | generate_cc.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 20 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 37 if not file.is_source and file.path.startswith(file.root.path): 38 prefix_len = len(file.root.path) + 1 40 path = file.path 42 return path 43 if not path.startswith(label_package + "/", prefix_len): 44 fail("'{}' does not lie within '{}'.".format(path, label_package)) 45 return path[prefix_len + len(label_package + "/"):] 48 if not file.is_source and file.path.startswith(file.root.path): [all …]
|
| /external/tensorflow/third_party/systemlibs/ |
| D | grpc.bazel.protobuf.bzl | 3 _PROTO_EXTENSION = ".proto" 42 return proto_filename[:-len(_PROTO_EXTENSION)] 45 """Calculates the name of a generated file for a protobuf path. 47 For example, "examples/protos/helloworld.proto" might map to 51 proto_path: The path to the .proto file. 61 """Returns the include directory path for the source_file. 66 The returned directory path can be used as the "--proto_path=" argument 70 source_file: A proto file. 73 The include directory path for the source_file. 75 directory = source_file.path [all …]
|
| D | grpc.bazel.generate_cc.bzl | 23 if not file.is_source and file.path.startswith(file.root.path): 24 prefix_len = len(file.root.path) + 1 26 path = file.path 28 return path 29 if not path.startswith(label_package + "/", prefix_len): 30 fail("'{}' does not lie within '{}'.".format(path, label_package)) 31 return path[prefix_len + len(label_package + "/"):] 34 if not file.is_source and file.path.startswith(file.root.path): 35 return file.path[len(file.root.path) + 1:] 36 return file.path [all …]
|
| /external/pigweed/pw_log/ |
| D | Android.bp | 7 // https://www.apache.org/licenses/LICENSE-2.0 56 // Copies the proto files to a prefix directory to add the prefix to the 57 // compiled proto. The prefix is taken from the directory name of the first 62 "mkdir -p $${prefix}; cp -t $${prefix} $(in);", 69 "log.proto", 72 "pw_log/proto/log.proto", 79 ":libprotobuf-internal-protos", 85 "--proto-path=external/pigweed/pw_protobuf/ " + 86 "--proto-path=external/pigweed/pw_tokenizer/ " + 87 … "--proto-path=$$(dirname $$(dirname $$(dirname $(location :pw_log_log_proto_with_prefix)))) " + [all …]
|
| /external/bazelbuild-rules_go/proto/ |
| D | compiler.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 42 of strings mapping proto import paths to Go import paths, and importpath is 43 the import path of the Go library being generated. 50 compiler. Typically, these are Well Known Types and proto runtime libraries.""", 65 imports: depset of strings mapping proto import paths to Go import paths. 66 importpath: the import path of the Go library being generated. 76 for proto in protos: 77 desc_sets.append(proto.transitive_descriptor_sets) 78 for src in proto.check_deps_sources.to_list(): 79 path = proto_path(src, proto) [all …]
|
| /external/rust/android-crates-io/crates/protobuf-parse/src/pure/ |
| D | parse_and_typecheck.rs | 4 use std::path::Path; 5 use std::path::PathBuf; 13 use crate::proto; 23 #[error("file `{0}` content is not UTF-8")] 25 #[error("protobuf path `{0}` is not found in import path {1}")] 27 #[error("file `{0}` must reside in include path {1}")] 41 /// Resolve `.proto` files. `Display` is used for error messages. 43 /// Resolve a `.proto` file. 45 /// Return `None` if a path is unknown, and if a path is a built-in protobuf file, 46 /// like `google/protobuf/descriptor.proto`, it will be handled by the library. [all …]
|
| /external/pigweed/pw_protobuf_compiler/py/pw_protobuf_compiler/ |
| D | python_protos.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 22 from pathlib import Path 37 # pylint: disable=wrong-import-position 42 # pylint: enable=wrong-import-position 50 def _find_protoc() -> str: 55 # Fallback is assuming `protoc` is on the system PATH. 60 output_dir: Path | str, 61 proto_files: Iterable[Path | str], 62 includes: Iterable[Path | str] = (), 63 ) -> None: [all …]
|
| /external/grpc-grpc/src/csharp/Grpc.Tools/ |
| D | DepFileUtil.cs | 9 // http://www.apache.org/licenses/LICENSE-2.0 39 obj\Release\net45\/FooGrpc.cs: C:/foo/include/google/protobuf/wrappers.proto\ 40 C:/projects/foo/src//foo.proto 45 C:\projects\foo\src\./foo.pb.h: C:/foo/include/google/protobuf/wrappers.proto\ 46 C:/foo/include/google/protobuf/any.proto\ 47 C:/foo/include/google/protobuf/source_context.proto\ 48 C:/foo/include/google/protobuf/type.proto\ 49 foo.proto 55 /// <param name="protoDepDir">Relative path to the dependency cache, e. g. "out"</param> 56 /// <param name="proto">Relative path to the proto item, e. g. "foo/file.proto"</param> [all …]
|
| /external/protobuf/objectivec/ProtocolBuffers_tvOS.xcodeproj/ |
| D | project.pbxproj | 26 …615C17DF7056002EE618 /* GPBARCUnittestProtos.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 119 …ence; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Fr… 120 …ts.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GPBConcurrencyTes… 121 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 122 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBDescriptor_Pac… 123 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBMessage_Packag… 124 …F950347006D8281 /* UnitTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.pli… 125 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBBootstrap.h; s… 126 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 127 … fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = GPBCodedInputStre… [all …]
|
| /external/protobuf/objectivec/ProtocolBuffers_iOS.xcodeproj/ |
| D | project.pbxproj | 26 …615C17DF7056002EE618 /* GPBARCUnittestProtos.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 119 …ence; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Fr… 120 …ts.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GPBConcurrencyTes… 121 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 122 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBDescriptor_Pac… 123 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBMessage_Packag… 124 …F950347006D8281 /* UnitTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.pli… 125 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBBootstrap.h; s… 126 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 127 … fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = GPBCodedInputStre… [all …]
|
| /external/protobuf/objectivec/ProtocolBuffers_OSX.xcodeproj/ |
| D | project.pbxproj | 26 …615C17DF7056002EE618 /* GPBARCUnittestProtos.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 118 …ence; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Fr… 119 …ts.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GPBConcurrencyTes… 120 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 121 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBDescriptor_Pac… 122 …ivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPBMessage_Packag… 123 …F950347006D8281 /* UnitTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.pli… 124 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBBootstrap.h; s… 125 …= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPBCodedInputStre… 126 … fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = GPBCodedInputStre… [all …]
|
| /external/cronet/tot/net/device_bound_sessions/ |
| D | cookie_craving_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 12 #include "net/device_bound_sessions/proto/storage.pb.h" 33 EXPECT_TRUE(maybe_cc->IsValid()); in CreateValidCookieCraving() 48 EXPECT_TRUE(canonical_cookie->IsCanonical()); in CreateCanonicalCookie() 57 EXPECT_EQ(cc.Path(), "/"); in TEST() 66 // Non-default attributes. in TEST() 69 "Secure; HttpOnly; Path=/foo; Domain=example.test; SameSite=Lax"); in TEST() 72 EXPECT_EQ(cc.Path(), "/foo"); in TEST() 84 " Secure;HttpOnly;Path = /foo; Domain= example.test; SameSite =Lax "); in TEST() 87 EXPECT_EQ(cc.Path(), "/foo"); in TEST() [all …]
|
| /external/cronet/stable/net/device_bound_sessions/ |
| D | cookie_craving_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 12 #include "net/device_bound_sessions/proto/storage.pb.h" 33 EXPECT_TRUE(maybe_cc->IsValid()); in CreateValidCookieCraving() 48 EXPECT_TRUE(canonical_cookie->IsCanonical()); in CreateCanonicalCookie() 57 EXPECT_EQ(cc.Path(), "/"); in TEST() 66 // Non-default attributes. in TEST() 69 "Secure; HttpOnly; Path=/foo; Domain=example.test; SameSite=Lax"); in TEST() 72 EXPECT_EQ(cc.Path(), "/foo"); in TEST() 84 " Secure;HttpOnly;Path = /foo; Domain= example.test; SameSite =Lax "); in TEST() 87 EXPECT_EQ(cc.Path(), "/foo"); in TEST() [all …]
|
| /external/autotest/client/common_lib/cros/ |
| D | smbprovider.py | 2 # Use of this source code is governed by a BSD-style license that can be 13 def _proto_to_blob(proto): argument 14 return dbus.ByteArray(proto.SerializeToString()) 18 Wrapper for D-Bus calls to SmbProvider Daemon 21 an SMB server. This class is a wrapper to the D-Bus interface to the daemon. 29 # Default timeout in seconds for D-Bus calls. 39 Creates and D-Bus connection to smbproviderd. 47 sys.path.append(proto_binding_location) 53 Restarts smbproviderd and rebinds to D-Bus interface. 62 # D-Bus messages to smbproviderd. [all …]
|
| /external/grpc-grpc/src/python/grpcio/grpc/ |
| D | _runtime_protos.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 23 "Install the grpcio-tools package (1.32.0+) to use the {} function." 30 def _has_runtime_proto_symbols(mod: types.ModuleType) -> bool: 34 def _is_grpc_tools_importable() -> bool: 36 import grpc_tools # pylint: disable=unused-import # pytype: disable=import-error 41 # we check for that and re-raise if so. 49 ) -> Union[types.ModuleType, Tuple[types.ModuleType, types.ModuleType]]: 54 protobuf_path: The path to import. 64 import grpc_tools.protoc # pytype: disable=import-error 73 def protos(protobuf_path): # pylint: disable=unused-argument [all …]
|
| /external/golang-protobuf/cmd/protoc-gen-go/testdata/annotations/ |
| D | annotations.pb.go.meta | 1 …path:5 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:470 end…
|
| /external/pigweed/pw_protobuf_compiler/ts/ |
| D | build_default_protos.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 16 import path from 'path'; 22 '--outputCollectionName': String, 25 const outputCollectionName = args['--outputCollectionName'] || 'collection.ts'; 27 const OUT_DIR = path.join(process.cwd(), 'dist', 'protos'); 33 'pw_transfer/transfer.proto', 34 'pw_rpc/ts/test.proto', 35 'pw_rpc/echo.proto', 36 'pw_protobuf/pw_protobuf_protos/status.proto', 37 'pw_protobuf/pw_protobuf_protos/common.proto', [all …]
|
| /external/cronet/tot/third_party/protobuf/ |
| D | protobuf.bzl | 3 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 6 def _GetPath(ctx, path): 8 return ctx.label.workspace_root + "/" + path 10 return path 14 # bazel-out/local-fastbuild/genfiles/external/repo/foo 16 # ../repo/bazel-out/local-fastbuild/genfiles/foo 21 # We are using the fact that Bazel 0.4.4+ provides repository-relative paths 23 return ctx.genfiles_dir.path + ( 28 # Either way, appending the source path to the genfiles dir works. 41 ret = [s[:-len(".proto")] + ".pb.h" for s in srcs] [all …]
|
| /external/cronet/stable/third_party/protobuf/ |
| D | protobuf.bzl | 3 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 6 def _GetPath(ctx, path): 8 return ctx.label.workspace_root + "/" + path 10 return path 14 # bazel-out/local-fastbuild/genfiles/external/repo/foo 16 # ../repo/bazel-out/local-fastbuild/genfiles/foo 21 # We are using the fact that Bazel 0.4.4+ provides repository-relative paths 23 return ctx.genfiles_dir.path + ( 28 # Either way, appending the source path to the genfiles dir works. 41 ret = [s[:-len(".proto")] + ".pb.h" for s in srcs] [all …]
|
| /external/protobuf/ |
| D | protobuf.bzl | 3 load("@rules_proto//proto:defs.bzl", "ProtoInfo") 6 def _GetPath(ctx, path): 8 return ctx.label.workspace_root + "/" + path 10 return path 14 # bazel-out/local-fastbuild/genfiles/external/repo/foo 16 # ../repo/bazel-out/local-fastbuild/genfiles/foo 21 # We are using the fact that Bazel 0.4.4+ provides repository-relative paths 23 return ctx.genfiles_dir.path + ( 28 # Either way, appending the source path to the genfiles dir works. 41 ret = [s[:-len(".proto")] + ".pb.h" for s in srcs] [all …]
|
| /external/golang-protobuf/internal/cmd/generate-protos/ |
| D | main.go | 2 // Use of this source code is governed by a BSD-style 5 //go:generate go run . -execute 17 "path" 18 "path/filepath" 24 gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo" 30 // Determine repository root path. 31 out, err := exec.Command("git", "rev-parse", "--show-toplevel").CombinedOutput() 35 // Determine the module path. 36 cmd := exec.Command("go", "list", "-m", "-f", "{{.Path}}") 74 "// Use of this source code is governed by a BSD-style", [all …]
|