/external/webkit/Source/WebCore/platform/mac/ |
SharedBufferMac.mm | 27 #include "SharedBuffer.h" 42 RefPtr<SharedBuffer> sharedBuffer; 45 - (id)initWithSharedBuffer:(SharedBuffer*)buffer; 72 - (id)initWithSharedBuffer:(SharedBuffer*)buffer 77 sharedBuffer = buffer; 84 return sharedBuffer->size(); 89 return reinterpret_cast<const void*>(sharedBuffer->data()); 96 PassRefPtr<SharedBuffer> SharedBuffer::wrapNSData(NSData *nsData [all...] |
/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...] |
/external/webkit/Source/WebCore/platform/graphics/cg/ |
ImageSourceCG.cpp | 35 #include "SharedBuffer.h" 53 SharedBuffer* sharedBuffer = static_cast<SharedBuffer*>(info); 54 size_t sourceSize = sharedBuffer->size(); 58 const char* source = sharedBuffer->data() + position; 66 SharedBuffer* sharedBuffer = static_cast<SharedBuffer*>(info); 67 sharedBuffer->deref() [all...] |
/frameworks/av/media/libmedia/ |
AudioTrack.cpp | 124 0 /*sharedBuffer*/, false /*threadCanCallJava*/, sessionId); 132 const sp<IMemory>& sharedBuffer, 144 if (sharedBuffer == 0) { 145 ALOGE("sharedBuffer must be non-0"); 151 sharedBuffer, false /*threadCanCallJava*/, sessionId); 156 ALOGV_IF(mSharedBuffer != 0, "Destructor sharedBuffer: %p", mSharedBuffer->pointer()); 185 const sp<IMemory>& sharedBuffer, 196 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer() [all...] |
/frameworks/av/include/media/ |
AudioTrack.h | 172 * identified by the argument sharedBuffer, which must be non-0. 184 const sp<IMemory>& sharedBuffer = 0, 202 * If sharedBuffer is non-0, the frameCount parameter is ignored and 214 const sp<IMemory>& sharedBuffer = 0, 246 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } 525 const sp<IMemory>& sharedBuffer,
|
IAudioFlinger.h | 65 const sp<IMemory>& sharedBuffer,
|
/frameworks/av/services/audioflinger/ |
PlaybackTracks.h | 32 const sp<IMemory>& sharedBuffer, 91 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } 153 const sp<IMemory>& sharedBuffer, 196 const sp<IMemory>& sharedBuffer,
|
TrackBase.h | 46 const sp<IMemory>& sharedBuffer,
|
Tracks.cpp | 69 const sp<IMemory>& sharedBuffer, 93 // client == 0 implies sharedBuffer == 0 94 ALOG_ASSERT(!(client == 0 && sharedBuffer != 0)); 96 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), 97 sharedBuffer->size()); 102 if (sharedBuffer == 0) { 132 if (sharedBuffer == 0) { 139 mBuffer = sharedBuffer->pointer() [all...] |
Threads.cpp | [all...] |
/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/webkit/Source/JavaScriptCore/wtf/text/ |
StringImpl.h | 124 StringImpl(const UChar* characters, unsigned length, PassRefPtr<SharedUChar> sharedBuffer) 127 , m_sharedBuffer(sharedBuffer.leakRef()) 149 static PassRefPtr<StringImpl> create(const UChar*, unsigned length, PassRefPtr<SharedUChar> sharedBuffer); 200 SharedUChar* sharedBuffer();
|
StringImpl.cpp | 128 PassRefPtr<StringImpl> StringImpl::create(const UChar* characters, unsigned length, PassRefPtr<SharedUChar> sharedBuffer) 132 return adoptRef(new StringImpl(characters, length, sharedBuffer)); 135 SharedUChar* StringImpl::sharedBuffer() 147 return m_substringBuffer->sharedBuffer(); 1074 if (SharedUChar* sharedBuffer = this->sharedBuffer()) 1075 return adoptRef(new StringImpl(m_data, m_length, sharedBuffer->crossThreadCopy()));
|
/external/webkit/Source/WebCore/platform/image-decoders/ |
ImageDecoder.cpp | 35 #include "SharedBuffer.h" 43 unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset) 47 while (unsigned moreDataLength = sharedBuffer.getSomeData(moreData, offset)) { 101 ImageDecoder* ImageDecoder::create(const SharedBuffer& data, ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColorProfileOption gammaAndColorProfileOption)
|
/frameworks/native/include/utils/ |
String16.h | 21 #include <utils/SharedBuffer.h> 60 inline const SharedBuffer* sharedBuffer() const; 117 // require any change to the underlying SharedBuffer contents or reference count. 142 return SharedBuffer::sizeFromData(mString)/sizeof(char16_t)-1; 145 inline const SharedBuffer* String16::sharedBuffer() const 147 return SharedBuffer::bufferFromData(mString);
|
String8.h | 21 #include <utils/SharedBuffer.h> 63 inline const SharedBuffer* sharedBuffer() const; 224 // require any change to the underlying SharedBuffer contents or reference count. 253 return SharedBuffer::sizeFromData(mString)-1; 268 return SharedBuffer::sizeFromData(mString)-1; 271 inline const SharedBuffer* String8::sharedBuffer() const 273 return SharedBuffer::bufferFromData(mString);
|
/frameworks/base/core/jni/ |
android_media_AudioTrack.cpp | 521 if (track->sharedBuffer() == 0) { 526 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { 527 sizeInBytes = track->sharedBuffer()->size(); 529 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes); 536 if (((size_t)sizeInBytes)*2 > track->sharedBuffer()->size()) { 537 sizeInBytes = track->sharedBuffer()->size() / 2; 540 int16_t *dst = (int16_t *)track->sharedBuffer()->pointer(); [all...] |
/external/webkit/Source/WebKit/wx/ |
WebFrame.cpp | 165 WTF::PassRefPtr<WebCore::SharedBuffer> sharedBuffer = WebCore::SharedBuffer::create(contents, strlen(contents)); 166 WebCore::SubstituteData substituteData(sharedBuffer, mimetype, WTF::String("UTF-8"), WebCore::blankURL(), url);
|
/external/webkit/Source/WebKit/gtk/webkit/ |
webkitwebframe.cpp | 548 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(content, strlen(content)); 549 SubstituteData substituteData(sharedBuffer.release(), [all...] |
/external/webkit/Source/WebKit2/WebProcess/WebPage/ |
WebPage.cpp | 104 #include <WebCore/SharedBuffer.h> 450 void WebPage::loadData(PassRefPtr<SharedBuffer> sharedBuffer, const String& MIMEType, const String& encodingName, const KURL& baseURL, const KURL& unreachableURL) 453 SubstituteData substituteData(sharedBuffer, MIMEType, encodingName, unreachableURL); 459 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(reinterpret_cast<const char*>(htmlString.characters()), htmlString.length() * sizeof(UChar)); 461 loadData(sharedBuffer, "text/html", "utf-16", baseURL, KURL()); 466 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(reinterpret_cast<const char*>(htmlString.characters()), htmlString.length() (…) [all...] |
/external/webkit/Source/WebKit/win/ |
WebFrame.cpp | 556 void WebFrame::loadData(PassRefPtr<WebCore::SharedBuffer> data, BSTR mimeType, BSTR textEncodingName, BSTR baseURL, BSTR failingURL) 586 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(); 593 // FIXME: this does a needless copy, would be better to read right into the SharedBuffer 596 sharedBuffer->append(dataBuffer.data(), static_cast<int>(dataBuffer.size())); 600 loadData(sharedBuffer, mimeType, textEncodingName, url, 0); 608 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(reinterpret_cast<char*>(string), sizeof(UChar) * SysStringLen(string)) [all...] |