Home
last modified time | relevance | path

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

123456

/aosp_15_r20/external/grpc-grpc/test/core/security/
H A Djson_token_test.cc103 char* json_string = test_json_key_str(nullptr); in TEST() local
105 grpc_auth_json_key_create_from_string(json_string); in TEST()
121 gpr_free(json_string); in TEST()
133 char* json_string = test_json_key_str(non_closing_part3); in TEST() local
135 grpc_auth_json_key_create_from_string(json_string); in TEST()
137 gpr_free(json_string); in TEST()
149 char* json_string = test_json_key_str(no_type_part3); in TEST() local
151 grpc_auth_json_key_create_from_string(json_string); in TEST()
153 gpr_free(json_string); in TEST()
164 char* json_string = test_json_key_str(no_client_id_part3); in TEST() local
[all …]
/aosp_15_r20/external/libchrome/base/json/
H A 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 …]
H A 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()
/aosp_15_r20/external/cronet/base/json/
H A 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()
H A Djson_string_value_serializer.cc14 JSONStringValueSerializer::JSONStringValueSerializer(std::string* json_string) in JSONStringValueSerializer() argument
15 : json_string_(json_string), in JSONStringValueSerializer()
45 std::string_view json_string, in JSONStringValueDeserializer() argument
47 : json_string_(json_string), options_(options) {} in JSONStringValueDeserializer()
/aosp_15_r20/external/tink/cc/jwt/internal/
H A Djson_util.cc39 absl::string_view json_string) { in JsonStringToProtoStruct() argument
42 …buf::util::JsonStringToMessage(google::protobuf::StringPiece(json_string.data(), json_string.lengt… in JsonStringToProtoStruct()
51 absl::string_view json_string) { in JsonStringToProtoList() argument
54 …buf::util::JsonStringToMessage(google::protobuf::StringPiece(json_string.data(), json_string.lengt… in JsonStringToProtoList()
/aosp_15_r20/external/grpc-grpc/third_party/upb/upb/json/
H A Ddecode_test.cc81 std::string json_string = R"({"value": 2})"; in TEST() local
82 upb_test_Box* box = JsonDecode(json_string.c_str(), a.ptr()); in TEST()
89 std::string json_string = R"({}abc)"; in TEST() local
90 upb_test_Box* box = JsonDecode(json_string.c_str(), a.ptr()); in TEST()
96 std::string json_string = "{} \n \r\n \t\t"; in TEST() local
97 upb_test_Box* box = JsonDecode(json_string.c_str(), a.ptr()); in TEST()
/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/util/
H A Dobjc_json_serde.mm23 id to_json_object(const std::string& json_string) {
24 auto bytes = const_cast<void *>(reinterpret_cast<const void *>(json_string.c_str()));
25 …NSData *data = [[NSData alloc] initWithBytesNoCopy:bytes length:json_string.size() freeWhenDone:NO…
33 NSString *json_string = [[NSString alloc] initWithBytesNoCopy:const_cast<void *>(data.bytes)
37 return json_string.UTF8String;
H A Dobjc_json_serde.h33 id to_json_object(const std::string& json_string);
69 NSString* json_string = SAFE_CAST(json_value, NSString);
70 if (json_string) {
71 value = json_string.UTF8String;
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/cpp/client/
Dsecure_credentials.cc121 const grpc::string& json_string, const std::vector<grpc::string>& scopes) { in ExternalAccountCredentials() argument
124 json_string.c_str(), absl::StrJoin(scopes, ",").c_str())); in ExternalAccountCredentials()
161 grpc::Status StsCredentialsOptionsFromJson(const std::string& json_string, in StsCredentialsOptionsFromJson() argument
168 auto json = grpc_core::JsonParse(json_string.c_str()); in StsCredentialsOptionsFromJson()
223 grpc_slice json_string = grpc_empty_slice(); in StsCredentialsOptionsFromEnv() local
228 auto cleanup = [&json_string, &status]() { in StsCredentialsOptionsFromEnv()
229 grpc_slice_unref(json_string); in StsCredentialsOptionsFromEnv()
237 error = grpc_load_file(sts_creds_path->c_str(), 1, &json_string); in StsCredentialsOptionsFromEnv()
244 reinterpret_cast<const char*>(GRPC_SLICE_START_PTR(json_string)), in StsCredentialsOptionsFromEnv()
/aosp_15_r20/external/cronet/net/dns/
H A Dhost_resolver_cache_fuzzer.cc32 std::string json_string; in LLVMFuzzerTestOneInput() local
42 json_string = json_proto::JsonProtoConverter().Convert(proto); in LLVMFuzzerTestOneInput()
44 json_string = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
47 std::optional<base::Value> value = base::JSONReader::Read(json_string); in LLVMFuzzerTestOneInput()
/aosp_15_r20/external/grpc-grpc/src/core/service_config/
H A Dservice_config_impl.cc86 const ChannelArgs& args, absl::string_view json_string) { in Create() argument
87 auto json = JsonParse(json_string); in Create()
90 auto service_config = Create(args, *json, json_string, &errors); in Create()
104 const ChannelArgs& args, const Json& json, absl::string_view json_string, in Create() argument
111 service_config->json_string_ = std::string(json_string); in Create()
H A Dservice_config_impl.h73 const ChannelArgs& args, absl::string_view json_string);
78 absl::string_view json_string,
86 absl::string_view json_string() const override { return json_string_; } in json_string() function
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/service_config/
Dservice_config_impl.cc86 const ChannelArgs& args, absl::string_view json_string) { in Create() argument
87 auto json = JsonParse(json_string); in Create()
90 auto service_config = Create(args, *json, json_string, &errors); in Create()
104 const ChannelArgs& args, const Json& json, absl::string_view json_string, in Create() argument
111 service_config->json_string_ = std::string(json_string); in Create()
Dservice_config_impl.h73 const ChannelArgs& args, absl::string_view json_string);
78 absl::string_view json_string,
86 absl::string_view json_string() const override { return json_string_; } in json_string() function
/aosp_15_r20/external/cronet/testing/merge_scripts/code_coverage/
H A Dmerge_js_lib.py36 json_string = json_file.read()
37 if json_string[0] == '{' and json_string[-2:] == '}}':
40 return json.loads(json_string[:-1])
41 return json.loads(json_string)
/aosp_15_r20/external/pytorch/torchgen/_autoheuristic/
H A Dtrain.py167 json_string = get_metadata_str_from_log(log_path)
168 metadata = self.deserialize_metadata(json_string)
173 def deserialize_metadata(self, json_string): argument
174 return json.loads(json_string)
/aosp_15_r20/external/autotest/server/cros/servo/topology/
H A 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)
/aosp_15_r20/external/grpc-grpc/test/cpp/qps/
H A Dparse_json.cc55 std::string json_string; in SerializeJson() local
58 BinaryToJsonString(type_resolver.get(), type, binary, &json_string); in SerializeJson()
60 return json_string; in SerializeJson()
/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/delegate/
H A Dserde_json.mm134 void from_json_string(const std::string& json_string, Asset& asset) {
135 id json = to_json_object(json_string);
144 void from_json_string(const std::string& json_string, ModelMetadata& metadata) {
145 id json = to_json_object(json_string);
/aosp_15_r20/external/cronet/components/metrics/
H A Dclean_exit_beacon.cc433 std::string json_string; in WriteBeaconFile() local
434 JSONStringValueSerializer serializer(&json_string); in WriteBeaconFile()
437 DCHECK(!json_string.empty()); in WriteBeaconFile()
440 success = base::WriteFile(beacon_file_path_, json_string); in WriteBeaconFile()
/aosp_15_r20/external/webrtc/api/audio/
H A Decho_canceller3_config_json.cc150 void Aec3ConfigFromJsonString(absl::string_view json_string, in Aec3ConfigFromJsonString() argument
164 reader->parse(json_string.data(), json_string.data() + json_string.size(), in Aec3ConfigFromJsonString()
175 RTC_LOG(LS_ERROR) << "Missing AEC3 config field: " << json_string; in Aec3ConfigFromJsonString()
432 EchoCanceller3Config Aec3ConfigFromJsonString(absl::string_view json_string) { in Aec3ConfigFromJsonString() argument
435 Aec3ConfigFromJsonString(json_string, &cfg, &not_used); in Aec3ConfigFromJsonString()
/aosp_15_r20/external/autotest/utils/frozen_chromite/lib/
H A Dconfig_lib.py1702 json_string = self.SaveConfigToString()
1703 osutils.WriteFile(config_file, json_string)
1782 json_string = osutils.ReadFile(build_settings_file)
1783 return json.loads(json_string)
1967 json_string = osutils.ReadFile(config_file)
1968 return LoadConfigFromString(json_string)
1971 def LoadConfigFromString(json_string): argument
1973 config_dict = json.loads(json_string)
/aosp_15_r20/external/deqp-deps/SPIRV-Tools/tools/fuzz/
Dfuzz.cpp675 std::string json_string; in DumpTransformationsJson() local
679 transformations, &json_string, json_options); in DumpTransformationsJson()
682 transformations_json_file << json_string; in DumpTransformationsJson()
803 std::string json_string; in main() local
807 transformations_applied, &json_string, json_options); in main()
816 transformations_json_file << json_string; in main()
/aosp_15_r20/external/swiftshader/third_party/SPIRV-Tools/tools/fuzz/
H A Dfuzz.cpp675 std::string json_string; in DumpTransformationsJson() local
679 transformations, &json_string, json_options); in DumpTransformationsJson()
682 transformations_json_file << json_string; in DumpTransformationsJson()
803 std::string json_string; in main() local
807 transformations_applied, &json_string, json_options); in main()
816 transformations_json_file << json_string; in main()

123456