Home
last modified time | relevance | path

Searched full:json (Results 1 – 25 of 194) sorted by relevance

12345678

/Zephyr-latest/cmake/
Dverify-toolchain.cmake11 # FORMAT=json: Print the output as a json formatted string, useful for Python
21 if("${FORMAT}" STREQUAL "json")
32 if("${FORMAT}" STREQUAL "json")
33 set(json "{\"ZEPHYR_TOOLCHAIN_VARIANT\" : \"${ZEPHYR_TOOLCHAIN_VARIANT}\", ") variable
34 string(APPEND json "\"SDK_VERSION\": \"${SDK_VERSION}\", ")
35 string(APPEND json "\"ZEPHYR_SDK_INSTALL_DIR\" : \"${ZEPHYR_SDK_INSTALL_DIR}\"}")
36 _message("${json}")
/Zephyr-latest/cmake/modules/
Dyaml.cmake75 # JSON content.
84 # Internal helper function to append items to a list in the JSON content.
88 string(JSON subjson GET "${json_content}" ${key})
91 # yaml_load() are proper JSON arrays. When an append is requested, those
93 string(JSON type TYPE "${json_content}" ${key})
95 string(JSON arraylength LENGTH "${subjson}")
107 string(JSON item GET "${json_content}" ${key} ${i})
113 string(JSON json_content SET "${json_content}" ${key} "\"${subjson}\"")
115 # lists are stored as JSON arrays
116 string(JSON index LENGTH "${subjson}")
[all …]
/Zephyr-latest/include/zephyr/data/
Djson.h21 * @defgroup json JSON
99 /* 65535 bytes is more than enough for many JSON payloads. */
116 * encoding JSON data.
139 * @param type_ Token type for JSON value corresponding to a primitive
397 * structure and JSON field names differ.
399 * This is useful when the JSON field is not a valid C identifier.
402 * @param json_field_name_ String, field name in JSON strings
432 * structure and JSON field names differ.
434 * This is useful when the JSON field is not a valid C identifier.
437 * @param json_field_name_ String, field name in JSON strings
[all …]
Djwt.h18 * @brief JSON Web Token (JWT) - RFC 7519
19 * @defgroup jwt JSON Web Token (JWT)
20 * @ingroup json
27 * JSON Web Tokens contain several sections, each encoded in Base64URL.
/Zephyr-latest/scripts/ci/es_upload/
DREADME.md6 JSON reports upload.
9 with explicit scheme having all required Twister JSON report objects associated
11 Besides, it allows to track changes in Twister JSON report scheme
38 --map-file YOUR_INDEX_MAP.json
44 The upload script has several command line options to change `twister.json` data:
76 --map-file zephyr_twister_index.json
83 ./twister-out/**/twister.json
97 --map-file zephyr_twister_flat_recording_metrics_index.json
106 ./twister-out/**/twister.json
121 --map-file zephyr_twister_flat_recording_index.json
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_senml_json.c20 #include <zephyr/data/json.h>
128 struct senml_json_object json; member
143 /* Decode description structure for parsing LwM2m SenML-JSON object*/
514 obj_payload = &fd->json.obj.float_bn_t_obj; in json_float_object_write()
515 fd->json.obj.float_bn_t_obj.base_name = fd->bn_string; in json_float_object_write()
516 fd->json.obj.float_bn_t_obj.name = fd->name_string; in json_float_object_write()
517 fd->json.obj.float_bn_t_obj.val_float.start = pt_buffer; in json_float_object_write()
518 fd->json.obj.float_bn_t_obj.val_float.length = float_string_length; in json_float_object_write()
519 fd->json.obj.float_bn_t_obj.base_time.start = fd->timestamp_buffer; in json_float_object_write()
520 fd->json.obj.float_bn_t_obj.base_time.length = fd->timestamp_length; in json_float_object_write()
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_footprint.py10 import json
31 r'Found [1-9]+[0-9]* footprint deltas to .*blackbox-out\.[0-9]+/twister.json as a baseline'
75 # Note: if footprint tests take too long, replace first run with a prepared twister.json
77 with open(os.path.join(out_path, 'twister.json')) as f:
78 j = json.load(f)
84 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
85 f.write(json.dumps(j, indent=4))
90 'twister.json'
139 with open(os.path.join(out_path, 'twister.json')) as f:
140 j = json.load(f)
[all …]
Dtest_testplan.py6 Blackbox tests for twister's command line functions - those requiring testplan.json
14 import json
75 with open(os.path.join(out_path, 'testplan.json')) as f:
76 j = json.load(f)
106 with open(os.path.join(out_path, 'testplan.json')) as f:
107 j = json.load(f)
140 with open(os.path.join(out_path, 'testplan.json')) as f:
141 j = json.load(f)
Dtest_config.py14 import json
49 with open(os.path.join(out_path, 'testplan.json')) as f:
50 j = json.load(f)
84 with open(os.path.join(out_path, 'testplan.json')) as f:
85 j = json.load(f)
Dtest_coverage.py14 import json
28 'coverage.log', 'coverage.json',
47 'coverage.log', 'coverage.json',
57 'coverage.log', 'coverage.json',
65 'coverage.log', 'coverage.json',
73 'coverage.log', 'coverage.json',
81 'coverage.log', 'coverage.json',
89 'coverage.log', 'coverage.json',
90 'coverage', os.path.join('coverage','coverage.coveralls.json')
97 'coverage.log', 'coverage.json',
[all …]
Dtest_testlist.py14 import json
37 saved_tests_file_path = os.path.realpath(os.path.join(out_path, '..', 'saved-tests.json'))
67 with open(os.path.join(out_path, 'testplan.json')) as f:
68 j = json.load(f)
Dtest_report.py10 import json
34 'testplan.json', 'twister.json',
46 'twister_TEST.json', 'twister_TEST_report.xml',
57 'abcd.json', 'abcd_report.xml',
67 '1234.json', '1234_report.xml',
77 'Final_Test.json', 'Final_Test_report.xml',
87 'twister.json', 'twister_report.xml',
98 'testplan.json', 'twister.log',
99 'twister.json', 'twister_report.xml',
158 if path.endswith(".json"):
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dpackage.py6 import json
31 os.path.join(self.options.outdir, "twister.json"), encoding='utf-8'
33 jtp = json.load(json_test_plan)
46 os.path.join(self.options.outdir, "twister.json"),
47 os.path.join(self.options.outdir, "testplan.json")
/Zephyr-latest/.github/workflows/
Dcodecov.yaml105 ./scripts/twister -E ${{matrix.normalized}}-testplan.json
120 mv twister-out/coverage.json coverage/reports/${{matrix.normalized}}.json
128 coverage/reports/${{ matrix.normalized }}.json
129 ${{ matrix.normalized }}-testplan.json
152 mv ./coverage/reports/*/*testplan.json .
153 mv ./coverage/reports/*/coverage/reports/*.json ./coverage/reports
160 file(GLOB INPUT_FILES_LIST "coverage/reports/*.json")
186 … steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --json merged.json
203 -t native_sim-testplan.json \
205 -c coverage/reports/merged.json \
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/static_web_resources/
Dmain.js14 const json = await response.json();
16 uptime.innerHTML = "Uptime: " + json + " milliseconds"
25 const payload = JSON.stringify({"led_num" : 0, "led_state" : state});
62 const data = JSON.parse(event.data);
/Zephyr-latest/scripts/footprint/
Dfpdiff.py8 # end up with a json file in the build directory that can be used as input
15 # ./scripts/footprint/fpdiff.py ram1.json ram2.json
23 import json
42 data1 = json.load(f)
45 data2 = json.load(f)
Dpack_as_twister.py9 into a JSON files compatible with Twister report schema making them ready for upload
13 The memory footprint input data files (rom.json, ram.json) are expected in directories
24 The output `twister_footprint.json` files will be placed into the same directories
43 import json
51 FOOTPRINT_FILES = { 'ROM': 'rom.json', 'RAM': 'ram.json' }
52 RESULT_FILENAME = 'twister_footprint.json'
102 help="Destination JSON file name to create at each of INPUT_PATHS. "
246 # Compose twister_footprint.json record - each application (test suite) will have its own
278 test_suite['footprint'][k] = json.load(footprint_json)
287 json.dump(res, json_file, indent=4, separators=(',',':'))
/Zephyr-latest/scripts/ruff/
Dgen_lint_exclude.py6 import json
10 # A very simple script to convert ruff lint output from json to toml
12 # ruff check --output-format=json | ./scripts/ruff/gen_lint_exclude.py >> .ruff-excludes.toml
30 violations = json.load(sys.stdin)
/Zephyr-latest/tests/lib/json/
Dtestcase.yaml2 libraries.encoding.json:
5 tags: json
/Zephyr-latest/doc/services/
Dmisc.rst22 JSON subsection
25 .. doxygengroup:: json
30 JSON Web Tokens (JWT) are an open, industry standard [RFC
/Zephyr-latest/scripts/build/
Dparse_syscalls.py15 JSON file for further processing.
18 __net_socket, emitting a JSON dictionary mapping tags to all the struct
21 If the output JSON file already exists, its contents are checked against
31 import json
174 "-j", "--json-file", required=True,
175 help="Write system call prototype information as json to file")
178 help="Write tagged struct name information as json to file")
197 # Only write json files if they don't exist or have changes since
200 syscalls_in_json = json.dumps(
207 tagged_struct_in_json = json.dumps(
/Zephyr-latest/scripts/ci/
Dversion_mgr.py15 import json
24 VERSIONS_FILE = "versions.json"
48 if not os.path.exists('versions.json'):
49 url = 'https://testing.zephyrproject.org/daily_tests/versions.json'
52 data = json.load(fp)
135 json.dump(data, versions)
/Zephyr-latest/cmake/reports/
DCMakeLists.txt48 --json tfm_${report}.json
73 --json bl2_${report}.json
/Zephyr-latest/scripts/logging/dictionary/dictionary_parser/
Dlog_database.py13 import json
243 # JSON stores key as string, so we need to convert
267 json_db = json.load(db_fd)
268 except (OSError, json.JSONDecodeError):
271 # Decode data in JSON back into binary data
279 # JSON encodes the addresses in string mappings as literal strings.
298 # Make database object into something JSON can dump
307 db_fd.write(json.dumps(json_db))
/Zephyr-latest/scripts/pylib/pytest-twister-harness/
D.gitignore52 .dmypy.json
53 dmypy.json

12345678