/aosp_15_r20/external/pigweed/pw_json/ |
H A D | builder_test.cc | 7 // https://www.apache.org/licenses/LICENSE-2.0 36 // DOCTSAG: [pw-json-builder-example-1] in __anon1fb128a40202() 39 object.Add("tagline", "Easy, efficient JSON serialization!") in __anon1fb128a40202() 48 // DOCTSAG: [pw-json-builder-example-1] in __anon1fb128a40202() 50 }() == R"({"tagline": "Easy, efficient JSON serialization!", "simple": true,)" in __anon1fb128a40202() 59 // DOCTSAG: [pw-json-builder-example-2] in __anon1fb128a40302() 60 // Declare a JsonBuffer (JsonBuilder with included buffer) and start a JSON in __anon1fb128a40302() 63 pw::JsonObject& json = json_buffer.StartObject(); in __anon1fb128a40302() local 68 // Add key-value pairs to a JSON object. in __anon1fb128a40302() 69 json.Add("name", name).Add(kOccupationKey, "hacker"); in __anon1fb128a40302() [all …]
|
/aosp_15_r20/external/ublksrv/include/ |
H A D | ublksrv.h | 1 // SPDX-License-Identifier: MIT or LGPL-2.1-only 33 /************ stored in ublksrv_ctrl_dev_info->ublksrv_flags *******/ 47 * sending control commands to /dev/ublk-control. 68 * ->handle_io_async() and ->tgt_io_done(). 92 * ublksrv_queue is 1:1 mapping with ublk driver's blk-mq queue, and 93 * has same queue depth with ublk driver's blk-mq queue. 185 * with our io_uring too, if this is true, ->tgt_io_done callback 187 * ->handle_event() for processing io completion there. 218 * then found eventfd is completed, so call ->handle_event() 220 * 3) inside ->handle_event(), if any io represented by one io [all …]
|
/aosp_15_r20/external/jsoncpp/src/jsontestrunner/ |
H A D | main.cpp | 1 // Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors 8 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 13 /* This executable is used for testing parser/writer using real JSON files. 19 #include <json/json.h> 24 Json::String path; 25 Json::Features features; 27 using writeFuncType = Json::String (*)(Json::Value const&); 31 static Json::String normalizeFloatingPointStr(double value) { in normalizeFloatingPointStr() 32 char buffer[32]; in normalizeFloatingPointStr() local 33 jsoncpp_snprintf(buffer, sizeof(buffer), "%.16g", value); in normalizeFloatingPointStr() [all …]
|
/aosp_15_r20/external/executorch/backends/apple/coreml/runtime/test/ |
H A D | InMemoryFileSystemTests.mm | 16 #import <nlohmann/json.hpp> 19 using json = nlohmann::json; 41 void to_json(json& j, const Content& content) { 42 j = json{ 48 void from_json(const json& j, Content& content) { 56 json j; 64 T from_memory_buffer(const std::shared_ptr<MemoryBuffer>& buffer) { 66 MemoryIStream memstream(buffer); 67 json j; 81 result += chars[rand() % (sizeof(chars) - 1)]; [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-stable/share/clang/ |
D | clang-include-fixer.el | 1 ;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t… 5 ;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4")) 9 ;; This package allows Emacs users to invoke the 'clang-include-fixer' within 10 ;; Emacs. 'clang-include-fixer' provides an automated way of adding #include 12 ;; <http://clang.llvm.org/extra/clang-include-fixer.html>. 16 (require 'cl-lib) 17 (require 'json) 18 (require 'let-alist) 20 (defgroup clang-include-fixer nil 21 "Clang-based include fixer." [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/share/clang/ |
D | clang-include-fixer.el | 1 ;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t… 4 ;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4")) 8 ;; This package allows Emacs users to invoke the 'clang-include-fixer' within 9 ;; Emacs. 'clang-include-fixer' provides an automated way of adding #include 11 ;; <http://clang.llvm.org/extra/clang-include-fixer.html>. 15 (require 'cl-lib) 16 (require 'json) 17 (require 'let-alist) 19 (defgroup clang-include-fixer nil 20 "Clang-based include fixer." [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/share/clang/ |
D | clang-include-fixer.el | 1 ;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t… 5 ;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4")) 9 ;; This package allows Emacs users to invoke the 'clang-include-fixer' within 10 ;; Emacs. 'clang-include-fixer' provides an automated way of adding #include 12 ;; <http://clang.llvm.org/extra/clang-include-fixer.html>. 16 (require 'cl-lib) 17 (require 'json) 18 (require 'let-alist) 20 (defgroup clang-include-fixer nil 21 "Clang-based include fixer." [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/share/clang/ |
D | clang-include-fixer.el | 1 ;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t… 5 ;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4")) 9 ;; This package allows Emacs users to invoke the 'clang-include-fixer' within 10 ;; Emacs. 'clang-include-fixer' provides an automated way of adding #include 12 ;; <http://clang.llvm.org/extra/clang-include-fixer.html>. 16 (require 'cl-lib) 17 (require 'json) 18 (require 'let-alist) 20 (defgroup clang-include-fixer nil 21 "Clang-based include fixer." [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/share/clang/ |
D | clang-include-fixer.el | 1 ;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t… 5 ;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4")) 9 ;; This package allows Emacs users to invoke the 'clang-include-fixer' within 10 ;; Emacs. 'clang-include-fixer' provides an automated way of adding #include 12 ;; <http://clang.llvm.org/extra/clang-include-fixer.html>. 16 (require 'cl-lib) 17 (require 'json) 18 (require 'let-alist) 20 (defgroup clang-include-fixer nil 21 "Clang-based include fixer." [all …]
|
/aosp_15_r20/external/harfbuzz_ng/src/ |
H A D | hb-buffer-deserialize-json.hh | 2 #line 1 "hb-buffer-deserialize-json.rl" 35 #line 36 "hb-buffer-deserialize-json.hh" 533 #line 111 "hb-buffer-deserialize-json.rl" 537 _hb_buffer_deserialize_json (hb_buffer_t *buffer, in _hb_buffer_deserialize_json() argument 546 (void) hb_buffer_get_glyph_positions (buffer, nullptr); in _hb_buffer_deserialize_json() 550 if (p < pe && *p == (buffer->len ? ',' : '[')) in _hb_buffer_deserialize_json() 558 #line 559 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json() 563 #line 564 "hb-buffer-deserialize-json.hh" in _hb_buffer_deserialize_json() 580 (*p) - _keys[0] : _slen ]; in _hb_buffer_deserialize_json() 589 #line 38 "hb-buffer-deserialize-json.rl" in _hb_buffer_deserialize_json() [all …]
|
/aosp_15_r20/external/pigweed/pw_json/public/pw_json/ |
H A D | builder.h | 7 // https://www.apache.org/licenses/LICENSE-2.0 19 /// href="http://www.json.org">JSON</a>. JSON is a structured data format that 21 /// and objects (key-value pairs). 23 /// `pw::JsonBuilder` is a simple, efficient utility for serializing JSON to a 24 /// fixed-sized buffer. It works directly with the JSON wire format. It does not 48 /// A `NestedJsonArray` is immediately invalidated if the enclosing JSON is 80 /// adding key-value pairs to the nested object. 82 /// A `NestedJsonObject` is immediately invalidated if the enclosing JSON is 92 /// Adds a key-value pair to the nested object. 113 /// Stores a simple JSON value: a string, integer, float, boolean, or null. [all …]
|
/aosp_15_r20/external/angle/src/libANGLE/capture/ |
H A D | serialize.cpp | 3 // Use of this source code is governed by a BSD-style license that can be 17 #include "libANGLE/Buffer.h" 110 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope() argument 112 mJson->startGroup(name); in GroupScope() 115 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope() argument 120 mJson->startGroup(buf); in GroupScope() 123 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope() argument 125 ~GroupScope() { mJson->endGroup(); } in ~GroupScope() 131 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF() argument 133 json->addScalar("red", color.red); in SerializeColorF() [all …]
|
/aosp_15_r20/cts/libs/json/src/com/android/json/stream/ |
H A D | JsonReader.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.android.json.stream; 26 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 30 * depth-first order, the same order that they appear in the JSON document. 31 * Within JSON objects, name/value pairs are represented by a single token. 33 * <h3>Parsing JSON</h3> 34 * To create a recursive descent parser for your own JSON streams, first create 37 * <p>Next, create handler methods for each structure in your JSON text. You'll 67 * "text": "How do I read JSON on Android?", 77 * "geo": [50.454722, -104.606667], [all …]
|
/aosp_15_r20/external/gson/gson/src/main/java/com/google/gson/stream/ |
H A D | JsonReader.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc7159.txt">RFC 7159</a>) 33 * depth-first order, the same order that they appear in the JSON document. 34 * Within JSON objects, name/value pairs are represented by a single token. 36 * <h2>Parsing JSON</h2> 37 * To create a recursive descent parser for your own JSON streams, first create 40 * <p>Next, create handler methods for each structure in your JSON text. You'll 70 * "text": "How do I read a JSON stream in Java?", 80 * "geo": [50.454722, -104.606667], 90 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); [all …]
|
/aosp_15_r20/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 34 * depth-first order, the same order that they appear in the JSON document. 35 * Within JSON objects, name/value pairs are represented by a single token. 37 * <h3>Parsing JSON</h3> 38 * To create a recursive descent parser for your own JSON streams, first create 41 * <p>Next, create handler methods for each structure in your JSON text. You'll 71 * "text": "How do I read JSON on Android?", 81 * "geo": [50.454722, -104.606667], 91 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); [all …]
|
/aosp_15_r20/external/kotlinx.serialization/formats/json-tests/commonTest/src/kotlinx/serialization/json/ |
H A D | JsonTestBase.kt | 2 …* Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen… in <lambda>() 5 package kotlinx.serialization.json in <lambda>() 8 import kotlinx.serialization.json.internal.* in <lambda>() 9 import kotlinx.serialization.json.okio.decodeFromBufferedSource in <lambda>() 10 import kotlinx.serialization.json.okio.encodeToBufferedSink in <lambda>() 31 protected val default = Json { encodeDefaults = true } in <lambda>() 32 …protected val lenient = Json { isLenient = true; ignoreUnknownKeys = true; allowSpecialFloatingPoi… in <lambda>() 34 …internal inline fun <reified T : Any> Json.encodeToString(value: T, jsonTestingMode: JsonTestingMo… in encodeToString() 39 internal fun <T> Json.encodeToString( in encodeToString() 45 JsonTestingMode.STREAMING -> { in encodeToString() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/tracing-subscriber/src/fmt/format/ |
D | json.rs | 23 #[cfg(feature = "tracing-log")] 26 /// Marker for [`Format`] that indicates that the newline-delimited JSON log 30 /// logs are consumed as JSON by analysis and viewing tools. The JSON output is 31 /// not optimized for human readability; instead, it should be pretty-printed 32 /// using external JSON tools such as `jq`, or using a JSON log viewer. 36 …re><font color="#4E9A06"><b>:;</b></font> <font color="#4E9A06">cargo</font> run --example fmt-json 38 /// <font color="#4E9A06"><b> Running</b></font> `target/debug/examples/fmt-json` 39 /// {"timestamp":"2022-02-15T18:47:10.821315Z","level":"INFO&quo… 40 /// {"timestamp":"2022-02-15T18:47:10.821422Z","level":"INFO&quo… 41 /// {"timestamp":"2022-02-15T18:47:10.821495Z","level":"TRACE&qu… [all …]
|
/aosp_15_r20/external/moshi/moshi/src/main/java/com/squareup/moshi/ |
H A D | JsonReader.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 import okio.Buffer; 34 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc7159.txt">RFC 7159</a>) encoded value as a 37 * depth-first order, the same order that they appear in the JSON document. Within JSON objects, 40 * <h2>Parsing JSON</h2> 42 * To create a recursive descent parser for your own JSON streams, first create an entry point 45 * <p>Next, create handler methods for each structure in your JSON text. You'll need a method for 76 * "text": "How do I read a JSON stream in Java?", 86 * "geo": [50.454722, -104.606667], 119 * long id = -1; [all …]
|
/aosp_15_r20/external/moshi/moshi/src/test/java/com/squareup/moshi/ |
H A D | JsonCodecFactory.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 21 import okio.Buffer; 31 Buffer buffer; in factories() 34 public JsonReader newReader(String json) { in factories() 35 Buffer buffer = new Buffer().writeUtf8(json); in factories() 36 return JsonReader.of(buffer); in factories() 41 buffer = new Buffer(); in factories() 42 return new JsonUtf8Writer(buffer); in factories() 46 String json() { in factories() 47 String result = buffer.readUtf8(); in factories() [all …]
|
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/bzltestutil/ |
H A D | test2json.go | 2 // Use of this source code is governed by a BSD-style 5 // Package test2json implements conversion of test binary output to JSON. 8 // See the cmd/test2json documentation for details of the JSON encoding. 20 "encoding/json" 37 // event is the JSON struct we emit. 39 Time *time.Time `json:",omitempty"` 41 Package string `json:",omitempty"` 42 Test string `json:",omitempty"` 43 Elapsed *float64 `json:",omitempty"` 44 Output *textBytes `json:",omitempty"` [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/internal/test2json/ |
D | test2json.go | 2 // Use of this source code is governed by a BSD-style 5 // Package test2json implements conversion of test binary output to JSON. 8 // See the cmd/test2json documentation for details of the JSON encoding. 13 "encoding/json" 30 // event is the JSON struct we emit. 32 Time *time.Time `json:",omitempty"` 34 Package string `json:",omitempty"` 35 Test string `json:",omitempty"` 36 Elapsed *float64 `json:",omitempty"` 37 Output *textBytes `json:",omitempty"` [all …]
|
/aosp_15_r20/external/pigweed/pw_ide/ts/pigweed-vscode/src/ |
H A D | configParsing.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 23 * Schema for settings.json 28 * Schema for extensions.json 44 // we have direct access to extensions.json. But if the project is part of a 46 // a combined config that includes the equivalent of extensions.json associated 52 * Load a config file that contains extensions.json data. This could be 53 * extensions.json itself, or a workspace file that contains the equivalent. 54 * @param uri - A file path to load 55 * @returns - The extensions.json file data 60 const buffer = await vscode.workspace.fs.readFile(uri); constant [all …]
|
/aosp_15_r20/external/flatbuffers/tests/ |
H A D | phpTest.php | 18 // This file was generated from monsterdata_test.json 31 // We set up the same values as monsterdata.json: 32 $str = $fbb->createString("MyMonster"); 33 $name = $fbb->createString('Fred'); 40 $fred = $fbb->createString('Fred'); 48 $test4 = $fbb->endVector(); 51 $fbb->createString('test1'), 52 $fbb->createString('test2') 76 test_buffer($assert, $fbb->dataBuffer()); 89 …ption '%s' with message '%s. in %s:%d\n", get_class($e), $e->getMessage(), $e->getFile(), $e->getL… [all …]
|
/aosp_15_r20/external/angle/third_party/vulkan_memory_allocator/include/ |
H A D | vk_mem_alloc.h | 2 // Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. 28 <b>Version 3.1.0-development</b> 30 Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. \n 37 - <b>User guide</b> 38 - \subpage quick_start 39 - [Project setup](@ref quick_start_project_setup) 40 - [Initialization](@ref quick_start_initialization) 41 - [Resource allocation](@ref quick_start_resource_allocation) 42 - \subpage choosing_memory_type 43 - [Usage](@ref choosing_memory_type_usage) [all …]
|
/aosp_15_r20/external/skia/vma_android/include/ |
H A D | vk_mem_alloc.h | 2 // Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. 28 <b>Version 3.0.1 (2022-05-26)</b> 30 Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. \n 37 - <b>User guide</b> 38 - \subpage quick_start 39 - [Project setup](@ref quick_start_project_setup) 40 - [Initialization](@ref quick_start_initialization) 41 - [Resource allocation](@ref quick_start_resource_allocation) 42 - \subpage choosing_memory_type 43 - [Usage](@ref choosing_memory_type_usage) [all …]
|