Home
last modified time | relevance | path

Searched refs:bi (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java63 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(new MockClocks()); in testNoteBluetoothScanResultLocked() local
64 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteBluetoothScanResultLocked()
65 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked()
67 bi.noteBluetoothScanResultsFromSourceLocked(WS, 1); in testNoteBluetoothScanResultLocked()
68 bi.noteBluetoothScanResultsFromSourceLocked(WS, 100); in testNoteBluetoothScanResultLocked()
70 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked()
72 BatteryStats.Counter bgCntr = bi.getUidStats().get(UID).getBluetoothScanResultBgCounter(); in testNoteBluetoothScanResultLocked()
77 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked()
78 bi.noteBluetoothScanResultsFromSourceLocked(WS, 17); in testNoteBluetoothScanResultLocked()
80 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked()
[all …]
DBatteryStatsSensorTest.java38 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSensorStartStop() local
39 bi.mForceOnBattery = true; in testSensorStartStop()
42 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop()
43 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_CACHED_EMPTY); in testSensorStartStop()
44 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testSensorStartStop()
45 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop()
48 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop()
50 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); in testSensorStartStop()
51 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop()
52 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop()
[all …]
DBatteryStatsBackgroundStatsTest.java42 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testBgTimeBase() local
45 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryBackgroundTimeBase(UID); in testBgTimeBase()
50 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
57 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
64 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testBgTimeBase()
71 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase()
79 bi.updateTimeBasesLocked(true, Display.STATE_OFF, cur, cur); // on battery (again) in testBgTimeBase()
86 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too in testBgTimeBase()
93 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
94 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
[all …]
DBatteryStatsBinderCallStatsTest.java50 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteBinderCallStats() local
63 bi.noteBinderCallStats(workSourceUid, 42, callStats); in testNoteBinderCallStats()
73 bi.noteBinderCallStats(workSourceUid, 8, callStats); in testNoteBinderCallStats()
75 BatteryStatsImpl.Uid uid = bi.getUidStatsLocked(workSourceUid); in testNoteBinderCallStats()
93 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testProportionalSystemServiceUsage_noStatsForSomeMethods() local
115 bi.noteBinderCallStats(workSourceUid1, 65, callStats); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
124 bi.noteBinderCallStats(workSourceUid2, 40, callStats); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
128 bi.noteBinderCallStats(workSourceUid3, 50, callStats); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
130 bi.updateSystemServiceCallStats(); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
132 double prop1 = bi.getUidStatsLocked(workSourceUid1).getProportionalSystemServiceUsage(); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
[all …]
/frameworks/av/media/libstagefright/
DFrameCaptureLayer.cpp67 bool isHdrY410(const BufferItem &bi) { in isHdrY410() argument
68 ui::Dataspace dataspace = translateDataspace(static_cast<ui::Dataspace>(bi.mDataSpace)); in isHdrY410()
72 bi.mGraphicBuffer->getPixelFormat() == HAL_PIXEL_FORMAT_RGBA_1010102); in isHdrY410()
76 BufferLayer(const BufferItem &bi) : mBufferItem(bi) {} in BufferLayer()
164 BufferItem bi; in capture() local
165 status_t err = acquireBuffer(&bi); in capture()
180 new BufferLayer(bi), sourceCrop, buffer); in capture()
185 (void)releaseBuffer(bi); in capture()
216 status_t FrameCaptureLayer::acquireBuffer(BufferItem *bi) { in acquireBuffer() argument
231 status_t err = mConsumer->acquireBuffer(bi, 0); in acquireBuffer()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dshadows.rscript57 int bi = rgb.b;
61 iMax = max (ri, bi);
62 iMin = min (gi, bi);
64 iMax = max (gi, bi);
65 iMin = min (ri, bi);
83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
87 else // (bi == iMax )
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rscript57 int bi = rgb.b;
61 iMax = max (ri, bi);
62 iMin = min (gi, bi);
64 iMax = max (gi, bi);
65 iMin = min (ri, bi);
83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
87 else // (bi == iMax )
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rscript57 int bi = rgb.b;
61 iMax = max (ri, bi);
62 iMin = min (gi, bi);
64 iMax = max (gi, bi);
65 iMin = min (ri, bi);
83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
87 else // (bi == iMax )
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dshadows.rscript57 int bi = rgb.b;
61 iMax = max (ri, bi);
62 iMin = min (gi, bi);
64 iMax = max (gi, bi);
65 iMin = min (ri, bi);
83 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
87 else // (bi == iMax )
/frameworks/av/media/libstagefright/include/
DFrameCaptureLayer.h69 status_t acquireBuffer(BufferItem *bi);
70 status_t releaseBuffer(const BufferItem &bi);
/frameworks/base/telephony/java/android/telephony/
DBarringInfo.java376 BarringInfo bi = (BarringInfo) rhs; in equals()
378 if (hashCode() != bi.hashCode()) return false; in equals()
380 if (mBarringServiceInfos.size() != bi.mBarringServiceInfos.size()) return false; in equals()
383 if (mBarringServiceInfos.keyAt(i) != bi.mBarringServiceInfos.keyAt(i)) return false; in equals()
385 bi.mBarringServiceInfos.valueAt(i))) { in equals()
/frameworks/av/media/libstagefright/bqhelper/
DGraphicBufferSource.cpp953 BufferItem bi; in acquireBuffer_l() local
954 status_t err = mConsumer->acquireBuffer(&bi, 0); in acquireBuffer_l()
967 ssize_t bsi = mBufferSlots.indexOfKey(bi.mSlot); in acquireBuffer_l()
968 if (bi.mGraphicBuffer != NULL) { in acquireBuffer_l()
970 ALOGV("acquireBuffer_l: %s buffer slot %d", bsi < 0 ? "setting" : "UPDATING", bi.mSlot); in acquireBuffer_l()
974 bsi = mBufferSlots.add(bi.mSlot, nullptr); in acquireBuffer_l()
976 buffer = std::make_shared<CachedBuffer>(bi.mSlot, bi.mGraphicBuffer); in acquireBuffer_l()
981 int64_t frameNum = bi.mFrameNumber; in acquireBuffer_l()
1004 bi.mFence); in acquireBuffer_l()
1005 VideoBuffer videoBuffer{acquiredBuffer, bi.mTimestamp, bi.mDataSpace}; in acquireBuffer_l()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java784 int bi = (int)(mask_average[3] & 0xFF); in process() local
789 bi, DEFAULT_LEARNING_DONE_THRESHOLD)); in process()
792 if (bi >= DEFAULT_LEARNING_DONE_THRESHOLD) { in process()
/frameworks/base/services/core/java/com/android/server/wm/
DLockTaskController.java946 final Intent bi = mLockTaskModeTasks.get(i).getBaseIntent(); in isBaseOfLockedTask() local
947 if (bi != null && packageName.equals(bi.getComponent() in isBaseOfLockedTask()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioResponse.java3124 BarringInfo bi = BarringInfo.create(cellIdentity, barringInfos); in getBarringInfoResponse() local
3126 sendMessageResponse(rr.mResult, bi); in getBarringInfoResponse()
3129 new AsyncResult(null, bi, null)); in getBarringInfoResponse()
3131 mRil.processResponseDone(rr, responseInfo, bi); in getBarringInfoResponse()
/frameworks/base/tools/aapt/
DResourceTable.cpp4662 for (size_t bi = 0; bi < bagCount; bi++) { in modifyForCompat() local
4663 const uint32_t attrId = getResId(bag.keyAt(bi), &attr16); in modifyForCompat()
4666 AaptUtil::appendValue(attributesToRemove, sdkLevel, bag.keyAt(bi)); in modifyForCompat()
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_with_password146 � [�<��͝�0�bJ�d�-�M��*�1/B[et�b�ㆁ�p�biL�M�5��@��d��V%�u�l��5��UK#�q��dT�|��IS�5It� �g2…
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java4245 BigInteger bi = new BigInteger(key.getEncoded()); in handleExecute() local
4246 hashedKey = bi.toString(16); in handleExecute()