|
|
|
@ -54,13 +54,15 @@ int main() { |
|
|
|
|
|
|
|
|
|
adaptiveBacklight = new AdaptiveBacklight(); |
|
|
|
|
if (adaptiveBacklight == nullptr) { |
|
|
|
|
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL AdaptiveBacklight Iface, exiting."; |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Can not create an instance of LiveDisplay HAL AdaptiveBacklight Iface, exiting."; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
displayColorCalibrationExynos = new DisplayColorCalibrationExynos(); |
|
|
|
|
if (displayColorCalibrationExynos == nullptr) { |
|
|
|
|
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL DisplayColorCalibration Iface, exiting."; |
|
|
|
|
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL DisplayColorCalibration " |
|
|
|
|
"Iface, exiting."; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -72,13 +74,15 @@ int main() { |
|
|
|
|
|
|
|
|
|
readingEnhancement = new ReadingEnhancement(); |
|
|
|
|
if (readingEnhancement == nullptr) { |
|
|
|
|
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL ReadingEnhancement Iface, exiting."; |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Can not create an instance of LiveDisplay HAL ReadingEnhancement Iface, exiting."; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sunlightEnhancementExynos = new SunlightEnhancementExynos(); |
|
|
|
|
if (sunlightEnhancementExynos == nullptr) { |
|
|
|
|
LOG(ERROR) << "Can not create an instance of LiveDisplay HAL SunlightEnhancement Iface, exiting."; |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Can not create an instance of LiveDisplay HAL SunlightEnhancement Iface, exiting."; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -87,8 +91,7 @@ int main() { |
|
|
|
|
if (adaptiveBacklight->isSupported()) { |
|
|
|
|
status = adaptiveBacklight->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for LiveDisplay HAL AdaptiveBacklight Iface (" |
|
|
|
|
LOG(ERROR) << "Could not register service for LiveDisplay HAL AdaptiveBacklight Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
@ -107,8 +110,7 @@ int main() { |
|
|
|
|
if (displayModes->isSupported()) { |
|
|
|
|
status = displayModes->registerAsService(); |
|
|
|
|
if (status != OK) { |
|
|
|
|
LOG(ERROR) |
|
|
|
|
<< "Could not register service for LiveDisplay HAL DisplayModes Iface (" |
|
|
|
|
LOG(ERROR) << "Could not register service for LiveDisplay HAL DisplayModes Iface (" |
|
|
|
|
<< status << ")"; |
|
|
|
|
goto shutdown; |
|
|
|
|
} |
|
|
|
|