Searched refs:grantors (Results 1 – 9 of 9) sorted by relevance
/system/libfmq/include/fmq/ |
D | AidlMQDescriptorShim.h | 35 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 …]
|
D | MessageQueueBase.h | 734 std::vector<android::hardware::GrantorDescriptor> grantors; in MessageQueueBase() local 735 grantors.resize(configureEventFlagWord ? hardware::details::kMinGrantorCountForEvFlagSupport in MessageQueueBase() 747 for (size_t grantorPos = 0, offset = 0; grantorPos < grantors.size(); grantorPos++) { in MessageQueueBase() 758 grantors[grantorPos] = { in MessageQueueBase() 765 Descriptor(grantors, mqHandle, sizeof(T))); in MessageQueueBase() 1259 const std::vector<android::hardware::GrantorDescriptor> grantors = mDesc->grantors(); in mapGrantorDescr() local 1265 if (grantorIdx >= grantors.size()) { in mapGrantorDescr() 1267 std::to_string(grantors.size())); in mapGrantorDescr() 1271 int fdIndex = grantors[grantorIdx].fdIndex; in mapGrantorDescr() 1284 if (!hardware::details::isAlignedToWordBoundary(grantors[grantorIdx].offset)) { in mapGrantorDescr() [all …]
|
D | AidlMessageQueue.h | 130 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,
|
D | ConvertMQDescriptors.h | 73 if (!aidlDesc->grantors.empty()) { in unsafeHidlToAidlMQDescriptor() 78 for (const auto& grantor : hidlDesc.grantors()) { in unsafeHidlToAidlMQDescriptor() 86 aidlDesc->grantors.push_back( in unsafeHidlToAidlMQDescriptor()
|
/system/libfmq/fuzzer/ |
D | fmq_fuzzer.cpp | 95 uint32_t offset = desc.grantors()[grantorIndx].offset; in getCounterPtr() 96 uint32_t data_offset = desc.grantors()[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() 101 uint32_t offset = desc.grantors()[grantorIndx].offset; in getCounterPtr() 102 uint32_t data_offset = desc.grantors()[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() 107 uint32_t offset = desc.grantors[grantorIndx].offset; in getCounterPtr() 108 uint32_t data_offset = desc.grantors[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() 113 uint32_t offset = desc.grantors[grantorIndx].offset; in getCounterPtr() 114 uint32_t data_offset = desc.grantors[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() 249 std::vector<aidl::android::hardware::common::fmq::GrantorDescriptor> grantors; in getAidlDesc() local 252 grantors.push_back({fdp.ConsumeIntegralInRange<int32_t>(-2, 2) /* fdIndex */, in getAidlDesc() [all …]
|
/system/libhidl/base/include/hidl/ |
D | MQDescriptor.h | 34 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() 207 + toString(q.grantors().size()) + " grantor(s), " in toString()
|
/system/libfmq/tests/ |
D | fmq_unit_tests.cpp | 322 std::vector<android::hardware::GrantorDescriptor> grantors = kGrantors; in TEST_F() local 329 android::hardware::MQDescriptor<uint16_t, kSynchronizedReadWrite> desc(grantors, handle, in TEST_F() 338 std::vector<android::hardware::GrantorDescriptor> grantors = kGrantors; in TEST_F() local 339 grantors[0].fdIndex = 5; in TEST_F() 346 android::hardware::MQDescriptor<uint16_t, kSynchronizedReadWrite> desc(grantors, handle, in TEST_F() 358 std::vector<android::hardware::GrantorDescriptor> grantors = kGrantors; in TEST_F() local 359 grantors[0].extent = 0xfffff041; in TEST_F() 366 android::hardware::MQDescriptor<uint16_t, kSynchronizedReadWrite> desc(grantors, handle, in TEST_F() 473 ::android::hardware::hidl_vec<android::hardware::GrantorDescriptor> grantors; in TEST_F() 474 grantors.resize(3); in TEST_F() [all …]
|
/system/libhidl/transport/include/hidl/ |
D | HidlBinderSupport.h | 133 obj.grantors(), in readEmbeddedFromParcel() 163 obj.grantors(), in writeEmbeddedToParcel()
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 213 EXPECT_EQ(expected.grantors().size(), actual.grantors().size()); in checkMQDescriptorEquality()
|