Searched refs:timesB (Results 1 – 2 of 2) sorted by relevance
287 long[] timesB = null; in testAddCpuTimes() local288 assertNull(mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()291 assertArrayEquals(timesA, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()293 timesB = timesA; in testAddCpuTimes()295 assertArrayEquals(timesB, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()298 timesA = new long[timesB.length]; in testAddCpuTimes()300 timesA[i] = expected[i] - timesB[i]; in testAddCpuTimes()302 assertArrayEquals(expected, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()
524 public long[] addCpuTimes(long[] timesA, long[] timesB) { in addCpuTimes() argument525 if (timesA != null && timesB != null) { in addCpuTimes()527 timesA[i] += timesB[i]; in addCpuTimes()531 return timesA == null ? (timesB == null ? null : timesB) : timesA; in addCpuTimes()