Searched refs:timesB (Results 1 – 2 of 2) sorted by relevance
291 long[] timesB = null; in testAddCpuTimes() local292 assertNull(mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()295 assertArrayEquals(timesA, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()297 timesB = timesA; in testAddCpuTimes()299 assertArrayEquals(timesB, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()302 timesA = new long[timesB.length]; in testAddCpuTimes()304 timesA[i] = expected[i] - timesB[i]; in testAddCpuTimes()306 assertArrayEquals(expected, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()
561 public long[] addCpuTimes(long[] timesA, long[] timesB) { in addCpuTimes() argument562 if (timesA != null && timesB != null) { in addCpuTimes()564 timesA[i] += timesB[i]; in addCpuTimes()568 return timesA == null ? (timesB == null ? null : timesB) : timesA; in addCpuTimes()