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

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/PCH/Inputs/
typo.h 4 + (id)alloc;
  /external/lzma/C/
7zBuf.c 14 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc)
22 p->data = (Byte *)alloc->Alloc(alloc, size);
31 void Buf_Free(CBuf *p, ISzAlloc *alloc)
33 alloc->Free(alloc, p->data);
7zBuf.h 20 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc);
21 void Buf_Free(CBuf *p, ISzAlloc *alloc);
32 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc);
33 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc);
7zBuf2.c 19 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc)
26 data = (Byte *)alloc->Alloc(alloc, newSize);
31 alloc->Free(alloc, p->data);
39 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc)
41 alloc->Free(alloc, p->data);
  /frameworks/support/v8/renderscript/jni/
android_rscompat_usage_io_driver.cpp 15 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) {
16 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
28 alloc->mHal.drvState.lod[0].mallocPtr = dst;
29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes;
35 Allocation *alloc = (Allocation *)allocR; local
36 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX,
50 alloc->mHal.drvState.lod[0].dimY,
57 IoGetBuffer(rsc, alloc, nw)
    [all...]
  /external/skia/tests/
MemsetTest.cpp 12 static void check_alloc(skiatest::Reporter* reporter, const SkChunkAlloc& alloc,
14 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= capacity);
15 REPORTER_ASSERT(reporter, alloc.totalUsed() == used);
16 SkDEBUGCODE(REPORTER_ASSERT(reporter, alloc.blockCount() == numBlocks);)
19 static void* simple_alloc(skiatest::Reporter* reporter, SkChunkAlloc* alloc, size_t size) {
20 void* ptr = alloc->allocThrow(size);
21 check_alloc(reporter, *alloc, size, size, 1);
22 REPORTER_ASSERT(reporter, alloc->contains(ptr));
28 SkChunkAlloc alloc(kMin);
32 check_alloc(reporter, alloc, 0, 0, 0)
    [all...]
  /external/clang/test/PCH/
objc_property.h 8 + alloc;
method_pool.h 16 + alloc; variable
25 + alloc { return 0; }
  /system/extras/ext4_utils/
allocate.h 45 int block_allocation_num_regions(struct block_allocation *alloc);
46 int block_allocation_len(struct block_allocation *alloc);
49 void reduce_allocation(struct block_allocation *alloc, u32 len);
50 u32 get_block(struct block_allocation *alloc, u32 block);
51 u32 get_oob_block(struct block_allocation *alloc, u32 block);
52 void get_next_region(struct block_allocation *alloc);
53 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
62 void free_alloc(struct block_allocation *alloc);
63 int reserve_oob_blocks(struct block_allocation *alloc, int blocks);
64 int advance_blocks(struct block_allocation *alloc, int blocks)
    [all...]
indirect.c 28 static u8 *create_backing(struct block_allocation *alloc,
39 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
43 get_region(alloc, &region_block, &region_len);
55 static void reserve_indirect_block(struct block_allocation *alloc, int len)
57 if (reserve_oob_blocks(alloc, 1)) {
62 if (advance_blocks(alloc, len)) {
68 static void reserve_dindirect_block(struct block_allocation *alloc, int len)
70 if (reserve_oob_blocks(alloc, 1)) {
78 reserve_indirect_block(alloc, ind_block_len)
392 struct block_allocation *alloc = allocate_blocks(block_len + indirect_len); local
405 struct block_allocation *alloc; local
491 struct block_allocation *alloc; local
    [all...]
extent.c 29 static u8 *extent_create_backing(struct block_allocation *alloc,
37 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
41 get_region(alloc, &region_block, &region_len);
55 static void extent_create_backing_file(struct block_allocation *alloc,
59 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
63 get_region(alloc, &region_block, &region_len);
78 struct block_allocation *alloc = allocate_blocks(block_len + 1); local
84 if (alloc == NULL)
183 struct block_allocation *alloc; local
208 struct block_allocation *alloc; local
223 struct block_allocation *alloc; local
    [all...]
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_dense_alloc_test.cc 25 typedef DenseSlabAlloc<int, 128, 128> Alloc;
26 typedef Alloc::Cache Cache;
27 typedef Alloc::IndexT IndexT;
30 Alloc alloc; local
32 alloc.InitCache(&cache);
37 IndexT idx = alloc.Alloc(&cache);
40 int *v = alloc.Map(idx);
46 int *v = alloc.Map(idx)
    [all...]
  /frameworks/rs/driver/
rsdAllocation.cpp 91 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc,
94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
95 ptr += face * alloc->mHal.drvState.faceOffset;
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
98 ptr += xoff * alloc->mHal.state.elementSizeBytes;
103 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr,
107 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
113 if (alloc->mHal.state.hasFaces)
    [all...]
rsdSampler.cpp 45 const Sampler *alloc,
48 obj->p = alloc;
51 if (alloc != nullptr) {
52 obj->v1 = alloc->mHal.drv;
  /external/libcxx/test/std/containers/sequences/vector/vector.cons/
construct_iter_iter_alloc.pass.cpp 51 std::allocator<int> alloc; local
52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); local
53 test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); local
54 test<std::vector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); local
55 test<std::vector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); local
56 test<std::vector<int> >(a, an, alloc);
62 min_allocator<int> alloc; local
63 test<std::vector<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); local
64 test<std::vector<int, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); local
65 test<std::vector<int, min_allocator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); local
66 test<std::vector<int, min_allocator<int>> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); local
    [all...]
  /external/libcxx/test/std/containers/sequences/vector.bool/
construct_iter_iter_alloc.pass.cpp 38 std::allocator<bool> alloc; local
39 test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); local
40 test<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); local
41 test<std::vector<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); local
42 test<std::vector<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); local
43 test<std::vector<bool> >(a, an, alloc);
47 min_allocator<bool> alloc; local
48 test<std::vector<bool, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); local
49 test<std::vector<bool, min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); local
50 test<std::vector<bool, min_allocator<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); local
51 test<std::vector<bool, min_allocator<bool>> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); local
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/
construct_iter_iter_alloc.pass.cpp 51 std::allocator<int> alloc; local
52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); local
53 test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); local
54 test<std::vector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); local
55 test<std::vector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); local
56 test<std::vector<int> >(a, an, alloc);
62 min_allocator<int> alloc; local
63 test<std::vector<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); local
64 test<std::vector<int, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); local
65 test<std::vector<int, min_allocator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); local
66 test<std::vector<int, min_allocator<int>> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); local
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/
construct_iter_iter_alloc.pass.cpp 38 std::allocator<bool> alloc; local
39 test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); local
40 test<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); local
41 test<std::vector<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); local
42 test<std::vector<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); local
43 test<std::vector<bool> >(a, an, alloc);
47 min_allocator<bool> alloc; local
48 test<std::vector<bool, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); local
49 test<std::vector<bool, min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); local
50 test<std::vector<bool, min_allocator<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); local
51 test<std::vector<bool, min_allocator<bool>> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); local
    [all...]
  /prebuilts/misc/common/swig/include/2.0.11/python/
