Home
last modified time | relevance | path

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

1234

/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/cronet/base/json/
Djson_file_value_serializer.cc38 std::string json_string; in SerializeInternal() local
39 JSONStringValueSerializer serializer(&json_string); in SerializeInternal()
47 return base::WriteFile(json_file_path_, json_string); in SerializeInternal()
57 int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { in ReadFileToString() argument
58 DCHECK(json_string); in ReadFileToString()
60 if (!base::ReadFileToString(json_file_path_, json_string)) { in ReadFileToString()
73 last_read_size_ = json_string->size(); in ReadFileToString()
98 std::string json_string; in Deserialize() local
99 int error = ReadFileToString(&json_string); in Deserialize()
108 JSONStringValueDeserializer deserializer(json_string, options_); in Deserialize()
Djson_string_value_serializer.cc12 JSONStringValueSerializer::JSONStringValueSerializer(std::string* json_string) in JSONStringValueSerializer() argument
13 : json_string_(json_string), in JSONStringValueSerializer()
43 const base::StringPiece& json_string, in JSONStringValueDeserializer() argument
45 : json_string_(json_string), options_(options) {} in JSONStringValueDeserializer()
Djson_string_value_serializer.h22 explicit JSONStringValueSerializer(std::string* json_string);
56 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/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/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/rust/crates/grpcio-sys/grpc/src/cpp/client/
Dsecure_credentials.cc113 const grpc::string& json_string, const std::vector<grpc::string>& scopes) { in ExternalAccountCredentials() argument
116 json_string.c_str(), absl::StrJoin(scopes, ",").c_str())); in ExternalAccountCredentials()
153 grpc::Status StsCredentialsOptionsFromJson(const std::string& json_string, in StsCredentialsOptionsFromJson() argument
161 grpc_core::Json json = grpc_core::Json::Parse(json_string.c_str(), &error); in StsCredentialsOptionsFromJson()
216 grpc_slice json_string = grpc_empty_slice(); in StsCredentialsOptionsFromEnv() local
220 auto cleanup = [&json_string, &sts_creds_path, &error, &status]() { in StsCredentialsOptionsFromEnv()
221 grpc_slice_unref_internal(json_string); in StsCredentialsOptionsFromEnv()
232 error = grpc_load_file(sts_creds_path, 1, &json_string); in StsCredentialsOptionsFromEnv()
239 reinterpret_cast<const char*>(GRPC_SLICE_START_PTR(json_string)), in StsCredentialsOptionsFromEnv()
/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/tensorflow/tensorflow/python/keras/saving/
Dmodel_config.py82 def model_from_json(json_string, custom_objects=None): argument
102 config = json_utils.decode(json_string)
/external/armnn/python/pyarmnn/test/
Dtest_profiling_utilities.py11 def __init__(self, json_string): argument
12 self._profile_json = json_string
/external/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/autotest/server/cros/servo/topology/
Dservo_topology.py538 json_string = json.dumps(topology, separators=(',', ':'))
539 logging.debug('Servo topology (json): %s', json_string)
546 b64_string = base64.b64encode(json_string.encode("utf-8"))
567 json_string = base64.b64decode(src)
568 logging.debug('Servo topology (json) from host-info: %s', json_string)
569 return json.loads(json_string)
/external/angle/build/android/pylib/instrumentation/
Djson_perf_parser.py135 def GetAverageRunInfoFromJSONString(json_string, name): argument
145 return GetAverageRunInfo(json.loads(json_string), name)
/external/cronet/build/android/pylib/instrumentation/
Djson_perf_parser.py135 def GetAverageRunInfoFromJSONString(json_string, name): argument
145 return GetAverageRunInfo(json.loads(json_string), name)
/external/cronet/components/metrics/
Dclean_exit_beacon.cc432 std::string json_string; in WriteBeaconFile() local
433 JSONStringValueSerializer serializer(&json_string); in WriteBeaconFile()
436 DCHECK(!json_string.empty()); in WriteBeaconFile()
439 success = base::WriteFile(beacon_file_path_, json_string); in WriteBeaconFile()
/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/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/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/ot-br-posix/third_party/Simple-web-server/repo/
Dhttps_examples.cpp178 string json_string="{\"firstName\": \"John\",\"lastName\": \"Smith\",\"age\": 25}"; in main() local
179 auto r2=client.request("POST", "/string", json_string); in main()
182 auto r3=client.request("POST", "/json", json_string); in main()

1234