Lines Matching refs:mBatteryAudio

2796     mBatteryAudio.refCount = 0;  in BatteryTracker()
2798 mBatteryAudio.deviceOn[i] = 0; in BatteryTracker()
2799 mBatteryAudio.lastTime[i] = 0; in BatteryTracker()
2800 mBatteryAudio.totalTime[i] = 0; in BatteryTracker()
2803 mBatteryAudio.deviceOn[SPEAKER] = 1; in BatteryTracker()
2836 if (mBatteryAudio.deviceOn[i] != deviceOn[i]){ in addBatteryData()
2838 if (mBatteryAudio.refCount > 0) { // if playing audio in addBatteryData()
2840 mBatteryAudio.lastTime[i] += time; in addBatteryData()
2841 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2842 mBatteryAudio.lastTime[i] = 0; in addBatteryData()
2844 mBatteryAudio.lastTime[i] = 0 - time; in addBatteryData()
2848 mBatteryAudio.deviceOn[i] = deviceOn[i]; in addBatteryData()
2858 if (mBatteryAudio.refCount == 0) { in addBatteryData()
2860 if (mBatteryAudio.deviceOn[i]) { in addBatteryData()
2861 mBatteryAudio.lastTime[i] -= time; in addBatteryData()
2866 mBatteryAudio.refCount ++; in addBatteryData()
2870 if (mBatteryAudio.refCount <= 0) { in addBatteryData()
2877 if (mBatteryAudio.refCount == 1) { in addBatteryData()
2879 if (mBatteryAudio.deviceOn[i]) { in addBatteryData()
2880 mBatteryAudio.lastTime[i] += time; in addBatteryData()
2881 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2882 mBatteryAudio.lastTime[i] = 0; in addBatteryData()
2887 mBatteryAudio.refCount --; in addBatteryData()
2959 totalTime = mBatteryAudio.totalTime[i]; in pullBatteryData()
2961 if (mBatteryAudio.deviceOn[i] in pullBatteryData()
2962 && (mBatteryAudio.lastTime[i] != 0)) { in pullBatteryData()
2963 int32_t tmpTime = mBatteryAudio.lastTime[i] + time; in pullBatteryData()
2969 mBatteryAudio.totalTime[i] = 0; in pullBatteryData()