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()
267 sp<IBinder> binder = IInterface::asBinder(this); in ~BpMemoryHeap() local
271 binder.get(), this, mSize, heapId); in ~BpMemoryHeap()
278 sp<IBinder> binder = IInterface::asBinder(this); in ~BpMemoryHeap() local
279 free_heap(binder); in ~BpMemoryHeap()
288 sp<IBinder> binder(IInterface::asBinder(const_cast<BpMemoryHeap*>(this))); in assertMapped() local
289 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped()
304 free_heap(binder); in assertMapped()
426 void HeapCache::binderDied(const wp<IBinder>& binder) in binderDied() argument
429 free_heap(binder); in binderDied()
432 sp<IMemoryHeap> HeapCache::find_heap(const sp<IBinder>& binder) in find_heap() argument
435 ssize_t i = mHeapCache.indexOfKey(binder); in find_heap()
440 binder.get(), info.heap.get(), in find_heap()
449 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
453 mHeapCache.add(binder, info); in find_heap()
458 void HeapCache::free_heap(const sp<IBinder>& binder) { in free_heap() argument
459 free_heap( wp<IBinder>(binder) ); in free_heap()
462 void HeapCache::free_heap(const wp<IBinder>& binder) in free_heap() argument
467 ssize_t i = mHeapCache.indexOfKey(binder); in free_heap()
473 binder.unsafe_get(), info.heap.get(), in free_heap()
482 ALOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); in free_heap()
487 sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder) in get_heap() argument
491 ssize_t i = mHeapCache.indexOfKey(binder); in get_heap()
493 else realHeap = interface_cast<IMemoryHeap>(binder); in get_heap()