Lines Matching refs:mBatteryAudio
221 mBatteryAudio.refCount = 0;
223 mBatteryAudio.deviceOn[i] = 0;
224 mBatteryAudio.lastTime[i] = 0;
225 mBatteryAudio.totalTime[i] = 0;
228 mBatteryAudio.deviceOn[SPEAKER] = 1;
1740 if (mBatteryAudio.deviceOn[i] != deviceOn[i]){
1742 if (mBatteryAudio.refCount > 0) { // if playing audio
1744 mBatteryAudio.lastTime[i] += time;
1745 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i];
1746 mBatteryAudio.lastTime[i] = 0;
1748 mBatteryAudio.lastTime[i] = 0 - time;
1752 mBatteryAudio.deviceOn[i] = deviceOn[i];
1762 if (mBatteryAudio.refCount == 0) {
1764 if (mBatteryAudio.deviceOn[i]) {
1765 mBatteryAudio.lastTime[i] -= time;
1770 mBatteryAudio.refCount ++;
1774 if (mBatteryAudio.refCount <= 0) {
1781 if (mBatteryAudio.refCount == 1) {
1783 if (mBatteryAudio.deviceOn[i]) {
1784 mBatteryAudio.lastTime[i] += time;
1785 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i];
1786 mBatteryAudio.lastTime[i] = 0;
1791 mBatteryAudio.refCount --;
1863 totalTime = mBatteryAudio.totalTime[i];
1865 if (mBatteryAudio.deviceOn[i]
1866 && (mBatteryAudio.lastTime[i] != 0)) {
1867 int32_t tmpTime = mBatteryAudio.lastTime[i] + time;
1873 mBatteryAudio.totalTime[i] = 0;