Lines Matching refs:mBatteryAudio

2623     mBatteryAudio.refCount = 0;  in BatteryTracker()
2625 mBatteryAudio.deviceOn[i] = 0; in BatteryTracker()
2626 mBatteryAudio.lastTime[i] = 0; in BatteryTracker()
2627 mBatteryAudio.totalTime[i] = 0; in BatteryTracker()
2630 mBatteryAudio.deviceOn[SPEAKER] = 1; in BatteryTracker()
2663 if (mBatteryAudio.deviceOn[i] != deviceOn[i]){ in addBatteryData()
2665 if (mBatteryAudio.refCount > 0) { // if playing audio in addBatteryData()
2667 mBatteryAudio.lastTime[i] += time; in addBatteryData()
2668 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2669 mBatteryAudio.lastTime[i] = 0; in addBatteryData()
2671 mBatteryAudio.lastTime[i] = 0 - time; in addBatteryData()
2675 mBatteryAudio.deviceOn[i] = deviceOn[i]; in addBatteryData()
2685 if (mBatteryAudio.refCount == 0) { in addBatteryData()
2687 if (mBatteryAudio.deviceOn[i]) { in addBatteryData()
2688 mBatteryAudio.lastTime[i] -= time; in addBatteryData()
2693 mBatteryAudio.refCount ++; in addBatteryData()
2697 if (mBatteryAudio.refCount <= 0) { in addBatteryData()
2704 if (mBatteryAudio.refCount == 1) { in addBatteryData()
2706 if (mBatteryAudio.deviceOn[i]) { in addBatteryData()
2707 mBatteryAudio.lastTime[i] += time; in addBatteryData()
2708 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2709 mBatteryAudio.lastTime[i] = 0; in addBatteryData()
2714 mBatteryAudio.refCount --; in addBatteryData()
2786 totalTime = mBatteryAudio.totalTime[i]; in pullBatteryData()
2788 if (mBatteryAudio.deviceOn[i] in pullBatteryData()
2789 && (mBatteryAudio.lastTime[i] != 0)) { in pullBatteryData()
2790 int32_t tmpTime = mBatteryAudio.lastTime[i] + time; in pullBatteryData()
2796 mBatteryAudio.totalTime[i] = 0; in pullBatteryData()