Home
last modified time | relevance | path

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

/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/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/autotest/server/site_tests/autoupdate_EndToEndTest/
Dupdate_engine_performance_monitor.py258 json_str = monitor.run(signal.SIGTERM) variable
260 if json_str:
262 fifo.write(json_str)
277 json_str = fifo.read() variable
278 print json_str
284 json_str = monitor.run(signal.SIGINT) variable
285 if json_str:
286 print json_str
/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/autotest/client/cros/power/
Dpower_dashboard.py141 json_str = json.dumps(powerlog_dict, indent=4, separators=(',', ': '),
143 json_str = utils.strip_non_printable(json_str)
145 f.write(json_str)
201 json_str = json.dumps(powerlog_dict, ensure_ascii=False)
202 data_obj = {'data': utils.strip_non_printable(json_str)}
/external/python/apitools/apitools/base/py/
Dextra_types_test.py178 def JtoM(class_type, json_str): argument
179 return encoding.JsonToMessage(class_type, json_str)
/external/tensorflow/tensorflow/python/keras/engine/
Dnetwork_test.py591 json_str = model.to_json()
592 keras.models.model_from_json(json_str)
1050 json_str = model.to_json()
1051 keras.models.model_from_json(json_str)
/external/v8/src/d8/
Dd8.cc389 const char* json_str) { in FillTraceConfig() argument
396 String::NewFromUtf8(isolate, json_str).ToLocalChecked(); in FillTraceConfig()
429 v8::Isolate* isolate, const char* json_str) { in CreateTraceConfigFromJSON() argument
432 TraceConfigParser::FillTraceConfig(isolate, trace_config, json_str); in CreateTraceConfigFromJSON()