Lines Matching refs:ds
90 DragState[] ds;
94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
96 for (int i = 0; i < ds.length; i++) {
97 buffer.removeSpan(ds[i]);
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
108 for (int i = 0; i < ds.length; i++) {
109 buffer.removeSpan(ds[i]);
112 if (ds.length > 0 && ds[0].mUsed) {
119 ds = buffer.getSpans(0, buffer.length(), DragState.class);
121 if (ds.length > 0) {
122 ds[0].mIsSelectionStarted = false;
124 if (ds[0].mFarEnough == false) {
127 if (Math.abs(event.getX() - ds[0].mX) >= slop ||
128 Math.abs(event.getY() - ds[0].mY) >= slop) {
129 ds[0].mFarEnough = true;
131 ds[0].mIsActivelySelecting = true;
132 ds[0].mIsSelectionStarted = true;
137 if (ds[0].mFarEnough) {
138 ds[0].mUsed = true;
146 ds[0].mIsActivelySelecting = false;
154 dx = event.getX() - ds[0].mX;
155 dy = event.getY() - ds[0].mY;
157 dx = ds[0].mX - event.getX();
158 dy = ds[0].mY - event.getY();
160 ds[0].mX = event.getX();
161 ds[0].mY = event.getY();
197 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
198 return ds.length > 0 ? ds[0].mScrollX : -1;
206 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
207 return ds.length > 0 ? ds[0].mScrollY : -1;
219 DragState[] ds;
220 ds = buffer.getSpans(0, buffer.length(), DragState.class);
222 return ds.length > 0 && ds[0].mIsActivelySelecting;
235 DragState[] ds;
236 ds = buffer.getSpans(0, buffer.length(), DragState.class);
238 return ds.length > 0 && ds[0].mIsSelectionStarted;