Searched refs:json_str (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/util/nanotool/ |
D | calibrationfile.cpp | 120 AString json_str = json_root_->toString(); in Save() local 121 LOGD("Saving JSONObject to file (%zd bytes):\n%s", json_str.size(), in Save() 122 json_str.c_str()); in Save() 124 ssize_t bytes_written = file_->write(json_str.c_str(), json_str.size()); in Save() 125 if (bytes_written < 0 || static_cast<size_t>(bytes_written) != json_str.size()) { in Save() 126 LOGE("Write returned %zd, expected %zu", bytes_written, json_str.size()); in Save()
|
/device/google/crosshatch/json-c/ |
D | json_util.c | 103 const char *json_str; in json_object_to_file_ext() local 118 if(!(json_str = json_object_to_json_string_ext(obj,flags))) { in json_object_to_file_ext() 123 …wsize = (unsigned int)(strlen(json_str) & UINT_MAX); /* CAW: probably unnecessary, but the most 64… in json_object_to_file_ext() 126 if((ret = write(fd, json_str + wpos, wsize-wpos)) < 0) { in json_object_to_file_ext()
|
/device/google/bonito/json-c/ |
D | json_util.c | 103 const char *json_str; in json_object_to_file_ext() local 118 if(!(json_str = json_object_to_json_string_ext(obj,flags))) { in json_object_to_file_ext() 123 …wsize = (unsigned int)(strlen(json_str) & UINT_MAX); /* CAW: probably unnecessary, but the most 64… in json_object_to_file_ext() 126 if((ret = write(fd, json_str + wpos, wsize-wpos)) < 0) { in json_object_to_file_ext()
|