Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 29) sorted by relevance

12

/system/extras/libjsonpb/verify/
Dtest.cpp51 std::string json = "{\"" + json_key + "\": \"test\"}"; in TestParseOkWithUnknownKey() local
52 auto object = JsonStringToMessage<T>(json); in TestParseOkWithUnknownKey()
59 ASSERT_FALSE(AllFieldsAreKnown(*object, json, &error)) in TestParseOkWithUnknownKey()
67 std::string json = in TEST_F() local
74 auto object = JsonStringToMessage<WithJsonName>(json); in TEST_F()
83 EXPECT_TRUE(AllFieldsAreKnown(*object, json, &error)) << error; in TEST_F()
106 std::string json = in TEST_F() local
113 auto object = JsonStringToMessage<NoJsonName>(json); in TEST_F()
122 EXPECT_TRUE(AllFieldsAreKnown(*object, json, &error)) << error; in TEST_F()
151 ErrorOr<Parent> TestEmbeddedError(const std::string& json, in TestEmbeddedError() argument
[all …]
Dverify.cpp54 bool AllFieldsAreKnown(const Message& message, const Json::Value& json, in AllFieldsAreKnown() argument
57 if (!json.isObject()) { in AllFieldsAreKnown()
63 auto json_members = json.getMemberNames(); in AllFieldsAreKnown()
101 const Json::Value& json_value = json[json_name]; in AllFieldsAreKnown()
146 const std::string& json, std::string* error) { in AllFieldsAreKnown() argument
149 if (!reader.parse(json, value)) { in AllFieldsAreKnown()
163 bool EqReformattedJson(const std::string& json, in EqReformattedJson() argument
168 if (!reader.parse(json, old_json)) { in EqReformattedJson()
173 auto new_json_string = internal::FormatJson(json, scratch_space); in EqReformattedJson()
210 ErrorOr<std::string> FormatJson(const std::string& json, in FormatJson() argument
[all …]
/system/core/libprocessgroup/profiles/
DAndroid.bp16 name: "cgroups.json",
17 src: "cgroups.json",
21 name: "cgroups.recovery.json",
22 filename: "cgroups.json",
24 src: "cgroups.recovery.json",
28 name: "task_profiles.json",
29 src: "task_profiles.json",
76 "cgroups.json",
77 "cgroups.recovery.json",
78 "task_profiles.json",
/system/extras/libjsonpb/verify/include/jsonpb/
Dverify.h68 const std::string& json, std::string* error);
81 bool EqReformattedJson(const std::string& json,
87 ErrorOr<std::string> FormatJson(const std::string& json,
/system/apex/apexer/
Dapex_manifest.py17 import json
29 manifest_json = json.loads(manifest_raw)
30 manifest_pb = Parse(json.dumps(manifest_json), apex_manifest_pb2.ApexManifest())
Druntests.sh99 unzip ${output_file} apex_manifest.json -d ${output_dir}
106 sudo diff ${manifest_file} ${output_dir}/mnt/apex_manifest.json
107 sudo diff ${manifest_file} ${output_dir}/apex_manifest.json
119 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/apex_manifest.json` = "1000,1000,-rw-r--r--" ]
126 [ `sudo ls -Z ${output_dir}/mnt/apex_manifest.json | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
DAndroid.bp65 manifest: "etc/manifest.json",
/system/apex/apexd/apexd_testdata/
DAndroid.bp27 manifest: "manifest.json",
36 manifest: "manifest_v2.json",
52 manifest: "manifest_preinstall.json",
69 manifest: "manifest_postinstall.json",
86 manifest: "manifest_prepostinstall.fail.json",
103 manifest: "manifest_no_inst_key.json",
119 manifest: "manifest_different_app.json",
/system/extras/libjsonpb/parse/
Djsonpb.cpp47 std::string json; in MessageToJsonString() local
49 message.SerializeAsString(), &json, options); in MessageToJsonString()
54 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()
/system/apex/shim/build/
DAndroid.bp53 manifest: "manifest_v3.json",
62 manifest: "manifest_v2.json",
86 manifest: "manifest_v2.json",
102 manifest: "manifest_v2.json",
119 manifest: "manifest_v2.json",
128 manifest: "manifest_v2_with_pre_install_hook.json",
137 manifest: "manifest_v2_with_post_install_hook.json",
167 manifest: "manifest.json",
197 manifest: "manifest_not_pre_installed.json",
/system/extras/libjsonpb/
DREADME.md70 - Whether `json == convert_to_json(convert_to_pb(json))`, using `libprotobuf`.
78 Check [JSON Mapping](https://developers.google.com/protocol-buffers/docs/proto3#json)
106 ::testing::Values(MakeTestParam<Cgroups>("cgroups.json")));
/system/bt/build/secondary/third_party/libchrome/
DBUILD.gn58 "base/json/json_parser.cc",
59 "base/json/json_reader.cc",
60 "base/json/json_string_value_serializer.cc",
61 "base/json/json_writer.cc",
62 "base/json/string_escape.cc",
/system/extras/perfprofd/scripts/
Dperf_proto_json2sqlite.py19 import json
159 data = json.load(fp)
Dperf_proto_stack.py26 import json
550 json.dump(json_data, json_file)
/system/bt/test/
Dgen_coverage.py20 import json
295 return json.loads(json_str)
304 json.dump(generate_coverage_json(test), json_file)
/system/apex/apexd/
DAndroid.bp266 "sed -i -e 's/\"version\": 1/\"version\": 137/' $(genDir)/apex_manifest.json && " +
268 "-s apex_manifest.json -s apex_payload.img -s apex_pubkey " +
284 "-s apex_manifest.json -s apex_payload.img -s apex_pubkey " +
/system/apex/tests/
DAndroid.bp112 manifest: "testdata/apex_manifest.json",
124 manifest: "testdata/apex_manifest.json",
/system/extras/partition_tools/
Dlpdump.cc283 bool json = false; in LpdumpMain() local
294 json = true; in LpdumpMain()
317 if (json) { in LpdumpMain()
/system/update_engine/
Dupdate_engine-client.gyp28 'dbus_service_config': 'dbus_bindings/dbus-service-config.json',
/system/timezone/testing/data/test1/apex/
DAndroid.bp22 manifest: "manifest.json",
/system/netd/apex/
DAndroid.bp18 manifest: "manifest.json",
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dbuild_and_run.sh60 CONTROLLER_PROPERTIES=controller_properties.json
/system/timezone/apex/
DAndroid.bp51 manifest: "manifest.json",
/system/sepolicy/public/
Dfile.te165 # Cgroups description file under /system/etc/cgroups.json
167 # Vendor cgroups description file under /vendor/etc/cgroups.json
169 # Task profiles file under /system/etc/task_profiles.json
171 # Vendor task profiles file under /vendor/etc/task_profiles.json
/system/sepolicy/prebuilts/api/29.0/public/
Dfile.te165 # Cgroups description file under /system/etc/cgroups.json
167 # Vendor cgroups description file under /vendor/etc/cgroups.json
169 # Task profiles file under /system/etc/task_profiles.json
171 # Vendor task profiles file under /vendor/etc/task_profiles.json

12