/system/core/libutils/ |
SharedBuffer.h | 32 class SharedBuffer 44 static SharedBuffer* alloc(size_t size); 46 /*! free the memory associated with the SharedBuffer. 47 * Fails if there are any users associated with this SharedBuffer. 51 static void dealloc(const SharedBuffer* released); 62 //! get back a SharedBuffer object from its data 63 static inline SharedBuffer* bufferFromData(void* data); 65 //! get back a SharedBuffer object from its data 66 static inline const SharedBuffer* bufferFromData(const void* data); 68 //! get the size of a SharedBuffer object from its dat [all...] |
SharedBuffer.cpp | 17 #define LOG_TAG "sharedbuffer" 19 #include "SharedBuffer.h" 30 SharedBuffer* SharedBuffer::alloc(size_t size) 34 LOG_ALWAYS_FATAL_IF((size >= (SIZE_MAX - sizeof(SharedBuffer))), 37 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); 49 void SharedBuffer::dealloc(const SharedBuffer* released [all...] |
SharedBufferTest.cpp | 24 #include "SharedBuffer.h" 27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); 28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); 32 android::SharedBuffer* buf = 33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); 36 buf = android::SharedBuffer::alloc(0); 43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10) [all...] |
String16.cpp | 23 #include "SharedBuffer.h" 27 static SharedBuffer* gEmptyStringBuf = NULL; 38 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); 47 SharedBuffer::bufferFromData(gEmptyString)->release(); 65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); 97 SharedBuffer::alloc(sizeof(char16_t))->data()); 105 SharedBuffer::bufferFromData(mString)->acquire(); 117 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)) [all...] |
String8.cpp | 28 #include "SharedBuffer.h" 43 static SharedBuffer* gEmptyStringBuf = NULL; 65 SharedBuffer* buf = SharedBuffer::alloc(1); 74 SharedBuffer::bufferFromData(gEmptyString)->release(); 87 SharedBuffer* buf = SharedBuffer::alloc(len+1); 111 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); 133 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen) [all...] |
VectorImpl.cpp | 29 #include "SharedBuffer.h" 56 SharedBuffer::bufferFromData(mStorage)->acquire(); 78 SharedBuffer::bufferFromData(mStorage)->acquire(); 90 const SharedBuffer* sb = SharedBuffer::bufferFromData(mStorage); 91 SharedBuffer* editable = sb->attemptEdit(); 95 editable = SharedBuffer::alloc(sb->size()); 111 return SharedBuffer::bufferFromData(mStorage)->size() / mItemSize; 346 SharedBuffer* sb = SharedBuffer::alloc(new_allocation_size) [all...] |
/hardware/interfaces/drm/1.0/ |
types.hal | 302 * SharedBuffer describes a decrypt buffer which is defined by a bufferId, an 307 struct SharedBuffer { 341 SharedBuffer nonsecureMemory;
|
ICryptoPlugin.hal | 63 * receives SharedBuffer instances which specify the buffer address range 112 SharedBuffer source, uint64_t offset, DestinationBuffer destination)
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
SharedBuffer.java | 21 public class SharedBuffer { 23 private static final String LOGTAG = "SharedBuffer";
|
UpdatePreviewTask.java | 57 SharedBuffer buffer = MasterImage.getImage().getPreviewBuffer();
|
CachingPipeline.java | 416 public void compute(SharedBuffer buffer, ImagePreset preset, int type) { 428 SharedBuffer buffer = MasterImage.getImage().getPreviewBuffer();
|
/frameworks/av/media/libmedia/include/media/ |
CryptoHal.h | 30 using ::android::hardware::drm::V1_0::SharedBuffer; 93 status_t toSharedBuffer(const sp<IMemory>& memory, int32_t seqNum, ::SharedBuffer* buffer);
|
/hardware/interfaces/drm/1.0/default/ |
CryptoPlugin.cpp | 62 const SharedBuffer& source, uint64_t offset, 72 const SharedBuffer& dest = destination.nonsecureMemory; 122 const SharedBuffer& destBuffer = destination.nonsecureMemory;
|
CryptoPlugin.h | 65 const hidl_vec<SubSample>& subSamples, const SharedBuffer& source,
|
/frameworks/av/drm/libmediadrm/ |
CryptoHal.cpp | 39 using ::android::hardware::drm::V1_0::SharedBuffer; 259 status_t CryptoHal::toSharedBuffer(const sp<IMemory>& memory, int32_t seqNum, ::SharedBuffer* buffer) { 340 ::SharedBuffer hSource;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
MasterImage.java | 44 import com.android.gallery3d.filtershow.pipeline.SharedBuffer; 68 private SharedBuffer mPreviewBuffer = new SharedBuffer(); 324 public SharedBuffer getPreviewBuffer() {
|
/system/core/libutils/include/utils/ |
String16.h | 38 class SharedBuffer; 132 // require any change to the underlying SharedBuffer contents or reference count.
|
/hardware/interfaces/drm/1.0/vts/functional/ |
drm_hal_clearkey_test.cpp | 51 using ::android::hardware::drm::V1_0::SharedBuffer; [all...] |
drm_hal_vendor_test.cpp | 58 using ::android::hardware::drm::V1_0::SharedBuffer; [all...] |