Home
last modified time | relevance | path

Searched refs:pointers (Results 1 – 25 of 66) sorted by relevance

123

/aosp12/system/extras/memory_replay/tests/
H A DPointersTest.cpp22 Pointers pointers(1); in TEST() local
30 Pointers pointers(1); in TEST() local
36 memory_pointer = pointers.Remove(0x1234); in TEST()
42 Pointers pointers(2); in TEST() local
50 memory_pointer = pointers.Remove(0x1234); in TEST()
55 Pointers pointers(4); in TEST() local
81 Pointers pointers(1); in TestNoEntriesLeft() local
95 Pointers pointers(1); in TestFindNoPointer() local
97 pointers.Remove(0x1234); in TestFindNoPointer()
105 Pointers pointers(1); in TestRemoveZeroValue() local
[all …]
H A DThreadsTest.cpp25 Pointers pointers(2); in TEST() local
27 Threads threads(&pointers, 1); in TEST()
46 Pointers pointers(4); in TEST() local
48 Threads threads(&pointers, 1); in TEST()
89 Pointers pointers(4); in TEST() local
91 Threads threads(&pointers, 1); in TEST()
124 Pointers pointers(4); in TestTooManyThreads() local
126 Threads threads(&pointers, 1); in TestTooManyThreads()
H A DThreadTest.cpp94 TEST(ThreadTest, pointers) { in TEST() argument
95 Pointers pointers(2); in TEST() local
98 ASSERT_TRUE(thread.pointers() == nullptr); in TEST()
99 thread.set_pointers(&pointers); in TEST()
100 ASSERT_TRUE(thread.pointers() == &pointers); in TEST()
/aosp12/system/extras/memory_replay/
H A DAlloc.cpp106 pointers->Add(entry.ptr, memory); in MallocExecute()
118 pointers->Add(entry.ptr, memory); in CallocExecute()
126 old_memory = pointers->Remove(entry.u.old_ptr); in ReallocExecute()
135 pointers->Add(entry.ptr, memory); in ReallocExecute()
147 pointers->Add(entry.ptr, memory); in MemalignExecute()
157 void* memory = pointers->Remove(entry.ptr); in FreeExecute()
166 return MallocExecute(entry, pointers); in AllocExecute()
168 return CallocExecute(entry, pointers); in AllocExecute()
170 return ReallocExecute(entry, pointers); in AllocExecute()
172 return MemalignExecute(entry, pointers); in AllocExecute()
[all …]
H A DThread.h39 void set_pointers(Pointers* pointers) { pointers_ = pointers; } in set_pointers() argument
40 Pointers* pointers() { return pointers_; } in pointers() function
H A Dmain.cpp78 Pointers pointers(max_allocs); in ProcessDump() local
79 Threads threads(&pointers, max_threads); in ProcessDump()
83 NativePrintf("Total pointers available: %zu\n\n", pointers.max_pointers()); in ProcessDump()
136 pointers.FreeAll(); in ProcessDump()
H A DThreads.cpp39 thread->AddTimeNsecs(AllocExecute(entry, thread->pointers())); in ThreadRunner()
49 Threads::Threads(Pointers* pointers, size_t max_threads) in Threads() argument
50 : pointers_(pointers), max_threads_(max_threads) { in Threads()
H A DAlloc.h49 uint64_t AllocExecute(const AllocEntry& entry, Pointers* pointers);
/aosp12/bionic/libc/malloc_debug/tools/
H A Dgen_malloc.pl187 $opts->{pointers}->{$pointer} = $slot;
190 $opts->{pointers}->{$pointer} = -1;
201 $opts->{pointers} = {};
226 if (!exists $opts->{pointers}->{$pointer}) {
233 } elsif ($opts->{pointers}->{$pointer} != -1) {
244 $opts->{pointers}->{$new_pointer} = -1;
245 delete $opts->{pointers}->{$old_pointer};
251 $opts->{pointers}->{$new_pointer} = $slot;
262 if ($opts->{pointers}->{$old_pointer} != -1) {
270 $opts->{pointers}->{$new_pointer} = $slot;
[all …]
/aosp12/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp794 void* pointers[10]; in TEST_F() local
820 uint8_t* pointers[5]; in TEST_F() local
829 pointers[0][20] = 0xaf; in TEST_F()
832 pointers[3][3] = 0x34; in TEST_F()
1053 void* pointers[5]; in TEST_F() local
1221 uint8_t* pointers[3]; in TEST_F() local
1382 pointers.pop_back(); in BacktraceDumpOnSignal()
1698 void* pointers[4]; in TEST_F() local
1757 void* pointers[4]; in TEST_F() local
1815 void* pointers[4]; in TEST_F() local
[all …]
/aosp12/frameworks/native/libs/input/tests/
H A DVelocityTracker_test.cpp93 BitSet32 pointers; in getValidPointers() local
96 pointers.markBit(i); in getValidPointers()
99 return pointers; in getValidPointers()
103 BitSet32 difference(pointers.value ^ otherPointers.value); in getChangingPointerId()
112 BitSet32 pointers = getValidPointers(currentPositions); in resolveAction() local
113 const uint32_t pointerCount = pointers.count(); in resolveAction()
119 uint32_t pointerId = getChangingPointerId(pointers, lastPointers); in resolveAction()
145 BitSet32 pointers = getValidPointers(entry.positions); in createMotionEventStream() local
146 const uint32_t pointerCount = pointers.count(); in createMotionEventStream()
164 while(!pointers.isEmpty()) { in createMotionEventStream()
[all …]
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestEvents.java243 PointerProperties[] pointers = new PointerProperties[1]; in build() local
244 pointers[0] = new PointerProperties(); in build()
245 pointers[0].id = 0; in build()
246 pointers[0].toolType = mState.mToolType; in build()
268 pointers, in build()
/aosp12/frameworks/native/include/input/
H A DInputTransport.h152 } pointers[MAX_POINTERS] __attribute__((aligned(8))); member
157 return pointers[index].properties.id; in getActionId()
540 PointerCoords pointers[MAX_POINTERS]; member
546 uint32_t id = msg.body.motion.pointers[i].properties.id; in initializeFrom()
549 pointers[i].copyFrom(msg.body.motion.pointers[i].coords); in initializeFrom()
560 pointers[index].copyFrom(other.pointers[index]); in initializeFrom()
566 return pointers[idToIndex[id]]; in getPointerById()
/aosp12/frameworks/compile/slang/tests/F_reduce_general_bad_result/
H A Dstderr.txt.expect21 reduce_general_bad_result.rscript:276:28: error: structures containing pointers cannot be used as t…
22 reduce_general_bad_result.rscript:286:31: error: structures containing pointers cannot be used as t…
23 reduce_general_bad_result.rscript:310:28: error: structures containing pointers cannot be used as t…
24 reduce_general_bad_result.rscript:322:31: error: structures containing pointers cannot be used as t…
25 reduce_general_bad_result.rscript:349:33: error: structures containing pointers cannot be used as t…
26 reduce_general_bad_result.rscript:362:36: error: structures containing pointers cannot be used as t…
/aosp12/frameworks/compile/slang/tests/F_ptr_in_struct/
H A Dstderr.txt.expect1 ptr_in_struct.rscript:4:8: error: structures containing pointers cannot be used as the type of an e…
2 ptr_in_struct.rscript:10:8: error: structures containing pointers cannot be used as the type of an …
/aosp12/frameworks/native/libs/input/
H A DInputTransport.cpp256 msg->body.motion.pointers[i].properties.id = body.motion.pointers[i].properties.id; in getSanitizedCopy()
257 msg->body.motion.pointers[i].properties.toolType = in getSanitizedCopy()
258 body.motion.pointers[i].properties.toolType, in getSanitizedCopy()
260 msg->body.motion.pointers[i].coords.bits = body.motion.pointers[i].coords.bits; in getSanitizedCopy()
262 memcpy(&msg->body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
263 &body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
607 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); in publishMotionEvent()
1029 uint32_t id = msg.body.motion.pointers[i].properties.id; in rewriteMessage()
1184 event->addSample(sampleTime, touchState.lastResample.pointers); in resampleTouchState()
1392 if (head.body.motion.pointers[i].properties in canAddSample()
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DInputTestsBase.java334 final InputPointers pointers = new InputPointers(Constants.DEFAULT_GESTURE_POINTS_CAPACITY); in gesture() local
335 pointers.addPointer(oldPoint.x, oldPoint.y, 0 /* pointerId */, timestamp); in gesture()
344 pointers.addPointer(oldPoint.x + ((newPoint.x - oldPoint.x) * j) / STEPS, in gesture()
350 mLatinIME.onUpdateBatchInput(pointers); in gesture()
352 mLatinIME.onEndBatchInput(pointers); in gesture()
/aosp12/frameworks/compile/slang/tests/F_void_ptr/
H A Dstderr.txt.expect1 void_ptr.rscript:4:7: error: void pointers cannot be exported: 'v'
/aosp12/frameworks/compile/slang/tests/F_ptr_to_array/
H A Dstderr.txt.expect1 ptr_to_array.rscript:4:7: error: pointers to arrays cannot be exported: 'arrayptr'
/aosp12/frameworks/compile/slang/tests/F_int_ptr_ptr/
H A Dstderr.txt.expect1 int_ptr_ptr.rscript:4:7: error: multiple levels of pointers cannot be exported: 'myPtr'
/aosp12/frameworks/compile/slang/tests/F_ptr_in_struct_for_call/
H A Dstderr.txt.expect1 ptr_in_struct_for_call.rscript:8:24: error: structures containing pointers cannot be used as the ty…
/aosp12/frameworks/compile/slang/tests/F_struct_field_ptr_to_array/
H A Dstderr.txt.expect1 struct_field_ptr_to_array.rscript:4:8: error: structures containing pointers cannot be used as the …
/aosp12/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_noproto/
H A Dstderr.txt.expect1 struct_field_ptr_to_fn_noproto.rscript:4:8: error: structures containing pointers cannot be used as…
/aosp12/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_proto/
H A Dstderr.txt.expect1 struct_field_ptr_to_fn_proto.rscript:4:8: error: structures containing pointers cannot be used as t…
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
H A DSensorLoggerSession.java140 proto.pointers = new TouchEvent.Pointer[count]; in motionEventToProto()
148 proto.pointers[i] = p; in motionEventToProto()

123