Home
last modified time | relevance | path

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

12345678910>>...111

/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json:"workspaceFolders,omitempty"`
[all …]
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json:"workspaceFolders,omitempty"`
[all …]
/external/angle/src/libANGLE/capture/
Dframe_capture_utils.cpp244 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope() argument
249 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope() argument
257 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope() argument
265 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF() argument
267 json->addScalar("red", color.red); in SerializeColorF()
268 json->addScalar("green", color.green); in SerializeColorF()
269 json->addScalar("blue", color.blue); in SerializeColorF()
270 json->addScalar("alpha", color.alpha); in SerializeColorF()
273 void SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) in SerializeColorFWithGroup() argument
275 GroupScope group(json, groupName); in SerializeColorFWithGroup()
[all …]
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/grammar/
Dgrammar.go23 MagicNumber string `json:"magic_number"`
24 MajorVersion int `json:"major_version"`
25 MinorVersion int `json:"minor_version"`
26 Revision int `json:"revision"`
27 Instructions []Instruction `json:"instructions"`
28 OperandKinds []OperandKind `json:"operand_kinds"`
33 Opname string `json:"opname"`
34 Class string `json:"class"`
35 Opcode int `json:"opcode"`
36 Operands []Operand `json:"operands"`
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/grammar/
Dgrammar.go23 MagicNumber string `json:"magic_number"`
24 MajorVersion int `json:"major_version"`
25 MinorVersion int `json:"minor_version"`
26 Revision int `json:"revision"`
27 Instructions []Instruction `json:"instructions"`
28 OperandKinds []OperandKind `json:"operand_kinds"`
33 Opname string `json:"opname"`
34 Class string `json:"class"`
35 Opcode int `json:"opcode"`
36 Operands []Operand `json:"operands"`
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DProtocol.h119 llvm::json::Value toJSON(const URIForFile &U);
120 bool fromJSON(const llvm::json::Value &, URIForFile &, llvm::json::Path);
126 llvm::json::Value toJSON(const TextDocumentIdentifier &);
127 bool fromJSON(const llvm::json::Value &, TextDocumentIdentifier &,
128 llvm::json::Path);
143 llvm::json::Value toJSON(const VersionedTextDocumentIdentifier &);
144 bool fromJSON(const llvm::json::Value &, VersionedTextDocumentIdentifier &,
145 llvm::json::Path);
172 bool fromJSON(const llvm::json::Value &, Position &, llvm::json::Path);
173 llvm::json::Value toJSON(const Position &);
[all …]
DProtocol.cpp54 bool fromJSON(const llvm::json::Value &E, URIForFile &R, llvm::json::Path P) { in fromJSON()
78 llvm::json::Value toJSON(const URIForFile &U) { return U.uri(); } in toJSON()
84 llvm::json::Value toJSON(const TextDocumentIdentifier &R) { in toJSON()
85 return llvm::json::Object{{"uri", R.uri}}; in toJSON()
88 bool fromJSON(const llvm::json::Value &Params, TextDocumentIdentifier &R, in fromJSON()
89 llvm::json::Path P) { in fromJSON()
90 llvm::json::ObjectMapper O(Params, P); in fromJSON()
94 llvm::json::Value toJSON(const VersionedTextDocumentIdentifier &R) { in toJSON()
100 bool fromJSON(const llvm::json::Value &Params, in fromJSON()
101 VersionedTextDocumentIdentifier &R, llvm::json::Path P) { in fromJSON()
[all …]
/external/boringssl/src/util/fipstools/acvp/acvptool/subprocess/
Drsa.go28 Mode string `json:"mode"`
32 Groups []rsaKeyGenGroup `json:"testGroups"`
36 ID uint64 `json:"tgId"`
37 Type string `json:"testType"`
38 ModulusBits uint32 `json:"modulo"`
39 Tests []rsaKeyGenTest `json:"tests"`
43 ID uint64 `json:"tcId"`
47 ID uint64 `json:"tgId"`
48 Tests []rsaKeyGenTestResponse `json:"tests"`
52 ID uint64 `json:"tcId"`
[all …]
/external/starlark-go/starlark/testdata/
Djson.star1 # Tests of json module.
4 load("json.star", "json")
6 assert.eq(dir(json), ["decode", "encode", "indent"])
10 ## json.encode
12 assert.eq(json.encode(None), "null")
13 assert.eq(json.encode(True), "true")
14 assert.eq(json.encode(False), "false")
15 assert.eq(json.encode(-123), "-123")
16 assert.eq(json.encode(12345*12345*12345*12345*12345*12345), "3539537889086624823140625")
17 assert.eq(json.encode(float(12345*12345*12345*12345*12345*12345)), "3.539537889086625e+24")
[all …]
/external/boringssl/src/util/fipstools/acvp/acvptool/acvp/
Dacvp.go138 func parseHeaderElement(in io.Reader) (*json.Decoder, error) {
139 decoder := json.NewDecoder(in)
144 if delim, ok := arrayStart.(json.Delim); !ok || delim != '[' {
149 Version string `json:"acvVersion"`
216 if delim, ok := arrayEnd.(json.Delim); !ok || delim != ']' {
237 Expiry uint64 `json:"exp"`
239 if json.Unmarshal(jsonBytes, &token) != nil {
256 AccessToken string `json:"accessToken"`
276 AccessToken string `json:"accessToken"`
277 LargeEndpointRequired bool `json:"largeEndpointRequired"`
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs70 var json = "{ \"mapInt32Int32\": { \"" + keyText + "\" : \"1\" } }"; in IntegerMapKeysAreStrict()
71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
77 var json = "{ \"single_int32\": 10 }"; in OriginalFieldNameAccepted()
79 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
130 var json = new JsonFormatter(new JsonFormatter.Settings(true)).Format(message); in SingularWrappers_ExplicitNulls()
131 var parsed = JsonParser.Default.Parse<TestWellKnownTypes>(json); in SingularWrappers_ExplicitNulls()
146 public void Wrappers_Standalone(System.Type wrapperType, string json, object expectedValue) in Wrappers_Standalone() argument
153 JsonParser.Default.Merge(parsed, json); in Wrappers_Standalone()
161 string json = "{\"valueField\": null}"; in ExplicitNullValue()
162 var message = JsonParser.Default.Parse<TestWellKnownTypes>(json); in ExplicitNullValue()
[all …]
/external/grpc-grpc/src/core/lib/channel/
Dchannelz.cc50 grpc_json* json = RenderJson(); in RenderJsonString() local
51 GPR_ASSERT(json != nullptr); in RenderJsonString()
52 char* json_str = grpc_json_dump_to_string(json, 0); in RenderJsonString()
53 grpc_json_destroy(json); in RenderJsonString()
70 void CallCountingHelper::PopulateCallCounts(grpc_json* json) { in PopulateCallCounts() argument
74 json, json_iterator, "callsStarted", calls_started_); in PopulateCallCounts()
78 json, json_iterator, "callsSucceeded", calls_succeeded_); in PopulateCallCounts()
82 json, json_iterator, "callsFailed", calls_failed_); in PopulateCallCounts()
87 grpc_json_create_child(json_iterator, json, "lastCallStartedTimestamp", in PopulateCallCounts()
104 grpc_json* json = top_level_json; in RenderJson() local
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs70 var json = "{ \"mapInt32Int32\": { \"" + keyText + "\" : \"1\" } }"; in IntegerMapKeysAreStrict()
71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
77 var json = "{ \"single_int32\": 10 }"; in OriginalFieldNameAccepted()
79 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
130 var json = new JsonFormatter(new JsonFormatter.Settings(true)).Format(message); in SingularWrappers_ExplicitNulls()
131 var parsed = JsonParser.Default.Parse<TestWellKnownTypes>(json); in SingularWrappers_ExplicitNulls()
146 public void Wrappers_Standalone(System.Type wrapperType, string json, object expectedValue) in Wrappers_Standalone() argument
153 JsonParser.Default.Merge(parsed, json); in Wrappers_Standalone()
161 string json = "{\"valueField\": null}"; in ExplicitNullValue()
162 var message = JsonParser.Default.Parse<TestWellKnownTypes>(json); in ExplicitNullValue()
[all …]
/external/llvm-project/lldb/tools/lldb-vscode/
DJSONUtils.h32 void EmplaceSafeString(llvm::json::Object &obj, llvm::StringRef key,
43 llvm::StringRef GetAsString(const llvm::json::Value &value);
58 llvm::StringRef GetString(const llvm::json::Object &obj, llvm::StringRef key);
59 llvm::StringRef GetString(const llvm::json::Object *obj, llvm::StringRef key);
74 uint64_t GetUnsigned(const llvm::json::Object &obj, llvm::StringRef key,
76 uint64_t GetUnsigned(const llvm::json::Object *obj, llvm::StringRef key,
92 bool GetBoolean(const llvm::json::Object &obj, llvm::StringRef key,
94 bool GetBoolean(const llvm::json::Object *obj, llvm::StringRef key,
110 int64_t GetSigned(const llvm::json::Object &obj, llvm::StringRef key,
112 int64_t GetSigned(const llvm::json::Object *obj, llvm::StringRef key,
[all …]
/external/golang-protobuf/protoc-gen-go/descriptor/
Ddescriptor.pb.go350 …File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty…
351 XXX_NoUnkeyedLiteral struct{} `json:"-"`
352 XXX_unrecognized []byte `json:"-"`
353 XXX_sizecache int32 `json:"-"`
390 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
391 Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
393 Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"`
395 …32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,…
398 …WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"we…
400 …orProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omite…
[all …]
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2/
Dwire.go50 VersionTag VersionTag `json:"jsonrpc"`
52 Method string `json:"method"`
54 Params *json.RawMessage `json:"params,omitempty"`
58 ID *ID `json:"id,omitempty"`
67 VersionTag VersionTag `json:"jsonrpc"`
69 Result *json.RawMessage `json:"result,omitempty"`
71 Error *Error `json:"error,omitempty"`
73 ID *ID `json:"id,omitempty"`
79 Code int64 `json:"code"`
81 Message string `json:"message"`
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2/
Dwire.go50 VersionTag VersionTag `json:"jsonrpc"`
52 Method string `json:"method"`
54 Params *json.RawMessage `json:"params,omitempty"`
58 ID *ID `json:"id,omitempty"`
67 VersionTag VersionTag `json:"jsonrpc"`
69 Result *json.RawMessage `json:"result,omitempty"`
71 Error *Error `json:"error,omitempty"`
73 ID *ID `json:"id,omitempty"`
79 Code int64 `json:"code"`
81 Message string `json:"message"`
[all …]
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DDirectRTCClient.java20 import org.json.JSONArray;
21 import org.json.JSONException;
22 import org.json.JSONObject;
158 JSONObject json = new JSONObject(); in sendOfferSdp()
159 jsonPut(json, "sdp", sdp.description); in sendOfferSdp()
160 jsonPut(json, "type", "offer"); in sendOfferSdp()
161 sendMessage(json.toString()); in sendOfferSdp()
171 JSONObject json = new JSONObject(); in sendAnswerSdp()
172 jsonPut(json, "sdp", sdp.description); in sendAnswerSdp()
173 jsonPut(json, "type", "answer"); in sendAnswerSdp()
[all …]
/external/golang-protobuf/jsonpb/jsonpb_test_proto/
Dtest_objects.pb.go73 …OBool *bool `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitemp…
74 …OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omit…
75 …OInt32Str *int32 `protobuf:"varint,3,opt,name=o_int32_str,json=oInt32Str" json:"o_int…
76 …OInt64 *int64 `protobuf:"varint,4,opt,name=o_int64,json=oInt64" json:"o_int64,omit…
77 …OInt64Str *int64 `protobuf:"varint,5,opt,name=o_int64_str,json=oInt64Str" json:"o_int…
78 …OUint32 *uint32 `protobuf:"varint,6,opt,name=o_uint32,json=oUint32" json:"o_uint32,o…
79 …OUint32Str *uint32 `protobuf:"varint,7,opt,name=o_uint32_str,json=oUint32Str" json:"o_u…
80 …OUint64 *uint64 `protobuf:"varint,8,opt,name=o_uint64,json=oUint64" json:"o_uint64,o…
81 …OUint64Str *uint64 `protobuf:"varint,9,opt,name=o_uint64_str,json=oUint64Str" json:"o_u…
82 …OSint32 *int32 `protobuf:"zigzag32,10,opt,name=o_sint32,json=oSint32" json:"o_sint3…
[all …]
/external/grpc-grpc/src/core/lib/json/
Djson_string.cc175 grpc_json* json = grpc_json_create(type); in json_create_and_link() local
177 json->parent = state->current_container; in json_create_and_link()
178 json->prev = state->current_value; in json_create_and_link()
179 state->current_value = json; in json_create_and_link()
181 if (json->prev) { in json_create_and_link()
182 json->prev->next = json; in json_create_and_link()
184 if (json->parent) { in json_create_and_link()
185 if (!json->parent->child) { in json_create_and_link()
186 json->parent->child = json; in json_create_and_link()
188 if (json->parent->type == GRPC_JSON_OBJECT) { in json_create_and_link()
[all …]
Djson.cc31 grpc_json* json = static_cast<grpc_json*>(gpr_zalloc(sizeof(*json))); in grpc_json_create() local
32 json->type = type; in grpc_json_create()
34 return json; in grpc_json_create()
37 void grpc_json_destroy(grpc_json* json) { in grpc_json_destroy() argument
38 while (json->child) { in grpc_json_destroy()
39 grpc_json_destroy(json->child); in grpc_json_destroy()
42 if (json->next) { in grpc_json_destroy()
43 json->next->prev = json->prev; in grpc_json_destroy()
46 if (json->prev) { in grpc_json_destroy()
47 json->prev->next = json->next; in grpc_json_destroy()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestScalars.java60 String json; in testScalarsWithTyping() local
65 json = m.writeValueAsString(new DynamicWrapper(Integer.valueOf(3))); in testScalarsWithTyping()
66 result = m.readValue(json, DynamicWrapper.class); in testScalarsWithTyping()
69 json = m.writeValueAsString(new DynamicWrapper("abc")); in testScalarsWithTyping()
70 result = m.readValue(json, DynamicWrapper.class); in testScalarsWithTyping()
73 json = m.writeValueAsString(new DynamicWrapper("abc")); in testScalarsWithTyping()
74 result = m.readValue(json, DynamicWrapper.class); in testScalarsWithTyping()
77 json = m.writeValueAsString(new DynamicWrapper(Boolean.TRUE)); in testScalarsWithTyping()
78 result = m.readValue(json, DynamicWrapper.class); in testScalarsWithTyping()
82 json = m.writeValueAsString(new DynamicWrapper(Long.valueOf(7L))); in testScalarsWithTyping()
[all …]
/external/grpc-grpc/test/core/end2end/tests/
Dchannelz.cc217 char* json = channelz_channel->RenderJsonString(); in test_channelz() local
218 GPR_ASSERT(json != nullptr); in test_channelz()
220 GPR_ASSERT(nullptr == strstr(json, "\"callsStarted\"")); in test_channelz()
221 GPR_ASSERT(nullptr == strstr(json, "\"callsFailed\"")); in test_channelz()
222 GPR_ASSERT(nullptr == strstr(json, "\"callsSucceeded\"")); in test_channelz()
223 gpr_free(json); in test_channelz()
228 json = channelz_channel->RenderJsonString(); in test_channelz()
229 GPR_ASSERT(json != nullptr); in test_channelz()
230 GPR_ASSERT(nullptr != strstr(json, "\"callsStarted\":\"1\"")); in test_channelz()
231 GPR_ASSERT(nullptr != strstr(json, "\"callsSucceeded\":\"1\"")); in test_channelz()
[all …]
/external/llvm-project/llvm/tools/llvm-cov/
DCoverageExporterJson.cpp74 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment()
75 return json::Array({Segment.Line, Segment.Col, in renderSegment()
80 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion()
81 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion()
87 json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderRegions()
88 json::Array RegionArray; in renderRegions()
94 json::Object renderExpansion(const coverage::ExpansionRecord &Expansion) { in renderExpansion()
95 return json::Object( in renderExpansion()
96 {{"filenames", json::Array(Expansion.Function.Filenames)}, in renderExpansion()
103 json::Object renderSummary(const FileCoverageSummary &Summary) { in renderSummary()
[all …]
/external/rust/cxx/book/src/binding/
Dcxxstring.md37 include!("example/include/json.h");
39 #[cxx_name = "json"]
71 // include/json.h
79 class json final {
81 static const json null;
84 using array = std::vector<json>;
85 using object = std::map<string, json>;
87 json() noexcept = default;
88 json(const json &) = default;
89 json(json &&) = default;
[all …]

12345678910>>...111