• Home
  • Raw
  • Download

Lines Matching refs:binder

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);
60 void free_heap(const wp<IBinder>& binder);
91 static inline sp<IMemoryHeap> find_heap(const sp<IBinder>& binder) { in find_heap() argument
92 return gHeapCache->find_heap(binder); in find_heap()
94 static inline void free_heap(const sp<IBinder>& binder) { in free_heap() argument
95 gHeapCache->free_heap(binder); in free_heap()
97 static inline sp<IMemoryHeap> get_heap(const sp<IBinder>& binder) { in get_heap() argument
98 return gHeapCache->get_heap(binder); in get_heap()
137 void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const in fastPointer() argument
139 sp<IMemoryHeap> realHeap = BpMemoryHeap::get_heap(binder); in fastPointer()
244 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder(); in ~BpMemoryHeap() local
248 binder.get(), this, mSize, mHeapId); in ~BpMemoryHeap()
258 sp<IBinder> binder = const_cast<BpMemoryHeap*>(this)->asBinder(); in ~BpMemoryHeap() local
259 free_heap(binder); in ~BpMemoryHeap()
267 sp<IBinder> binder(const_cast<BpMemoryHeap*>(this)->asBinder()); in assertMapped() local
268 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped()
280 free_heap(binder); in assertMapped()
394 void HeapCache::binderDied(const wp<IBinder>& binder) in binderDied() argument
397 free_heap(binder); in binderDied()
400 sp<IMemoryHeap> HeapCache::find_heap(const sp<IBinder>& binder) in find_heap() argument
403 ssize_t i = mHeapCache.indexOfKey(binder); in find_heap()
408 binder.get(), info.heap.get(), in find_heap()
416 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
420 mHeapCache.add(binder, info); in find_heap()
425 void HeapCache::free_heap(const sp<IBinder>& binder) { in free_heap() argument
426 free_heap( wp<IBinder>(binder) ); in free_heap()
429 void HeapCache::free_heap(const wp<IBinder>& binder) in free_heap() argument
434 ssize_t i = mHeapCache.indexOfKey(binder); in free_heap()
441 binder.unsafe_get(), info.heap.get(), in free_heap()
449 ALOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); in free_heap()
454 sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder) in get_heap() argument
458 ssize_t i = mHeapCache.indexOfKey(binder); in get_heap()
460 else realHeap = interface_cast<IMemoryHeap>(binder); in get_heap()