Home
last modified time | relevance | path

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

/frameworks/native/services/powermanager/benchmarks/
DPowerHalControllerBenchmarks.cpp26 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()
DPowerHalAidlBenchmarks.cpp31 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/
DPowerHalWrapperAidlTest.cpp31 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 …]
DPowerHalWrapperHidlV1_3Test.cpp29 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()
DPowerHalWrapperHidlV1_2Test.cpp29 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()
DPowerHalWrapperHidlV1_1Test.cpp29 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()
DPowerHalWrapperHidlV1_0Test.cpp28 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()
DPowerHalControllerTest.cpp29 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/
DSurfaceFlinger_NotifyPowerBoostTest.cpp31 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/
DMockIPower.h29 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));
DMockPowerHalController.h44 MOCK_METHOD(HalResult<void>, setBoost, (aidl::android::hardware::power::Boost, int32_t),
/frameworks/native/include/powermanager/
DPowerHalWrapper.h52 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)) +
DPowerHalController.h60 virtual HalResult<void> setBoost(aidl::android::hardware::power::Boost boost,
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp34 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()
DPowerHalController.cpp114 HalResult<void> PowerHalController::setBoost(aidl::android::hardware::power::Boost boost, in setBoost()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp49 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/
DSurfaceAnimationRunnerTest.java36 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/
DVoiceInteractionSessionConnection.java50 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/
DSurfaceAnimationRunner.java36 import android.hardware.power.Boost;
359 mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, 0); in startAnimations()
DDisplayRotation.java64 import android.hardware.power.Boost;
2139 mService.mPowerManagerInternal.setPowerBoost(Boost.INTERACTION, 0);
DDisplayPolicy.java98 import android.hardware.power.Boost;
513 Boost.INTERACTION, duration); in DisplayPolicy()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp48 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/
DPowerManagerServiceTest.java74 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/
DSurfaceFlinger.cpp2128 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/
DPowerManagerService.java63 import android.hardware.power.Boost;
2138 setPowerBoostInternal(Boost.INTERACTION, 0);