/frameworks/native/libs/binder/ |
H A D | MemoryBase.cpp | 28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, argument 30 : mSize(size), mOffset(offset), mHeap(heap)
|
H A D | IMemory.cpp | 56 sp<IMemoryHeap> heap; member in struct:android::HeapCache::heap_info_t 148 sp<IMemoryHeap> heap = getMemory(&offset); local 149 void* const base = heap!=0 ? heap->base() : MAP_FAILED; 184 sp<IBinder> heap = reply.readStrongBinder(); local 187 if (heap != 0) { 188 mHeap = interface_cast<IMemoryHeap>(heap); 247 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d", 266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); 267 heap [all...] |
H A D | MemoryDealer.cpp | 115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size); 166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) 167 : MemoryBase(heap, offset, size), mDealer(dealer) 170 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset); 244 memory = new Allocation(this, heap(), offset, size); 259 const sp<IMemoryHeap>& MemoryDealer::heap() const { function in class:android::MemoryDealer 164 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
|
/frameworks/native/services/surfaceflinger/tests/screencap/ |
H A D | screencap.cpp | 42 sp<IMemoryHeap> heap; local 46 status_t err = composer->captureScreen(display, &heap, &w, &h, &f, 0, 0); 53 w, h, heap->getBase()); 59 b.setPixels(heap->getBase());
|
/frameworks/native/include/binder/ |
H A D | MemoryDealer.h | 44 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } 50 const sp<IMemoryHeap>& heap() const;
|
H A D | MemoryBase.h | 33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
|
H A D | IMemory.h | 78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
/frameworks/base/media/tests/audiotests/ |
H A D | shared_mem_test.cpp | 72 sp<MemoryDealer> heap; local 91 heap = new MemoryDealer(1024*1024, "AudioTrack Heap Base"); 93 iMem = heap->allocate(BUF_SZ*sizeof(short)); 120 heap.clear();
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 196 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local 197 if (heap == NULL) { 202 mThumbnail = new MemoryBase(heap, 0, size); 237 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local 238 if (heap == NULL) { 243 mAlbumArt = new MemoryBase(heap, 0, size);
|
H A D | MediaPlayerService.h | 190 AudioCache(const sp<IMemoryHeap>& heap); 272 const sp<IMemoryHeap>& heap, 278 const sp<IMemoryHeap>& heap, size_t *pSize);
|
H A D | MediaPlayerService.cpp | 396 snprintf(buffer, 255, " heap base(%p), size(%zu), flags(%d)\n", 1290 const sp<IMemoryHeap>& heap, 1311 sp<AudioCache> cache = new AudioCache(heap); 1353 const sp<IMemoryHeap>& heap, size_t *pSize) 1366 sp<AudioCache> cache = new AudioCache(heap); 1958 MediaPlayerService::AudioCache::AudioCache(const sp<IMemoryHeap>& heap) : argument 1959 mHeap(heap), mChannelCount(0), mFrameCount(1024), mSampleRate(0), mSize(0), 2122 // Signal heap filled here (last frame may be truncated). 2124 // heap is filled and the AudioCache should be effectively 1284 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument 1350 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
|
/frameworks/native/services/surfaceflinger/tests/ |
H A D | Transaction_test.cpp | 56 sp<IMemoryHeap> heap; local 61 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 0, 0, 63 ASSERT_TRUE(heap != NULL); 65 *sc = new ScreenCapture(w, h, heap); 80 ScreenCapture(uint32_t w, uint32_t h, const sp<IMemoryHeap>& heap) : argument 83 mHeap(heap)
|
/frameworks/av/include/media/ |
H A D | IMediaPlayerService.h | 60 const sp<IMemoryHeap>& heap, size_t *pSize) = 0; 64 const sp<IMemoryHeap>& heap, size_t *pSize) = 0;
|
H A D | mediaplayer.h | 241 const sp<IMemoryHeap>& heap, 245 const sp<IMemoryHeap>& heap, size_t *pSize);
|
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayerService.cpp | 97 const sp<IMemoryHeap>& heap, 107 data.writeStrongBinder(heap->asBinder()); 123 const sp<IMemoryHeap>& heap, size_t *pSize) 130 data.writeStrongBinder(heap->asBinder()); 230 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local 241 heap, 257 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local 263 heap, &size); 91 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument 121 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
|
H A D | mediaplayer.cpp | 844 const sp<IMemoryHeap>& heap, 851 status = service->decode(httpService, url, pSampleRate, pNumChannels, pFormat, heap, pSize); 869 const sp<IMemoryHeap>& heap, size_t *pSize) 876 pNumChannels, pFormat, heap, pSize); 838 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument 866 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
|
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.h | 117 const sp<IMemoryHeap>& heap,
|
H A D | CameraClient.cpp | 822 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 851 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); 879 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 929 const sp<IMemoryHeap>& heap, size_t offset, size_t size, 953 void* heapBase = heap->base(); 956 ALOGE("%s: Failed to mmap heap for preview frame.", __FUNCTION__); 927 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | StreamingProcessor.cpp | 255 // Need to re-size consumer and heap 257 ALOGV("%s: Camera %d: Resetting recording heap and consumer", 375 // always acquire and free a buffer when the heap is full; otherwise the consumer 498 ALOGV("%s: Camera %d: %s started, recording heap has %zu free of %zu", 721 ALOGV("%s: Camera %d: Creating recording heap with %zu buffers of " 764 sp<IMemoryHeap> heap = local 768 uint8_t *data = (uint8_t*)heap->getBase() + offset; 797 // Make sure this is for the current heap 800 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 801 if (heap [all...] |
H A D | CallbackProcessor.cpp | 406 sp<IMemoryHeap> heap = local 409 uint8_t *data = (uint8_t*)heap->getBase() + offset; 444 // Only increment free if we're still using the same heap
|
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 5782 // We build a heap of squared euclidean distances between current and last pointers 5787 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local 5804 // Insert new element into the heap (sift up). 5805 heap[heapSize].currentPointerIndex = currentPointerIndex; 5806 heap[heapSize].lastPointerIndex = lastPointerIndex; 5807 heap[heapSize].distance = distance; 5823 && heap[childIndex + 1].distance < heap[childIndex].distance) { 5827 if (heap[parentIndex].distance <= heap[childInde [all...] |
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 330 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 331 void *data = ((uint8_t *)heap->base()) + offset; 484 // Start refcounting the heap object from here on. When the clients
|
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 254 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local 256 uint8_t *heapBase = (uint8_t*)heap->base(); 287 ALOGE("image heap is NULL");
|
/frameworks/av/services/audioflinger/ |
H A D | Tracks.cpp | 122 mCblkMemory = client->heap()->allocate(size); 126 client->heap()->dump("AudioTrack"); 231 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to 1204 // lazily initialize the shared memory heap for timed buffers
|
H A D | AudioFlinger.h | 398 sp<MemoryDealer> heap() const;
|