Lines Matching refs:binder
50 sp<IMemoryHeap> find_heap(const sp<IBinder>& binder);
51 void free_heap(const sp<IBinder>& binder);
52 sp<IMemoryHeap> get_heap(const sp<IBinder>& binder);
63 void free_heap(const wp<IBinder>& binder);
96 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) { in find_heap() argument
97 return gHeapCache->find_heap(binder); in find_heap()
99 static inline void free_heap(const sp<IBinder>& binder) { in free_heap() argument
100 gHeapCache->free_heap(binder); in free_heap()
102 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) { in get_heap() argument
103 return gHeapCache->get_heap(binder); in get_heap()
143 void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const in fastPointer() argument
145 sp<IMemoryHeap> realHeap = BpMemoryHeap::get_heap(binder); in fastPointer()
271 sp<IBinder> binder = IInterface::asBinder(this); in ~BpMemoryHeap() local
275 binder.get(), this, mSize, heapId); in ~BpMemoryHeap()
282 sp<IBinder> binder = IInterface::asBinder(this); in ~BpMemoryHeap() local
283 free_heap(binder); in ~BpMemoryHeap()
292 sp<IBinder> binder(IInterface::asBinder(const_cast<BpMemoryHeap*>(this))); in assertMapped() local
293 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped()
308 free_heap(binder); in assertMapped()
430 void HeapCache::binderDied(const wp<IBinder>& binder) in binderDied() argument
433 free_heap(binder); in binderDied()
436 sp<IMemoryHeap> HeapCache::find_heap(const sp<IBinder>& binder) in find_heap() argument
439 ssize_t i = mHeapCache.indexOfKey(binder); in find_heap()
444 binder.get(), info.heap.get(), in find_heap()
453 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
457 mHeapCache.add(binder, info); in find_heap()
462 void HeapCache::free_heap(const sp<IBinder>& binder) { in free_heap() argument
463 free_heap( wp<IBinder>(binder) ); in free_heap()
466 void HeapCache::free_heap(const wp<IBinder>& binder) in free_heap() argument
471 ssize_t i = mHeapCache.indexOfKey(binder); in free_heap()
477 binder.unsafe_get(), info.heap.get(), in free_heap()
486 ALOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); in free_heap()
491 sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder) in get_heap() argument
495 ssize_t i = mHeapCache.indexOfKey(binder); in get_heap()
497 else realHeap = interface_cast<IMemoryHeap>(binder); in get_heap()