diff options
author | 2017-01-19 15:53:00 -0800 | |
---|---|---|
committer | 2017-01-21 02:34:07 +0000 | |
commit | 5fceed6466434fd1c863628c8bb668e773d4c70f (patch) | |
tree | d4d7ef9a3417123e8154dcd44f53a37a8026b9ac | |
parent | 84b9bc0e98511fb707edb27ff0c7e885db881a7e (diff) |
vibrator 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: Ifd6c601c854a87ee60c14bb2e73d95d25236690e
-rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 7d45f86ca2..50f7b6df36 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1578,7 +1578,7 @@ int main(int argc, char *argv[]) { ::android::sp<IVibrator> vibrator = nullptr; if (do_vibrate) { - vibrator = IVibrator::getService("vibrator"); + vibrator = IVibrator::getService(); if (vibrator != nullptr) { // cancel previous vibration if any |