HomeSort by relevance Sort by last modified time
    Searched refs:allocation (Results 1 - 25 of 128) sorted by null

1 2 3 4 5 6

  /external/chromium_org/base/memory/
discardable_memory_manager_unittest.cc 87 void Register(TestAllocationImpl* allocation, size_t bytes) {
88 manager_.Register(allocation, bytes);
91 void Unregister(TestAllocationImpl* allocation) {
92 manager_.Unregister(allocation);
95 bool IsRegistered(TestAllocationImpl* allocation) const {
96 return manager_.IsRegisteredForTest(allocation);
99 LockStatus Lock(TestAllocationImpl* allocation) {
101 if (!manager_.AcquireLock(allocation, &purged))
106 void Unlock(TestAllocationImpl* allocation) {
107 manager_.ReleaseLock(allocation);
141 TestAllocationImpl allocation; local
154 TestAllocationImpl allocation; local
164 TestAllocationImpl allocation; local
181 TestAllocationImpl allocation; local
202 TestAllocationImpl allocation; local
225 TestAllocationImpl allocation; local
280 TestAllocationImpl* allocation(unsigned position) { function in class:base::__anon6959::DiscardableMemoryManagerPermutationTest
372 TestAllocationImpl allocation; local
382 TestAllocationImpl allocation; local
395 TestAllocationImpl allocation; local
413 TestAllocationImpl allocation[3]; local
465 TestAllocationImpl allocation; local
    [all...]
discardable_memory_manager.h 21 // Allocate and acquire a lock that prevents the allocation from being purged
26 // Release a previously acquired lock on the allocation so that it can be
30 // Explicitly purge this allocation. It is illegal to call this while a lock
31 // is acquired on the allocation.
59 // of all allocation instances (in case they need to be purged), and the total
64 typedef DiscardableMemoryManagerAllocation Allocation;
92 // Adds the given allocation to the manager's collection.
93 void Register(Allocation* allocation, size_t bytes);
95 // Removes the given allocation from the manager's collection
    [all...]
discardable_memory_manager.cc 63 void DiscardableMemoryManager::Register(Allocation* allocation, size_t bytes) {
65 DCHECK(allocations_.Peek(allocation) == allocations_.end());
66 allocations_.Put(allocation, AllocationInfo(bytes));
69 void DiscardableMemoryManager::Unregister(Allocation* allocation) {
71 AllocationMap::iterator it = allocations_.Peek(allocation);
84 bool DiscardableMemoryManager::AcquireLock(Allocation* allocation,
89 AllocationMap::iterator it = allocations_.Get(allocation);
183 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...]
AllocationInfo.java 24 import android.renderscript.Allocation;
31 * Abstract the information necessary to create new {@link Allocation allocations} with
38 * to {@link Allocation#USAGE_IO_SCRIPT}.</p>
54 * from an existing {@link Allocation}.
56 * @param allocation {@link Allocation}
60 * @throws NullPointerException if allocation was {@code null}.
62 public static AllocationInfo newInstance(Allocation allocation) {
63 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/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/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...]
texture_image_transport_surface.cc 122 bool TextureImageTransportSurface::SetBackbufferAllocation(bool allocation) {
124 if (backbuffer_suggested_allocation_ == allocation)
126 backbuffer_suggested_allocation_ = allocation;
138 void TextureImageTransportSurface::SetFrontbufferAllocation(bool allocation) {
139 if (frontbuffer_suggested_allocation_ == allocation)
141 frontbuffer_suggested_allocation_ = allocation;
  /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
  /external/chromium_org/v8/src/heap/
heap.cc 257 // Have allocation in OLD and LO failed?
501 // If the scratchpad overflowed, we have to iterate over the allocation
503 // TODO(hpayer): We iterate over the whole list of allocation sites when
505 // allocation sites. We could hold the maybe tenured allocation sites
558 "GC: (mode, #visited allocation sites, #active allocation sites, "
570 // TODO(hpayer): If iterating over the allocation sites list becomes a
572 // allocation sites scratchpad).
595 // Process pretenuring feedback and update allocation sites
929 AllocationResult allocation; local
1960 AllocationResult allocation = local
1999 AllocationResult allocation; local
2269 AllocationResult allocation = AllocateRaw(Map::kSize, MAP_SPACE, MAP_SPACE); local
2294 AllocationResult allocation = AllocateRaw(Map::kSize, MAP_SPACE, MAP_SPACE); local
2328 AllocationResult allocation = AllocateRaw(size, space, space); local
2370 AllocationResult allocation = AllocatePartialMap(MAP_TYPE, Map::kSize); local
2397 AllocationResult allocation = AllocateEmptyFixedArray(); local
2403 AllocationResult allocation = Allocate(null_map(), OLD_POINTER_SPACE); local
2410 AllocationResult allocation = Allocate(undefined_map(), OLD_POINTER_SPACE); local
2422 AllocationResult allocation = AllocateEmptyFixedArray(); local
2429 AllocationResult allocation = AllocateEmptyConstantPoolArray(); local
2510 AllocationResult allocation = AllocateMap(entry.type, entry.size); local
2630 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
2647 AllocationResult allocation = AllocateRaw(size, CELL_SPACE, CELL_SPACE); local
2661 AllocationResult allocation = local
3191 AllocationResult allocation = Allocate(foreign_map(), space); local
3206 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3365 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3411 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3428 AllocationResult allocation = local
3461 AllocationResult allocation; local
3501 AllocationResult allocation = local
3510 AllocationResult allocation = CopyConstantPoolArray(code->constant_pool()); local
3526 AllocationResult allocation = local
3582 AllocationResult allocation = AllocateRaw(size, space, retry_space); local
3644 AllocationResult allocation = AllocateFixedArray(prop_size, pretenure); local
3655 AllocationResult allocation = Allocate(map, space, allocation_site); local
3672 AllocationResult allocation = AllocateJSObjectFromMap( local
3701 AllocationResult allocation = local
3716 AllocationResult allocation = local
3740 AllocationResult allocation; local
3756 AllocationResult allocation = CopyFixedArray(properties); local
3834 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3876 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3900 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
3917 AllocationResult allocation = local
3942 AllocationResult allocation = AllocateRawFixedArray(len, TENURED); local
3972 AllocationResult allocation = AllocateRawFixedArray(len, NOT_TENURED); local
3998 AllocationResult allocation = AllocateRawFixedDoubleArray(len, NOT_TENURED); local
4017 AllocationResult allocation = local
4023 AllocationResult allocation = AllocateConstantPoolArray(small); local
4056 AllocationResult allocation = AllocateRawFixedArray(length, pretenure); local
4078 AllocationResult allocation = AllocateRawFixedArray(length, NOT_TENURED); local
4093 AllocationResult allocation = AllocateRawFixedDoubleArray(length, pretenure); local
4115 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
4134 AllocationResult allocation = AllocateRaw(size, space, OLD_POINTER_SPACE); local
4160 AllocationResult allocation = AllocateRaw(size, space, OLD_POINTER_SPACE); local
4178 AllocationResult allocation = local
4193 AllocationResult allocation = local
4235 AllocationResult allocation = Allocate(map, space); local
    [all...]
heap-inl.h 97 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
98 if (!allocation.To(&result)) return allocation;
129 AllocationResult allocation = AllocateRaw(size, space, OLD_DATA_SPACE); local
130 if (!allocation.To(&result)) return allocation;
181 AllocationResult allocation; local
183 allocation = new_space_.AllocateRaw(size_in_bytes);
184 if (always_allocate() && allocation.IsRetry() && retry_space != NEW_SPACE) {
187 if (allocation.To(&object))
    [all...]
  /external/chromium_org/tools/memory_inspector/memory_inspector/classification/
native_heap_classifier.py 15 rule-1 will match any allocation that has 'foo' in one of its stack frames.
16 rule-2 will match any allocation that has a stack frame matching 'foo' AND a
19 rule-3 will match any allocation in which at least one of the source paths in
21 rule-4 will match any allocation which satisfies both the conditions.
24 instance, filter by library file name or by allocation size.
63 for allocation in nativeheap.allocations:
64 res.AddToMatchingNodes(allocation,
65 [allocation.size, allocation.resident_size])
76 |threshold| (1.0 = 100%) w.r.t. the total allocation of the heap snapshot
    [all...]
  /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
  /external/clang/test/Sema/
warn-unused-function.c 50 static void cleanupMalloc(char * const * const allocation) { }
  /external/chromium_org/third_party/libjingle/source/talk/p2p/base/
turnserver.cc 65 // IDs used for posted messages for TurnServer::Allocation.
70 // Encapsulates a TURN allocation.
71 // The object is created when an allocation request is received, and then
73 // (via HandleChannelData) for this allocation when received by the server.
75 class TurnServer::Allocation : public rtc::MessageHandler,
78 Allocation(TurnServer* server_,
82 virtual ~Allocation();
96 sigslot::signal1<Allocation*> SignalDestroyed;
145 // allocation, and self-deletes when its lifetime timer expires.
165 // allocation, and self-deletes when its lifetime timer expires
298 Allocation* allocation = FindAllocation(&conn); local
331 Allocation* allocation = FindAllocation(conn); local
424 Allocation* allocation = FindAllocation(conn); local
534 Allocation* allocation = new Allocation(this, local
    [all...]
  /external/chromium_org/tools/memory_inspector/memory_inspector/core/
native_heap.py 19 self.allocations = [] # list of individual |Allocation|s.
22 def Add(self, allocation):
23 assert(isinstance(allocation, Allocation))
24 self.allocations += [allocation]
59 """Updates the |Allocation|.|resident_size|s by looking at mmap stats.
62 estimates the resident size of an allocation intersecting the mmaps dump.
67 # or fully, with each allocation. For each of them, the allocation is
70 # The tricky part is that, in the general case, an allocation can spa
    [all...]

Completed in 980 milliseconds

1 2 3 4 5 6