Lines Matching refs:event
139 int32_t PinchDetector::FindIndex( const AInputEvent* event, int32_t id ) in FindIndex() argument
141 int32_t count = AMotionEvent_getPointerCount( event ); in FindIndex()
144 if( id == AMotionEvent_getPointerId( event, i ) ) in FindIndex()
150 GESTURE_STATE PinchDetector::Detect( const AInputEvent* event ) in Detect() argument
153 int32_t action = AMotionEvent_getAction( event ); in Detect()
155 event_ = event; in Detect()
157 int32_t count = AMotionEvent_getPointerCount( event ); in Detect()
161 vec_pointers_.push_back( AMotionEvent_getPointerId( event, 0 ) ); in Detect()
167 vec_pointers_.push_back( AMotionEvent_getPointerId( event, iIndex ) ); in Detect()
182 int32_t released_pointer_id = AMotionEvent_getPointerId( event, index ); in Detect()
254 int32_t DragDetector::FindIndex( const AInputEvent* event, int32_t id ) in FindIndex() argument
256 int32_t count = AMotionEvent_getPointerCount( event ); in FindIndex()
259 if( id == AMotionEvent_getPointerId( event, i ) ) in FindIndex()
265 GESTURE_STATE DragDetector::Detect( const AInputEvent* event ) in Detect() argument
268 int32_t action = AMotionEvent_getAction( event ); in Detect()
272 event_ = event; in Detect()
274 int32_t count = AMotionEvent_getPointerCount( event ); in Detect()
278 vec_pointers_.push_back( AMotionEvent_getPointerId( event, 0 ) ); in Detect()
282 vec_pointers_.push_back( AMotionEvent_getPointerId( event, index ) ); in Detect()
290 int32_t released_pointer_id = AMotionEvent_getPointerId( event, index ); in Detect()