Home
last modified time | relevance | path

Searched refs:setPowerMode (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java1534 verify(mMockPowerManager, never()).setPowerMode(anyInt(), anyBoolean()); in testSetGameState_loadingRequiresPerformanceMode()
1555 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, true); in testSetGameStateLoading_withNoDeviceConfig()
1559 verify(mMockPowerManager, never()).setPowerMode(Mode.GAME_LOADING, false); in testSetGameStateLoading_withNoDeviceConfig()
1562 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, false); in testSetGameStateLoading_withNoDeviceConfig()
1577 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, true); in testSetGameStateLoading_withDeviceConfig()
1578 verify(mMockPowerManager, never()).setPowerMode(Mode.GAME_LOADING, false); in testSetGameStateLoading_withDeviceConfig()
1584 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, false); in testSetGameStateLoading_withDeviceConfig()
1605 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, false); in testSetGameStateNotLoading()
2205 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, false); in testResetGamePowerMode()
2206 verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME, false); in testResetGamePowerMode()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDualDisplayTransactionTest.h38 injector.setPowerMode(kInnerDisplayPowerMode); in SetUp()
46 injector.setPowerMode(kOuterDisplayPowerMode); in SetUp()
DRefreshRateStatsTest.cpp80 mRefreshRateStats->setPowerMode(PowerMode::ON); in TEST_F()
89 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F()
128 mRefreshRateStats->setPowerMode(PowerMode::ON); in TEST_F()
166 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F()
DCommitAndCompositeTest.h44 .setPowerMode(hal::PowerMode::ON) in SetUp()
61 .setPowerMode(hal::PowerMode::ON) in SetUp()
DSurfaceFlinger_SetPowerModeInternalTest.cpp264 display->setPowerMode(mode); in injectDisplayWithInitialPowerMode()
288 EXPECT_CALL(*test->mComposer, setPowerMode(Display::HWC_DISPLAY_ID, mode)).Times(1); in setupComposerCallExpectations()
292 EXPECT_CALL(*test->mComposer, setPowerMode(Display::HWC_DISPLAY_ID, _)).Times(0); in setupNoComposerPowerModeCallExpectations()
376 display.mutableDisplayDevice()->setPowerMode(PowerMode::ON); in TEST_F()
406 display.mutableDisplayDevice()->setPowerMode(PowerMode::ON); in TEST_F()
DSurfaceFlinger_PowerHintTest.cpp55 mDisplay->setPowerMode(hal::PowerMode::DOZE); in TEST_F()
DTimeStatsTest.cpp530 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
552 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
568 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
574 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::OFF)); in TEST_F()
592 mTimeStats->setPowerMode(PowerMode::OFF); in TEST_F()
595 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
626 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
901 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
933 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
1102 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
[all …]
DDisplayTransactionTestHelpers.h366 .setPowerMode(kPowerMode)
385 EXPECT_CALL(*test->mComposer, setPowerMode(HWC_DISPLAY_ID, kPowerMode))
392 EXPECT_CALL(*test->mComposer, setPowerMode(HWC_DISPLAY_ID, _))
DSurfaceFlinger_DisplayModeSwitching.cpp97 .setPowerMode(hal::PowerMode::OFF) in injectOuterDisplay()
102 injector.setPowerMode(hal::PowerMode::OFF); in injectOuterDisplay()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp91 static bool setPowerMode(Mode mode, bool enabled) { in setPowerMode() function
239 return setPowerMode(static_cast<Mode>(mode), enabled); in nativeSetPowerMode()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java333 public abstract void setPowerMode(int mode, boolean enabled); in setPowerMode() method in PowerManagerInternal
DIPowerManager.aidl38 oneway void setPowerMode(int mode, boolean enabled); in setPowerMode() method
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockTimeStats.h58 MOCK_METHOD1(setPowerMode,
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h57 void setPowerMode(PowerMode mode) { in setPowerMode() function
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h178 virtual void setPowerMode(
281 void setPowerMode(
/frameworks/base/services/core/java/com/android/server/app/
DGameManagerService.java395 mPowerManagerInternal.setPowerMode(Mode.GAME_LOADING, isLoading);
419 mPowerManagerInternal.setPowerMode(Mode.GAME_LOADING, false);
1300 mPowerManagerInternal.setPowerMode(Mode.GAME_LOADING, true);
1577 mPowerManagerInternal.setPowerMode(Mode.GAME_LOADING, false);
1579 mPowerManagerInternal.setPowerMode(Mode.GAME, false);
2317 mPowerManagerInternal.setPowerMode(Mode.GAME, false);
2326 mPowerManagerInternal.setPowerMode(Mode.GAME, true);
2344 mPowerManagerInternal.setPowerMode(Mode.GAME, false);
2350 mPowerManagerInternal.setPowerMode(Mode.GAME, true);
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp106 setPowerMode(args.initialPowerMode);
170 void DisplayDevice::setPowerMode(hal::PowerMode mode) { in setPowerMode() function in android::DisplayDevice
DDisplayDevice.h174 void setPowerMode(hardware::graphics::composer::hal::PowerMode);
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java152 public void setPowerMode(int mode, boolean enabled) { in setPowerMode() method in BridgePowerManager
/frameworks/native/libs/gui/aidl/android/gui/
DISurfaceComposer.aidl138 void setPowerMode(IBinder display, int mode); in setPowerMode() method
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTaskManagerServiceTests.java477 verify(mWm.mPowerManagerInternal).setPowerMode( in testSetPowerMode()
480 verify(mWm.mPowerManagerInternal).setPowerMode( in testSetPowerMode()
488 verify(mWm.mPowerManagerInternal, never()).setPowerMode( in testSetPowerMode()
493 verify(mWm.mPowerManagerInternal).setPowerMode( in testSetPowerMode()
497 verify(mWm.mPowerManagerInternal).setPowerMode( in testSetPowerMode()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h67 MOCK_METHOD2(setPowerMode, status_t(PhysicalDisplayId, hal::PowerMode));
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h166 virtual status_t setPowerMode(PhysicalDisplayId, hal::PowerMode) = 0;
369 status_t setPowerMode(PhysicalDisplayId, hal::PowerMode mode) override;
DHWComposer.cpp610 status_t HWComposer::setPowerMode(PhysicalDisplayId displayId, hal::PowerMode mode) { in setPowerMode() function in android::impl::HWComposer
624 auto error = hwcDisplay->setPowerMode(mode); in setPowerMode()
644 auto error = hwcDisplay->setPowerMode(mode); in setPowerMode()
654 error = hwcDisplay->setPowerMode(hal::PowerMode::ON); in setPowerMode()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockHWC2.h78 MOCK_METHOD(hal::Error, setPowerMode, (hal::PowerMode), (override));

12