/third_party/skia/third_party/externals/angle2/src/tests/test_utils/runner/ |
H A D | HistogramWriter.cpp | 31 namespace proto = catapult::tracing::tracing::proto; 37 std::string GetUnitAndDirection(proto::UnitAndDirection unit) in GetUnitAndDirection() 39 ASSERT(unit.improvement_direction() == proto::SMALLER_IS_BETTER); in GetUnitAndDirection() 40 ASSERT(unit.unit() == proto::MS_BEST_FIT_FORMAT); in GetUnitAndDirection() 57 proto::UnitAndDirection unitAndDirection; in addSample() 58 unitAndDirection.set_improvement_direction(proto::SMALLER_IS_BETTER); in addSample() 59 unitAndDirection.set_unit(proto::MS_BEST_FIT_FORMAT); in addSample() 66 builder->SetSummaryOptions(proto::SummaryOptions()); in addSample() 69 proto in addSample() 84 std::unique_ptr<proto::Histogram> proto = histogram.second->toProto(); getAsJSON() local [all...] |
/third_party/selinux/libsepol/src/ |
H A D | nodes.c | 23 int proto; in node_from_record() local 35 proto = sepol_node_get_proto(data); in node_from_record() 37 switch (proto) { in node_from_record() 47 ERR(handle, "unsupported protocol %u", proto); in node_from_record() 85 ocontext_t * node, int proto, sepol_node_t ** record) in node_to_record() 96 sepol_node_set_proto(tmp_record, proto); in node_to_record() 98 switch (proto) { in node_to_record() 125 ERR(handle, "unsupported protocol %u", proto); in node_to_record() 177 int proto; in sepol_node_exists() local 179 sepol_node_key_unpack(key, &addr, &mask, &proto); in sepol_node_exists() 83 node_to_record(sepol_handle_t * handle, const policydb_t * policydb, ocontext_t * node, int proto, sepol_node_t ** record) node_to_record() argument 237 int proto; sepol_node_query() local 304 int proto; sepol_node_modify() local [all...] |
/device/soc/rockchip/common/sdk_linux/include/trace/hooks/ |
H A D | vendor_hooks.h | 20 #define DEFINE_HOOK_FN(_name, _reg, _unreg, proto, args) \
23 int __traceiter_##_name(void *__data, proto); \
34 int __traceiter_##_name(void *__data, proto) \
42 ((void (*)(void *, proto))(it_func))(__data, args); \
49 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) DEFINE_HOOK_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args))
78 #define I_DECLARE_RESTRICTED_HOOK(name, proto, args, cond, data_proto) \
82 static inline void trace_##name(proto) \
101 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \
102 I_DECLARE_RESTRICTED_HOOK(name, PARAMS(proto), PARAM [all...] |
/third_party/lwip/src/core/ |
H A D | stats.c | 64 stats_display_proto(struct stats_proto *proto, const char *name) in stats_display_proto() argument 67 LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", proto->xmit)); in stats_display_proto() 68 LWIP_PLATFORM_DIAG(("recv: %"STAT_COUNTER_F"\n\t", proto->recv)); in stats_display_proto() 69 LWIP_PLATFORM_DIAG(("fw: %"STAT_COUNTER_F"\n\t", proto->fw)); in stats_display_proto() 70 LWIP_PLATFORM_DIAG(("drop: %"STAT_COUNTER_F"\n\t", proto->drop)); in stats_display_proto() 71 LWIP_PLATFORM_DIAG(("chkerr: %"STAT_COUNTER_F"\n\t", proto->chkerr)); in stats_display_proto() 72 LWIP_PLATFORM_DIAG(("lenerr: %"STAT_COUNTER_F"\n\t", proto->lenerr)); in stats_display_proto() 73 LWIP_PLATFORM_DIAG(("memerr: %"STAT_COUNTER_F"\n\t", proto->memerr)); in stats_display_proto() 74 LWIP_PLATFORM_DIAG(("rterr: %"STAT_COUNTER_F"\n\t", proto->rterr)); in stats_display_proto() 75 LWIP_PLATFORM_DIAG(("proterr: %"STAT_COUNTER_F"\n\t", proto in stats_display_proto() [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_sslproto.py | 34 def ssl_protocol(self, *, waiter=None, proto=None): 36 if proto is None: # app protocol 37 proto = asyncio.Protocol() 38 ssl_proto = sslproto.SSLProtocol(self.loop, proto, sslcontext, waiter, 40 self.assertIs(ssl_proto._app_transport.get_protocol(), proto) 199 proto = Proto(1, usemv) variable in BaseStartTLS.test_buf_feed_data.Proto 200 protocols._feed_data_to_buffered_proto(proto, b'12345') 201 self.assertEqual(proto.data, b'12345') 203 proto = Proto(2, usemv) variable in BaseStartTLS.test_buf_feed_data.Proto 204 protocols._feed_data_to_buffered_proto(proto, 207 proto = Proto(2, usemv) global() variable in BaseStartTLS.test_buf_feed_data.Proto 211 proto = Proto(4, usemv) global() variable in BaseStartTLS.test_buf_feed_data.Proto 215 proto = Proto(100, usemv) global() variable in BaseStartTLS.test_buf_feed_data.Proto 219 proto = Proto(0, usemv) global() variable in BaseStartTLS.test_buf_feed_data.Proto [all...] |
/third_party/protobuf/js/ |
H A D | proto3_test.js | 33 // CommonJS-LoadFromFile: testbinary_pb proto.jspb.test 34 goog.require('proto.jspb.test.ForeignMessage'); 35 // CommonJS-LoadFromFile: proto3_test_pb proto.jspb.test 36 goog.require('proto.jspb.test.Proto3Enum'); 37 goog.require('proto.jspb.test.TestProto3'); 38 // CommonJS-LoadFromFile: google/protobuf/any_pb proto.google.protobuf 39 goog.require('proto.google.protobuf.Any'); 40 // CommonJS-LoadFromFile: google/protobuf/timestamp_pb proto.google.protobuf 41 goog.require('proto.google.protobuf.Timestamp'); 42 // CommonJS-LoadFromFile: google/protobuf/struct_pb proto [all...] |
H A D | maps_test.js | 34 // CommonJS-LoadFromFile: testbinary_pb proto.jspb.test 35 goog.require('proto.jspb.test.MapValueEnum'); 36 goog.require('proto.jspb.test.MapValueMessage'); 37 goog.require('proto.jspb.test.TestMapFields'); 38 goog.require('proto.jspb.test.TestMapFieldsOptionalKeys'); 39 goog.require('proto.jspb.test.TestMapFieldsOptionalValues'); 40 goog.require('proto.jspb.test.MapEntryOptionalKeysStringKey'); 41 goog.require('proto.jspb.test.MapEntryOptionalKeysInt32Key'); 42 goog.require('proto.jspb.test.MapEntryOptionalKeysInt64Key'); 43 goog.require('proto [all...] |
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
H A D | LazyStringEndToEndTest.java | 95 UnittestProto.TestAllTypes proto = in testNoStringCachingIfOnlyBytesAccessed() 97 ByteString optional = proto.getOptionalStringBytes(); in testNoStringCachingIfOnlyBytesAccessed() 98 assertSame(optional, proto.getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 99 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 101 ByteString repeated0 = proto.getRepeatedStringBytes(0); in testNoStringCachingIfOnlyBytesAccessed() 102 ByteString repeated1 = proto.getRepeatedStringBytes(1); in testNoStringCachingIfOnlyBytesAccessed() 103 assertSame(repeated0, proto.getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed() 104 assertSame(repeated1, proto.getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed() 105 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed() 106 assertSame(repeated1, proto in testNoStringCachingIfOnlyBytesAccessed() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
H A D | ip.h | 275 #define ip_output(p, src, dest, ttl, tos, proto, pcb) \ 277 ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, pcb) : \ 278 ip4_output(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, pcb)) 284 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ 286 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 287 ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) 292 #define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ 294 ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 295 ip4_output_if_src(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) 302 #define ip_output_hinted(p, src, dest, ttl, tos, proto, netif_hin [all...] |
/third_party/libcoap/src/ |
H A D | coap_address.c | 428 coap_proto_t proto = 0; in coap_resolve_address_info() local 448 proto = COAP_PROTO_UDP; in coap_resolve_address_info() 453 proto = COAP_PROTO_DTLS; in coap_resolve_address_info() 458 proto = COAP_PROTO_TCP; in coap_resolve_address_info() 463 proto = COAP_PROTO_TLS; in coap_resolve_address_info() 468 proto = COAP_PROTO_NONE; in coap_resolve_address_info() 473 proto = COAP_PROTO_NONE; in coap_resolve_address_info() 478 proto = COAP_PROTO_WS; in coap_resolve_address_info() 483 proto = COAP_PROTO_WSS; in coap_resolve_address_info() 493 info->proto in coap_resolve_address_info() 709 coap_proto_t proto = 0; coap_resolve_address_info() local [all...] |
H A D | coap_session.c | 519 coap_make_session(coap_proto_t proto, coap_session_type_t type, in coap_make_session() argument 532 session->proto = proto; in coap_make_session() 556 if (proto == COAP_PROTO_DTLS) { in coap_make_session() 587 if (COAP_PROTO_NOT_RELIABLE(session->proto)) in coap_make_session() 648 session->proto == COAP_PROTO_DTLS ? in coap_session_mfree() 712 if (COAP_PROTO_NOT_RELIABLE(session->proto)) in coap_session_max_pdu_size_internal() 791 if (COAP_PROTO_NOT_RELIABLE(session->proto)) { in coap_session_delay_pdu() 807 if (pdu->type == COAP_MESSAGE_CON && COAP_PROTO_NOT_RELIABLE(session->proto)) { in coap_session_delay_pdu() 825 assert(COAP_PROTO_RELIABLE(session->proto)); in coap_session_send_csm() 1099 coap_make_addr_hash(coap_addr_hash_t *addr_hash, coap_proto_t proto, const coap_addr_tuple_t *addr_info) coap_make_addr_hash() argument 1259 coap_session_create_client(coap_context_t *ctx, const coap_address_t *local_if, const coap_address_t *server, coap_proto_t proto) coap_session_create_client() argument 1417 coap_new_client_session(coap_context_t *ctx, const coap_address_t *local_if, const coap_address_t *server, coap_proto_t proto) coap_new_client_session() argument 1432 coap_new_client_session_psk(coap_context_t *ctx, const coap_address_t *local_if, const coap_address_t *server, coap_proto_t proto, const char *identity, const uint8_t *key, unsigned key_len) coap_new_client_session_psk() argument 1457 coap_new_client_session_psk2(coap_context_t *ctx, const coap_address_t *local_if, const coap_address_t *server, coap_proto_t proto, coap_dtls_cpsk_t *setup_data) coap_new_client_session_psk2() argument 1627 coap_new_client_session_pki(coap_context_t *ctx, const coap_address_t *local_if, const coap_address_t *server, coap_proto_t proto, coap_dtls_pki_t *setup_data) coap_new_client_session_pki() argument 1819 coap_proto_name(coap_proto_t proto) coap_proto_name() argument 1844 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) coap_new_endpoint() argument [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | text_format_unittest.cc | 212 // Get the DebugString from the proto. in TEST_F() 236 // Get the DebugString from the proto. in TEST_F() 821 unittest::SparseEnumMessage proto; in TEST_F() local 822 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F() 823 EXPECT_TRUE(proto.has_sparse_enum()); in TEST_F() 824 EXPECT_EQ(unittest::SPARSE_E, proto.sparse_enum()); in TEST_F() 828 proto3_unittest::TestAllTypes proto; in TEST_F() local 830 proto.add_repeated_nested_enum( in TEST_F() 832 proto.add_repeated_nested_enum( in TEST_F() 834 proto in TEST_F() 848 proto3_unittest::TestAllTypes proto; TEST_F() local 1401 ExpectFailure(const std::string& input, const std::string& message, int line, int col, Message* proto) ExpectFailure() argument 1406 ExpectMessage(const std::string& input, const std::string& message, int line, int col, Message* proto, bool expected_result) ExpectMessage() argument 1418 ExpectSuccessAndTree(const std::string& input, Message* proto, TextFormat::ParseInfoTree* info_tree) ExpectSuccessAndTree() argument 1694 protobuf_unittest::TestAllTypes proto; TEST_F() local 1866 unittest::TestAllTypes proto; TEST_F() local 1884 unittest::TestAllTypes proto; TEST_F() local 1961 protobuf_unittest::TestMessageSetContainer proto; TEST_F() local 1974 protobuf_unittest::TestMessageSetContainer proto; TEST_F() local 1997 protobuf_unittest::TestAllTypes proto; TEST() local 2101 protobuf_unittest::TestAllTypes proto; TEST() local 2113 protobuf_unittest::TestAllTypes proto; TEST() local [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/ |
H A D | EnumDescriptor.cs | 40 /// Descriptor for an enum type in a .proto file. 44 private readonly EnumDescriptorProto proto; field in Google.Protobuf.Reflection.EnumDescriptor 49 internal EnumDescriptor(EnumDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, Type clrType) in EnumDescriptor() argument 50 : base(file, file.ComputeFullName(parent, proto.Name), index) in EnumDescriptor() 52 this.proto = proto; in EnumDescriptor() 56 if (proto.Value.Count == 0) in EnumDescriptor() 63 values = DescriptorUtil.ConvertAndMakeReadOnly(proto.Value, in EnumDescriptor() 69 internal EnumDescriptorProto Proto { get { return proto; } } 74 public override string Name { get { return proto [all...] |
H A D | MethodDescriptor.cs | 43 private readonly MethodDescriptorProto proto; field in Google.Protobuf.Reflection.MethodDescriptor 66 public bool IsClientStreaming { get { return proto.ClientStreaming; } } 71 public bool IsServerStreaming { get { return proto.ServerStreaming; } } 80 /// The <c>MethodOptions</c>, defined in <c>descriptor.proto</c>. 106 internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file, in MethodDescriptor() argument 108 : base(file, parent.FullName + "." + proto.Name, index) in MethodDescriptor() 110 this.proto = proto; in MethodDescriptor() 115 internal MethodDescriptorProto Proto { get { return proto; } } 120 public override string Name { get { return proto [all...] |
H A D | OneofDescriptor.cs | 48 private readonly OneofDescriptorProto proto; field in Google.Protobuf.Reflection.OneofDescriptor 53 internal OneofDescriptor(OneofDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, string clrName) in OneofDescriptor() argument 54 : base(file, file.ComputeFullName(parent, proto.Name), index) in OneofDescriptor() 56 this.proto = proto; in OneofDescriptor() 61 // diving into the proto directly rather than using FieldDescriptor, but that's okay. in OneofDescriptor() 71 public override string Name { get { return proto.Name; } } 121 public CustomOptions CustomOptions => new CustomOptions(proto.Options?._extensions?.ValuesByNumber); 124 /// The <c>OneofOptions</c>, defined in <c>descriptor.proto</c>. 129 public OneofOptions GetOptions() => proto [all...] |
H A D | FileDescriptor.cs | 46 /// The syntax of a .proto file 65 /// Describes a .proto file, including everything defined within. 83 private FileDescriptor(ByteString descriptorData, FileDescriptorProto proto, IEnumerable<FileDescriptor> dependencies, DescriptorPool pool, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo) in FileDescriptor() argument 87 Proto = proto; in FileDescriptor() 90 PublicDependencies = DeterminePublicDependencies(this, proto, dependencies, allowUnknownDependencies); in FileDescriptor() 94 MessageTypes = DescriptorUtil.ConvertAndMakeReadOnly(proto.MessageType, in FileDescriptor() 98 EnumTypes = DescriptorUtil.ConvertAndMakeReadOnly(proto.EnumType, in FileDescriptor() 102 Services = DescriptorUtil.ConvertAndMakeReadOnly(proto.Service, in FileDescriptor() 110 if (!proto.HasSyntax || proto in FileDescriptor() 363 BuildFrom(ByteString descriptorData, FileDescriptorProto proto, FileDescriptor[] dependencies, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo) BuildFrom() argument [all...] |
H A D | ServiceDescriptor.cs | 45 private readonly ServiceDescriptorProto proto; field in Google.Protobuf.Reflection.ServiceDescriptor 48 internal ServiceDescriptor(ServiceDescriptorProto proto, FileDescriptor file, int index) in ServiceDescriptor() argument 49 : base(file, file.ComputeFullName(null, proto.Name), index) in ServiceDescriptor() 51 this.proto = proto; in ServiceDescriptor() 52 methods = DescriptorUtil.ConvertAndMakeReadOnly(proto.Method, in ServiceDescriptor() 61 public override string Name { get { return proto.Name; } } 74 internal ServiceDescriptorProto Proto { get { return proto; } } 101 /// The <c>ServiceOptions</c>, defined in <c>descriptor.proto</c>.
|
H A D | EnumValueDescriptor.cs | 39 /// Descriptor for a single enum value within an enum in a .proto file. 44 private readonly EnumValueDescriptorProto proto; field in Google.Protobuf.Reflection.EnumValueDescriptor 46 internal EnumValueDescriptor(EnumValueDescriptorProto proto, FileDescriptor file, in EnumValueDescriptor() argument 48 : base(file, parent.FullName + "." + proto.Name, index) in EnumValueDescriptor() 50 this.proto = proto; in EnumValueDescriptor() 56 internal EnumValueDescriptorProto Proto { get { return proto; } } 61 public override string Name { get { return proto.Name; } } 80 /// The <c>EnumValueOptions</c>, defined in <c>descriptor.proto</c>.
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | proto_builder_test.py | 60 """Test that we can create a proto class.""" 64 proto = proto_cls() 65 proto.foo = 12345 66 proto.bar = 'asdf' 68 'bar: "asdf"\nfoo: 12345\n', text_format.MessageToString(proto)) 75 proto = proto_cls() 76 proto.foo = 12345 77 proto.bar = 'asdf' 79 'foo: 12345\nbar: "asdf"\n', text_format.MessageToString(proto))
|
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | proxy_set_prototoype_of.js | 82 handler.setPrototypeOf = function(target, proto) { 93 handler.setPrototypeOf = function(target, proto) { 104 handler.setPrototypeOf = function(proto) {}; 113 var proto = {}; 114 Object.setPrototypeOf(proto, Function.prototype); 119 handler.setPrototypeOf = function(target, proto) { 121 seen_prototype = proto; 125 Object.setPrototypeOf(proxy, proto); 127 assert(proto === seen_prototype); 144 setPrototypeOf(target, proto) { [all...] |
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | FileDescriptor.php | 72 public static function buildFromProto($proto) 75 $file->setPackage($proto->getPackage()); 76 foreach ($proto->getMessageType() as $message_proto) { 78 $message_proto, $proto, "")); 80 foreach ($proto->getEnumType() as $enum_proto) { 84 $proto,
|
/third_party/curl/tests/libtest/ |
H A D | lib1597.c | 42 const char *const *proto; in test() local 85 for(proto = curlinfo->protocols; *proto; proto++) { in test() 91 n += msnprintf(protolist + n, sizeof(protolist) - n, ",%s", *proto); in test() 92 if(curl_strequal(*proto, "http")) in test() 94 if(curl_strequal(*proto, "https")) in test()
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/resources/ |
H A D | fuzz_library.js | 30 let proto = Object.getPrototypeOf(obj); 31 while (proto && proto != Object.prototype) { 32 Object.getOwnPropertyNames(proto) 35 if (__isPropertyOfType(proto, name, type)) 39 proto = Object.getPrototypeOf(proto);
|
/third_party/python/Modules/_sqlite/ |
H A D | microprotocols.c | 53 PyObject *proto, PyObject *cast) in pysqlite_microprotocols_add() 59 assert(proto != NULL); in pysqlite_microprotocols_add() 60 key = Py_BuildValue("(OO)", (PyObject*)type, proto); in pysqlite_microprotocols_add() 75 PyObject *proto, PyObject *alt) in pysqlite_microprotocols_adapt() 84 key = Py_BuildValue("(OO)", (PyObject*)Py_TYPE(obj), proto); in pysqlite_microprotocols_adapt() 101 if (_PyObject_LookupAttr(proto, state->str___adapt__, &adapter) < 0) { in pysqlite_microprotocols_adapt() 124 adapted = PyObject_CallOneArg(adapter, proto); in pysqlite_microprotocols_adapt() 52 pysqlite_microprotocols_add(pysqlite_state *state, PyTypeObject *type, PyObject *proto, PyObject *cast) pysqlite_microprotocols_add() argument 74 pysqlite_microprotocols_adapt(pysqlite_state *state, PyObject *obj, PyObject *proto, PyObject *alt) pysqlite_microprotocols_adapt() argument
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/ |
H A D | proto3_test.js | 34 // CommonJS-LoadFromFile: testbinary_pb proto.jspb.test 35 goog.require('proto.jspb.test.ForeignMessage'); 37 // CommonJS-LoadFromFile: proto3_test_pb proto.jspb.test 38 goog.require('proto.jspb.test.Proto3Enum'); 39 goog.require('proto.jspb.test.TestProto3'); 73 var msg = new proto.jspb.test.TestProto3(); 99 proto.jspb.test.Proto3Enum.PROTO3_FOO); 127 var msg = new proto.jspb.test.TestProto3(); 144 var submsg = new proto.jspb.test.ForeignMessage(); 147 msg.setOptionalForeignEnum(proto [all...] |