/frameworks/native/services/powermanager/benchmarks/ |
D | PowerHalControllerBenchmarks.cpp | 26 using aidl::android::hardware::power::Boost; 35 static constexpr int64_t FIRST_BOOST = static_cast<int64_t>(Boost::INTERACTION); 36 static constexpr int64_t LAST_BOOST = static_cast<int64_t>(Boost::CAMERA_SHOT); 92 Boost boost = static_cast<Boost>(state.range(0)); in BM_PowerHalControllerBenchmarks_setBoost() 97 Boost boost = static_cast<Boost>(state.range(0)); in BM_PowerHalControllerBenchmarks_setBoostCached()
|
D | PowerHalAidlBenchmarks.cpp | 31 using aidl::android::hardware::power::Boost; 43 static constexpr int64_t FIRST_BOOST = static_cast<int64_t>(Boost::INTERACTION); 44 static constexpr int64_t LAST_BOOST = static_cast<int64_t>(Boost::CAMERA_SHOT); 141 Boost boost = static_cast<Boost>(state.range(0)); in BM_PowerHalAidlBenchmarks_isBoostSupported() 152 Boost boost = static_cast<Boost>(state.range(0)); in BM_PowerHalAidlBenchmarks_setBoost()
|
/frameworks/native/services/powermanager/tests/ |
D | PowerHalWrapperAidlTest.cpp | 31 using aidl::android::hardware::power::Boost; 51 MOCK_METHOD(ndk::ScopedAStatus, isBoostSupported, (Boost boost, bool* ret), (override)); 52 MOCK_METHOD(ndk::ScopedAStatus, setBoost, (Boost boost, int32_t durationMs), (override)); 102 EXPECT_CALL(*mMockHal.get(), isBoostSupported(Eq(Boost::DISPLAY_UPDATE_IMMINENT), _)) in TEST_F() 106 EXPECT_CALL(*mMockHal.get(), setBoost(Eq(Boost::DISPLAY_UPDATE_IMMINENT), Eq(100))) in TEST_F() 111 auto result = mWrapper->setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 100); in TEST_F() 118 EXPECT_CALL(*mMockHal.get(), isBoostSupported(Eq(Boost::INTERACTION), _)) in TEST_F() 122 EXPECT_CALL(*mMockHal.get(), setBoost(Eq(Boost::INTERACTION), Eq(100))) in TEST_F() 125 EXPECT_CALL(*mMockHal.get(), isBoostSupported(Eq(Boost::DISPLAY_UPDATE_IMMINENT), _)) in TEST_F() 130 auto result = mWrapper->setBoost(Boost::INTERACTION, 100); in TEST_F() [all …]
|
D | PowerHalWrapperHidlV1_3Test.cpp | 29 using aidl::android::hardware::power::Boost; 98 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 100 result = mWrapper->setBoost(Boost::CAMERA_SHOT, 500); in TEST_F() 102 result = mWrapper->setBoost(Boost::CAMERA_LAUNCH, 300); in TEST_F() 113 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 122 auto result = mWrapper->setBoost(Boost::ML_ACC, 10); in TEST_F() 124 result = mWrapper->setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 10); in TEST_F() 126 result = mWrapper->setBoost(Boost::AUDIO_LAUNCH, 10); in TEST_F()
|
D | PowerHalWrapperHidlV1_2Test.cpp | 29 using aidl::android::hardware::power::Boost; 93 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 95 result = mWrapper->setBoost(Boost::CAMERA_SHOT, 500); in TEST_F() 97 result = mWrapper->setBoost(Boost::CAMERA_LAUNCH, 300); in TEST_F() 108 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 117 auto result = mWrapper->setBoost(Boost::ML_ACC, 10); in TEST_F() 119 result = mWrapper->setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 10); in TEST_F() 121 result = mWrapper->setBoost(Boost::AUDIO_LAUNCH, 10); in TEST_F()
|
D | PowerHalWrapperHidlV1_1Test.cpp | 29 using aidl::android::hardware::power::Boost; 80 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 91 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 100 auto result = mWrapper->setBoost(Boost::CAMERA_LAUNCH, 10); in TEST_F() 102 result = mWrapper->setBoost(Boost::ML_ACC, 10); in TEST_F() 104 result = mWrapper->setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 10); in TEST_F()
|
D | PowerHalWrapperHidlV1_0Test.cpp | 28 using aidl::android::hardware::power::Boost; 74 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 85 auto result = mWrapper->setBoost(Boost::INTERACTION, 1000); in TEST_F() 94 auto result = mWrapper->setBoost(Boost::CAMERA_LAUNCH, 10); in TEST_F() 96 result = mWrapper->setBoost(Boost::ML_ACC, 10); in TEST_F() 98 result = mWrapper->setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 10); in TEST_F()
|
D | PowerHalControllerTest.cpp | 29 using aidl::android::hardware::power::Boost; 136 auto result = halController.setBoost(Boost::INTERACTION, 1000); in TEST_F() 161 auto result = mHalController->setBoost(Boost::INTERACTION, 100); in TEST_F() 184 auto result = mHalController->setBoost(Boost::INTERACTION, 1000); in TEST_F() 206 auto result = mHalController->setBoost(Boost::CAMERA_LAUNCH, 1000); in TEST_F() 227 auto result = mHalController->setBoost(Boost::INTERACTION, 1000); in TEST_F() 255 auto result = mHalController->setBoost(Boost::INTERACTION, 1000); in TEST_F()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_NotifyPowerBoostTest.cpp | 31 using aidl::android::hardware::power::Boost; 63 EXPECT_EQ(NO_ERROR, mFlinger.notifyPowerBoost(static_cast<int32_t>(Boost::CAMERA_SHOT))); in TEST_F() 73 EXPECT_EQ(NO_ERROR, mFlinger.notifyPowerBoost(static_cast<int32_t>(Boost::INTERACTION))); in TEST_F()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockIPower.h | 29 using aidl::android::hardware::power::Boost; 45 MOCK_METHOD(ndk::ScopedAStatus, isBoostSupported, (Boost boost, bool* ret), (override)); 46 MOCK_METHOD(ndk::ScopedAStatus, setBoost, (Boost boost, int32_t durationMs), (override));
|
D | MockPowerHalController.h | 44 MOCK_METHOD(HalResult<void>, setBoost, (aidl::android::hardware::power::Boost, int32_t),
|
/frameworks/native/include/powermanager/ |
D | PowerHalWrapper.h | 52 virtual HalResult<void> setBoost(aidl::android::hardware::power::Boost boost, 74 HalResult<void> setBoost(aidl::android::hardware::power::Boost boost, 100 HalResult<void> setBoost(aidl::android::hardware::power::Boost boost, 128 HalResult<void> setBoost(aidl::android::hardware::power::Boost boost, 158 HalResult<void> setBoost(aidl::android::hardware::power::Boost boost, 184 *(ndk::enum_range<aidl::android::hardware::power::Boost>().end() - 1)) +
|
D | PowerHalController.h | 60 virtual HalResult<void> setBoost(aidl::android::hardware::power::Boost boost,
|
/frameworks/native/services/powermanager/ |
D | PowerHalWrapper.cpp | 34 HalResult<void> EmptyHalWrapper::setBoost(Aidl::Boost boost, int32_t durationMs) { in setBoost() 82 HalResult<void> HidlHalWrapperV1_0::setBoost(Aidl::Boost boost, int32_t durationMs) { in setBoost() 83 if (boost == Aidl::Boost::INTERACTION) { in setBoost() 145 HalResult<void> HidlHalWrapperV1_2::setBoost(Aidl::Boost boost, int32_t durationMs) { in setBoost() 147 case Aidl::Boost::CAMERA_SHOT: in setBoost() 149 case Aidl::Boost::CAMERA_LAUNCH: in setBoost() 189 HalResult<void> AidlHalWrapper::setBoost(Aidl::Boost boost, int32_t durationMs) { in setBoost()
|
D | PowerHalController.cpp | 114 HalResult<void> PowerHalController::setBoost(aidl::android::hardware::power::Boost boost, in setBoost()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_power_PowerManagerService.cpp | 49 using aidl::android::hardware::power::Boost; 86 static void setPowerBoost(Boost boost, int32_t durationMs) { in setPowerBoost() 234 setPowerBoost(static_cast<Boost>(boost), durationMs); in nativeSetPowerBoost()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceAnimationRunnerTest.java | 36 import android.hardware.power.Boost; 201 verify(mMockPowerManager).setPowerBoost(eq(Boost.INTERACTION), eq(0)); in testPowerBoost()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionSessionConnection.java | 50 import android.hardware.power.Boost; 169 mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, BOOST_TIMEOUT_MS); in run() 175 mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, /* durationMs */ -1); in run() 552 mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, /* durationMs */ -1); in hideLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimationRunner.java | 36 import android.hardware.power.Boost; 359 mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, 0); in startAnimations()
|
D | DisplayRotation.java | 64 import android.hardware.power.Boost; 2139 mService.mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, 0);
|
D | DisplayPolicy.java | 98 import android.hardware.power.Boost; 513 Boost.INTERACTION, duration); in DisplayPolicy()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 48 using aidl::android::hardware::power::Boost; 171 auto ret = getPowerHal().setBoost(Boost::DISPLAY_UPDATE_IMMINENT, 0); in notifyDisplayUpdateImminentAndCpuReset()
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 74 import android.hardware.power.Boost; 1998 mService.getBinderServiceInstance().setPowerBoost(Boost.INTERACTION, 1234); in testSetPowerBoost_redirectsCallToNativeWrapper() 2000 verify(mNativeWrapperMock).nativeSetPowerBoost(eq(Boost.INTERACTION), eq(1234)); in testSetPowerBoost_redirectsCallToNativeWrapper()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 2128 using aidl::android::hardware::power::Boost; in notifyPowerBoost() 2129 Boost powerBoost = static_cast<Boost>(boostId); in notifyPowerBoost() 2131 if (powerBoost == Boost::INTERACTION) { in notifyPowerBoost()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 63 import android.hardware.power.Boost; 2138 setPowerBoostInternal(Boost.INTERACTION, 0);
|