Merge "Check registerPassthroughServiceImplementation return status"

This commit is contained in:
TreeHugger Robot 2017-03-17 01:39:24 +00:00 committed by Android (Google) Code Review
commit e8c4983bc7

View file

@ -31,7 +31,14 @@ using android::hardware::drm::V1_0::IDrmFactory;
int main() {
ALOGD("android.hardware.drm@1.0-service starting...");
configureRpcThreadpool(8, true /* callerWillJoin */);
registerPassthroughServiceImplementation<IDrmFactory>("drm");
registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
android::status_t status =
registerPassthroughServiceImplementation<IDrmFactory>("drm");
LOG_ALWAYS_FATAL_IF(
status != android::OK,
"Error while registering drm service: %d", status);
status = registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
LOG_ALWAYS_FATAL_IF(
status != android::OK,
"Error while registering crypto service: %d", status);
joinRpcThreadpool();
}