Home
last modified time | relevance | path

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

123

/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,
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Djson_token_test.cc98 char* json_string = test_json_key_str(nullptr); in test_parse_json_key_success() local
100 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_success()
116 gpr_free(json_string); in test_parse_json_key_success()
128 char* json_string = test_json_key_str(non_closing_part3); in test_parse_json_key_failure_bad_json() local
130 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_failure_bad_json()
132 gpr_free(json_string); in test_parse_json_key_failure_bad_json()
144 char* json_string = test_json_key_str(no_type_part3); in test_parse_json_key_failure_no_type() local
146 grpc_auth_json_key_create_from_string(json_string); in test_parse_json_key_failure_no_type()
148 gpr_free(json_string); in test_parse_json_key_failure_no_type()
159 char* json_string = test_json_key_str(no_client_id_part3); in test_parse_json_key_failure_no_client_id() local
[all …]
/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.py131 json_string = _OPEN_STATUS_VALUES[0]
132 json_value = json.loads(json_string)
134 _FakeURLResponse(200, json_string))
143 json_string = _OPEN_STATUS_VALUES[0]
144 json_value = json.loads(json_string)
149 _FakeURLResponse(200, json_string))
158 json_string = _OPEN_STATUS_VALUES[0]
159 json_value = json.loads(json_string)
164 _FakeURLResponse(200, json_string))
173 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()
/external/llvm-project/lldb/unittests/debugserver/
DJSONTest.cpp21 JSONValue::SP ParseJSON(const char *json_string) { in ParseJSON() argument
22 return JSONParser(json_string).ParseJSONValue(); in ParseJSON()
27 const char *json_string, in ParseAndTestJSON() argument
29 auto json_val = ParseJSON(json_string);
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dservice_config.h69 absl::string_view json_string,
72 ServiceConfig(const grpc_channel_args* args, std::string json_string,
76 const std::string& json_string() const { return json_string_; } in json_string() function
Dservice_config.cc34 const grpc_channel_args* args, absl::string_view json_string, in Create() argument
37 Json json = Json::Parse(json_string, error); in Create()
39 return MakeRefCounted<ServiceConfig>(args, std::string(json_string), in Create()
44 std::string json_string, Json json, in ServiceConfig() argument
46 : json_string_(std::move(json_string)), json_(std::move(json)) { in ServiceConfig()
/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()
/external/webrtc/api/audio/
Decho_canceller3_config_json.h26 RTC_EXPORT void Aec3ConfigFromJsonString(absl::string_view json_string,
36 Aec3ConfigFromJsonString(absl::string_view json_string);
/external/autotest/server/cros/servo/topology/
Dservo_topology.py327 json_string = json.dumps(topology, separators=(',', ':'))
328 logging.debug('Servo topology (json): %s', json_string)
335 b64_string = base64.b64encode(json_string.encode("utf-8"))
356 json_string = base64.b64decode(src)
357 logging.debug('Servo topology (json) from host-info: %s', json_string)
358 return json.loads(json_string)
/external/rust/crates/grpcio-sys/grpc/src/cpp/client/
Dsecure_credentials.cc115 const grpc::string& json_string, const std::vector<grpc::string>& scopes) { in ExternalAccountCredentials() argument
118 json_string.c_str(), absl::StrJoin(scopes, ",").c_str())); in ExternalAccountCredentials()
157 grpc::Status StsCredentialsOptionsFromJson(const std::string& json_string, in StsCredentialsOptionsFromJson() argument
165 grpc_core::Json json = grpc_core::Json::Parse(json_string.c_str(), &error); in StsCredentialsOptionsFromJson()
220 grpc_slice json_string = grpc_empty_slice(); in StsCredentialsOptionsFromEnv() local
224 auto cleanup = [&json_string, &sts_creds_path, &error, &status]() { in StsCredentialsOptionsFromEnv()
225 grpc_slice_unref_internal(json_string); in StsCredentialsOptionsFromEnv()
236 error = grpc_load_file(sts_creds_path, 1, &json_string); in StsCredentialsOptionsFromEnv()
243 reinterpret_cast<const char*>(GRPC_SLICE_START_PTR(json_string)), in StsCredentialsOptionsFromEnv()
/external/tensorflow/tensorflow/python/keras/saving/
Dmodel_config.py108 def model_from_json(json_string, custom_objects=None): argument
128 config = json_utils.decode(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/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dfuzz_test_util.cpp147 std::string json_string; in DumpTransformationsJson() local
151 transformations, &json_string, json_options); in DumpTransformationsJson()
154 transformations_json_file << json_string; in DumpTransformationsJson()
/external/deqp-deps/SPIRV-Tools/test/fuzz/
Dfuzz_test_util.cpp147 std::string json_string; in DumpTransformationsJson() local
151 transformations, &json_string, json_options); in DumpTransformationsJson()
154 transformations_json_file << json_string; in DumpTransformationsJson()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/fuzz/
Dfuzz_test_util.cpp147 std::string json_string; in DumpTransformationsJson() local
151 transformations, &json_string, json_options); in DumpTransformationsJson()
154 transformations_json_file << json_string; in DumpTransformationsJson()
/external/webrtc/api/audio/test/
Decho_canceller3_config_json_unittest.cc31 std::string json_string = Aec3ConfigToJsonString(cfg); in TEST() local
32 EchoCanceller3Config cfg_transformed = Aec3ConfigFromJsonString(json_string); in TEST()
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Djson_utils.py65 def decode(json_string): argument
66 return json.loads(json_string, object_hook=_decode_helper)
/external/deqp-deps/SPIRV-Tools/tools/fuzz/
Dfuzz.cpp637 std::string json_string; in DumpTransformationsJson() local
641 transformations, &json_string, json_options); in DumpTransformationsJson()
644 transformations_json_file << json_string; in DumpTransformationsJson()
768 std::string json_string; in main() local
772 transformations_applied, &json_string, json_options); in main()
781 transformations_json_file << json_string; in main()
/external/swiftshader/third_party/SPIRV-Tools/tools/fuzz/
Dfuzz.cpp637 std::string json_string; in DumpTransformationsJson() local
641 transformations, &json_string, json_options); in DumpTransformationsJson()
644 transformations_json_file << json_string; in DumpTransformationsJson()
768 std::string json_string; in main() local
772 transformations_applied, &json_string, json_options); in main()
781 transformations_json_file << json_string; in main()
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/fuzz/
Dfuzz.cpp694 std::string json_string; in DumpTransformationsJson() local
698 transformations, &json_string, json_options); in DumpTransformationsJson()
701 transformations_json_file << json_string; in DumpTransformationsJson()
826 std::string json_string; in main() local
830 transformations_applied, &json_string, json_options); in main()
839 transformations_json_file << json_string; in main()

123