|
|
@ -58,6 +58,7 @@ Power::Power() |
|
|
|
mSustainedPerfModeOn(false), |
|
|
|
mSustainedPerfModeOn(false), |
|
|
|
mCameraStreamingMode(false), |
|
|
|
mCameraStreamingMode(false), |
|
|
|
mReady(false), |
|
|
|
mReady(false), |
|
|
|
|
|
|
|
mDoubleTapEnabled(false), |
|
|
|
mNumPerfProfiles(0), |
|
|
|
mNumPerfProfiles(0), |
|
|
|
mCurrentPerfProfile(PowerProfile::BALANCED) { |
|
|
|
mCurrentPerfProfile(PowerProfile::BALANCED) { |
|
|
|
mInitThread = std::thread([this]() { |
|
|
|
mInitThread = std::thread([this]() { |
|
|
@ -120,7 +121,6 @@ Power::Power() |
|
|
|
setProfile(PowerProfile::HIGH_PERFORMANCE); |
|
|
|
setProfile(PowerProfile::HIGH_PERFORMANCE); |
|
|
|
mCurrentPerfProfile = PowerProfile::HIGH_PERFORMANCE; |
|
|
|
mCurrentPerfProfile = PowerProfile::HIGH_PERFORMANCE; |
|
|
|
} |
|
|
|
} |
|
|
|
mDoubleTapEnabled = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Now start to take powerhint
|
|
|
|
// Now start to take powerhint
|
|
|
|
mReady.store(true); |
|
|
|
mReady.store(true); |
|
|
|