Home
last modified time | relevance | path

Searched refs:Json (Results 1 – 13 of 13) sorted by relevance

/development/vndk/tools/header-checker/src/utils/
Dapi_level.cpp28 Json::CharReaderBuilder builder; in Load()
29 Json::Value json; in Load()
31 if (!Json::parseFromStream(builder, stream, &json, &error_message)) { in Load()
36 const Json::Value null_value; in Load()
37 for (const Json::String &key : json.getMemberNames()) { in Load()
38 Json::Value value = json.get(key, null_value); in Load()
Dconfig_file.cpp32 static std::map<std::string, bool> LoadFlags(const Json::Value &section) { in LoadFlags()
43 LoadIgnoreLinkerSetKeys(const Json::Value &section) { in LoadIgnoreLinkerSetKeys()
60 Json::Value root; in Load()
61 Json::CharReaderBuilder builder; in Load()
63 if (!Json::parseFromStream(builder, istream, &root, &errorMessage)) { in Load()
/development/vndk/tools/header-checker/src/repr/json/
Dconverter.h33 class JsonArray : public Json::Value {
35 JsonArray() : Json::Value(Json::ValueType::arrayValue) {} in JsonArray()
39 class JsonObject : public Json::Value {
41 JsonObject() : Json::Value(Json::ValueType::objectValue) {} in JsonObject()
74 extern const Json::Value json_0;
75 extern const Json::Value json_false;
76 extern const Json::Value json_empty_string;
Dir_reader.h35 JsonObjectRef(const Json::Value &json_value, bool &ok);
50 const Json::Value &GetIntegralValue(const std::string &key) const;
67 typedef bool (Json::Value::*IsExpectedJsonType)() const;
69 const Json::Value &Get(const std::string &key,
70 const Json::Value &default_value,
73 const Json::Value &object_;
82 Iterator(const Json::Value &json_value, bool &ok, int index) in Iterator()
97 const Json::Value &array_;
103 JsonArrayRef(const Json::Value &json_value, bool &ok) in JsonArrayRef()
111 const Json::Value &array_;
Dconverter.cpp24 const Json::Value json_0(0);
25 const Json::Value json_false(false);
26 const Json::Value json_empty_string("");
47 SetOmissible<Json::UInt64>(key, value, 0); in Set()
52 SetOmissible<Json::Int64>(key, value, 0); in Set()
Dir_reader.cpp53 JsonObjectRef::JsonObjectRef(const Json::Value &json_value, bool &ok) in JsonObjectRef()
60 const Json::Value &
61 JsonObjectRef::Get(const std::string &key, const Json::Value &default_value, in Get()
66 const Json::Value &value = object_[key]; in Get()
75 return Get(key, json_false, &Json::Value::isBool).asBool(); in GetBool()
79 return Get(key, json_0, &Json::Value::isInt64).asInt64(); in GetInt()
83 return Get(key, json_0, &Json::Value::isUInt64).asUInt64(); in GetUint()
86 const Json::Value &JsonObjectRef::GetIntegralValue( in GetIntegralValue()
88 return Get(key, json_0, &Json::Value::isIntegral); in GetIntegralValue()
92 return Get(key, json_empty_string, &Json::Value::isString).asString(); in GetString()
[all …]
Dir_dumper.cpp218 Json::Value &enum_field_value = enum_field["enum_field_value"]; in ConvertEnumFieldIR()
220 enum_field_value = Json::Int64(enum_field_ir->GetSignedValue()); in ConvertEnumFieldIR()
222 enum_field_value = Json::UInt64(enum_field_ir->GetUnsignedValue()); in ConvertEnumFieldIR()
390 Json::StreamWriterBuilder factory; in DumpJson()
392 return Json::writeString(factory, obj); in DumpJson()
/development/vndk/tools/header-checker/src/repr/
Dir_reader.cpp39 case TextFormatIR::Json: in CreateIRReader()
Dir_dumper.cpp37 case TextFormatIR::Json: in CreateIRDumper()
Dir_representation.h42 Json = 1, enumerator
/development/vndk/tools/header-checker/src/diff/
Dheader_abi_diff.cpp106 clEnumValN(TextFormatIR::Json, "Json", "JSON")),
107 llvm::cl::init(TextFormatIR::Json),
114 clEnumValN(TextFormatIR::Json, "Json", "JSON")),
115 llvm::cl::init(TextFormatIR::Json),
/development/vndk/tools/header-checker/src/dumper/
Dheader_checker.cpp90 clEnumValN(TextFormatIR::Json, "Json", "JSON")),
91 llvm::cl::init(TextFormatIR::Json),
/development/vndk/tools/header-checker/src/linker/
Dheader_abi_linker.cpp134 clEnumValN(TextFormatIR::Json, "Json", "JSON")),
135 llvm::cl::init(TextFormatIR::Json),
142 clEnumValN(TextFormatIR::Json, "Json", "JSON")),
143 llvm::cl::init(TextFormatIR::Json),