/external/chromium_org/third_party/WebKit/Source/platform/ |
SharedBufferTest.cpp | 33 #include "platform/SharedBuffer.h" 50 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData0, strlen(testData0)); 51 sharedBuffer->append(testData1, strlen(testData1)); 52 sharedBuffer->append(testData2, strlen(testData2)); 54 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer(); 65 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData, strlen(testData)) [all...] |
SharedBuffer.cpp | 28 #include "platform/SharedBuffer.h" 77 static HashSet<SharedBuffer*>& liveBuffers() 79 DEFINE_STATIC_LOCAL(HashSet<SharedBuffer*>, buffers, ()); 83 static bool sizeComparator(SharedBuffer* a, SharedBuffer* b) 88 static CString snippetForBuffer(SharedBuffer* sharedBuffer) 92 unsigned snippetLength = std::min(sharedBuffer->size(), kMaxSnippetLength); 97 while (unsigned segmentLength = sharedBuffer->getSomeData(segment, offset)) { 116 Vector<SharedBuffer*> buffers [all...] |
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
SpinLockTest.cpp | 81 char sharedBuffer[bufferSize]; 86 thread1->postTask(new Task(WTF::bind(&threadMain, static_cast<char*>(sharedBuffer)))); 87 thread2->postTask(new Task(WTF::bind(&threadMain, static_cast<char*>(sharedBuffer))));
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
SharedBuffer.h | 28 class SharedBuffer 40 static SharedBuffer* alloc(size_t size); 42 /*! free the memory associated with the SharedBuffer. 43 * Fails if there are any users associated with this SharedBuffer. 47 static ssize_t dealloc(const SharedBuffer* released); 49 //! get the SharedBuffer from the data pointer 50 static inline const SharedBuffer* sharedBuffer(const void* data); 61 //! get back a SharedBuffer object from its data 62 static inline SharedBuffer* bufferFromData(void* data) [all...] |
VectorImpl.cpp | 27 #include "SharedBuffer.h" 56 SharedBuffer::sharedBuffer(mStorage)->acquire(); 79 SharedBuffer::sharedBuffer(mStorage)->acquire(); 91 SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage)->attemptEdit(); 93 sb = SharedBuffer::alloc(capacity() * mItemSize); 107 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize [all...] |
/frameworks/av/media/libmedia/ |
AudioTrack.cpp | 115 0 /*sharedBuffer*/, false /*threadCanCallJava*/, sessionId, transferType, 124 const sp<IMemory>& sharedBuffer, 141 sharedBuffer, false /*threadCanCallJava*/, sessionId, transferType, offloadInfo, uid); 174 const sp<IMemory>& sharedBuffer, 183 if (sharedBuffer != 0) { 192 if (cbf == NULL || sharedBuffer != 0) { 193 ALOGE("Transfer type TRANSFER_CALLBACK but cbf == NULL || sharedBuffer != 0"); 199 if (sharedBuffer != 0) { 200 ALOGE("Transfer type TRANSFER_OBTAIN but sharedBuffer != 0"); 205 if (sharedBuffer == 0) [all...] |
IAudioFlinger.cpp | 94 const sp<IMemory>& sharedBuffer, 112 if (sharedBuffer != 0) { 114 data.writeStrongBinder(sharedBuffer->asBinder()); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/chromium/ |
ChromiumDataObjectItem.h | 35 #include "platform/SharedBuffer.h" 58 static PassRefPtr<ChromiumDataObjectItem> createFromSharedBuffer(const String& filename, PassRefPtr<SharedBuffer>); 68 PassRefPtr<SharedBuffer> sharedBuffer() const { return m_sharedBuffer; } 88 RefPtr<SharedBuffer> m_sharedBuffer;
|
/frameworks/av/services/audioflinger/ |
PlaybackTracks.h | 32 const sp<IMemory>& sharedBuffer, 101 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } 168 const sp<IMemory>& sharedBuffer, 212 const sp<IMemory>& sharedBuffer,
|
Tracks.cpp | 69 const sp<IMemory>& sharedBuffer, 104 // client == 0 implies sharedBuffer == 0 105 ALOG_ASSERT(!(client == 0 && sharedBuffer != 0)); 107 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), 108 sharedBuffer->size()); 112 size_t bufferSize = (sharedBuffer == 0 ? roundup(frameCount) : frameCount) * mFrameSize; 113 if (sharedBuffer == 0) { 138 if (sharedBuffer == 0) [all...] |
TrackBase.h | 46 const sp<IMemory>& sharedBuffer,
|
Threads.cpp | [all...] |
AudioFlinger.h | 107 const sp<IMemory>& sharedBuffer,
|
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMXExif.cpp | 236 OMX_TI_CONFIG_SHAREDBUFFER sharedBuffer; 248 sharedBuffer.pSharedBuff = NULL; 259 OMX_INIT_STRUCT_PTR (&sharedBuffer, OMX_TI_CONFIG_SHAREDBUFFER); 260 sharedBuffer.nPortIndex = mCameraAdapterParameters.mImagePortIndex; 273 sharedBuffer.nSharedBuffSize = buf_size; 276 sharedBuffer.pSharedBuff = ( OMX_U8 * ) memmgr_buf_array[0]; 278 if ( NULL == sharedBuffer.pSharedBuff ) 285 sharedPtr = sharedBuffer.pSharedBuff + sizeof(OMX_TI_CONFIG_EXIF_TAGS); 290 exifTags = ( OMX_TI_CONFIG_EXIF_TAGS * ) sharedBuffer.pSharedBuff; 296 &sharedBuffer ); [all...] |
OMXFocus.cpp | 688 OMX_TI_CONFIG_SHAREDBUFFER sharedBuffer; 755 OMX_INIT_STRUCT_PTR (&sharedBuffer, OMX_TI_CONFIG_SHAREDBUFFER); 757 sharedBuffer.nPortIndex = OMX_ALL; 758 sharedBuffer.nSharedBuffSize = areasSize; 759 sharedBuffer.pSharedBuff = (OMX_U8 *) focusAreas[0]; 761 if ( NULL == sharedBuffer.pSharedBuff ) 769 (OMX_INDEXTYPE) OMX_TI_IndexConfigAlgoAreas, &sharedBuffer);
|
OMXCapabilities.cpp | [all...] |
OMX3A.cpp | [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/ |
ImageDecoder.cpp | 34 static unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset) 38 while (unsigned moreDataLength = sharedBuffer.getSomeData(moreData, offset)) { 84 PassOwnPtr<ImageDecoder> ImageDecoder::create(const SharedBuffer& data, ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColorProfileOption gammaAndColorProfileOption)
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebDragData.cpp | 81 if (originalItem->sharedBuffer()) { 83 item.binaryData = originalItem->sharedBuffer();
|
/frameworks/av/include/media/ |
AudioTrack.h | 197 * identified by the argument sharedBuffer, which must be non-0. 208 const sp<IMemory>& sharedBuffer, 233 * If sharedBuffer is non-0, the frameCount parameter is ignored and 249 const sp<IMemory>& sharedBuffer = 0, 285 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } 640 const sp<IMemory>& sharedBuffer, [all...] |
IAudioFlinger.h | 69 const sp<IMemory>& sharedBuffer,
|
/system/core/include/utils/ |
String16.h | 21 #include <utils/SharedBuffer.h> 69 inline const SharedBuffer* sharedBuffer() const; 126 // require any change to the underlying SharedBuffer contents or reference count. 149 return SharedBuffer::sizeFromData(mString)/sizeof(char16_t)-1; 152 inline const SharedBuffer* String16::sharedBuffer() const 154 return SharedBuffer::bufferFromData(mString);
|
String8.h | 21 #include <utils/SharedBuffer.h> 72 inline const SharedBuffer* sharedBuffer() const; 233 // require any change to the underlying SharedBuffer contents or reference count. 260 return SharedBuffer::sizeFromData(mString)-1; 275 return SharedBuffer::sizeFromData(mString)-1; 278 inline const SharedBuffer* String8::sharedBuffer() const 280 return SharedBuffer::bufferFromData(mString);
|
/frameworks/base/core/jni/ |
android_media_AudioTrack.cpp | 515 if (track->sharedBuffer() == 0) { 524 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { 525 sizeInBytes = track->sharedBuffer()->size(); 527 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes); 534 if (((size_t)sizeInBytes)*2 > track->sharedBuffer()->size()) { 535 sizeInBytes = track->sharedBuffer()->size() / 2; 538 int16_t *dst = (int16_t *)track->sharedBuffer()->pointer(); [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/ |
ImageBitmapFactories.cpp | 45 #include "platform/SharedBuffer.h" 327 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create((char*)m_loader.arrayBufferResult()->data(), m_loader.arrayBufferResult()->byteLength()); 330 source->setData(sharedBuffer.get(), true);
|