summaryrefslogtreecommitdiff
path: root/src/android
AgeCommit message (Expand)Author
2019-11-19libcamera: camera: Remove explicit stream to buffer map in requestCompleted s...Niklas Söderlund
2019-10-30android: Replace ThreadRPC with blocking method callJacopo Mondi
2019-10-29libcamera: object: Add connection type parameter to invokeMethod()Jacopo Mondi
2019-10-15libcamera: utils: Add hex stream output helperLaurent Pinchart
2019-09-05android: camera_device: Report available keysJacopo Mondi
2019-09-05android: camera_device: Fix handling of request templateJacopo Mondi
2019-09-05android: camera_device: Use the new CameraMetadata helper classLaurent Pinchart
2019-09-05android: Add CameraMetadata helper classLaurent Pinchart
2019-09-05android: camera_device: Use precise sizes for request templateJacopo Mondi
2019-09-05android: camera_device: Add missing tags in request templateJacopo Mondi
2019-09-05android: camera_device: Remove tags from request templateJacopo Mondi
2019-09-05android: camera_device: Use correct sizes for static metadataJacopo Mondi
2019-09-05android: camera_device: Add missing static metadataJacopo Mondi
2019-08-19android: camera_device: Store static metadata in cacheLaurent Pinchart
2019-08-19libcamera: camera_manager: Construct CameraManager instances manuallyLaurent Pinchart
2019-08-19android: camera_hal_manager: Clean up resources when terminatingLaurent Pinchart
2019-08-19android: camera_hal_manager: Remove unused close() methodLaurent Pinchart
2019-08-19android: camera_hal_manager: Stop thread when destroyingLaurent Pinchart
2019-08-19android: Pass Camera shared pointer to CameraProxy by const referenceLaurent Pinchart
2019-08-19android: Simplify thread RPC with Object::invokeMethod()Laurent Pinchart
2019-08-15hal: Fix comparison of unsigned integer < 0Laurent Pinchart
2019-08-12hal: Fix comparison of integers of different signsLaurent Pinchart
2019-08-12android: hal: Add Camera3 HALJacopo Mondi
2019-08-12android: metadata: Add SPDX tagJacopo Mondi
2019-08-12android: Add camera metadata libraryJacopo Mondi
ss="hl opt">(data_, 0, sizeof(data_)); size_ = 0; ret = write(pipefd_[1], data.data(), data.size()); if (ret < 0) { cout << "Pipe write failed" << endl; return TestFail; } timeout.start(100); dispatcher->processEvents(); timeout.stop(); if (static_cast<size_t>(size_) != data.size()) { cout << "Event notifier read ready test failed" << endl; return TestFail; } /* Test read notification without data. */ notified_ = false; timeout.start(100); dispatcher->processEvents(); timeout.stop(); if (notified_) { cout << "Event notifier read no ready test failed" << endl; return TestFail; } /* Test read notifier disabling. */ notified_ = false; readNotifier.setEnabled(false); ret = write(pipefd_[1], data.data(), data.size()); if (ret < 0) { cout << "Pipe write failed" << endl; return TestFail; } timeout.start(100); dispatcher->processEvents(); timeout.stop(); if (notified_) { cout << "Event notifier read disabling failed" << endl; return TestFail; } /* Test read notifier enabling. */ notified_ = false; readNotifier.setEnabled(true); timeout.start(100); dispatcher->processEvents(); timeout.stop(); if (!notified_) { cout << "Event notifier read enabling test failed" << endl; return TestFail; } return TestPass; } void cleanup() { close(pipefd_[0]); close(pipefd_[1]); } private: int pipefd_[2]; bool notified_; char data_[16]; ssize_t size_; }; TEST_REGISTER(EventTest)