pystrings.swg 6 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
16 if (!alloc && cptr) {
25 if(alloc) *alloc = SWIG_NEWOBJ;
30 if (alloc) {
41 if (*alloc != SWIG_OLDOBJ)
43 if (*alloc == SWIG_NEWOBJ)
47 *alloc = SWIG_NEWOBJ;
51 *alloc = SWIG_OLDOBJ;
72 if (alloc) *alloc = SWIG_OLDOBJ
    [all...]
  /bionic/linker/
linker_memory.cpp 24 return g_linker_allocator.alloc(byte_count);
28 return g_linker_allocator.alloc(item_count*item_size);
  /external/skia/src/core/
SkVarAlloc.cpp 21 static Block* Alloc(Block* prev, size_t size, unsigned flags) {
55 size_t alloc = 1<<fLgSize++; local
56 while (alloc < bytes + sizeof(Block)) {
57 alloc *= 2;
59 fBytesAllocated += alloc;
60 fBlock = Block::Alloc(fBlock, alloc, flags);
62 fRemaining = alloc - sizeof(Block);
65 SkASSERT(alloc == malloc_good_size(alloc));
    [all...]
  /system/core/libutils/
SharedBufferTest.cpp 27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), "");
28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), "");
33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1);
36 buf = android::SharedBuffer::alloc(0);
43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10);
45 buf = android::SharedBuffer::alloc(10);
48 buf = android::SharedBuffer::alloc(10);
54 buf = android::SharedBuffer::alloc(10);
  /device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
mm_jpeg_ionbuf.c 53 p_buffer->alloc.len = p_buffer->size;
54 p_buffer->alloc.align = 4096;
55 p_buffer->alloc.flags = ION_FLAG_CACHED;
56 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID;
65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095);
66 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc);
69 p_buffer->alloc.len);
73 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle;
83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE
    [all...]
  /device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/
mm_jpeg_ionbuf.c 53 p_buffer->alloc.len = p_buffer->size;
54 p_buffer->alloc.align = 4096;
55 p_buffer->alloc.flags = ION_FLAG_CACHED;
56 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID;
65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095);
66 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc);
69 p_buffer->alloc.len);
73 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle;
83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE
    [all...]
  /external/valgrind/massif/tests/
alloc-fns-A.post.exp 2 Command: ./alloc-fns
48 100.00% (3,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
49 ->44.44% (1,600B) 0x........: d4 (alloc-fns.c:18)
50 | ->33.33% (1,200B) 0x........: d3 (alloc-fns.c:19)
51 | | ->22.22% (800B) 0x........: d2 (alloc-fns.c:20)
52 | | | ->11.11% (400B) 0x........: d1 (alloc-fns.c:21)
53 | | | | ->11.11% (400B) 0x........: main (alloc-fns.c:30)
55 | | | ->11.11% (400B) 0x........: main (alloc-fns.c:31)
57 | | ->11.11% (400B) 0x........: main (alloc-fns.c:32)
59 | ->11.11% (400B) 0x........: main (alloc-fns.c:33
    [all...]

Completed in 3273 milliseconds

1 2 3 4 5 6 7 8 91011>>