Home
last modified time | relevance | path

Searched refs:mBatteryAudio (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp276 mBatteryAudio.refCount = 0; in MediaPlayerService()
278 mBatteryAudio.deviceOn[i] = 0; in MediaPlayerService()
279 mBatteryAudio.lastTime[i] = 0; in MediaPlayerService()
280 mBatteryAudio.totalTime[i] = 0; in MediaPlayerService()
283 mBatteryAudio.deviceOn[SPEAKER] = 1; in MediaPlayerService()
2279 if (mBatteryAudio.deviceOn[i] != deviceOn[i]){ in addBatteryData()
2281 if (mBatteryAudio.refCount > 0) { // if playing audio in addBatteryData()
2283 mBatteryAudio.lastTime[i] += time; in addBatteryData()
2284 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2285 mBatteryAudio.lastTime[i] = 0; in addBatteryData()
[all …]
DMediaPlayerService.h276 BatteryAudioFlingerUsageInfo mBatteryAudio; variable