Home
last modified time | relevance | path

Searched refs:grantors (Results 1 – 8 of 8) sorted by relevance

/system/libfmq/include/fmq/
DAidlMQDescriptorShim.h35 AidlMQDescriptorShim(const std::vector<android::hardware::GrantorDescriptor>& grantors,
66 inline const std::vector<android::hardware::GrantorDescriptor>& grantors() const { in grantors() function
98 mGrantors.resize(desc.grantors.size()); in AidlMQDescriptorShim()
99 for (size_t i = 0; i < desc.grantors.size(); ++i) { in AidlMQDescriptorShim()
100 if (desc.grantors[i].offset < 0 || desc.grantors[i].extent < 0 || in AidlMQDescriptorShim()
101 desc.grantors[i].fdIndex < 0) { in AidlMQDescriptorShim()
106 std::to_string(i) + ". offset: " + std::to_string(desc.grantors[i].offset) + in AidlMQDescriptorShim()
107 ". extent: " + std::to_string(desc.grantors[i].extent)); in AidlMQDescriptorShim()
111 mGrantors[i].fdIndex = desc.grantors[i].fdIndex; in AidlMQDescriptorShim()
112 mGrantors[i].offset = desc.grantors[i].offset; in AidlMQDescriptorShim()
[all …]
DMessageQueueBase.h589 const auto& grantors = mDesc->grantors(); in initMemory() local
590 for (const auto& grantor : grantors) { in initMemory()
732 std::vector<android::hardware::GrantorDescriptor> grantors; in MessageQueueBase() local
733 grantors.resize(configureEventFlagWord ? hardware::details::kMinGrantorCountForEvFlagSupport in MessageQueueBase()
745 for (size_t grantorPos = 0, offset = 0; grantorPos < grantors.size(); grantorPos++) { in MessageQueueBase()
756 grantors[grantorPos] = { in MessageQueueBase()
763 Descriptor(grantors, mqHandle, sizeof(T))); in MessageQueueBase()
1257 auto grantors = mDesc->grantors(); in mapGrantorDescr() local
1263 if (grantorIdx >= grantors.size()) { in mapGrantorDescr()
1265 std::to_string(grantors.size())); in mapGrantorDescr()
[all …]
DAidlMessageQueue.h130 std::vector<aidl::android::hardware::common::fmq::GrantorDescriptor> grantors;
131 for (const auto& grantor : shim->grantors()) {
132 grantors.push_back(aidl::android::hardware::common::fmq::GrantorDescriptor{
148 .grantors = grantors,
DConvertMQDescriptors.h73 if (!aidlDesc->grantors.empty()) { in unsafeHidlToAidlMQDescriptor()
78 for (const auto& grantor : hidlDesc.grantors()) { in unsafeHidlToAidlMQDescriptor()
86 aidlDesc->grantors.push_back( in unsafeHidlToAidlMQDescriptor()
/system/libhidl/base/include/hidl/
DMQDescriptor.h34 const std::vector<GrantorDescriptor>& grantors,
56 inline const ::android::hardware::hidl_vec<GrantorDescriptor> &grantors() const { in grantors() function
99 MQDescriptor<T, flavor>::MQDescriptor(const std::vector<GrantorDescriptor>& grantors, in MQDescriptor() argument
102 mGrantors.resize(grantors.size()); in MQDescriptor()
103 for (size_t i = 0; i < grantors.size(); ++i) { in MQDescriptor()
104 mGrantors[i] = grantors[i]; in MQDescriptor()
203 + toString(q.grantors().size()) + " grantor(s), " in toString()
/system/libfmq/tests/
Dfmq_unit_tests.cpp413 ::android::hardware::hidl_vec<android::hardware::GrantorDescriptor> grantors; in TEST_F()
414 grantors.resize(3); in TEST_F()
415 grantors[0] = {0, 1 /* fdIndex */, 16, 16}; in TEST_F()
416 grantors[1] = {0, 1 /* fdIndex */, 16, 16}; in TEST_F()
417 grantors[2] = {0, 1 /* fdIndex */, 16, 16}; in TEST_F()
419 HidlMQDescUnsync8* hidlDesc = new (std::nothrow) HidlMQDescUnsync8(grantors, mqHandle, 10); in TEST_F()
435 ::android::hardware::hidl_vec<android::hardware::GrantorDescriptor> grantors; in TEST_F()
436 grantors.resize(3); in TEST_F()
437 grantors[0] = {0, 1 /* fdIndex */, 16, 16}; in TEST_F()
438 grantors[1] = {0, 1 /* fdIndex */, 16, 16}; in TEST_F()
[all …]
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h133 obj.grantors(), in readEmbeddedFromParcel()
163 obj.grantors(), in writeEmbeddedToParcel()
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp213 EXPECT_EQ(expected.grantors().size(), actual.grantors().size()); in checkMQDescriptorEquality()