if (!supported)
return;
+ info = NULL;
ret = hw_get_info(BATTERY_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
EXPECT_EQ(ret, 0) << "Fail to load battery hal (" << ret << ")";
{
int ret;
+ info = NULL;
ret = hw_get_info(CPU_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
{
int ret;
+ info = NULL;
ret = hw_get_info(DISPLAY_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
{
int ret;
+ info = NULL;
ret = hw_get_info(EXTERNAL_CONNECTION_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
if (!supported)
return;
+ info = NULL;
ret = hw_get_info(IR_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
EXPECT_EQ(ret, 0) << "Fail to get hal for ir (" << ret << ")";
if (!supported)
return;
+ info = NULL;
ret = hw_get_info(LED_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
EXPECT_EQ(ret, 0) << "Fail to get hal for rgb (" << ret << ")";
{
int ret;
+ info = NULL;
ret = hw_get_info(THERMAL_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
{
int ret;
+ info = NULL;
ret = hw_get_info(TOUCHSCREEN_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
if (!supported)
return;
+ info = NULL;
ret = hw_get_info(USB_CLIENT_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {
{
int ret;
+ info = NULL;
ret = hw_get_info(USB_GADGET_DEVICE_ID,
(const struct hw_info **)&info);
if (ret < 0) {