MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / HandleImageViewOn

Method HandleImageViewOn

src/libcec/implementations/CECCommandHandler.cpp:450–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450int CCECCommandHandler::HandleImageViewOn(const cec_command &command)
451{
452 CCECBusDevice *device = GetDevice(command.destination);
453 if (device && device->GetCurrentStatus() == CEC_DEVICE_STATUS_PRESENT)
454 {
455 if (device->GetCurrentPowerStatus() == CEC_POWER_STATUS_STANDBY ||
456 device->GetCurrentPowerStatus() == CEC_POWER_STATUS_IN_TRANSITION_ON_TO_STANDBY)
457 device->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON);
458 CCECBusDevice* tv = GetDevice(CECDEVICE_TV);
459 if (tv)
460 tv->OnImageViewOnSent(false);
461 }
462 return COMMAND_HANDLED;
463}
464
465int CCECCommandHandler::HandleMenuRequest(const cec_command &command)
466{

Callers

nothing calls this directly

Calls 4

GetCurrentStatusMethod · 0.80
GetCurrentPowerStatusMethod · 0.80
SetPowerStatusMethod · 0.80
OnImageViewOnSentMethod · 0.80

Tested by

no test coverage detected