Home
last modified time | relevance | path

Searched refs:bsi (Results 1 – 5 of 5) 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/core/java/com/android/internal/os/
DBatteryStatsImpl.java6715 public Uid(BatteryStatsImpl bsi, int uid) { in Uid() argument
6716 mBsi = bsi; in Uid()
8701 public Wakelock(BatteryStatsImpl bsi, Uid uid) { in Wakelock() argument
8702 mBsi = bsi; in Wakelock()
8815 public Sensor(BatteryStatsImpl bsi, Uid uid, int handle) { in Sensor() argument
8816 mBsi = bsi; in Sensor()
8927 public Proc(BatteryStatsImpl bsi, String name) { in Proc() argument
8928 mBsi = bsi; in Proc()
9123 public Pkg(BatteryStatsImpl bsi) { in Pkg() argument
9124 mBsi = bsi; in Pkg()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java18113 final BatteryStatsImpl bsi = mBatteryStatsService.getActiveStatistics(); in updateForegroundTimeIfOnBattery() local
18114 synchronized (bsi) { in updateForegroundTimeIfOnBattery()
18116 bsi.getProcessStatsLocked(uid, packageName); in updateForegroundTimeIfOnBattery()