Home
last modified time | relevance | path

Searched refs:invalidHandle (Results 1 – 11 of 11) sorted by relevance

/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp233 native_handle_t* invalidHandle = nullptr; in TEST_P() local
234 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
239 invalidHandle = native_handle_create(0, 0); in TEST_P()
240 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
244 native_handle_delete(invalidHandle); in TEST_P()
251 native_handle_t* invalidHandle = nullptr; in TEST_P() local
252 Error error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
255 invalidHandle = native_handle_create(0, 0); in TEST_P()
256 error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
259 native_handle_delete(invalidHandle); in TEST_P()
[all …]
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp234 native_handle_t* invalidHandle = nullptr; in TEST_P() local
235 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
240 invalidHandle = native_handle_create(0, 0); in TEST_P()
241 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
245 native_handle_delete(invalidHandle); in TEST_P()
252 native_handle_t* invalidHandle = nullptr; in TEST_P() local
253 Error error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
256 invalidHandle = native_handle_create(0, 0); in TEST_P()
257 error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
260 native_handle_delete(invalidHandle); in TEST_P()
[all …]
/hardware/google/aemu/base/include/aemu/base/memory/
DSharedMemory.h141 constexpr static handle_type invalidHandle() { in invalidHandle() function
151 constexpr static handle_type invalidHandle() { return -1; }
218 return invalidHandle(); in releaseHandle()
221 return std::exchange(mFd, invalidHandle()); in releaseHandle()
236 mFd = invalidHandle(); in clear()
241 handle_type mFd = invalidHandle();
242 handle_type mFile = invalidHandle();
/hardware/interfaces/graphics/mapper/2.1/vts/functional/
DVtsHalGraphicsMapperV2_1TargetTest.cpp77 native_handle_t* invalidHandle = nullptr; in TEST_P() local
78 Error ret = mGralloc->getMapper()->validateBufferSize(invalidHandle, mDummyDescriptorInfo, in TEST_P()
83 invalidHandle = native_handle_create(0, 0); in TEST_P()
84 ret = mGralloc->getMapper()->validateBufferSize(invalidHandle, mDummyDescriptorInfo, in TEST_P()
88 native_handle_delete(invalidHandle); in TEST_P()
163 native_handle_t* invalidHandle = nullptr; in TEST_P() local
165 invalidHandle, [&](const auto& tmpError, const auto&, const auto&) { in TEST_P()
170 invalidHandle = native_handle_create(0, 0); in TEST_P()
172 invalidHandle, [&](const auto& tmpError, const auto&, const auto&) { in TEST_P()
176 native_handle_delete(invalidHandle); in TEST_P()
/hardware/google/aemu/base/
DSharedMemory_win32.cpp140 mFd = invalidHandle(); in close()
144 mFile = invalidHandle(); in close()
155 return mFd != invalidHandle(); in isOpen()
DSharedMemory_posix.cpp66 mFd = invalidHandle(); in close()
82 return mFd != invalidHandle(); in isOpen()
/hardware/interfaces/graphics/mapper/4.0/vts/functional/
DVtsHalGraphicsMapperV4_0TargetTest.cpp650 native_handle_t* invalidHandle = nullptr; in TEST_P() local
651 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
656 invalidHandle = native_handle_create(0, 0); in TEST_P()
657 mGralloc->getMapper()->importBuffer(invalidHandle, [&](const auto& tmpError, const auto&) { in TEST_P()
661 native_handle_delete(invalidHandle); in TEST_P()
668 native_handle_t* invalidHandle = nullptr; in TEST_P() local
669 Error error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
672 invalidHandle = native_handle_create(0, 0); in TEST_P()
673 error = mGralloc->getMapper()->freeBuffer(invalidHandle); in TEST_P()
676 native_handle_delete(invalidHandle); in TEST_P()
[all …]
/hardware/interfaces/graphics/mapper/stable-c/vts/
DVtsHalGraphicsMapperStableC_TargetTest.cpp678 native_handle_t* invalidHandle = nullptr; in TEST_P() local
680 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.importBuffer(invalidHandle, &bufferHandle)) in TEST_P()
683 invalidHandle = native_handle_create(0, 0); in TEST_P()
684 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.importBuffer(invalidHandle, &bufferHandle)) in TEST_P()
686 native_handle_delete(invalidHandle); in TEST_P()
1137 native_handle_t* invalidHandle = nullptr; in TEST_P() local
1139 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.unlock(invalidHandle, &releaseFence)) in TEST_P()
1142 invalidHandle = native_handle_create(0, 0); in TEST_P()
1143 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.unlock(invalidHandle, &releaseFence)) in TEST_P()
1145 native_handle_delete(invalidHandle); in TEST_P()
/hardware/interfaces/sensors/common/vts/2_X/
DVtsHalSensorsV2_XTargetTest.h757 int32_t invalidHandle = getInvalidSensorHandle(); in TEST_P() local
758 ASSERT_EQ(activate(invalidHandle, true), Result::BAD_VALUE); in TEST_P()
759 ASSERT_EQ(activate(invalidHandle, false), Result::BAD_VALUE); in TEST_P()
/hardware/interfaces/sensors/aidl/vts/
DVtsAidlHalSensorsTargetTest.cpp869 int32_t invalidHandle = getInvalidSensorHandle(); in TEST_P() local
870 ASSERT_EQ(activate(invalidHandle, true).getExceptionCode(), EX_ILLEGAL_ARGUMENT); in TEST_P()
871 ASSERT_EQ(activate(invalidHandle, false).getExceptionCode(), EX_ILLEGAL_ARGUMENT); in TEST_P()
/hardware/google/gfxstream/host/
Dvirtio-gpu-gfxstream-renderer.cpp291 return SharedMemory::invalidHandle(); in releaseHandle()