/frameworks/base/libs/hwui/utils/ |
FatVector.h | 44 struct Allocation { 45 PREVENT_COPY_AND_ASSIGN(Allocation); 47 Allocation() {}; 56 explicit InlineStdAllocator(Allocation& allocation) 57 : mAllocation(allocation) {} 79 Allocation& mAllocation; 101 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
|
/frameworks/rs/tests/lldb/java/SingleSource/src/com/android/rs/singlesource/ |
MainActivity.java | 28 private Allocation mAllocIn1; 29 private Allocation mAllocIn2; 30 private Allocation mAllocOut; 50 // create the first input allocation 51 mAllocIn1 = Allocation.createSized(mRS, Element.F32(mRS), 4); 55 // create second input allocation 56 mAllocIn2 = Allocation.createSized(mRS, Element.F32(mRS), 4); 60 // create output allocation 61 mAllocOut = Allocation.createSized(mRS, Element.F32(mRS), 4); 63 // setup the global output allocation [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
Allocation.java | 28 * Data about a particular allocation performed by a benchmark. This tracks a human readable 29 * description of the allocation (e.g. 'int[23]', 'java.lang.Integer', or 'java.util.ArrayList'), 30 * the total size of the allocation in bytes and the location, which is a stringified stack trace of 31 * the allocation. 33 final class Allocation { 42 static long getTotalSize(Collection<Allocation> allocations) { 44 for (Allocation allocation : allocations) { 45 totalSize += allocation.size; 54 Allocation(String description, long size, List<StackTraceElement> location) [all...] |
/external/swiftshader/src/Common/ |
Memory.cpp | 69 struct Allocation 77 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; 82 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); 83 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); local 85 // allocation->bytes = bytes; 86 allocation->block = block; 109 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)) local [all...] |
/system/core/libmemunreachable/ |
HeapWalker.cpp | 31 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) {
|
/external/deqp/external/vulkancts/framework/vulkan/ |
vkMemUtil.hpp | 33 * \brief Memory allocation interface 35 * Allocation represents block of device memory and is allocated by 39 * Allocation doesn't necessarily correspond to a whole VkDeviceMemory, but 40 * instead it may represent sub-allocation. Thus whenever VkDeviceMemory 41 * (getMemory()) managed by Allocation is passed to Vulkan API calls, 46 * pointer, i.e. the pointer is already adjusted in case of sub-allocation. 48 * Memory mappings are managed solely by Allocation, i.e. unmapping or 49 * re-mapping VkDeviceMemory owned by Allocation is not allowed. 51 class Allocation 54 virtual ~Allocation (void) [all...] |
/frameworks/native/libs/binder/ |
MemoryDealer.cpp | 112 class Allocation : public MemoryBase { 114 Allocation(const sp<MemoryDealer>& dealer, 116 virtual ~Allocation(); 166 Allocation::Allocation( 177 Allocation::~Allocation() 184 * and could alias some real allocation (their offset is zero). */ 246 memory = new Allocation(this, heap(), offset, size);
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
DebugUncachedMemoryAllocationLib.c | 63 VOID *Allocation;
73 IN VOID *Allocation,
86 NewNode->Allocation = Allocation;
96 OUT VOID **Allocation,
103 *Allocation = NULL;
109 *Allocation = OldNode->Allocation;
466 VOID *Allocation;
469 RemovePagesFromList (Buffer, &Allocation, &Pages); [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/ |
UncachedMemoryAllocationLib.c | 52 VOID *Allocation;
64 * This function firstly checks if the requested allocation can fit into one
66 * If the requested allocation does not fit in the existing pool then
67 * the function makes a new allocation.
69 * @param MemoryType Type of memory requested for the new allocation
72 * @param Allocation Address of the newly allocated buffer
83 OUT VOID **Allocation
98 // Look in our list for the smallest page that could satisfy the new allocation
110 Node->Allocation = (VOID*)(UINTN)Node->Base;
111 *Allocation = Node->Allocation; [all...] |
/external/libchrome/base/trace_event/ |
heap_profiler_allocation_register.h | 245 // The allocation register keeps track of all allocations that have not been 251 // Details about an allocation. 252 struct Allocation { 263 Allocation operator*() const; 281 // Inserts allocation details into the table. If the address was present 291 // Finds allocation for the address and fills |out_allocation|. 292 bool Get(const void* address, Allocation* out_allocation) const; 321 // when an allocation that references the backtrace is inserted, 322 // and decremented when the allocation is removed. When the 345 Allocation GetAllocation(AllocationMap::KVIndex) const [all...] |
/frameworks/rs/cpp/ |
Allocation.cpp | 20 using android::RSC::Allocation; 24 void * Allocation::getIDSafe() const { 28 void Allocation::updateCacheInfo(const sp<const Type>& t) { 41 Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) : 76 void Allocation::validateIsInt64() { 81 ALOGE("64 bit integer source does not match allocation type %i", dt); 84 void Allocation::validateIsInt32() { 89 ALOGE("32 bit integer source does not match allocation type %i", dt); 92 void Allocation::validateIsInt16() [all...] |
rsCppStructs.h | 27 * Every row in an RS allocation is guaranteed to be aligned by this amount, and 28 * every row in a user-backed allocation must be aligned by this amount. 47 class Allocation; 497 sp<const Element> ALLOCATION; 560 * from RenderScript kernels. An Allocation provides the backing store for a 563 * An Allocation also contains a set of usage flags that denote how the 564 * Allocation could be used. For example, an Allocation may have usage flags 567 * syncAll(int) in order to ensure that different users of the Allocation have 568 * a consistent view of memory. For example, in the case where an Allocation i [all...] |
/frameworks/rs/ |
rsAllocation.h | 42 class Allocation : public ObjectBase { 43 // The graphics equivalent of malloc. The allocation contains a structure of elements. 73 // Allocation adapter state 74 const Allocation *baseAlloc; 91 } lod[android::renderscript::Allocation::MAX_LOD]; 111 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages, 114 static Allocation * createAllocationStrided(Context *rsc, const Type *, uint32_t usages, 117 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type); 120 virtual ~Allocation(); [all...] |
rsAllocation.cpp | 28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, 42 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) 54 void Allocation::operator delete(void* ptr) { 56 Allocation *a = (Allocation*) ptr; 61 Allocation * Allocation::createAllocationStrided(Context *rsc, const Type *type, uint32_t usages [all...] |
/libcore/luni/src/test/java/libcore/util/ |
NativeAllocationRegistryTest.java | 39 private static class Allocation { 53 Allocation[] saved = new Allocation[numSavedAllocations]; 69 final Allocation alloc = new Allocation(); 176 // Allocation that returns null should have no effect.
|
/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
RequestBuilder.java | 54 .Allocation { 80 private static interface Allocation { 88 private final List<Allocation> mAllocations; 91 public RequestImpl(CaptureRequestBuilderProxy builder, List<Allocation> allocations, 101 for (Allocation allocation : mAllocations) { 102 allocation.allocate(); 114 for (Allocation allocation : mAllocations) { 115 allocation.abort() [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
avrfsdk.h | 59 ULONG64 Allocation;
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
FindRegion.java | 26 import android.support.v8.renderscript.Allocation; 86 Allocation border_coords; 87 Allocation border_values; 91 border_coords = Allocation.createTyped(mRs, builderI32_2.create()); 93 Allocation border_coords_float; 94 border_coords_float = Allocation.createSized(mRs, Element.F32_2(mRs), mPointsXY.length / 2); 99 findRegion.set_image(Allocation.createFromBitmap(mRs, image)); 103 border_values = Allocation.createTyped(mRs, builderF32_3.create()); 111 Allocation fit = Allocation.createTyped(mRs, builderF32.create()) [all...] |
/external/llvm/lib/CodeGen/ |
StackColoring.cpp | 116 // stack allocation for the function above would look like: 122 // Achieving this allocation is tricky, however, due to the way 532 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); 533 if (Allocation) { 539 DEBUG(dbgs() << " with allocation: " << Allocation->getName() 605 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); 606 if (Allocation) { 607 DEBUG(dbgs() << " with allocation: "<< Allocation->getName()) [all...] |
/external/v8/include/ |
v8-profiler.h | 544 struct Allocation { 546 * Size of the sampled allocation object. 605 std::vector<Allocation> allocations; 702 * allocation in the heap will be recorded and reported as part of 735 * currently live in the system. Each sampled allocation includes the stack 736 * trace at the time of allocation, which makes this really useful for memory 743 * allocation will be sampled every |sample_interval| bytes allocated. The 745 * captured on each allocation. 748 * newspace allocations. Support for paged space allocation (e.g. pre-tenured
|
/frameworks/rs/driver/runtime/ |
rs_structs.h | 11 * internal members of the C++ class Allocation owned by librs. Unfortunately, 30 typedef struct Allocation { 52 // Allocation adapter state 69 } lod[16/*android::renderscript::Allocation::MAX_LOD*/];
|
/external/compiler-rt/lib/asan/ |
asan_report.cc | 76 const char *Allocation() { return Magenta(); } 558 Printf("%sfreed by thread T%d%s here:%s\n", d.Allocation(), 565 d.Allocation(), alloc_thread->tid, 569 Printf("%sallocated by thread T%d%s here:%s\n", d.Allocation(), [all...] |
/frameworks/base/rs/java/android/renderscript/ |
Allocation.java | 32 * and from RenderScript kernels. An Allocation provides the backing store for 35 * <p>An Allocation also contains a set of usage flags that denote how the 36 * Allocation could be used. For example, an Allocation may have usage flags 39 * different usages using {@link android.renderscript.Allocation#syncAll} in 40 * order to ensure that different users of the Allocation have a consistent view 41 * of memory. For example, in the case where an Allocation is used as the output 43 * {@link #syncAll syncAll(Allocation.USAGE_SCRIPT)} prior to launching the 46 * <p>An Allocation can be populated with the {@link #copyFrom} routines. For 57 public class Allocation extends BaseObj [all...] |
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
Allocation.java | 31 * and from RenderScript kernels. An Allocation provides the backing store for 34 * <p>An Allocation also contains a set of usage flags that denote how the 35 * Allocation could be used. For example, an Allocation may have usage flags 39 * {@link android.support.v8.renderscript.Allocation#syncAll} in 40 * order to ensure that different users of the Allocation have a consistent view 41 * of memory. For example, in the case where an Allocation is used as the output 43 * {@link #syncAll syncAll(Allocation.USAGE_SCRIPT)} prior to launching the 46 * <p>An Allocation can be populated with the {@link #copyFrom} routines. For 58 public class Allocation extends BaseObj [all...] |
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
IntrinsicBLAS.java | 28 private ArrayList<Allocation> mMatrixS; 32 private ArrayList<Allocation> mMatrixD; 36 private ArrayList<Allocation> mMatrixC; 40 private ArrayList<Allocation> mMatrixZ; 74 mMatrixS = new ArrayList<Allocation>(); 75 mMatrixD = new ArrayList<Allocation>(); 76 mMatrixC = new ArrayList<Allocation>(); 77 mMatrixZ = new ArrayList<Allocation>(); 80 mMatrixS.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), x, y))); 81 mMatrixD.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64(mRS), x, y))) [all...] |