Home
last modified time | relevance | path

Searched refs:GetAllocator (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Test/connectivity/sl4n/facades/test/
Dtest_facade.cpp74 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in test_bool_true_return_wrapper()
75 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in test_bool_true_return_wrapper()
77 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in test_bool_true_return_wrapper()
78 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in test_bool_true_return_wrapper()
91 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in test_bool_false_return_wrapper()
92 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in test_bool_false_return_wrapper()
94 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in test_bool_false_return_wrapper()
95 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in test_bool_false_return_wrapper()
108 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in test_null_return_wrapper()
109 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in test_null_return_wrapper()
[all …]
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/
Dbt_binder_facade.cpp217 doc.AddMember(sl4n::kResultStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
218 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
222 tmp.SetString(name.c_str(), doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
223 doc.AddMember(sl4n::kResultStr, tmp, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
224 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
237 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_init_interface_wapper()
239 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in bt_binder_init_interface_wapper()
241 doc.AddMember(sl4n::kResultStr, init_result, doc.GetAllocator()); in bt_binder_init_interface_wapper()
253 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in bt_binder_set_local_name_wrapper()
254 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_set_local_name_wrapper()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp198 Document::AllocatorType& a = d1.GetAllocator(); in TEST()
217 EXPECT_EQ(&d2.GetAllocator(), &a); in TEST()
226 EXPECT_NE(&d2.GetAllocator(), &a); in TEST()
283 doc.AddMember("a", 0, doc.GetAllocator()); in TEST()
362 EXPECT_EQ(&a.GetAllocator(), &allocator); in TYPED_TEST()
369 EXPECT_EQ(&a.GetAllocator(), (void*)0); in TYPED_TEST()
370 EXPECT_EQ(&b.GetAllocator(), &allocator); in TYPED_TEST()
382 EXPECT_EQ(&b.GetAllocator(), (void*)0); in TYPED_TEST()
383 EXPECT_EQ(&c.GetAllocator(), &allocator); in TYPED_TEST()
429 Reader reader(&a.GetAllocator());
[all …]
Dpointertest.cpp570 Value* v = &Pointer("").Create(d, d.GetAllocator()); in TEST()
574 Value* v = &Pointer("/foo").Create(d, d.GetAllocator()); in TEST()
578 Value* v = &Pointer("/foo/0").Create(d, d.GetAllocator()); in TEST()
582 Value* v = &Pointer("/foo/-").Create(d, d.GetAllocator()); in TEST()
587 Value* v = &Pointer("/foo/-/-").Create(d, d.GetAllocator()); in TEST()
602 Value* v = &Pointer("/-").Create(d["foo"], d.GetAllocator()); in TEST()
635 Document::AllocatorType& a = d.GetAllocator(); in TEST()
738 Document::AllocatorType& a = d.GetAllocator(); in TEST()
810 const Value foo(d["foo"], d.GetAllocator()); in TEST()
857 Document::AllocatorType& a = d.GetAllocator(); in TEST()
[all …]
Dvaluetest.cpp188 z.CopyFrom(y, z.GetAllocator()); in TEST()
201 z.AddMember("t", false, z.GetAllocator()); in TEST()
1273 rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); in TEST()
1300 val.SetString(str, len, doc.GetAllocator()); in TestShortStringOptimization()
/packages/apps/Test/connectivity/sl4n/facades/wifi/
Dwifi_facade.cpp166 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_init_wrapper()
167 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_init_wrapper()
169 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in wifi_init_wrapper()
170 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in wifi_init_wrapper()
183 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
184 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
186 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
187 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md301 …o.AddMember("contacts", contacts, d.GetAllocator()); // deep clone contacts (may be with lots of …
322 …o.AddMember("contacts", contacts, d.GetAllocator()); // just memcpy() of contacts itself to the v…
337 Document::AllocatorType& allocator = document.GetAllocator();
360 author.SetString(buffer, len, document.GetAllocator());
408 Document::AllocatorType& allocator = document.GetAllocator();
423 contact.PushBack(Value("copy", document.GetAllocator()).Move(), // copy string
424 document.GetAllocator());
427 Value val("key", document.GetAllocator()); // copy string
428 contact.PushBack(val, document.GetAllocator());
442 contact.AddMember("name", "Milo", document.GetAllocator());
[all …]
Dfaq.md147 Documnet address(person.GetAllocator());
149 person["person"].AddMember("address", address["address"], person.GetAllocator());
154 person["person"].AddMember(addressRoot->name, addressRoot->value, person.GetAllocator());
159 Value addressValue = Value(address["address"], person.GetAllocator());
160 person["person"].AddMember("address", addressValue, person.GetAllocator());
Dpointer.md149 …meter, another one uses `Value& root`. The first group uses `document.GetAllocator()` for creating…
165 Value::Allocator& a = document_->GetAllocator();
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp103 Document::AllocatorType& allocator = document.GetAllocator(); in main()
127 author.SetString(buffer, static_cast<size_t>(len), document.GetAllocator()); in main()
137 document.AddMember("author", author, document.GetAllocator()); in main()
/packages/apps/Test/connectivity/sl4n/utils/
Dcommon_utils.cpp28 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in IsParamLengthMatching()
29 doc.AddMember(sl4n::kErrorStr, sl4n::kInvalidParamStr, doc.GetAllocator()); in IsParamLengthMatching()
Dcommand_receiver.cpp37 doc.AddMember(sl4n::kStatusStr, sl4n::kSuccessStr, doc.GetAllocator()); in initiate()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h444 return Create(document, document.GetAllocator(), alreadyExist);
539 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault()
545 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault()
552 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault()
563 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault()
621 return Create(document).CopyFrom(value, document.GetAllocator()); in Set()
627 return Create(document) = ValueType(value, document.GetAllocator()).Move(); in Set()
634 return Create(document) = ValueType(value, document.GetAllocator()).Move(); in Set()
Ddocument.h1891 stack_.HasAllocator() ? &stack_.GetAllocator() : 0);
1993 Allocator& GetAllocator() {
2027 new (stack_.template Push<ValueType>()) ValueType(str, length, GetAllocator());
2039 … stack_.template Top<ValueType>()->SetObjectRaw(members, (SizeType)memberCount, GetAllocator());
2047 stack_.template Top<ValueType>()->SetArrayRaw(elements, elementCount, GetAllocator());
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h141 Allocator& GetAllocator() { in GetAllocator() function