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.java61 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(new MockClocks()); in testNoteBluetoothScanResultLocked() local
62 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteBluetoothScanResultLocked()
63 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked()
65 bi.noteBluetoothScanResultsFromSourceLocked(WS, 1); in testNoteBluetoothScanResultLocked()
66 bi.noteBluetoothScanResultsFromSourceLocked(WS, 100); in testNoteBluetoothScanResultLocked()
68 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked()
70 BatteryStats.Counter bgCntr = bi.getUidStats().get(UID).getBluetoothScanResultBgCounter(); in testNoteBluetoothScanResultLocked()
75 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked()
76 bi.noteBluetoothScanResultsFromSourceLocked(WS, 17); in testNoteBluetoothScanResultLocked()
78 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 …]
/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/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/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/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/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.java377 BarringInfo bi = (BarringInfo) rhs; in equals()
379 if (hashCode() != bi.hashCode()) return false; in equals()
381 if (mBarringServiceInfos.size() != bi.mBarringServiceInfos.size()) return false; in equals()
384 if (mBarringServiceInfos.keyAt(i) != bi.mBarringServiceInfos.keyAt(i)) return false; in equals()
386 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/opt/telephony/src/java/com/android/internal/telephony/
DRadioResponse.java2662 BarringInfo bi = BarringInfo.create(cellIdentity, barringInfos); in getBarringInfoResponse() local
2664 sendMessageResponse(rr.mResult, bi); in getBarringInfoResponse()
2667 new AsyncResult(null, bi, null)); in getBarringInfoResponse()
2669 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.java4131 BigInteger bi = new BigInteger(key.getEncoded()); in handleExecute() local
4132 hashedKey = bi.toString(16); in handleExecute()
/frameworks/opt/setupwizard/tools/docs/
Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ ...
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...