Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 3 of 3) sorted by relevance

/system/chre/apps/chqts/src/general_test/
Dheap_alloc_stress_test.cc75 void **ptrs = reinterpret_cast<void**>( in setUp() local
77 if (ptrs == NULL) { in setUp()
99 ptrs[index] = ptr; in setUp()
108 chreHeapFree(ptrs[index]); in setUp()
109 ptrs[index] = chreHeapAlloc(last_alloc_size); in setUp()
110 if (ptrs[index] == NULL) { in setUp()
118 chreHeapFree(ptrs[i]); in setUp()
120 chreHeapFree(ptrs); in setUp()
/system/chre/apps/chqts/src/shared/
Ddumb_allocator_test.cc40 void *ptrs[kSlotCount]; in TEST() local
42 ptrs[i] = da.alloc(kAllocSize); in TEST()
43 ExpectGoodAlloc(da, ptrs[i]); in TEST()
46 EXPECT_NE(ptrs[j], ptrs[i]); in TEST()
53 EXPECT_TRUE(da.free(ptrs[kFreeIndex])); in TEST()
54 ptrs[kFreeIndex] = nullptr; in TEST()
60 EXPECT_NE(newPtr, ptrs[i]); in TEST()
/system/extras/memory_replay/
DTraceBenchmark.cpp45 void** ptrs = nullptr; member
60 void* ptr = trace_data->ptrs[i]; in FreePtrs()
63 trace_data->ptrs[i] = nullptr; in FreePtrs()
69 if (trace_data->ptrs == nullptr) { in FreeTraceData()
73 munmap(trace_data->ptrs, sizeof(void*) * trace_data->num_ptrs); in FreeTraceData()
147 trace_data->ptrs = reinterpret_cast<void**>(map); in GetTraceData()
156 void** ptrs = trace_data->ptrs; in RunTrace() local
170 if (ptrs[entry.ptr] != nullptr) { in RunTrace()
173 ptrs[entry.ptr] = ptr; in RunTrace()
185 if (ptrs[entry.ptr] != nullptr) { in RunTrace()
[all …]