Files
hardware_interfaces/tv/hdmi/aidl/default/fuzzer.cpp
Venkatarama Avadhani 820b548de9 CEC: Add AIDL interface
Split and convert to AIDL the HDMI CEC HAL into two separate HALs -
CEC and HDMI. CEC handles the CEC messages while HDMI handles the
hotplug and physical ports.
Also add the default and VTS for the two HALs.

Bug: 233026642
Test: m android.hardware.tv.cec-update-api
      make
Change-Id: I67c6d7aeea6922f69a1ffa7acb36c811c80afabf
2022-10-11 10:03:02 +05:30

31 lines
1.0 KiB
C++

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <HdmiMock.h>
#include <fuzzbinder/libbinder_ndk_driver.h>
#include <fuzzer/FuzzedDataProvider.h>
using android::fuzzService;
using android::hardware::tv::hdmi::implementation::HdmiMock;
using ndk::SharedRefBase;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
auto hdmiAidl = SharedRefBase::make<HdmiMock>();
fuzzService(hdmiAidl->asBinder().get(), FuzzedDataProvider(data, size));
return 0;
}