/external/tensorflow/tensorflow/contrib/lite/ |
allocation.h | 29 // A memory allocation handle. This could be a mmap or shared memory. 30 class Allocation { 32 Allocation(ErrorReporter* error_reporter) : error_reporter_(error_reporter) {} 33 virtual ~Allocation() {} 35 // Base pointer of this allocation 37 // Size in bytes of the allocation 39 // Whether the allocation is valid 46 class MMAPAllocation : public Allocation { 61 class FileCopyAllocation : public Allocation { 75 class MemoryAllocation : public Allocation { [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/ |
allocation_tracker.h | 50 // Unregister the allocation for the given data handle. 62 // Data structure encapsulating single memory allocation on the device. 63 struct Allocation { 64 // The pointer to this allocation. 70 // This is the number of times this memory allocation is referred to by 85 // Adds the given device address to the allocation tracker, or if it already 96 // A map from device memory opaque value to allocation. One such map is 98 using AllocationMap = tensorflow::gtl::FlatMap<const void*, Allocation>; 106 // The next handle to assign to an allocation, guarded by the same mutex as
|
/frameworks/base/libs/hwui/utils/ |
FatVector.h | 44 struct Allocation { 45 PREVENT_COPY_AND_ASSIGN(Allocation); 48 Allocation(){}; 57 explicit InlineStdAllocator(Allocation& allocation) : mAllocation(allocation) {} 78 Allocation& mAllocation; 99 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
|
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmDmaLib/ |
ArmDmaLib.c | 271 VOID *Allocation;
283 Allocation = UncachedAllocatePages (Pages);
285 Allocation = UncachedAllocateRuntimePages (Pages);
290 if (Allocation == NULL) {
294 *HostAddress = Allocation;
|
/external/swiftshader/src/Common/ |
Memory.cpp | 60 struct Allocation 68 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; 73 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); 74 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)); local 76 // allocation->bytes = bytes; 77 allocation->block = block; 100 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)) local [all...] |
/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...] |
/system/core/libmemunreachable/ |
HeapWalker.cpp | 33 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 | 251 // The allocation register keeps track of all allocations that have not been 259 // Details about an allocation. 260 struct Allocation { 271 Allocation operator*() const; 289 // Inserts allocation details into the table. If the address was present 302 // Finds allocation for the address and fills |out_allocation|. 303 bool Get(const void* address, Allocation* out_allocation) const; 342 // when an allocation that references the backtrace is inserted, 343 // and decremented when the allocation is removed. When the 366 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...] |
/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/libcore/util/ |
NativeAllocationRegistryTest.java | 41 private static class Allocation { 55 Allocation[] saved = new Allocation[numSavedAllocations]; 71 final Allocation alloc = new Allocation(); 178 // 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; 720 * allocation in the heap will be recorded and reported as part of 753 * currently live in the system. Each sampled allocation includes the stack 754 * trace at the time of allocation, which makes this really useful for memory 761 * allocation will be sampled every |sample_interval| bytes allocated. The 763 * captured on each allocation. 766 * 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...] |