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);
91 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) {
94 static inline void free_heap(const sp<IBinder>& binder) {
97 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) {
125 BpMemory(const sp<IBinder>& impl);
127 virtual sp<IMemoryHeap> getMemory(ssize_t* offset=0, size_t* size=0) const;
130 mutable sp<IMemoryHeap> mHeap;
137 void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const
139 sp<IMemoryHeap> realHeap = BpMemoryHeap::get_heap(binder);
148 sp<IMemoryHeap> heap = getMemory(&offset);
169 BpMemory::BpMemory(const sp<IBinder>& impl)
178 sp<IMemoryHeap> BpMemory::getMemory(ssize_t* offset, size_t* size) const
184 sp<IBinder> heap = reply.readStrongBinder();
232 BpMemoryHeap::BpMemoryHeap(const sp<IBinder>& impl)
244 sp<IBinder> binder = IInterface::asBinder(this);
256 sp<IBinder> binder = IInterface::asBinder(this);
265 sp<IBinder> binder(IInterface::asBinder(const_cast<BpMemoryHeap*>(this)));
266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get()));
399 sp<IMemoryHeap> HeapCache::find_heap(const sp<IBinder>& binder)
424 void HeapCache::free_heap(const sp<IBinder>& binder) {
430 sp<IMemoryHeap> rel;
453 sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder)
455 sp<IMemoryHeap> realHeap;