Lines Matching refs:sp
48 sp<IMemoryHeap> find_heap(const sp<IBinder>& binder);
49 void free_heap(const sp<IBinder>& binder);
50 sp<IMemoryHeap> get_heap(const sp<IBinder>& binder);
56 sp<IMemoryHeap> heap;
66 static sp<HeapCache> gHeapCache = new HeapCache();
77 BpMemoryHeap(const sp<IBinder>& impl);
90 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) {
93 static inline void free_heap(const sp<IBinder>& binder) {
96 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) {
123 BpMemory(const sp<IBinder>& impl);
125 virtual sp<IMemoryHeap> getMemory(ssize_t* offset=0, size_t* size=0) const;
128 mutable sp<IMemoryHeap> mHeap;
135 void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const
137 sp<IMemoryHeap> realHeap = BpMemoryHeap::get_heap(binder);
146 sp<IMemoryHeap> heap = getMemory(&offset);
167 BpMemory::BpMemory(const sp<IBinder>& impl)
176 sp<IMemoryHeap> BpMemory::getMemory(ssize_t* offset, size_t* size) const
182 sp<IBinder> heap = reply.readStrongBinder();
230 BpMemoryHeap::BpMemoryHeap(const sp<IBinder>& impl)
242 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder();
256 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder();
265 sp<IBinder> binder(const_cast<BpMemoryHeap*>(this)->asBinder());
266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get()));
389 sp<IMemoryHeap> HeapCache::find_heap(const sp<IBinder>& binder)
414 void HeapCache::free_heap(const sp<IBinder>& binder) {
420 sp<IMemoryHeap> rel;
443 sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder)
445 sp<IMemoryHeap> realHeap;