|
|
|
@ -74,9 +74,8 @@ int main() { |
|
|
|
|
if (gloveMode->isSupported()) { |
|
|
|
|
status = gloveMode->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for Touch HAL GloveMode Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
LOG(ERROR) << "Could not register service for Touch HAL GloveMode Iface (" << status |
|
|
|
|
<< ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -84,9 +83,8 @@ int main() { |
|
|
|
|
if (keyDisabler->isSupported()) { |
|
|
|
|
status = keyDisabler->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for Touch HAL KeyDisabler Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
LOG(ERROR) << "Could not register service for Touch HAL KeyDisabler Iface (" << status |
|
|
|
|
<< ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -94,9 +92,8 @@ int main() { |
|
|
|
|
if (stylusMode->isSupported()) { |
|
|
|
|
status = stylusMode->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for Touch HAL StylusMode Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
LOG(ERROR) << "Could not register service for Touch HAL StylusMode Iface (" << status |
|
|
|
|
<< ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -104,16 +101,15 @@ int main() { |
|
|
|
|
if (touchscreenGesture->isSupported()) { |
|
|
|
|
status = touchscreenGesture->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for Touch HAL TouchscreenGesture Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
LOG(ERROR) << "Could not register service for Touch HAL TouchscreenGesture Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LOG(INFO) << "Touch HAL service is ready."; |
|
|
|
|
joinRpcThreadpool(); |
|
|
|
|
// Should not pass this line
|
|
|
|
|
// Should not pass this line
|
|
|
|
|
|
|
|
|
|
shutdown: |
|
|
|
|
// In normal operation, we don't expect the thread pool to shutdown
|
|
|
|
|