• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:data

72             TouchHistory data = sPool.acquire();  in obtain()  local
73 if (data == null) { in obtain()
74 data = new TouchHistory(); in obtain()
77 data.setTouch(x, y, pressure); in obtain()
79 return data; in obtain()
154 TouchHistory data = TouchHistory.obtain(event.getX(0), event.getY(0), in onTouchEvent() local
156 data.label = "id: " + 0; in onTouchEvent()
163 mTouches.put(id, data); in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent() local
186 data.label = "id: " + id; in onTouchEvent()
194 mTouches.put(id, data); in onTouchEvent()
211 TouchHistory data = mTouches.get(id); in onTouchEvent() local
213 data.recycle(); in onTouchEvent()
234 TouchHistory data = mTouches.get(id); in onTouchEvent() local
236 data.recycle(); in onTouchEvent()
264 TouchHistory data = mTouches.get(id); in onTouchEvent() local
267 data.addHistory(data.x, data.y); in onTouchEvent()
268 data.setTouch(event.getX(index), event.getY(index), in onTouchEvent()
303 TouchHistory data = mTouches.valueAt(i); in onDraw() local
306 drawCircle(canvas, id, data); in onDraw()
373 protected void drawCircle(Canvas canvas, int id, TouchHistory data) { in drawCircle() argument
383 float pressure = Math.min(data.pressure, 1f); in drawCircle()
386 canvas.drawCircle(data.x, (data.y) - (radius / 2f), radius, in drawCircle()
391 for (int j = 0; j < data.history.length && j < data.historyCount; j++) { in drawCircle()
392 PointF p = data.history[j]; in drawCircle()
397 canvas.drawText(data.label, data.x + radius, data.y in drawCircle()