Searched refs:timesA (Results 1 – 2 of 2) sorted by relevance
286 long[] timesA = null; in testAddCpuTimes() local288 assertNull(mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()290 timesA = new long[] {34, 23, 45, 24}; in testAddCpuTimes()291 assertArrayEquals(timesA, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()293 timesB = timesA; in testAddCpuTimes()294 timesA = null; in testAddCpuTimes()295 assertArrayEquals(timesB, mBatteryStatsImpl.addCpuTimes(timesA, timesB)); in testAddCpuTimes()298 timesA = new long[timesB.length]; in testAddCpuTimes()299 for (int i = 0; i < timesA.length; ++i) { in testAddCpuTimes()300 timesA[i] = expected[i] - timesB[i]; in testAddCpuTimes()[all …]
524 public long[] addCpuTimes(long[] timesA, long[] timesB) { in addCpuTimes() argument525 if (timesA != null && timesB != null) { in addCpuTimes()526 for (int i = timesA.length - 1; i >= 0; --i) { in addCpuTimes()527 timesA[i] += timesB[i]; in addCpuTimes()529 return timesA; in addCpuTimes()531 return timesA == null ? (timesB == null ? null : timesB) : timesA; in addCpuTimes()