Merge changes I85e6c989,Ie4ecc502,I1f8cfbb7

* changes:
  logd: build liblogd and its test on host
  logd: add LogBufferTest.cpp
  liblog: remove unused log_time functions, inline the others