Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp38 void _clean_result(rapidjson::Document &doc) { in _clean_result() argument
39 doc.RemoveMember(sl4n::kMethodStr); in _clean_result()
40 doc.RemoveMember(sl4n::kParamsStr); in _clean_result()
43 void initiate(rapidjson::Document &doc) { in initiate() argument
44 doc.AddMember(sl4n::kStatusStr, sl4n::kSuccessStr, doc.GetAllocator()); in initiate()
48 void bluetooth_binder_get_local_name_wrapper(rapidjson::Document &doc) { in bluetooth_binder_get_local_name_wrapper() argument
50 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bluetooth_binder_get_local_name_wrapper()
58 doc.AddMember(sl4n::kResultStr, sl4n::kFailStr, doc.GetAllocator()); in bluetooth_binder_get_local_name_wrapper()
59 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bluetooth_binder_get_local_name_wrapper()
63 tmp.SetString(name.c_str(), doc.GetAllocator()); in bluetooth_binder_get_local_name_wrapper()
[all …]
Dcommon_utils.cpp22 bool CommonUtils::IsParamLengthMatching(rapidjson::Document& doc, in IsParamLengthMatching() argument
25 if ((int)doc[sl4n::kParamsStr].Size() != expected_param_size) { in IsParamLengthMatching()
27 << doc[sl4n::kParamsStr].Size(); in IsParamLengthMatching()
28 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in IsParamLengthMatching()
29 doc.AddMember(sl4n::kErrorStr, sl4n::kInvalidParamStr, doc.GetAllocator()); in IsParamLengthMatching()
Dcommon_utils.h26 static bool IsParamLengthMatching(rapidjson::Document& doc,
Dcommand_receiver.h39 void Call(rapidjson::Document& doc);
/packages/apps/Test/connectivity/sl4n/facades/wifi/
Dwifi_facade.cpp209 void wifi_init_wrapper(rapidjson::Document &doc) { in wifi_init_wrapper() argument
211 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_init_wrapper()
218 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_init_wrapper()
219 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_init_wrapper()
221 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in wifi_init_wrapper()
222 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in wifi_init_wrapper()
226 void wifi_get_supported_feature_set_wrapper(rapidjson::Document &doc) { in wifi_get_supported_feature_set_wrapper() argument
228 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_get_supported_feature_set_wrapper()
235 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
236 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp27 void ParseCheck(DocumentType& doc) { in ParseCheck() argument
30 EXPECT_FALSE(doc.HasParseError()); in ParseCheck()
32 EXPECT_TRUE(doc.IsObject()); in ParseCheck()
34 EXPECT_TRUE(doc.HasMember("hello")); in ParseCheck()
35 const ValueType& hello = doc["hello"]; in ParseCheck()
39 EXPECT_TRUE(doc.HasMember("t")); in ParseCheck()
40 const ValueType& t = doc["t"]; in ParseCheck()
43 EXPECT_TRUE(doc.HasMember("f")); in ParseCheck()
44 const ValueType& f = doc["f"]; in ParseCheck()
47 EXPECT_TRUE(doc.HasMember("n")); in ParseCheck()
[all …]
Dnamespacetest.cpp37 DocumentType doc; in TEST() local
39 doc.Parse(json); in TEST()
40 EXPECT_TRUE(!doc.HasParseError()); in TEST()
61 Document doc; in TEST() local
62 doc.Parse(buffer.GetString()); in TEST()
63 EXPECT_TRUE(!doc.HasParseError()); in TEST()
67 doc.Accept(writer); in TEST()
Dvaluetest.cpp1272 rapidjson::Document doc; in TEST() local
1273 rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); in TEST()
1298 rapidjson::Document doc; in TestShortStringOptimization() local
1300 val.SetString(str, len, doc.GetAllocator()); in TestShortStringOptimization()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp134 Document doc; in TEST_F() local
135 doc.ParseInsitu(temp_); in TEST_F()
136 ASSERT_TRUE(doc.IsObject()); in TEST_F()
143 Document doc; in TEST_F() local
144 doc.ParseInsitu<kParseIterativeFlag>(temp_); in TEST_F()
145 ASSERT_TRUE(doc.IsObject()); in TEST_F()
151 Document doc; in TEST_F() local
152 doc.Parse(json_); in TEST_F()
153 ASSERT_TRUE(doc.IsObject()); in TEST_F()
159 Document doc; in TEST_F() local
[all …]
/packages/services/Car/vehicle_network_service/
DVehiclePropertyAccessControl.cpp261 xmlDoc* doc = NULL; in process() local
264 doc = xmlReadFile(policy, NULL, 0); in process()
265 if (doc == NULL) { in process()
270 root_element = xmlDocGetRootElement(doc); in process()
273 xmlFreeDoc(doc); in process()
279 xmlFreeDoc(doc); in process()
285 xmlFreeDoc(doc); in process()
/packages/services/Car/tests/vehiclenetworkservice_unit_tests/
DVehiclePropertyAccessControlTest.cpp49 xmlDoc* doc; member in android::VehiclePropertyAccessControlTest
178 doc = xmlReadMemory(xmlData.c_str(), xmlData.length(), NULL, NULL, 0); in TEST_F()
179 ASSERT_TRUE(doc != NULL); in TEST_F()
180 root_element = xmlDocGetRootElement(doc); in TEST_F()
221 xmlFreeDoc(doc); in TEST_F()
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp170 xmlDocPtr doc; in import() local
177 doc = xmlParseFile (strFilename.c_str()); in import()
178 if (doc == NULL) in import()
184 node1 = xmlDocGetRootElement (doc); in import()
232 xmlFreeDoc (doc); in import()
/packages/apps/Test/connectivity/sl4n/rapidjson/
D.gitignore6 /doc/html
7 /doc/doxygen_*.db
Dreadme.md1 ![](doc/logo/rapidjson.png)
44 More features can be read [here](doc/features.md).
78 directory. The generated documentation will be available in `doc/html`
127 ![simpledom](doc/diagram/simpledom.png)
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Ddom.md3 … query and manipulation. The basic usage of DOM is described in [Tutorial](doc/tutorial.md). This …
34 …hich means using char to store the characters. You may refer to [Encoding](doc/encoding.md) for de…
105 The examples of [tutorial](doc/tutorial.md) uses (8) for normal parsing of string. The examples of …
226 … the DOM is using UTF-16 encoding. There is an example code in [EncodedInputStream](doc/stream.md).
228 …output stream, transcoding can also be used. An example is in [EncodedOutputStream](doc/stream.md).
252 For more about SAX events and handler, please refer to [SAX](doc/sax.md).
Dtutorial.md510 1. [Streams](doc/stream.md) are channels for reading/writing JSON, which can be a in-memory string,…
511 2. [Encoding](doc/encoding.md) defines which character encoding is used in streams and memory. Rapi…
512 3. [DOM](doc/dom.md)'s basics are already covered in this tutorial. Uncover more advanced features …
513 4. [SAX](doc/sax.md) is the foundation of parsing/generating facility in RapidJSON. Learn how to us…
514 5. [Performance](doc/performance.md) shows some in-house and third-party benchmarks.
515 6. [Internals](doc/internals.md) describes some internal designs and techniques of RapidJSON.
517 You may also refer to the [FAQ](doc/faq.md), API documentation, examples and unit tests.
Dfaq.md9 …RapidJSON is a C++ library for parsing and generating JSON. You may check all [features](doc/featu…
91 … performance, but the input JSON will be modified. Check [in-situ parsing](doc/dom.md) for details.
95 …big), or the handler of parsers terminate the parsing. Check [parse error](doc/dom.md) for details.
173 …There are two APIs: constructor with allocator, and `CopyFrom()`. See [Deep Copy Value](doc/tutori…
241 …M. `EncodedOutputStream` can optionally write a BOM. See [Encoded Streams](doc/stream.md) for exam…
Dperformance.md19 * [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html)
DDoxyfile.in770 doc/features.md \
771 doc/tutorial.md \
772 doc/pointer.md \
773 doc/stream.md \
774 doc/encoding.md \
775 doc/dom.md \
776 doc/sax.md \
777 doc/performance.md \
778 doc/internals.md \
779 doc/faq.md
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTreeBuilder.java300 HtmlDocument doc = parser.parse(html); in main() local
303 doc.accept(builder); in main()
DHtmlParser.java237 HtmlDocument doc = new HtmlDocument(nodes); in parse() local
240 return doc; in parse()
1124 HtmlDocument doc = parser.parse(html);
1125 System.out.println(doc.toString());
DHtmlDocument.java1168 private HtmlDocument doc; field in HtmlDocument.Builder
1204 doc = new HtmlDocument(nodes); in finish()
1209 return doc; in getDocument()
/packages/inputmethods/OpenWnn/
DREADME.txt55 doc/
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css124 #doc-content {
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java366 final HtmlDocument doc = parser.parse(htmlText); in getHtmlTree() local
367 doc.accept(builder); in getHtmlTree()

12