| /system/chre/util/tests/ |
| D | shared_ptr_test.cc | 52 chre::SharedPtr<TestBase> ptr; in TEST_F() local 58 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 64 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 73 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 82 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 91 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 101 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(specialVal); in TEST_F() local 107 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local 120 chre::SharedPtr<TestBase> ptr = chre::MakeShared<TestBase>(); in TEST_F() local
|
| /system/memory/libmemunreachable/ |
| D | Allocator.cpp | 95 void* ptr; member 129 void* ptr = mmap(NULL, map_size, prot, flags, -1, 0); in MapAligned() local 173 static Chunk* ptr_to_chunk(void* ptr) { in ptr_to_chunk() 176 static bool is_chunk(void* ptr) { in is_chunk() 198 unsigned int ptr_to_n(void* ptr) { in ptr_to_n() 219 void Chunk::operator delete(void* ptr) { in operator delete() 261 void Chunk::Free(void* ptr) { in Free() 297 void HeapImpl::operator delete(void* ptr) { in operator delete() 352 void HeapImpl::Free(void* ptr) { in Free() 357 void HeapImpl::FreeLocked(void* ptr) { in FreeLocked() [all …]
|
| /system/media/audio_utils/ |
| D | tinysndfile.c | 39 static unsigned little2u(unsigned char *ptr) in little2u() 44 static unsigned little4u(unsigned char *ptr) in little4u() 56 static void my_swab(short *ptr, size_t numToSwap) in my_swab() 289 static void write4u(unsigned char *ptr, unsigned u) in write4u() 423 sf_count_t sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames) in sf_readf_short() 472 sf_count_t sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) in sf_readf_float() 520 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) in sf_readf_int() 568 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) in sf_writef_short() 605 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) in sf_writef_float() 630 sf_count_t sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desiredFrames) in sf_writef_int()
|
| /system/chre/util/include/chre/util/system/ |
| D | callback_allocator_impl.h | 52 void CallbackAllocator<Metadata>::DoDeallocate(void *ptr) { in DoDeallocate() 77 CallbackAllocator<Metadata>::MakeUniqueArrayWithCallback(std::byte *ptr, in MakeUniqueArrayWithCallback() 95 CallbackAllocator<Metadata>::GetAndRemoveCallbackRecord(void *ptr) { in GetAndRemoveCallbackRecord()
|
| /system/memory/libion/tests/ |
| D | map_test.cpp | 39 void* ptr; in TEST_F() local 60 unsigned char* ptr; in TEST_F() local 93 void* ptr; in TEST_F() local 118 void* ptr; in TEST_F() local
|
| /system/chre/apps/nearby/third_party/nanopb/ |
| D | pb.h | 253 const void *ptr; member 389 #define pb_realloc(ptr, size) realloc(ptr, size) argument 392 #define pb_free(ptr) free(ptr) argument 428 #define PB_REQUIRED_STATIC(tag, st, m, fd, ltype, ptr) \ argument 438 #define PB_OPTIONAL_STATIC(tag, st, m, fd, ltype, ptr) \ argument 447 #define PB_SINGULAR_STATIC(tag, st, m, fd, ltype, ptr) \ argument 458 #define PB_REPEATED_STATIC(tag, st, m, fd, ltype, ptr) \ argument 468 #define PB_REQUIRED_POINTER(tag, st, m, fd, ltype, ptr) \ argument 479 #define PB_OPTIONAL_POINTER(tag, st, m, fd, ltype, ptr) \ argument 489 #define PB_SINGULAR_POINTER(tag, st, m, fd, ltype, ptr) \ argument [all …]
|
| /system/chre/test/simulation/ |
| D | memory_test.cc | 52 void *ptr = chreHeapAlloc(*bytes); in TEST_F() local 57 auto ptr = static_cast<void **>(event->data); in TEST_F() local 121 void *ptr = chreHeapAlloc(*bytes); in TEST_F() local 177 void *ptr = chreHeapAlloc(*bytes); in TEST_F() local 182 auto ptr = static_cast<void **>(event->data); in TEST_F() local
|
| /system/chre/platform/shared/mbedtls/ |
| D | mbedtls_memory.cc | 28 void *ptr = chre::memoryAlloc(totalSize); in mbedtlsMemoryCalloc() local 35 void mbedtlsMemoryFree(void *ptr) { in mbedtlsMemoryFree()
|
| /system/chre/chpp/platform/linux/ |
| D | memory.c | 37 void *ptr = NULL; in chppMalloc() local 59 void chppFree(void *ptr) { in chppFree() 77 void *ptr = NULL; in chppRealloc() local
|
| /system/chre/platform/linux/include/chre/target_platform/ |
| D | memory_impl.h | 27 void *ptr; in memoryAlignedAlloc() local 37 void *ptr; in memoryAlignedAllocArray() local
|
| /system/memory/libmemunreachable/tests/ |
| D | Allocator_test.cpp | 43 void* ptr = allocator.allocate(); in TEST_F() local 66 void* ptr[num]; in TEST_F() local 90 void* ptr = allocator.allocate(); in TEST_F() local 99 void* ptr[num]; in TEST_F() local 161 Allocator<int>::shared_ptr ptr = allocator.make_shared(0); in TEST_F() local 171 Allocator<int>::unique_ptr ptr = allocator.make_unique(0); in TEST_F() local
|
| D | MemUnreachable_test.cpp | 46 void Set(void* ptr) { ptr_ = ~reinterpret_cast<uintptr_t>(ptr); } in Set() 51 static void Ref(void** ptr) { in Ref() 99 void* ptr = hidden_ptr.Get(); in TEST_F() local 199 void* ptr = hidden_ptr.Get(); in TEST_F() local
|
| /system/core/fs_mgr/libfiemap/ |
| D | fiemap_writer_test.cpp | 148 auto ptr = FiemapWriter::Open(testfile, gBlockSize, true, std::move(callback)); in TEST_F() local 154 auto ptr = FiemapWriter::Open(testfile, 4096); in TEST_F() local 196 auto ptr = FiemapWriter::Open(testfile, 0, false); in TEST_F() local 204 auto ptr = FiemapWriter::Open(testfile, gBlockSize, true, std::move(callback)); in TEST_F() local 279 auto ptr = SplitFiemap::Create(testfile, 1024 * 768, 1024 * 32); in TEST_F() local 298 auto ptr = SplitFiemap::Create(testfile, 1024 * 768, 1024 * 32); in TEST_F() local 302 auto ptr = SplitFiemap::Open(testfile); in TEST_F() local 310 auto ptr = SplitFiemap::Create(testfile, 1024 * 1024 * 100, 1); in TEST_F() local 357 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F() local 375 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F() local [all …]
|
| /system/chre/core/tests/ |
| D | memory_manager_test.cc | 42 void *ptr = manager.nanoappAlloc(&app, 1u); in TEST() local 62 void *ptr = manager.nanoappAlloc(&app, 0u); in TEST() local 71 void *ptr = manager.nanoappAlloc(&app, manager.getMaxAllocationBytes() + 1); in TEST() local 105 void *ptr = manager.nanoappAlloc(&app, -1u); in TEST() local
|
| /system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/nanoapp/ |
| D | assert.h | 50 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != nullptr) argument 52 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != NULL) argument
|
| /system/chre/util/include/chre/util/nanoapp/ |
| D | assert.h | 50 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != nullptr) argument 52 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != NULL) argument
|
| /system/chre/util/include/chre/util/host/ |
| D | assert.h | 42 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != nullptr) argument 44 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != NULL) argument
|
| /system/tools/aidl/ |
| D | code_writer_unittest.cpp | 31 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() local 40 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() local 64 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() local
|
| /system/incremental_delivery/incfs/tests/ |
| D | hardening_benchmark.cpp | 103 incfs::access(mapping->data(), [&](auto ptr) { val += *ptr; }); in TestAccess() 112 incfs::access(mapping->data(), [&](auto ptr) { in TestAccessFast() 125 incfs::access(mapping->data(), [&](auto ptr) { return val += *ptr; }); in TestAccessVal() 136 incfs::access(mapping->data(), [&](auto ptr) { val += *ptr; }); in TestAccessNested() 149 incfs::access(mapping->data(), [&](auto ptr) { val += *ptr; }); in TestAccessDoubleNested() 160 incfs::access(mapping->data(), [&](auto ptr) { val += *ptr; }); in TestAccessError()
|
| /system/chre/apps/test/chqts/src/shared/ |
| D | chunk_allocator.h | 85 bool free(void *ptr) { in free() 93 bool contains(const void *ptr) const { in contains()
|
| D | chunk_allocator_test.cc | 26 static void ExpectGoodAlloc(const DA &da, const void *ptr) { in ExpectGoodAlloc() 33 void *ptr = da.alloc(kAllocSize); in TEST() local 66 uint8_t *ptr = static_cast<uint8_t *>(da.alloc(kAllocSize)); in TEST() local
|
| /system/memory/libdmabufheap/tests/ |
| D | dmabuf_heap_test.cpp | 41 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in DoAlloc() local 184 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() local 206 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F() local 228 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() local 263 void* ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() local 316 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() local
|
| /system/chre/util/include/chre/util/ |
| D | container_support.h | 61 void *ptr; in memoryAlignedAllocArray() local 125 void *ptr; in memoryAlignedAllocArray() local
|
| /system/chre/apps/test/chqts/src/general_test/ |
| D | heap_alloc_stress_test.cc | 35 void *ptr = chreHeapAlloc(hugeSize); in tryAbsurdMalloc() local 83 void *ptr = chreHeapAlloc(curr_alloc_size); in setUp() local
|
| /system/chre/platform/include/chre/platform/ |
| D | assert.h | 54 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != nullptr) argument 56 #define CHRE_ASSERT_NOT_NULL(ptr) CHRE_ASSERT((ptr) != NULL) argument
|