diff options
author | Steven Moreland <smoreland@google.com> | 2018-07-31 15:29:53 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2018-08-02 21:24:08 +0000 |
commit | 128040a16d5ed83da9b4fb2c6f562e932fa99619 (patch) | |
tree | 93aca50194948c9a609834bcb10808e7003c3971 /transport/HidlTransportSupport.cpp | |
parent | 24ed87ef09b4ad2e96e6335906280ce6266c811d (diff) | |
download | libhidl-128040a16d5ed83da9b4fb2c6f562e932fa99619.tar.gz |
Begin cleanup of HidlBinderSupport.h includes.
Removing ones that are unused within libhidltransport itself.
Include of log/log.h is added because there are too many users
depending on this transitive include.
Bug: 65843592
Test: build only
Change-Id: Ifcf2ab2a93324a242869318a5dd400e5d6944839
Diffstat (limited to 'transport/HidlTransportSupport.cpp')
-rw-r--r-- | transport/HidlTransportSupport.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/transport/HidlTransportSupport.cpp b/transport/HidlTransportSupport.cpp index 9c2bf25..b214f1a 100644 --- a/transport/HidlTransportSupport.cpp +++ b/transport/HidlTransportSupport.cpp @@ -13,9 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include <hidl/HidlTransportSupport.h> #include <hidl/HidlBinderSupport.h> +#include <hidl/HidlTransportSupport.h> +#include <hidl/Static.h> +#include <android-base/logging.h> #include <android/hidl/manager/1.0/IServiceManager.h> namespace android { @@ -41,20 +43,20 @@ status_t handleTransportPoll(int /*fd*/) { bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service, int policy, int priority) { if (service->isRemote()) { - ALOGE("Can't set scheduler policy on remote service."); + LOG(ERROR) << "Can't set scheduler policy on remote service."; return false; } if (policy != SCHED_NORMAL && policy != SCHED_FIFO && policy != SCHED_RR) { - ALOGE("Invalid scheduler policy %d", policy); + LOG(ERROR) << "Invalid scheduler policy " << policy; return false; } if (policy == SCHED_NORMAL && (priority < -20 || priority > 19)) { - ALOGE("Invalid priority for SCHED_NORMAL: %d", priority); + LOG(ERROR) << "Invalid priority for SCHED_NORMAL: " << priority; return false; } else if (priority < 1 || priority > 99) { - ALOGE("Invalid priority for real-time policy: %d", priority); + LOG(ERROR) << "Invalid priority for real-time policy: " << priority; return false; } |