Home
last modified time | relevance | path

Searched refs:proto_str (Results 1 – 13 of 13) sorted by relevance

/external/selinux/libsepol/src/
Dports.c184 const char *proto_str; in sepol_port_exists() local
186 proto_str = sepol_port_get_proto_str(proto); in sepol_port_exists()
208 low, high, proto_str); in sepol_port_exists()
222 const char *proto_str; in sepol_port_query() local
224 proto_str = sepol_port_get_proto_str(proto); in sepol_port_query()
247 low, high, proto_str); in sepol_port_query()
262 const char *proto_str; in sepol_port_modify() local
265 proto_str = sepol_port_get_proto_str(proto); in sepol_port_modify()
281 low, high, proto_str); in sepol_port_modify()
/external/selinux/libsemanage/src/
Dports_file.c32 const char *proto_str = semanage_port_get_proto_str(proto); in port_print() local
35 if (fprintf(str, "portcon %s ", proto_str) < 0) in port_print()
56 low, high, proto_str); in port_print()
Dports_local.c96 const char *proto_str = semanage_port_get_proto_str(proto); in hidden_def() local
118 low, high, proto_str, low2, high2, proto_str2); in hidden_def()
Dnodes_file.c32 const char *proto_str = semanage_node_get_proto_str(proto); in node_print() local
45 (str, "nodecon %s %s %s %s\n", proto_str, addr, mask, con_str) < 0) in node_print()
Dpywrap-test.py237 proto_str = semanage.semanage_port_get_proto_str(proto)
245 print("Port: %s %s Context: %s" % (range_str, proto_str, con_str))
368 proto_str = semanage.semanage_node_get_proto_str(proto)
375 print("Network Node: %s/%s (%s) Context: %s" % (addr, mask, proto_str, con_str))
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_addr_any.c240 static void test_proto(int proto, const char *proto_str) in test_proto() argument
256 fprintf(stderr, "%s IPv4 ... ", proto_str); in test_proto()
259 fprintf(stderr, "%s IPv6 ... ", proto_str); in test_proto()
262 fprintf(stderr, "%s IPv4 mapped to IPv6 ... ", proto_str); in test_proto()
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/
Dobject_detection_stage.cc170 std::string proto_str((std::istreambuf_iterator<char>(t)), in PopulateGroundTruth()
173 ground_truth_proto.ParseFromString(proto_str); in PopulateGroundTruth()
/external/icing/icing/file/
Dfile-backed-proto-log.h709 std::string proto_str; in WriteProto() local
710 google::protobuf::io::StringOutputStream proto_stream(&proto_str); in WriteProto()
727 final_size = proto_str.size(); in WriteProto()
741 final_size = proto_str.size(); in WriteProto()
755 if (!filesystem_->Write(fd_.get(), proto_str.data(), proto_str.size())) { in WriteProto()
Dportable-file-backed-proto-log.h880 std::string proto_str; in WriteProto() local
881 google::protobuf::io::StringOutputStream proto_stream(&proto_str); in WriteProto()
898 final_size = proto_str.size(); in WriteProto()
912 final_size = proto_str.size(); in WriteProto()
924 if (!filesystem_->Write(fd_.get(), proto_str.data(), proto_str.size())) { in WriteProto()
/external/selinux/python/semanage/
Dseobject.py1217 proto_str = semanage_port_get_proto_str(proto)
1222 (k, proto_d, low, high) = self.__genkey(port_str, proto_str)
1234 …log_change("resrc=port op=delete lport=%s proto=%s" % (port_str, socket.getprotobyname(proto_str)))
1279 proto_str = semanage_port_get_proto_str(proto)
1282 ddict[(low, high, proto_str)] = (ctype, level)
1298 proto_str = semanage_port_get_proto_str(proto)
1301 if (ctype, proto_str) not in ddict.keys():
1302 ddict[(ctype, proto_str)] = []
1304 ddict[(ctype, proto_str)].append("%d" % low)
1306 ddict[(ctype, proto_str)].append("%d-%d" % (low, high))
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c2075 const char *proto_str; in PyCSimpleType_new() local
2098 proto_str = PyUnicode_AsUTF8AndSize(proto, &proto_len); in PyCSimpleType_new()
2099 if (!proto_str) in PyCSimpleType_new()
2112 if (!strchr(SIMPLE_TYPE_CHARS, *proto_str)) { in PyCSimpleType_new()
2119 fmt = _ctypes_get_fielddesc(proto_str); in PyCSimpleType_new()
2122 "_type_ '%s' not supported", proto_str); in PyCSimpleType_new()
2138 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 1); in PyCSimpleType_new()
2140 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 0); in PyCSimpleType_new()
2172 switch (*proto_str) { in PyCSimpleType_new()
/external/pigweed/pw_rpc/py/pw_rpc/
Ddescriptors.py224 proto_str = repr(proto).strip() or "''"
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c2021 const char *proto_str; in PyCSimpleType_new() local
2042 proto_str = PyString_AS_STRING(proto); in PyCSimpleType_new()
2055 if (!strchr(SIMPLE_TYPE_CHARS, *proto_str)) { in PyCSimpleType_new()
2082 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 1); in PyCSimpleType_new()
2084 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 0); in PyCSimpleType_new()