/external/chromium_org/base/memory/ |
discardable_memory_manager_unittest.cc | 96 void Register(TestAllocationImpl* allocation, size_t bytes) { 97 manager_.Register(allocation, bytes); 100 void Unregister(TestAllocationImpl* allocation) { 101 manager_.Unregister(allocation); 104 bool IsRegistered(TestAllocationImpl* allocation) const { 105 return manager_.IsRegisteredForTest(allocation); 108 LockStatus Lock(TestAllocationImpl* allocation) { 110 if (!manager_.AcquireLock(allocation, &purged)) 115 void Unlock(TestAllocationImpl* allocation) { 116 manager_.ReleaseLock(allocation); 145 TestAllocationImpl allocation; local 158 TestAllocationImpl allocation; local 168 TestAllocationImpl allocation; local 185 TestAllocationImpl allocation; local 210 TestAllocationImpl allocation; local 233 TestAllocationImpl allocation; local 288 TestAllocationImpl* allocation(unsigned position) { function in class:base::__anon6926::DiscardableMemoryManagerPermutationTest 387 TestAllocationImpl allocation; local 397 TestAllocationImpl allocation; local 410 TestAllocationImpl allocation; local 428 TestAllocationImpl allocation[3]; local 480 TestAllocationImpl allocation; local [all...] |
discardable_memory_manager.h | 22 // Allocate and acquire a lock that prevents the allocation from being purged 27 // Release a previously acquired lock on the allocation so that it can be 31 // Explicitly purge this allocation. It is illegal to call this while a lock 32 // is acquired on the allocation. 60 // of all allocation instances (in case they need to be purged), and the total 69 typedef DiscardableMemoryManagerAllocation Allocation; 104 // Adds the given allocation to the manager's collection. 105 void Register(Allocation* allocation, size_t bytes); 107 // Removes the given allocation from the manager's collection [all...] |
discardable_memory_manager.cc | 80 void DiscardableMemoryManager::Register(Allocation* allocation, size_t bytes) { 87 DCHECK(allocations_.Peek(allocation) == allocations_.end()); 88 allocations_.Put(allocation, AllocationInfo(bytes)); 91 void DiscardableMemoryManager::Unregister(Allocation* allocation) { 93 AllocationMap::iterator it = allocations_.Peek(allocation); 106 bool DiscardableMemoryManager::AcquireLock(Allocation* allocation, 111 AllocationMap::iterator it = allocations_.Get(allocation); 227 Allocation* allocation = it->first; local [all...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/ |
BlockingInputAllocation.java | 22 import android.renderscript.Allocation; 28 * An {@link Allocation} wrapper that can be used to block until new buffers are available. 30 * <p>Can only be used only with {@link Allocation#USAGE_IO_INPUT} usage Allocations.</p> 40 private final Allocation mAllocation; 45 * Wrap an existing Allocation with this {@link BlockingInputAllocation}. 50 * @param allocation A non-{@code null} {@link Allocation allocation} 54 * If {@code allocation} was {@code null} 56 * If {@code allocation}'s usage did not have one of USAGE_IO_INPUT or USAGE_IO_OUTPU [all...] |
AllocationCache.java | 20 import android.renderscript.Allocation; 33 * Cache {@link Allocation} objects based on their type and usage. 35 * <p>This avoids expensive re-allocation of objects when they are used over and over again 46 private final HashMap<AllocationKey, List<Allocation>> mAllocationMap = 47 new HashMap<AllocationKey, List<Allocation>>(); 71 * Try to lookup a compatible Allocation from the cache, create one if none exist. 77 public Allocation getOrCreateTyped(Type type, int usage) { 83 List<Allocation> list = mAllocationMap.get(key); 86 Allocation alloc = list.remove(list.size() - 1); 100 return Allocation.createTyped(mRS, type, usage) [all...] |
Script.java | 22 import android.renderscript.Allocation; 31 * <p>Each script has exactly one input and one output allocation, and is able to execute 34 * <p>Each script owns it's input allocation, but not the output allocation.</p> 187 protected Allocation mOutputAllocation; 188 protected Allocation mInputAllocation; 225 void setInput(Allocation allocation) { 227 checkNotNull("allocation", allocation); [all...] |
/external/lldb/source/Expression/ |
IRMemoryMap.cpp | 203 IRMemoryMap::Allocation::Allocation (lldb::addr_t process_alloc, 255 error.SetErrorString("Couldn't malloc: invalid allocation policy"); 316 m_allocations[aligned_address] = Allocation(allocation_address, 364 error.SetErrorString("Couldn't leak: allocation doesn't exist"); 368 Allocation &allocation = iter->second; local 370 allocation.m_leak = true; 383 error.SetErrorString("Couldn't free: allocation doesn't exist"); 387 Allocation &allocation = iter->second local 445 Allocation &allocation = iter->second; local 575 Allocation &allocation = iter->second; local 706 Allocation &allocation = iter->second; local [all...] |
/external/valgrind/main/memcheck/tests/ |
origin4-many.stderr.exp | 3 Uninitialised value was created by a heap allocation 9 Uninitialised value was created by a heap allocation 15 Uninitialised value was created by a heap allocation 21 Uninitialised value was created by a heap allocation 27 Uninitialised value was created by a heap allocation 33 Uninitialised value was created by a heap allocation 39 Uninitialised value was created by a heap allocation 45 Uninitialised value was created by a heap allocation 51 Uninitialised value was created by a heap allocation
|
origin1-yes.stderr.exp | 5 Uninitialised value was created by a stack allocation 12 Uninitialised value was created by a stack allocation 19 Uninitialised value was created by a stack allocation 26 Uninitialised value was created by a heap allocation 34 Uninitialised value was created by a heap allocation 42 Uninitialised value was created by a heap allocation
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
AudioArray.h | 52 // It's OK to call allocate() multiple times, but data will *not* be copied from an initial allocation 83 T* allocation = static_cast<T*>(fastMalloc(initialSize + extraAllocationBytes)); local 84 if (!allocation) 86 T* alignedData = alignedAddress(allocation, alignment); 88 if (alignedData == allocation || extraAllocationBytes == alignment) { 89 m_allocation = allocation; 96 fastFree(allocation);
|
/external/fio/ |
gcompat.c | 41 return w->allocation.width; 46 return w->allocation.height;
|
/external/chromium_org/cc/output/ |
managed_memory_policy.cc | 22 const gpu::MemoryAllocation& allocation) 23 : bytes_limit_when_visible(allocation.bytes_limit_when_visible), 24 priority_cutoff_when_visible(allocation.priority_cutoff_when_visible),
|
managed_memory_policy.h | 20 const gpu::MemoryAllocation& allocation);
|
/external/chromium_org/tools/memory_inspector/memory_inspector/core/ |
native_heap.py | 19 def Add(self, allocation): 20 assert(isinstance(allocation, Allocation)) 21 self.allocations += [allocation] 39 class Allocation(object): 40 """A Native allocation, modeled in a size*count fashion. 42 |count| is the number of identical stack_traces which performed the allocation
|
/frameworks/rs/ |
rsProgramVertex.cpp | 46 "Unable to set fixed function emulation matrices because allocation is missing"); 49 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( 59 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 75 "Unable to set fixed function emulation matrix projection because allocation is missing"); 78 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( 82 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 93 "Unable to set fixed function emulation matrix modelview because allocation is missing"); 96 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( 100 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 111 "Unable to set fixed function emulation matrix texture because allocation is missing") [all...] |
rsAllocation.cpp | 30 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, 44 void Allocation::operator delete(void* ptr) { 46 Allocation *a = (Allocation*) ptr; 51 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, 53 // Allocation objects must use allocator specified by the driver 54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0); 57 rsc->setError(RS_ERROR_FATAL_DRIVER, "Couldn't allocate memory for Allocation"); [all...] |
/external/valgrind/main/massif/tests/ |
basic2.post.exp | 39 00.00% (0B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 45 98.04% (3,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 52 98.04% (7,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 59 98.04% (10,800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 66 98.04% (14,400B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 73 98.04% (11,200B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 80 98.04% (8,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 87 98.04% (4,800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 94 98.04% (1,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
|
/external/valgrind/main/memcheck/tests/linux/ |
rfcomm.stderr.exp | 5 Uninitialised value was created by a stack allocation 12 Uninitialised value was created by a stack allocation 19 Uninitialised value was created by a stack allocation
|
/external/chromium_org/content/common/gpu/ |
gpu_memory_manager_client.h | 22 // send it allocation information and query its properties). 33 // Sets buffer usage depending on Memory Allocation 35 const gpu::MemoryAllocation& allocation) = 0;
|
gpu_memory_manager.cc | 108 // allocation on desktop platforms. 278 // Send that allocation to the clients. 288 // Populate and send the allocation to the client 289 MemoryAllocation allocation; local 290 allocation.bytes_limit_when_visible = client_hard_limit_bytes_; 294 allocation.priority_cutoff_when_visible = 302 allocation.priority_cutoff_when_visible = 306 client_state->client_->SetMemoryAllocation(allocation); 316 MemoryAllocation allocation; local 319 allocation.bytes_limit_when_visible = client_hard_limit_bytes_ [all...] |
/external/chromium_org/v8/src/ |
heap-inl.h | 109 { AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local 110 if (!allocation.To(&result)) return allocation; 140 { AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local 141 if (!allocation.To(&result)) return allocation; 195 AllocationResult allocation; local 197 allocation = new_space_.AllocateRaw(size_in_bytes); 199 allocation.IsRetry() && 203 if (profiler->is_tracking_allocations() && allocation.To(&object)) [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-crbug-347903.js | 5 // Flags: --allow-natives-syntax --use-allocation-folding --verify-heap 9 // Allocation folding will bail out trying to fold the elements alloc of
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IsObjectTest.java | 20 import android.renderscript.Allocation; 29 private Allocation mIn; 30 private Allocation mOut; 34 Allocation allocation; field in class:IsObjectTest 47 allocation = Allocation.createTyped(mRS, type); 65 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 85 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 105 mItem.allocation = allocation [all...] |
SetObjectTest.java | 20 import android.renderscript.Allocation; 28 private Allocation mIn; 29 private Allocation mOut; 33 Allocation allocation; field in class:SetObjectTest 46 allocation = Allocation.createTyped(mRS, type); 64 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 84 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 103 mItem.allocation = allocation [all...] |
/external/chromium_org/third_party/libsrtp/srtp/crypto/kernel/ |
alloc.c | 4 * memory allocation and deallocation 48 /* the debug module for memory allocation */ 77 debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size); 102 debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size); 115 #else /* we need to define our own memory allocation routines */ 117 #error no memory allocation defined yet
|