Home
last modified time | relevance | path

Searched refs:newBuf (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DBitwiseOutputStream.java69 byte[] newBuf = new byte[len]; in toByteArray()
70 System.arraycopy(mBuf, 0, newBuf, 0, len); in toByteArray()
71 return newBuf; in toByteArray()
81 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand()
82 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); in possExpand()
83 mBuf = newBuf; in possExpand()
84 mEnd = newBuf.length << 3; in possExpand()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransaction_test.cpp146 sp<GraphicBuffer> newBuf; in TEST_F() local
147 ASSERT_EQ(OK, producer->requestBuffer(slot, &newBuf)); in TEST_F()
148 ASSERT_NE(nullptr, newBuf.get()); in TEST_F()
149 slotMap[slot] = newBuf; in TEST_F()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp1239 sp<ABuffer> oldBuf, newBuf; in supportsSeamlessAudioFormatChange() local
1241 targetFormat->findBuffer("csd-0", &newBuf)) { in supportsSeamlessAudioFormatChange()
1242 if (oldBuf->size() != newBuf->size()) { in supportsSeamlessAudioFormatChange()
1245 return !memcmp(oldBuf->data(), newBuf->data(), oldBuf->size()); in supportsSeamlessAudioFormatChange()