Home | History | Annotate | Download | only in calendar

Lines Matching refs:neighbor

3073                 Event neighbor = mSelectedEvents.get(jj);
3074 int neighborPosition = neighbor.getColumn();
3076 ev.nextUp = neighbor;
3078 ev.nextDown = neighbor;
3146 // Computes the "nearest" neighbor event in four directions (left, right,
3225 // all the other events in that list for the nearest neighbor in 4
3302 // For each neighbor, figure out if it is above or below or left
3308 Event neighbor = mSelectedEvents.get(jj);
3309 int neighborLeft = (int) neighbor.left;
3310 int neighborRight = (int) neighbor.right;
3311 if (neighbor.endTime <= startTime) {
3312 // This neighbor is entirely above me.
3315 int distance = startTime - neighbor.endTime;
3318 upEvent = neighbor;
3338 upEvent = neighbor;
3342 } else if (neighbor.startTime >= endTime) {
3343 // This neighbor is entirely below me.
3346 int distance = neighbor.startTime - endTime;
3349 downEvent = neighbor;
3369 downEvent = neighbor;
3376 // This neighbor is entirely to the right of me.
3377 // Take the closest neighbor in the y direction.
3380 int neighborBottom = (int) neighbor.bottom;
3381 int neighborTop = (int) neighbor.top;
3389 rightEvent = neighbor;
3396 rightEvent = neighbor;
3400 // This neighbor is entirely to the left of me.
3401 // Take the closest neighbor in the y direction.
3404 int neighborBottom = (int) neighbor.bottom;
3405 int neighborTop = (int) neighbor.top;
3413 leftEvent = neighbor;
3420 leftEvent = neighbor;