/external/rust/crates/grpcio-sys/grpc/src/cpp/server/channelz/ |
D | channelz_service.cc | 30 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/ |
D | channelz_service.cc | 34 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/ |
D | channelz_test.cc | 88 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 …]
|
D | channel_trace_test.cc | 102 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/ |
D | VSCode.cpp | 87 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 …]
|
D | VSCode.h | 122 void SendJSON(const std::string &json_str);
|
/external/grpc-grpc/src/core/lib/channel/ |
D | channelz_registry.cc | 110 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()
|
D | channelz.cc | 52 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/ |
D | json_token.cc | 167 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/ |
D | devshell.py | 88 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/ |
D | channel_trace_proto_helper.cc | 40 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/ |
D | json_token.cc | 165 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/ |
D | trace_events_to_json_test.cc | 35 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/ |
D | power_dashboard.py | 152 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/ |
D | gen_ast_dump_json_test.py | 157 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/ |
D | vscode.py | 76 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/ |
D | SBStructuredData.cpp | 65 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/ |
D | extra_types_test.py | 177 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/ |
D | json.h | 59 static Json Parse(absl::string_view json_str, grpc_error** error);
|
D | json_reader.cc | 852 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/ |
D | cds.cc | 372 std::string json_str = json.Dump(/*indent=*/1); in OnClusterChanged() local 374 json_str.c_str()); in OnClusterChanged()
|
D | xds_cluster_resolver.cc | 931 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/ |
D | RNBRemote.cpp | 6000 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/ |
D | functional_test.py | 632 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/ |
D | ProcessGDBRemote.cpp | 5065 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()
|