qservice: Fixes for IQHDMIClient

- Fix compilation issue to make IQHDMIClient accessible from SDM
- Change the log level from ERROR to WARNING if the IQHDMIClient
  is not present. This is not a fatal state and can be treated as
  a warning.

CRs-Fixed: 814136
Change-Id: Ia37cad912ff77c505b81c705f80c5f7daf75f9d7
This commit is contained in:
Tatenda Chipeperekwa
2016-04-01 12:24:10 -07:00
committed by Gerrit - the friendly Code Review server
parent 13378a0ea7
commit ad4cc06a17
2 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2014, 2016, The Linux Foundation. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are * modification, are permitted provided that the following conditions are
@@ -55,7 +55,7 @@ void QService::connect(const sp<qClient::IQClient>& client) {
} }
void QService::connect(const sp<qClient::IQHDMIClient>& client) { void QService::connect(const sp<qClient::IQHDMIClient>& client) {
ALOGD_IF(QSERVICE_DEBUG,"HWC client connected"); ALOGD_IF(QSERVICE_DEBUG,"HDMI client connected");
mHDMIClient = client; mHDMIClient = client;
} }
@@ -82,7 +82,7 @@ void QService::onHdmiHotplug(int connected) {
ALOGD_IF(QSERVICE_DEBUG, "%s: HDMI hotplug", __FUNCTION__); ALOGD_IF(QSERVICE_DEBUG, "%s: HDMI hotplug", __FUNCTION__);
mHDMIClient->onHdmiHotplug(connected); mHDMIClient->onHdmiHotplug(connected);
} else { } else {
ALOGE("%s: Failed to get a valid HDMI client", __FUNCTION__); ALOGW("%s: Failed to get a valid HDMI client", __FUNCTION__);
} }
} }
@@ -91,7 +91,7 @@ void QService::onCECMessageReceived(char *msg, ssize_t len) {
ALOGD_IF(QSERVICE_DEBUG, "%s: CEC message received", __FUNCTION__); ALOGD_IF(QSERVICE_DEBUG, "%s: CEC message received", __FUNCTION__);
mHDMIClient->onCECMessageRecieved(msg, len); mHDMIClient->onCECMessageRecieved(msg, len);
} else { } else {
ALOGE("%s: Failed to get a valid HDMI client", __FUNCTION__); ALOGW("%s: Failed to get a valid HDMI client", __FUNCTION__);
} }
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2013, 2016, The Linux Foundation. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are * modification, are permitted provided that the following conditions are
@@ -50,8 +50,8 @@ public:
virtual android::status_t dispatch(uint32_t command, virtual android::status_t dispatch(uint32_t command,
const android::Parcel* data, const android::Parcel* data,
android::Parcel* reply); android::Parcel* reply);
void onHdmiHotplug(int connected); virtual void onHdmiHotplug(int connected);
void onCECMessageReceived(char *msg, ssize_t len); virtual void onCECMessageReceived(char *msg, ssize_t len);
static void init(); static void init();
private: private:
QService(); QService();