Searched refs:bsi (Results 1 – 4 of 4) sorted by relevance
34 TestServ(MockBatteryStatsImpl bsi) { in TestServ() argument35 super(bsi); in TestServ()95 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testConstructAndDetach() local97 TestServ serv = new TestServ(bsi); in testConstructAndDetach()98 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()101 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()109 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testParceling() local110 TestServ orig = new TestServ(bsi); in testParceling()118 TestServ serv = new TestServ(bsi); in testParceling()138 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testLaunchTimeToNow() local[all …]
946 ssize_t bsi = mBufferSlots.indexOfKey(bi.mSlot); in acquireBuffer_l() local949 ALOGV("acquireBuffer_l: %s buffer slot %d", bsi < 0 ? "setting" : "UPDATING", bi.mSlot); in acquireBuffer_l()950 if (bsi >= 0) { in acquireBuffer_l()951 discardBufferAtSlotIndex_l(bsi); in acquireBuffer_l()953 bsi = mBufferSlots.add(bi.mSlot, nullptr); in acquireBuffer_l()956 mBufferSlots.replaceValueAt(bsi, buffer); in acquireBuffer_l()958 buffer = mBufferSlots.valueAt(bsi); in acquireBuffer_l()1078 ssize_t bsi = mBufferSlots.indexOfKey(i); in discardBufferInSlot_l() local1079 if (bsi < 0) { in discardBufferInSlot_l()1082 discardBufferAtSlotIndex_l(bsi); in discardBufferInSlot_l()[all …]
292 void discardBufferAtSlotIndex_l(ssize_t bsi);
18105 final BatteryStatsImpl bsi = mBatteryStatsService.getActiveStatistics(); in updateForegroundTimeIfOnBattery() local18106 synchronized (bsi) { in updateForegroundTimeIfOnBattery()18108 bsi.getProcessStatsLocked(uid, packageName); in updateForegroundTimeIfOnBattery()