Home | History | Annotate | Download | only in calendar

Lines Matching defs:neighbor

3076                 Event neighbor = mSelectedEvents.get(jj);
3077 int neighborPosition = neighbor.getColumn();
3079 ev.nextUp = neighbor;
3081 ev.nextDown = neighbor;
3149 // Computes the "nearest" neighbor event in four directions (left, right,
3228 // all the other events in that list for the nearest neighbor in 4
3305 // For each neighbor, figure out if it is above or below or left
3311 Event neighbor = mSelectedEvents.get(jj);
3312 int neighborLeft = (int) neighbor.left;
3313 int neighborRight = (int) neighbor.right;
3314 if (neighbor.endTime <= startTime) {
3315 // This neighbor is entirely above me.
3318 int distance = startTime - neighbor.endTime;
3321 upEvent = neighbor;
3341 upEvent = neighbor;
3345 } else if (neighbor.startTime >= endTime) {
3346 // This neighbor is entirely below me.
3349 int distance = neighbor.startTime - endTime;
3352 downEvent = neighbor;
3372 downEvent = neighbor;
3379 // This neighbor is entirely to the right of me.
3380 // Take the closest neighbor in the y direction.
3383 int neighborBottom = (int) neighbor.bottom;
3384 int neighborTop = (int) neighbor.top;
3392 rightEvent = neighbor;
3399 rightEvent = neighbor;
3403 // This neighbor is entirely to the left of me.
3404 // Take the closest neighbor in the y direction.
3407 int neighborBottom = (int) neighbor.bottom;
3408 int neighborTop = (int) neighbor.top;
3416 leftEvent = neighbor;
3423 leftEvent = neighbor;