Home
last modified time | relevance | path

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

/external/rust/crates/grpcio-sys/grpc/src/cpp/server/channelz/
Dchannelz_service.cc30 grpc::protobuf::util::Status ParseJson(const char* json_str, in ParseJson() argument
34 return grpc::protobuf::json::JsonStringToMessage(json_str, message, options); in ParseJson()
43 char* json_str = grpc_channelz_get_top_channels(request->start_channel_id()); in GetTopChannels() local
44 if (json_str == nullptr) { in GetTopChannels()
48 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetTopChannels()
49 gpr_free(json_str); in GetTopChannels()
59 char* json_str = grpc_channelz_get_servers(request->start_server_id()); in GetServers() local
60 if (json_str == nullptr) { in GetServers()
64 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetServers()
65 gpr_free(json_str); in GetServers()
[all …]
/external/grpc-grpc/src/cpp/server/channelz/
Dchannelz_service.cc34 char* json_str = grpc_channelz_get_top_channels(request->start_channel_id()); in GetTopChannels() local
35 if (json_str == nullptr) { in GetTopChannels()
39 google::protobuf::util::JsonStringToMessage(json_str, response); in GetTopChannels()
40 gpr_free(json_str); in GetTopChannels()
50 char* json_str = grpc_channelz_get_servers(request->start_server_id()); in GetServers() local
51 if (json_str == nullptr) { in GetServers()
55 google::protobuf::util::JsonStringToMessage(json_str, response); in GetServers()
56 gpr_free(json_str); in GetServers()
66 char* json_str = grpc_channelz_get_channel(request->channel_id()); in GetChannel() local
67 if (json_str == nullptr) { in GetChannel()
[all …]
/external/grpc-grpc/test/core/channel/
Dchannelz_test.cc88 char* json_str = ChannelzRegistry::GetTopChannels(0); in ValidateGetTopChannels() local
89 grpc::testing::ValidateGetTopChannelsResponseProtoJsonTranslation(json_str); in ValidateGetTopChannels()
90 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateGetTopChannels()
98 gpr_free(json_str); in ValidateGetTopChannels()
107 char* json_str = ChannelzRegistry::GetServers(0); in ValidateGetServers() local
108 grpc::testing::ValidateGetServersResponseProtoJsonTranslation(json_str); in ValidateGetServers()
109 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateGetServers()
117 gpr_free(json_str); in ValidateGetServers()
186 void ValidateCounters(char* json_str, validate_channel_data_args args) { in ValidateCounters() argument
187 grpc_json* json = grpc_json_parse_string(json_str); in ValidateCounters()
[all …]
Dchannel_trace_test.cc102 char* json_str = grpc_json_dump_to_string(json, 0); in ValidateChannelTrace() local
104 grpc::testing::ValidateChannelTraceProtoJsonTranslation(json_str); in ValidateChannelTrace()
105 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateChannelTrace()
109 gpr_free(json_str); in ValidateChannelTrace()
/external/llvm-project/lldb/tools/lldb-vscode/
DVSCode.cpp87 void VSCode::SendJSON(const std::string &json_str) { in SendJSON() argument
89 output.write_full(llvm::utostr(json_str.size())); in SendJSON()
91 output.write_full(json_str); in SendJSON()
95 << "Content-Length: " << json_str.size() << "\r\n\r\n" in SendJSON()
96 << json_str << std::endl; in SendJSON()
114 std::string json_str; in ReadJSON() local
118 return json_str; in ReadJSON()
121 return json_str; in ReadJSON()
124 return json_str; in ReadJSON()
127 return json_str; in ReadJSON()
[all …]
DVSCode.h122 void SendJSON(const std::string &json_str);
/external/grpc-grpc/src/core/lib/channel/
Dchannelz_registry.cc110 char* json_str = grpc_json_dump_to_string(top_level_json, 0); in InternalGetTopChannels() local
112 return json_str; in InternalGetTopChannels()
146 char* json_str = grpc_json_dump_to_string(top_level_json, 0); in InternalGetServers() local
148 return json_str; in InternalGetServers()
178 char* json_str = grpc_json_dump_to_string(top_level_json, 0); in grpc_channelz_get_channel() local
180 return json_str; in grpc_channelz_get_channel()
196 char* json_str = grpc_json_dump_to_string(top_level_json, 0); in grpc_channelz_get_subchannel() local
198 return json_str; in grpc_channelz_get_subchannel()
Dchannelz.cc52 char* json_str = grpc_json_dump_to_string(json, 0); in RenderJsonString() local
54 return json_str; in RenderJsonString()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc167 char* json_str = nullptr; in encoded_jwt_header() local
174 json_str = grpc_json_dump_to_string(json, 0); in encoded_jwt_header()
175 result = grpc_base64_encode(json_str, strlen(json_str), 1, 0); in encoded_jwt_header()
176 gpr_free(json_str); in encoded_jwt_header()
186 char* json_str = nullptr; in encoded_jwt_claim() local
213 json_str = grpc_json_dump_to_string(json, 0); in encoded_jwt_claim()
214 result = grpc_base64_encode(json_str, strlen(json_str), 1, 0); in encoded_jwt_claim()
215 gpr_free(json_str); in encoded_jwt_claim()
/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py88 len_str, json_str = header.split('\n', 1)
89 to_read = int(len_str) - len(json_str)
91 json_str += sock.recv(to_read, socket.MSG_WAITALL).decode()
93 return CredentialInfoResponse(json_str)
/external/grpc-grpc/test/cpp/util/
Dchannel_trace_proto_helper.cc40 std::string json_str(json_c_str); in VaidateProtoJsonTranslation() local
48 EXPECT_EQ(google::protobuf::util::JsonStringToMessage(json_str, &msg, in VaidateProtoJsonTranslation()
62 EXPECT_EQ(json_str, proto_json_str); in VaidateProtoJsonTranslation()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc165 std::string json_str = json.Dump(); in encoded_jwt_header() local
166 return grpc_base64_encode(json_str.c_str(), json_str.size(), 1, 0); in encoded_jwt_header()
193 std::string json_str = json.Dump(); in encoded_jwt_claim() local
194 return grpc_base64_encode(json_str.c_str(), json_str.size(), 1, 0); in encoded_jwt_claim()
/external/tensorflow/tensorflow/core/profiler/convert/
Dtrace_events_to_json_test.cc35 Json::Value ToJsonValue(const std::string& json_str) { in ToJsonValue() argument
38 EXPECT_TRUE(reader.parse(json_str, json)); in ToJsonValue()
/external/autotest/client/cros/power/
Dpower_dashboard.py152 json_str = json.dumps(powerlog_dict, indent=4, separators=(',', ': '),
154 json_str = utils.strip_non_printable(json_str)
156 f.write(json_str)
221 json_str = json.dumps(powerlog_dict, ensure_ascii=False)
222 data_obj = {'data': utils.strip_non_printable(json_str)}
/external/llvm-project/clang/test/AST/
Dgen_ast_dump_json_test.py157 json_str = subprocess.check_output(cmd)
164 splits = re.split('Dumping .*:\n', json_str)
171 j = json.loads(json_str.decode('utf-8'), object_pairs_hook=OrderedDict)
/external/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/
Dvscode.py76 json_str = f.read(length)
78 print('json: "%s"' % (json_str))
80 trace_file.write('from adaptor:\n%s\n' % (json_str))
82 return json.loads(json_str)
249 json_str = json.dumps(command_dict, separators=(',', ':'))
251 self.trace_file.write('to adaptor:\n%s\n' % (json_str))
252 length = len(json_str)
255 self.send.write(self.encode_content(json_str))
/external/llvm-project/lldb/source/API/
DSBStructuredData.cpp65 std::string json_str(stream.GetData()); in SetFromJSON() local
67 StructuredData::ObjectSP json_obj = StructuredData::ParseJSON(json_str); in SetFromJSON()
/external/python/apitools/apitools/base/py/
Dextra_types_test.py177 def JtoM(class_type, json_str): argument
178 return encoding.JsonToMessage(class_type, json_str)
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson.h59 static Json Parse(absl::string_view json_str, grpc_error** error);
Djson_reader.cc852 Json Json::Parse(absl::string_view json_str, grpc_error** error) { in Parse() argument
854 *error = JsonReader::Parse(json_str, &value); in Parse()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/xds/
Dcds.cc372 std::string json_str = json.Dump(/*indent=*/1); in OnClusterChanged() local
374 json_str.c_str()); in OnClusterChanged()
Dxds_cluster_resolver.cc931 std::string json_str = json.Dump(/*indent=*/1); in CreateChildPolicyConfigLocked() local
935 this, json_str.c_str()); in CreateChildPolicyConfigLocked()
/external/llvm-project/lldb/tools/debugserver/source/
DRNBRemote.cpp6000 std::ostringstream json_str; in HandlePacket_jGetLoadedDynamicLibrariesInfos() local
6001 json_sp->Dump(json_str); in HandlePacket_jGetLoadedDynamicLibrariesInfos()
6002 if (json_str.str().size() > 0) { in HandlePacket_jGetLoadedDynamicLibrariesInfos()
6003 std::string json_str_quoted = binary_encode_string(json_str.str()); in HandlePacket_jGetLoadedDynamicLibrariesInfos()
6033 std::ostringstream json_str; in HandlePacket_jGetSharedCacheInfo() local
6034 json_sp->Dump(json_str); in HandlePacket_jGetSharedCacheInfo()
6035 if (json_str.str().size() > 0) { in HandlePacket_jGetSharedCacheInfo()
6036 std::string json_str_quoted = binary_encode_string(json_str.str()); in HandlePacket_jGetSharedCacheInfo()
/external/tensorflow/tensorflow/python/keras/engine/
Dfunctional_test.py632 json_str = model.to_json()
633 models.model_from_json(json_str)
1366 json_str = model.to_json()
1367 models.model_from_json(json_str)
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DProcessGDBRemote.cpp5065 StreamString json_str; in ParseStructuredDataPacket() local
5066 json_sp->Dump(json_str, true); in ParseStructuredDataPacket()
5067 json_str.Flush(); in ParseStructuredDataPacket()
5071 __FUNCTION__, json_str.GetData()); in ParseStructuredDataPacket()