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