Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DBitwiseOutputStream.java70 byte[] newBuf = new byte[len]; in toByteArray()
71 System.arraycopy(mBuf, 0, newBuf, 0, len); in toByteArray()
72 return newBuf; in toByteArray()
82 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand()
83 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); in possExpand()
84 mBuf = newBuf; in possExpand()
85 mEnd = newBuf.length << 3; in possExpand()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransaction_test.cpp107 sp<GraphicBuffer> newBuf; in TEST_F() local
108 ASSERT_EQ(OK, producer->requestBuffer(slot, &newBuf)); in TEST_F()
109 ASSERT_NE(nullptr, newBuf.get()); in TEST_F()
110 slotMap[slot] = newBuf; in TEST_F()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcel_host.java125 var newBuf = new byte[newSize]; in forceSetCapacity() local
128 System.arraycopy(mBuffer, 0, newBuf, 0, Math.min(newSize, getCapacity())); in forceSetCapacity()
130 this.mBuffer = newBuf; in forceSetCapacity()
/frameworks/av/media/codec2/hal/client/
DGraphicsTracker.cpp117 AHardwareBuffer *newBuf; in migrateBuffer() local
120 &newBuf); in migrateBuffer()
126 std::make_shared<BufferItem>(newGeneration, newBuf, newUsage); in migrateBuffer()
127 AHardwareBuffer_release(newBuf); in migrateBuffer()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp1270 sp<ABuffer> oldBuf, newBuf; in supportsSeamlessAudioFormatChange() local
1272 targetFormat->findBuffer("csd-0", &newBuf)) { in supportsSeamlessAudioFormatChange()
1273 if (oldBuf->size() != newBuf->size()) { in supportsSeamlessAudioFormatChange()
1276 return !memcmp(oldBuf->data(), newBuf->data(), oldBuf->size()); in supportsSeamlessAudioFormatChange()