Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 44) 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/apexd/apexd_testdata/
DAndroid.bp27 manifest: "manifest.json",
37 manifest: "manifest.json",
50 manifest: "manifest.json",
63 manifest: "manifest_v2.json",
72 manifest: "manifest_v2.json",
77 min_sdk_version: "29", // add apex_manifest.json as well
90 manifest: "manifest_v3.json",
106 manifest: "manifest_preinstall.json",
123 manifest: "manifest_postinstall.json",
140 manifest: "manifest_prepostinstall.fail.json",
[all …]
/system/apex/apexer/
Dconv_apex_manifest.py30 import json
42 obj = json.load(f, object_pairs_hook=collections.OrderedDict)
51 json.dump(obj, f, indent=2)
53 print(json.dumps(obj, indent=2))
57 obj = json.load(f, object_pairs_hook=collections.OrderedDict)
Druntests.sh57 echo '{"name": "com.android.example.apex", "version": 1}' > ${manifest_dir}/apex_manifest.json
58 …/host/linux-x86/bin/conv_apex_manifest proto ${manifest_dir}/apex_manifest.json -o ${manifest_file}
/system/extras/libjsonpb/parse/
Djsonpb.cpp46 std::string json; in MessageToJsonString() local
48 message.SerializeAsString(), &json, options); in MessageToJsonString()
53 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()
/system/update_engine/payload_generator/
Dpayload_properties_unittest.cc124 string json; in TEST_F() local
126 PayloadProperties(payload_file.path()).GetPropertiesAsJson(&json)); in TEST_F()
127 EXPECT_EQ(kJsonProperties, json) << "JSON contents:\n" << json; in TEST_F()
/system/linkerconfig/testdata/
DREADME.md17 apex_manifest.json # copied from intermediate apex_manifest_full.json
Dprepare_root.sh109 conv_apex_manifest proto $dst/apex_manifest.json -o $dst/apex_manifest.pb
/system/bt/gd/cert/
Dset_up_and_run_device_cert.sh149 git checkout android_devices_config.json
151 $DRY_RUN sed -i "s/\"DUT\"/\"${DUT_SERIAL}\"/g" ${DIR}/android_devices_config.json
152 $DRY_RUN sed -i "s/\"CERT\"/\"${CERT_SERIAL}\"/g" ${DIR}/android_devices_config.json
Drun_pts_l2cap.sh4 --test_config=$ANDROID_BUILD_TOP/system/bt/gd/cert/pts.json \
Drun137 TEST_CONFIG=$ANDROID_BUILD_TOP/system/bt/gd/cert/host_config.json
256 TEMP_CONFIG=/tmp/temp_acts_config.json
/system/apex/apexer/testdata/
DAndroid.bp30 manifest: "manifest.json",
40 manifest: "manifest.json",
51 manifest: "manifest.json",
62 manifest: "manifest.json",
/system/core/adb/apex/
DAndroid.bp27 manifest: "apex_manifest.json",
34 manifest: "test_apex_manifest.json",
/system/teeui/tools/framebufferizer/
DAndroid.bp9 "json-prebuilt",
/system/apex/shim/build/
DAndroid.bp53 manifest: "manifest_v3.json",
65 manifest: "manifest_v2.json",
77 manifest: "manifest_v2.json",
105 manifest: "manifest_v2.json",
122 manifest: "manifest_v2.json",
140 manifest: "manifest_v2.json",
150 manifest: "manifest_v2_with_pre_install_hook.json",
160 manifest: "manifest_v2_with_post_install_hook.json",
199 manifest: "manifest.json",
231 manifest: "manifest_not_pre_installed.json",
[all …]
/system/bt/apex/
DAndroid.bp4 manifest: "apex_manifest.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/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/
DConfig.java24 import org.json.JSONObject;
28 import org.json.JSONException;
/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/bt/test/
Dgen_coverage.py20 import json
293 return json.loads(json_str)
302 json.dump(generate_coverage_json(test), json_file)
/system/extras/partition_tools/
Dlpdump.cc408 bool json = false; in LpdumpMain() local
436 json = true; in LpdumpMain()
449 if (json) { in LpdumpMain()
490 if (json) { in LpdumpMain()
/system/timezone/testing/data/test1/apex/
DAndroid.bp22 manifest: "manifest.json",

12