Home
last modified time | relevance | path

Searched refs:hidlDesc (Results 1 – 2 of 2) sorted by relevance

/system/libfmq/include/fmq/
DConvertMQDescriptors.h66 const hardware::MQDescriptor<HidlPayload, FlavorTypeToValue<AidlFlavor>::value>& hidlDesc, in unsafeHidlToAidlMQDescriptor() argument
78 for (const auto& grantor : hidlDesc.grantors()) { in unsafeHidlToAidlMQDescriptor()
95 for (; data_index < hidlDesc.handle()->numFds; data_index++) { in unsafeHidlToAidlMQDescriptor()
96 fds.push_back(ndk::ScopedFileDescriptor(dup(hidlDesc.handle()->data[data_index]))); in unsafeHidlToAidlMQDescriptor()
98 for (; data_index < hidlDesc.handle()->numFds + hidlDesc.handle()->numInts; data_index++) { in unsafeHidlToAidlMQDescriptor()
99 ints.push_back(hidlDesc.handle()->data[data_index]); in unsafeHidlToAidlMQDescriptor()
103 if (static_cast<int32_t>(hidlDesc.getQuantum()) < 0 || in unsafeHidlToAidlMQDescriptor()
104 static_cast<int32_t>(hidlDesc.getFlags()) < 0) { in unsafeHidlToAidlMQDescriptor()
110 if (hidlDesc.getFlags() != FlavorTypeToValue<AidlFlavor>::value) { in unsafeHidlToAidlMQDescriptor()
112 std::to_string(hidlDesc.getFlags()) + in unsafeHidlToAidlMQDescriptor()
[all …]
/system/libfmq/tests/
Dfmq_unit_tests.cpp406 const HidlMQDescSync8* hidlDesc = fmq.getDesc(); in TEST_F() local
407 ASSERT_NE(nullptr, hidlDesc); in TEST_F()
411 android::unsafeHidlToAidlMQDescriptor<uint8_t, int8_t, SynchronizedReadWrite>(*hidlDesc, in TEST_F()
438 const HidlMQDescUnsync8* hidlDesc = fmq.getDesc(); in TEST_F() local
439 ASSERT_NE(nullptr, hidlDesc); in TEST_F()
443 android::unsafeHidlToAidlMQDescriptor<uint8_t, int8_t, UnsynchronizedWrite>(*hidlDesc, in TEST_F()
487 HidlMQDescUnsync8 hidlDesc(grantors, mqHandle, 10); in TEST_F() local
488 ASSERT_TRUE(hidlDesc.isHandleValid()); in TEST_F()
492 hidlDesc, &aidlDesc); in TEST_F()
509 HidlMQDescUnsync8 hidlDesc(grantors, mqHandle, 10); in TEST_F() local
[all …]