Commit graph

5 commits

Author SHA1 Message Date
Connor O'Brien
bbcf719f9a libmemtrack: check return value for getMemory()
libmemtrack does not report an error when the binderized memtrack
service dies during a call to getMemory, so a crash in the memtrack
service can result in the calling process (e.g. system_server)
crashing as well. Add an error check to avoid this problem.

Bug: 35728498
Test: adb shell kill -9 $(adb shell pidof android.hardware.memtrack@1.0-service)
Change-Id: I852d8dfcbc1c92a95f8fe249b607dea8eb01f06a
Signed-off-by: Connor O'Brien <connoro@google.com>
2017-02-27 12:21:39 -08:00
Chris Phoenix
bb1083ed6c memtrack HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

Bug: 33844934
Change-Id: I6cf3f24500228985ddf581ad5a98886585a3fcfe
2017-01-23 14:00:27 -08:00
Mark Salyzyn
b4c16851fe liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
2017-01-11 16:12:13 -08:00
Yifan Hong
b100749f6e Update to use the correct logging library.
Test: compiles
Change-Id: I0e51e7e7866d2d01f04a05c63c9e1d1846b51f71
2016-12-03 15:14:13 +00:00
Ruchi Kandoi
6e5739d671 libmemtrack: Add HIDL support for Memtrack
Bug: 31180823
Change-Id: I9be61e17028baa218e7b4aea9383109360687a30
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-10 14:11:18 -07:00