Home
last modified time | relevance | path

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

12

/external/libchrome/base/json/
Djson_file_value_serializer.cc37 std::string json_string; in SerializeInternal() local
38 JSONStringValueSerializer serializer(&json_string); in SerializeInternal()
46 int data_size = static_cast<int>(json_string.size()); in SerializeInternal()
47 if (base::WriteFile(json_file_path_, json_string.data(), data_size) != in SerializeInternal()
61 int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { in ReadFileToString() argument
62 DCHECK(json_string); in ReadFileToString()
63 if (!base::ReadFileToString(json_file_path_, json_string)) { in ReadFileToString()
78 last_read_size_ = json_string->size(); in ReadFileToString()
103 std::string json_string; in Deserialize() local
104 int error = ReadFileToString(&json_string); in Deserialize()
[all …]
Djson_string_value_serializer.cc13 JSONStringValueSerializer::JSONStringValueSerializer(std::string* json_string) in JSONStringValueSerializer() argument
14 : json_string_(json_string), in JSONStringValueSerializer()
44 const base::StringPiece& json_string, in JSONStringValueDeserializer() argument
46 : json_string_(json_string), options_(options) {} in JSONStringValueDeserializer()
Djson_string_value_serializer.h21 explicit JSONStringValueSerializer(std::string* json_string);
52 explicit JSONStringValueDeserializer(const base::StringPiece& json_string,
Djson_file_value_serializer.h93 int ReadFileToString(std::string* json_string);
/external/grpc-grpc/test/core/security/
Djson_token_test.cc96 char* json_string = test_json_key_str(nullptr); in test_parse_json_key_success() local
98 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_success()
114 gpr_free(json_string); in test_parse_json_key_success()
126 char* json_string = test_json_key_str(non_closing_part3); in test_parse_json_key_failure_bad_json() local
128 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_failure_bad_json()
130 gpr_free(json_string); in test_parse_json_key_failure_bad_json()
142 char* json_string = test_json_key_str(no_type_part3); in test_parse_json_key_failure_no_type() local
144 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_failure_no_type()
146 gpr_free(json_string); in test_parse_json_key_failure_no_type()
157 char* json_string = test_json_key_str(no_client_id_part3); in test_parse_json_key_failure_no_client_id() local
[all …]
/external/autotest/server/
Dlab_status_unittest.py125 json_string = _OPEN_STATUS_VALUES[0]
126 json_value = json.loads(json_string)
128 _FakeURLResponse(200, json_string))
137 json_string = _OPEN_STATUS_VALUES[0]
138 json_value = json.loads(json_string)
143 _FakeURLResponse(200, json_string))
152 json_string = _OPEN_STATUS_VALUES[0]
153 json_value = json.loads(json_string)
158 _FakeURLResponse(200, json_string))
167 json_string = _OPEN_STATUS_VALUES[0]
[all …]
/external/grpc-grpc/src/core/lib/transport/
Dservice_config.cc37 UniquePtr<char> json_string(gpr_strdup(json)); in Create() local
38 grpc_json* json_tree = grpc_json_parse_string(json_string.get()); in Create()
43 return MakeUnique<ServiceConfig>(std::move(json_string), json_tree); in Create()
46 ServiceConfig::ServiceConfig(UniquePtr<char> json_string, grpc_json* json_tree) in ServiceConfig() argument
47 : json_string_(std::move(json_string)), json_tree_(json_tree) {} in ServiceConfig()
Dservice_config.h103 ServiceConfig(UniquePtr<char> json_string, grpc_json* json_tree);
/external/grpc-grpc/test/cpp/qps/
Dparse_json.cc56 grpc::string json_string; in SerializeJson() local
59 BinaryToJsonString(type_resolver.get(), type, binary, &json_string); in SerializeJson()
61 return json_string; in SerializeJson()
Dreport.cc167 grpc::string json_string = in ReportQPS() local
170 output_file << json_string; in ReportQPS()
/external/tensorflow/tensorflow/contrib/cloud/kernels/
Dgcs_config_ops.cc86 string json_string; in Compute() local
87 OP_REQUIRES_OK(ctx, ParseScalarArgument<string>(ctx, "json", &json_string)); in Compute()
91 std::stringstream json_stream(json_string); in Compute()
93 errors::InvalidArgument("Could not parse json: ", json_string)); in Compute()
/external/tensorflow/tensorflow/python/keras/saving/
Dmodel_config.py82 def model_from_json(json_string, custom_objects=None): argument
94 config = json.loads(json_string)
/external/libvpx/libvpx/test/android/
Dscrape_gtest_log.py42 json_string = '[' + ','.join('{' + x + '}' for x in
46 output = json.dumps(json.loads(json_string), indent=4, sort_keys=True)
/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py59 def __init__(self, json_string): argument
61 pbl = json.loads(json_string)
/external/webrtc/talk/app/webrtc/
Dandroidvideocapturer.cc137 std::string json_string = delegate_->GetSupportedFormats(); in AndroidVideoCapturer() local
138 LOG(LS_INFO) << json_string; in AndroidVideoCapturer()
142 if (!reader.parse(json_string, json_values)) { in AndroidVideoCapturer()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djson_token.h51 const char* json_string);
Djson_token.cc120 const char* json_string) { in grpc_auth_json_key_create_from_string() argument
121 char* scratchpad = gpr_strdup(json_string); in grpc_auth_json_key_create_from_string()
/external/v8/src/inspector/build/
Dgenerate_protocol_externs.py99 json_string = input_file.read()
100 parsed_json = json.loads(json_string)
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.h42 const char* json_string);
Doauth2_credentials.cc77 const char* json_string) { in grpc_auth_refresh_token_create_from_string() argument
78 char* scratchpad = gpr_strdup(json_string); in grpc_auth_refresh_token_create_from_string()
/external/autotest/client/cros/enterprise/
Denterprise_policy_base.py1044 def decode_json_string(json_string): argument
1081 result = json.loads(json_string, encoding='ascii',
1088 logging.warning('Could not unload: %s (%s)', json_string, e)
1089 return json_string
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.models.pbtxt25 …argspec: "args=[\'json_string\', \'custom_objects\'], varargs=None, keywords=None, defaults=[\'Non…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.models.pbtxt25 …argspec: "args=[\'json_string\', \'custom_objects\'], varargs=None, keywords=None, defaults=[\'Non…
/external/python/oauth2client/tests/contrib/
Dtest_devshell.py65 json_string = json.dumps(
67 info_response = devshell.CredentialInfoResponse(json_string)
/external/libbrillo/policy/
Ddevice_policy_impl.cc149 const std::string& json_string) { in DecodeListValueFromJSON() argument
152 base::JSONReader::ReadAndReturnError(json_string, in DecodeListValueFromJSON()

12