Lines Matching refs:cur
230 const_iterator cur = begin(); in contains() local
232 while (cur != tail) { in contains()
233 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) { in contains()
236 cur++; in contains()
414 Rect* cur; member in android::Region::rasterizer
417 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { in rasterizer()
442 if (cur->top != rect.top) { in operator ()()
444 } else if (cur->right == rect.left) { in operator ()()
445 cur->right = rect.right; in operator ()()
450 cur = span.editArray() + (span.size() - 1); in operator ()()
494 const_iterator cur = reg.begin(); in validate() local
496 const_iterator prev = cur; in validate()
498 while (cur != tail) { in validate()
499 if (cur->isValid() == false) { in validate()
503 if (cur->right > region_operator<Rect>::max_value) { in validate()
507 if (cur->bottom > region_operator<Rect>::max_value) { in validate()
511 if (prev != cur) { in validate()
512 b.left = b.left < cur->left ? b.left : cur->left; in validate()
513 b.top = b.top < cur->top ? b.top : cur->top; in validate()
514 b.right = b.right > cur->right ? b.right : cur->right; in validate()
515 b.bottom = b.bottom > cur->bottom ? b.bottom : cur->bottom; in validate()
516 if ((*prev < *cur) == false) { in validate()
520 if (cur->top == prev->top) { in validate()
521 if (cur->bottom != prev->bottom) { in validate()
522 ALOGE_IF(!silent, "%s: invalid span %p", name, cur); in validate()
524 } else if (cur->left < prev->right) { in validate()
527 name, prev, cur); in validate()
530 } else if (cur->top < prev->bottom) { in validate()
533 name, prev, cur); in validate()
536 prev = cur; in validate()
538 cur++; in validate()