Home
last modified time | relevance | path

Searched refs:bsi (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsServTest.java34 TestServ(MockBatteryStatsImpl bsi) { in TestServ() argument
35 super(bsi); in TestServ()
95 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testConstructAndDetach() local
97 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() local
110 TestServ orig = new TestServ(bsi); in testParceling()
118 TestServ serv = new TestServ(bsi); in testParceling()
138 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testLaunchTimeToNow() local
[all …]
/frameworks/av/media/libstagefright/bqhelper/
DGraphicBufferSource.cpp946 ssize_t bsi = mBufferSlots.indexOfKey(bi.mSlot); in acquireBuffer_l() local
949 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() local
1079 if (bsi < 0) { in discardBufferInSlot_l()
1082 discardBufferAtSlotIndex_l(bsi); in discardBufferInSlot_l()
[all …]
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
DGraphicBufferSource.h292 void discardBufferAtSlotIndex_l(ssize_t bsi);
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java18105 final BatteryStatsImpl bsi = mBatteryStatsService.getActiveStatistics(); in updateForegroundTimeIfOnBattery() local
18106 synchronized (bsi) { in updateForegroundTimeIfOnBattery()
18108 bsi.getProcessStatsLocked(uid, packageName); in updateForegroundTimeIfOnBattery()