Lines Matching refs:hardware
29 using namespace android::hardware::camera;
30 using android::hardware::camera::common::V1_0::Status;
31 using android::hardware::camera::common::V1_0::VendorTag;
32 using android::hardware::camera::common::V1_0::VendorTagSection;
33 using android::hardware::camera::common::V1_0::CameraMetadataType;
34 using android::hardware::camera::device::V3_2::ICameraDeviceCallback;
35 using android::hardware::camera::device::V3_2::ICameraDeviceSession;
36 using android::hardware::camera::provider::V2_5::DeviceState;
42 std::vector<hardware::hidl_string> mDeviceNames;
43 TestDeviceInterface(std::vector<hardware::hidl_string> deviceNames) : in TestDeviceInterface()
46 hardware::camera::common::V1_0::Status status,
47 const hardware::camera::common::V1_0::CameraResourceCost& resourceCost)>;
48 virtual ::android::hardware::Return<void> getResourceCost( in getResourceCost()
50 hardware::camera::common::V1_0::CameraResourceCost resourceCost = {100, in getResourceCost()
53 return hardware::Void(); in getResourceCost()
57 hardware::camera::common::V1_0::Status status,
58 const hardware::hidl_vec<uint8_t>& cameraCharacteristics)>;
59 hardware::Return<void> getCameraCharacteristics( in getCameraCharacteristics()
61 hardware::hidl_vec<uint8_t> cameraCharacteristics; in getCameraCharacteristics()
63 return hardware::Void(); in getCameraCharacteristics()
66 hardware::Return<hardware::camera::common::V1_0::Status> setTorchMode( in setTorchMode()
67 ::android::hardware::camera::common::V1_0::TorchMode) override { in setTorchMode()
72 ::android::hardware::camera::common::V1_0::Status status,
74 hardware::Return<void> open( in open()
79 return hardware::Void(); in open()
82 hardware::Return<void> dumpState( in dumpState()
83 const ::android::hardware::hidl_handle&) override { in dumpState()
84 return hardware::Void(); in dumpState()
93 std::vector<hardware::hidl_string> mDeviceNames;
95 hardware::hidl_vec<common::V1_0::VendorTagSection> mVendorTagSections;
97 TestICameraProvider(const std::vector<hardware::hidl_string> &devices, in TestICameraProvider()
98 const hardware::hidl_vec<common::V1_0::VendorTagSection> &vendorSection) : in TestICameraProvider()
103 virtual hardware::Return<Status> setCallback( in setCallback()
107 return hardware::Return<Status>(Status::OK); in setCallback()
111 const hardware::hidl_vec<common::V1_0::VendorTagSection>& sections)>;
112 hardware::Return<void> getVendorTags(getVendorTags_cb _hidl_cb) override { in getVendorTags()
115 return hardware::Void(); in getVendorTags()
119 ::android::hardware::camera::common::V1_0::Status status,
121 virtual ::hardware::Return<void> isSetTorchModeSupported( in isSetTorchModeSupported()
125 return hardware::Void(); in isSetTorchModeSupported()
129 const hardware::hidl_vec<hardware::hidl_string>& cameraDeviceNames)>;
130 virtual hardware::Return<void> getCameraIdList(getCameraIdList_cb _hidl_cb) override { in getCameraIdList()
133 return hardware::Void(); in getCameraIdList()
138 virtual hardware::Return<void> getCameraDeviceInterface_V1_x( in getCameraDeviceInterface_V1_x()
139 const hardware::hidl_string& cameraDeviceName, in getCameraDeviceInterface_V1_x()
144 return hardware::Void(); in getCameraDeviceInterface_V1_x()
149 virtual hardware::Return<void> getCameraDeviceInterface_V3_x( in getCameraDeviceInterface_V3_x()
150 const hardware::hidl_string&, in getCameraDeviceInterface_V3_x()
153 return hardware::Void(); in getCameraDeviceInterface_V3_x()
156 virtual hardware::Return<void> notifyDeviceStateChange( in notifyDeviceStateChange()
157 hardware::hidl_bitfield<DeviceState> newState) override { in notifyDeviceStateChange()
160 return hardware::Void(); in notifyDeviceStateChange()
174 hardware::hidl_bitfield<DeviceState> mCurrentState = 0xFFFFFFFF; // Unlikely to be a real state
202 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> getService( in getService()
214 hardware::camera::common::V1_0::CameraDeviceStatus) override {} in onDeviceStatusChanged()
216 hardware::camera::common::V1_0::TorchModeStatus) override {} in onTorchStatusChanged()
221 std::vector<hardware::hidl_string> deviceNames; in TEST()
225 hardware::hidl_vec<common::V1_0::VendorTagSection> vendorSection; in TEST()
265 hardware::hidl_string testProviderFqInterfaceName = in TEST()
267 hardware::hidl_string testProviderInstanceName = "test/0"; in TEST()
277 hardware::hidl_string sectionName = "VendorTestSection"; in TEST()
278 hardware::hidl_string tagName = "VendorTestTag"; in TEST()
280 hardware::hidl_vec<common::V1_0::VendorTagSection> vendorSection; in TEST()
288 std::vector<hardware::hidl_string> deviceNames = {"device@3.2/test/0"}; in TEST()
301 hardware::hidl_string testProviderInstanceName = "test/0"; in TEST()
302 hardware::hidl_string testProviderFqInterfaceName = in TEST()
309 hardware::hidl_string sectionNameSecond = "SecondVendorTestSection"; in TEST()
310 hardware::hidl_string secondTagName = "SecondVendorTestTag"; in TEST()
321 hardware::hidl_string testProviderSecondInstanceName = "test2/0"; in TEST()
338 hardware::hidl_string resultTag = vendorCache->getTagName(tagId, vendorId); in TEST()
419 std::vector<hardware::hidl_string> deviceNames { in TEST()
424 hardware::hidl_vec<common::V1_0::VendorTagSection> vendorSection; in TEST()
437 static_cast<hardware::hidl_bitfield<DeviceState>>(DeviceState::NORMAL)) in TEST()
441 static_cast<hardware::hidl_bitfield<DeviceState>>(DeviceState::FOLDED)); in TEST()
445 static_cast<hardware::hidl_bitfield<DeviceState>>(DeviceState::FOLDED)) in TEST()