Lines Matching refs:cur
235 const_iterator cur = begin();
237 while (cur != tail) {
238 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) {
241 cur++;
425 Rect* cur;
428 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() {
468 if (cur->top != rect.top) {
470 } else if (cur->right == rect.left) {
471 cur->right = rect.right;
476 cur = span.editArray() + (span.size() - 1);
516 const_iterator cur = reg.begin();
518 const_iterator prev = cur;
520 while (cur != tail) {
521 if (cur->isValid() == false) {
524 if (*cur != Rect::INVALID_RECT) {
529 if (cur->right > region_operator<Rect>::max_value) {
533 if (cur->bottom > region_operator<Rect>::max_value) {
537 if (prev != cur) {
538 b.left = b.left < cur->left ? b.left : cur->left;
539 b.top = b.top < cur->top ? b.top : cur->top;
540 b.right = b.right > cur->right ? b.right : cur->right;
541 b.bottom = b.bottom > cur->bottom ? b.bottom : cur->bottom;
542 if ((*prev < *cur) == false) {
546 if (cur->top == prev->top) {
547 if (cur->bottom != prev->bottom) {
548 ALOGE_IF(!silent, "%s: invalid span %p", name, cur);
550 } else if (cur->left < prev->right) {
552 "%s: spans overlap horizontally prev=%p, cur=%p",
553 name, prev, cur);
556 } else if (cur->top < prev->bottom) {
558 "%s: spans overlap vertically prev=%p, cur=%p",
559 name, prev, cur);
562 prev = cur;
564 cur++;