| 80 | |
| 81 | |
| 82 | PowerManager::PowerManager() |
| 83 | : mAveragedT3122(gConfig.getNum("GSM.Radio.PowerManager.TargetT3122")) |
| 84 | , mAtten(gConfig.getNum("GSM.Radio.PowerManager.MaxAttenDB")) |
| 85 | , mNextSampleIndex(0) |
| 86 | { |
| 87 | // We don't actually set any power here, since the radio may not exist yet. |
| 88 | assert(gConfig.getNum("GSM.Radio.PowerManager.NumSamples")<100); |
| 89 | bzero(mSamples,sizeof(mSamples)); |
| 90 | LOG(INFO) << "setting initial power to -" << mAtten << " dB"; |
| 91 | } |
| 92 | |
| 93 | |
| 94 |
nothing calls this directly
no outgoing calls
no test coverage detected