Home
last modified time | relevance | path

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

123

/system/core/libprocessgroup/profiles/
DAndroid.bp20 name: "cgroups.json",
21 src: "cgroups.json",
23 "cgroups_28.json",
24 "cgroups_29.json",
25 "cgroups_30.json",
30 name: "cgroups.recovery.json",
31 filename: "cgroups.json",
33 src: "cgroups.recovery.json",
37 name: "cgroups_28.json",
38 src: "cgroups_28.json",
[all …]
/system/extras/libjsonpb/verify/
Dtest.cpp49 std::string json = "{\"" + json_key + "\": \"test\"}"; in TestParseOkWithUnknownKey() local
50 auto object = JsonStringToMessage<T>(json); in TestParseOkWithUnknownKey()
55 ASSERT_FALSE(AllFieldsAreKnown(*object, json, &error)) in TestParseOkWithUnknownKey()
63 std::string json = in TEST_F() local
70 auto object = JsonStringToMessage<WithJsonName>(json); in TEST_F()
79 EXPECT_TRUE(AllFieldsAreKnown(*object, json, &error)) << error; in TEST_F()
102 std::string json = in TEST_F() local
109 auto object = JsonStringToMessage<NoJsonName>(json); in TEST_F()
118 EXPECT_TRUE(AllFieldsAreKnown(*object, json, &error)) << error; in TEST_F()
147 ErrorOr<Parent> TestEmbeddedError(const std::string& json, const std::string& unknown_key) { in TestEmbeddedError() argument
[all …]
Dverify.cpp52 bool AllFieldsAreKnown(const Message& message, const Json::Value& json, in AllFieldsAreKnown() argument
54 if (!json.isObject()) { in AllFieldsAreKnown()
60 auto json_members = json.getMemberNames(); in AllFieldsAreKnown()
95 const Json::Value& json_value = json[json_name]; in AllFieldsAreKnown()
136 bool AllFieldsAreKnown(const google::protobuf::Message& message, const std::string& json, in AllFieldsAreKnown() argument
141 if (!reader->parse(&*json.begin(), &*json.end(), &value, error)) { in AllFieldsAreKnown()
154 bool EqReformattedJson(const std::string& json, google::protobuf::Message* scratch_space, in EqReformattedJson() argument
159 if (!reader->parse(&*json.begin(), &*json.end(), &old_json, error)) { in EqReformattedJson()
163 auto new_json_string = internal::FormatJson(json, scratch_space); in EqReformattedJson()
201 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space) { in FormatJson() argument
[all …]
/system/extras/libjsonpb/verify/include/jsonpb/
Dverify.h66 bool AllFieldsAreKnown(const google::protobuf::Message& message, const std::string& json,
80 bool EqReformattedJson(const std::string& json, google::protobuf::Message* scratch_space,
85 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space);
/system/linkerconfig/testdata/
Dprepare_root.sh96 if test -f $ROOT_OUT/system/etc/linker.config.json; then
97 …conv_linker_config proto -s $ROOT_OUT/system/etc/linker.config.json -o $ROOT_OUT/system/etc/linker…
113 conv_apex_manifest proto $dst/apex_manifest.json -o $dst/apex_manifest.pb
114 if test -f $dst/etc/linker.config.json; then
115 conv_linker_config proto -s $dst/etc/linker.config.json -o $dst/etc/linker.config.pb
DREADME.md17 apex_manifest.json # copied from intermediate apex_manifest_full.json
/system/apex/apexd/apexd_testdata/
DAndroid.bp38 manifest: "manifest.json",
48 manifest: "manifest_compressed.json",
59 manifest: "manifest_compressed.json",
152 manifest: "manifest_compressed.json",
163 manifest: "manifest_compressed.json",
174 manifest: "manifest_compressed_v2.json",
185 manifest: "manifest_compressed_v2.json",
196 manifest: "manifest.json",
207 manifest: "manifest.json",
221 manifest: "manifest.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.sh59 echo '{"name": "com.android.example.apex", "version": 1}' > ${manifest_dir}/apex_manifest.json
60 …/host/linux-x86/bin/conv_apex_manifest proto ${manifest_dir}/apex_manifest.json -o ${manifest_file}
/system/update_engine/payload_generator/
Dpayload_properties_unittest.cc112 string json; in TEST_F() local
114 PayloadProperties(payload_file_.path()).GetPropertiesAsJson(&json)); in TEST_F()
115 EXPECT_EQ(kJsonProperties, json) << "JSON contents:\n" << json; in TEST_F()
/system/bt/vendor_libs/test_vendor_lib/data/
DAndroid.bp11 name: "controller_properties.json",
12 src: "controller_properties.json",
/system/extras/libjsonpb/parse/
Djsonpb.cpp46 std::string json; in MessageToJsonString() local
48 &json, options); in MessageToJsonString()
53 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()
/system/update_engine/cros/
Drequisition_util_unittest.cc64 void WriteJsonToFile(const string& json) { in WriteJsonToFile() argument
68 ASSERT_TRUE(WriteFileString(path_.value(), json)); in WriteJsonToFile()
/system/chre/chpp/api_parser/
Dchre_api_to_chpp.py19 import json
66 self.json = api.json
68 self.service_name = self.json['filename'].split('/')[-1].split('.')[0]
81 out.append("// Source: {} @ commit {}\n\n".format(self.json['filename'], self.commit_hash))
188 includes.extend(self.json['output_includes'])
227 sorted_structs = self._sorted_structs(self.json['root_structs'])
231 for chre_type in self.json['root_structs']:
333 for struct in self.json['root_structs']:
580 for struct in self.json['root_structs']:
674 for chre_type in self.json['root_structs']:
[all …]
/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
Drun179 sed -i "s/\"DUT\"/\"${DUT_SERIAL}\"/g" ${CONFIG_DIR}/devices_config.json
180 sed -i "s/\"CERT\"/\"${CERT_SERIAL}\"/g" ${CONFIG_DIR}/devices_config.json
200 TEST_CONFIG=$ANDROID_BUILD_TOP/system/bt/gd/cert/rust_android_devices_config.json
206 TEST_CONFIG=$ANDROID_BUILD_TOP/system/bt/gd/cert/rust_host_config.json
362 TEMP_CONFIG=/tmp/temp_acts_config.json
Drun_pts_l2cap.sh4 --test_config=$ANDROID_BUILD_TOP/system/bt/gd/cert/pts.json \
/system/apex/apexer/testdata/
DAndroid.bp34 manifest: "manifest.json",
46 manifest: "manifest.json",
58 manifest: "manifest.json",
70 manifest: "manifest.json",
/system/extras/simpleperf/scripts/test/
Dreport_html_test.py18 import json
78 self.assertNotIn(original_methodname, json.dumps(record_data))
82 self.assertIn(original_methodname, json.dumps(record_data))
101 return json.loads(json_data)
Dinferno_test.py18 import json
Dpurgatorio_test.py18 import json
/system/apex/shim/build/
DAndroid.bp78 manifest: "manifest_v3.json",
91 manifest: "manifest_v2.json",
105 manifest: "manifest_v2_rebootless.json",
117 manifest: "manifest_v2.json",
129 manifest: "manifest_v2.json",
144 manifest: "manifest_v2_rebootless.json",
181 manifest: "manifest_v2_rebootless.json",
200 manifest: "manifest_v2_rebootless.json",
220 manifest: "manifest_v2_rebootless.json",
231 manifest: "manifest_v2_with_pre_install_hook.json",
[all …]
/system/linkerconfig/
DREADME.md16 ### linker.config.json
23 A linker configuration file(linker.config.json) is compiled into a protobuf at build time
33 linker.config.json file is in json format which can contain properties as below.
/system/teeui/tools/framebufferizer/
DAndroid.bp13 "json-prebuilt",
/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")));

123