Home
last modified time | relevance | path

Searched refs:PowerMode (Results 1 – 25 of 49) sorted by relevance

12

/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2TargetTest.cpp336 std::vector<IComposerClient::PowerMode> modes; in TEST_F()
337 modes.push_back(IComposerClient::PowerMode::OFF); in TEST_F()
338 modes.push_back(IComposerClient::PowerMode::ON_SUSPEND); in TEST_F()
339 modes.push_back(IComposerClient::PowerMode::ON); in TEST_F()
353 std::vector<IComposerClient::PowerMode> modes; in TEST_F()
355 modes.push_back(IComposerClient::PowerMode::OFF); in TEST_F()
356 modes.push_back(IComposerClient::PowerMode::OFF); in TEST_F()
364 modes.push_back(IComposerClient::PowerMode::ON); in TEST_F()
365 modes.push_back(IComposerClient::PowerMode::ON); in TEST_F()
373 modes.push_back(IComposerClient::PowerMode::ON_SUSPEND); in TEST_F()
[all …]
/hardware/interfaces/graphics/composer/2.1/vts/functional/
DVtsHalGraphicsComposerV2_1TargetTest.cpp446 mComposerClient->setPowerMode(mPrimaryDisplay, IComposerClient::PowerMode::OFF)); in TEST_F()
448 mComposerClient->setPowerMode(mPrimaryDisplay, IComposerClient::PowerMode::ON)); in TEST_F()
456 mComposerClient->setPowerMode(mPrimaryDisplay, IComposerClient::PowerMode::OFF)); in TEST_F()
458 mComposerClient->setPowerMode(mPrimaryDisplay, IComposerClient::PowerMode::ON)); in TEST_F()
539 std::vector<IComposerClient::PowerMode> modes; in TEST_F()
540 modes.push_back(IComposerClient::PowerMode::OFF); in TEST_F()
543 modes.push_back(IComposerClient::PowerMode::DOZE); in TEST_F()
544 modes.push_back(IComposerClient::PowerMode::DOZE_SUSPEND); in TEST_F()
548 modes.push_back(IComposerClient::PowerMode::ON); in TEST_F()
562 std::vector<IComposerClient::PowerMode> modes; in TEST_F()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
DComposerHal.h53 Error setPowerMode(Display display, V2_1::IComposerClient::PowerMode mode) override { in setPowerMode()
54 return setPowerMode_2_2(display, static_cast<IComposerClient::PowerMode>(mode)); in setPowerMode()
82 virtual Error setPowerMode_2_2(Display display, IComposerClient::PowerMode mode) = 0;
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/
DHwcHal.h150 Error setPowerMode_2_2(Display display, IComposerClient::PowerMode mode) override { in setPowerMode_2_2()
151 if (mode == IComposerClient::PowerMode::ON_SUSPEND) { in setPowerMode_2_2()
154 return setPowerMode(display, static_cast<V2_1::IComposerClient::PowerMode>(mode)); in setPowerMode_2_2()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display.h98 virtual HWC2::PowerMode GetLastPowerMode();
173 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode);
247 HWC2::PowerMode last_power_mode_;
Dhwc_display.cpp489 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode) { in BuildLayerStack()
499 case HWC2::PowerMode::Off: in BuildLayerStack()
505 case HWC2::PowerMode::On: in BuildLayerStack()
507 last_power_mode_ = HWC2::PowerMode::On; in BuildLayerStack()
509 case HWC2::PowerMode::Doze: in BuildLayerStack()
511 last_power_mode_ = HWC2::PowerMode::Doze; in BuildLayerStack()
513 case HWC2::PowerMode::DozeSuspend: in BuildLayerStack()
515 last_power_mode_ = HWC2::PowerMode::DozeSuspend; in BuildLayerStack()
690 HWC2::PowerMode HWCDisplay::GetLastPowerMode() { in BuildLayerStack()
1374 status = INT32(SetPowerMode(HWC2::PowerMode::On)); in BuildLayerStack()
[all …]
Dhwc_display_virtual.cpp62 status = INT32(hwc_display_virtual->SetPowerMode(HWC2::PowerMode::On)); in Create()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_display.h115 virtual HWC2::PowerMode GetLastPowerMode();
201 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode);
276 HWC2::PowerMode last_power_mode_;
Dhwc_display.cpp705 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode) { in BuildLayerStack()
715 case HWC2::PowerMode::Off: in BuildLayerStack()
724 case HWC2::PowerMode::On: in BuildLayerStack()
726 last_power_mode_ = HWC2::PowerMode::On; in BuildLayerStack()
728 case HWC2::PowerMode::Doze: in BuildLayerStack()
730 last_power_mode_ = HWC2::PowerMode::Doze; in BuildLayerStack()
732 case HWC2::PowerMode::DozeSuspend: in BuildLayerStack()
734 last_power_mode_ = HWC2::PowerMode::DozeSuspend; in BuildLayerStack()
948 HWC2::PowerMode HWCDisplay::GetLastPowerMode() { in BuildLayerStack()
1682 status = INT32(SetPowerMode(HWC2::PowerMode::On)); in BuildLayerStack()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_display.h106 virtual HWC2::PowerMode GetLastPowerMode();
188 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode);
265 HWC2::PowerMode last_power_mode_;
Dhwc_display.cpp670 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode) { in BuildLayerStack()
680 case HWC2::PowerMode::Off: in BuildLayerStack()
689 case HWC2::PowerMode::On: in BuildLayerStack()
691 last_power_mode_ = HWC2::PowerMode::On; in BuildLayerStack()
693 case HWC2::PowerMode::Doze: in BuildLayerStack()
695 last_power_mode_ = HWC2::PowerMode::Doze; in BuildLayerStack()
697 case HWC2::PowerMode::DozeSuspend: in BuildLayerStack()
699 last_power_mode_ = HWC2::PowerMode::DozeSuspend; in BuildLayerStack()
906 HWC2::PowerMode HWCDisplay::GetLastPowerMode() { in BuildLayerStack()
1573 status = INT32(SetPowerMode(HWC2::PowerMode::On)); in BuildLayerStack()
[all …]
Dhwc_display_virtual.cpp62 status = INT32(hwc_display_virtual->SetPowerMode(HWC2::PowerMode::On)); in Create()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_display.h114 virtual HWC2::PowerMode GetLastPowerMode();
200 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode);
269 HWC2::PowerMode last_power_mode_;
Dhwc_display.cpp663 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode) { in BuildLayerStack()
673 case HWC2::PowerMode::Off: in BuildLayerStack()
682 case HWC2::PowerMode::On: in BuildLayerStack()
684 last_power_mode_ = HWC2::PowerMode::On; in BuildLayerStack()
686 case HWC2::PowerMode::Doze: in BuildLayerStack()
688 last_power_mode_ = HWC2::PowerMode::Doze; in BuildLayerStack()
690 case HWC2::PowerMode::DozeSuspend: in BuildLayerStack()
692 last_power_mode_ = HWC2::PowerMode::DozeSuspend; in BuildLayerStack()
886 HWC2::PowerMode HWCDisplay::GetLastPowerMode() { in BuildLayerStack()
1589 status = INT32(SetPowerMode(HWC2::PowerMode::On)); in BuildLayerStack()
[all …]
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_display.h146 virtual HWC2::PowerMode GetCurrentPowerMode();
295 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode, bool teardown);
395 HWC2::PowerMode current_power_mode_ = HWC2::PowerMode::Off;
Dhwc_display.cpp883 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode, bool teardown) { in SetPowerMode()
893 case HWC2::PowerMode::Off: in SetPowerMode()
902 case HWC2::PowerMode::On: in SetPowerMode()
905 case HWC2::PowerMode::Doze: in SetPowerMode()
908 case HWC2::PowerMode::DozeSuspend: in SetPowerMode()
1193 HWC2::PowerMode HWCDisplay::GetCurrentPowerMode() { in GetCurrentPowerMode()
1852 status = INT32(SetPowerMode(HWC2::PowerMode::On, false /* teardown */)); in SetDisplayStatus()
1855 status = INT32(SetPowerMode(HWC2::PowerMode::On, false /* teardown */)); in SetDisplayStatus()
1859 status = INT32(SetPowerMode(HWC2::PowerMode::Off, false /* teardown */)); in SetDisplayStatus()
1862 status = INT32(SetPowerMode(HWC2::PowerMode::Off, false /* teardown */)); in SetDisplayStatus()
[all …]
/hardware/interfaces/graphics/composer/2.2/
DIComposerClient.hal30 enum PowerMode : @2.1::IComposerClient.PowerMode {
327 * All displays must support PowerMode::ON and PowerMode::OFF. Whether a
328 * display supports PowerMode::DOZE or PowerMode::DOZE_SUSPEND may be
338 setPowerMode_2_2(Display display, PowerMode mode) generates (Error error);
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_display.cpp929 HWC2::Error HWCDisplay::SetPowerMode(HWC2::PowerMode mode) { in SetPowerMode()
939 case HWC2::PowerMode::Off: in SetPowerMode()
948 case HWC2::PowerMode::On: in SetPowerMode()
950 last_power_mode_ = HWC2::PowerMode::On; in SetPowerMode()
952 case HWC2::PowerMode::Doze: in SetPowerMode()
954 last_power_mode_ = HWC2::PowerMode::Doze; in SetPowerMode()
956 case HWC2::PowerMode::DozeSuspend: in SetPowerMode()
958 last_power_mode_ = HWC2::PowerMode::DozeSuspend; in SetPowerMode()
1244 HWC2::PowerMode HWCDisplay::GetLastPowerMode() { in GetLastPowerMode()
2019 status = INT32(SetPowerMode(HWC2::PowerMode::On)); in SetDisplayStatus()
[all …]
Dhwc_display.h242 virtual HWC2::PowerMode GetLastPowerMode();
354 virtual HWC2::Error SetPowerMode(HWC2::PowerMode mode);
443 HWC2::PowerMode last_power_mode_;
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/
DHWC2On1Adapter.cpp522 mPowerMode(PowerMode::Off), in Display()
900 static bool isValid(PowerMode mode) { in isValid()
902 case PowerMode::Off: // Fall-through in isValid()
903 case PowerMode::DozeSuspend: // Fall-through in isValid()
904 case PowerMode::Doze: // Fall-through in isValid()
905 case PowerMode::On: return true; in isValid()
909 static int getHwc1PowerMode(PowerMode mode) { in getHwc1PowerMode()
911 case PowerMode::Off: return HWC_POWER_MODE_OFF; in getHwc1PowerMode()
912 case PowerMode::DozeSuspend: return HWC_POWER_MODE_DOZE_SUSPEND; in getHwc1PowerMode()
913 case PowerMode::Doze: return HWC_POWER_MODE_DOZE; in getHwc1PowerMode()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
DHWC2On1Adapter.cpp566 mPowerMode(PowerMode::Off), in Display()
949 static bool isValid(PowerMode mode) in isValid()
952 case PowerMode::Off: // Fall-through in isValid()
953 case PowerMode::DozeSuspend: // Fall-through in isValid()
954 case PowerMode::Doze: // Fall-through in isValid()
955 case PowerMode::On: return true; in isValid()
960 static int getHwc1PowerMode(PowerMode mode) in getHwc1PowerMode()
963 case PowerMode::Off: return HWC_POWER_MODE_OFF; in getHwc1PowerMode()
964 case PowerMode::DozeSuspend: return HWC_POWER_MODE_DOZE_SUSPEND; in getHwc1PowerMode()
965 case PowerMode::Doze: return HWC_POWER_MODE_DOZE; in getHwc1PowerMode()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DComposerVts.h77 void setPowerMode_2_2(Display display, IComposerClient::PowerMode mode);
/hardware/interfaces/graphics/composer/2.1/utils/vts/include/composer-vts/2.1/
DComposerVts.h110 void setPowerMode(Display display, IComposerClient::PowerMode mode);
/hardware/interfaces/graphics/composer/2.3/
DIComposerClient.hal54 * Indicates that the display supports PowerMode::DOZE and
55 * PowerMode::DOZE_SUSPEND. DOZE_SUSPEND may not provide any benefit
56 * over DOZE (see the definition of PowerMode for more information),
58 * PowerMode::ON, the device must not claim support.
60 * indicates the display supports PowerMode::DOZE and
61 * PowerMode::DOZE_SUSPEND.
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/include/hwc2on1adapter/
DHWC2On1Adapter.h240 HWC2::Error setPowerMode(HWC2::PowerMode mode);
434 HWC2::PowerMode mPowerMode;
512 auto mode = static_cast<HWC2::PowerMode>(intMode); in setPowerModeHook()

12