Home
last modified time | relevance | path

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

/external/libchrome/base/json/
Djson_file_value_serializer.cc38 std::string json_string; in SerializeInternal() local
39 JSONStringValueSerializer serializer(&json_string); in SerializeInternal()
47 int data_size = static_cast<int>(json_string.size()); in SerializeInternal()
48 if (base::WriteFile(json_file_path_, json_string.data(), data_size) != in SerializeInternal()
65 int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { in ReadFileToString() argument
66 DCHECK(json_string); in ReadFileToString()
67 if (!base::ReadFileToString(json_file_path_, json_string)) { in ReadFileToString()
82 last_read_size_ = json_string->size(); in ReadFileToString()
107 std::string json_string; in Deserialize() local
108 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
45 : json_string_(json_string), in JSONStringValueDeserializer()
Djson_string_value_serializer.h21 explicit JSONStringValueSerializer(std::string* json_string);
51 explicit JSONStringValueDeserializer(const base::StringPiece& json_string);
Djson_file_value_serializer.h96 int ReadFileToString(std::string* json_string);
Djson_reader_unittest.cc658 std::string json_string(json, sizeof(json)); in TEST() local
660 EXPECT_FALSE(reader.ReadToValue(json_string)); in TEST()
/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/libweave/src/
Dutils.cc38 const std::string& json_string, in LoadJsonDict() argument
43 json_string, base::JSON_PARSE_RFC, nullptr, &error_message); in LoadJsonDict()
47 LimitString(json_string, kMaxStrLen).c_str(), in LoadJsonDict()
48 json_string.size(), error_message.c_str()); in LoadJsonDict()
55 LimitString(json_string, kMaxStrLen).c_str()); in LoadJsonDict()
Dconfig.cc149 std::string json_string = config_->config_store_->LoadSettings(kConfigName); in LoadState() local
150 if (json_string.empty()) { in LoadState()
151 json_string = config_->config_store_->LoadSettings(); in LoadState()
152 if (json_string.empty()) in LoadState()
156 auto value = base::JSONReader::Read(json_string); in LoadState()
280 std::string json_string; in Save() local
282 dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_string); in Save()
285 kConfigName, json_string, in Save()
Dutils.h29 const std::string& json_string,
Ddevice_registration_info_unittest.cc167 std::string json_string; in ReloadSettings() local
169 dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_string); in ReloadSettings()
170 EXPECT_CALL(config_store_, LoadSettings()).WillOnce(Return(json_string)); in ReloadSettings()
/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/v8/build/android/pylib/instrumentation/
Djson_perf_parser.py134 def GetAverageRunInfoFromJSONString(json_string, name): argument
144 return GetAverageRunInfo(json.loads(json_string), name)
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Ddevshell.py54 def __init__(self, json_string): argument
56 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/autotest/tko/perf_upload/
Dperf_uploader.py234 json_string = json.dumps(dash_entries)
235 return {'data': json_string}
/external/v8/build/android/pylib/results/flakiness_dashboard/
Djson_results_generator.py37 json_string = json.dumps(json_object, separators=(',', ':'))
39 json_string = callback + '(' + json_string + ');'
41 fp.write(json_string)
/external/autotest/client/site_tests/policy_EditBookmarksEnabled/
Dpolicy_EditBookmarksEnabled.py124 policy_value = self.json_string(self.TEST_CASES[case])
/external/libchrome/base/trace_event/
Dtrace_buffer.h98 void Append(const std::string& json_string);
/external/autotest/client/cros/
Denterprise_policy_base.py433 def json_string(self, policy_value): member in EnterprisePolicyTest
/external/libweave/third_party/chromium/base/json/
Djson_reader_unittest.cc635 std::string json_string(json, sizeof(json)); in TEST() local
637 EXPECT_FALSE(reader.ReadToValue(json_string)); in TEST()
/external/v8/src/
Dapi.cc2816 MaybeLocal<Value> JSON::Parse(Isolate* v8_isolate, Local<String> json_string) { in Parse() argument
2819 i::Handle<i::String> string = Utils::OpenHandle(*json_string); in Parse()
2832 Local<String> json_string) { in Parse() argument
2834 i::Handle<i::String> string = Utils::OpenHandle(*json_string); in Parse()
2846 Local<Value> JSON::Parse(Local<String> json_string) { in Parse() argument
2847 RETURN_TO_LOCAL_UNCHECKED(Parse(Local<Context>(), json_string), Value); in Parse()
/external/v8/include/
Dv8.h1646 Local<Value> Parse(Local<String> json_string));
1649 Local<String> json_string));
1651 Local<Context> context, Local<String> json_string);
/external/v8/test/cctest/
Dtest-heap-profiler.cc919 v8::Local<v8::String> json_string = in TEST() local
923 ->Set(env.local(), v8_str("json_snapshot"), json_string) in TEST()