Lines Matching defs:Region
17 #define LOG_TAG "Region"
27 #include <ui/Region.h>
56 const Region Region::INVALID_REGION(Rect::INVALID_RECT);
60 Region::Region() {
64 Region::Region(const Region& rhs)
72 Region::Region(const Rect& rhs) {
76 Region::~Region()
191 Region Region::createTJunctionFreeRegion(const Region& r) {
198 Region outputRegion;
210 Region& Region::operator = (const Region& rhs)
220 Region& Region::makeBoundsSelf()
230 bool Region::contains(const Point& point) const {
234 bool Region::contains(int x, int y) const {
246 void Region::clear()
252 void Region::set(const Rect& r)
258 void Region::set(int32_t w, int32_t h)
264 void Region::set(uint32_t w, uint32_t h)
270 bool Region::isTriviallyEqual(const Region& region) const {
276 void Region::addRectUnchecked(int l, int t, int r, int b)
285 Region& Region::orSelf(const Rect& r) {
288 Region& Region::xorSelf(const Rect& r) {
291 Region& Region::andSelf(const Rect& r) {
294 Region& Region::subtractSelf(const Rect& r) {
297 Region& Region::operationSelf(const Rect& r, int op) {
298 Region lhs(*this);
305 Region& Region::orSelf(const Region& rhs) {
308 Region& Region::xorSelf(const Region& rhs) {
311 Region& Region::andSelf(const Region& rhs) {
314 Region& Region::subtractSelf(const Region& rhs) {
317 Region& Region::operationSelf(const Region& rhs, int op) {
318 Region lhs(*this);
323 Region& Region::translateSelf(int x, int y) {
330 const Region Region::merge(const Rect& rhs) const {
333 const Region Region::mergeExclusive(const Rect& rhs) const {
336 const Region Region::intersect(const Rect& rhs) const {
339 const Region Region::subtract(const Rect& rhs) const {
342 const Region Region::operation(const Rect& rhs, int op) const {
343 Region result;
350 const Region Region::merge(const Region& rhs) const {
353 const Region Region::mergeExclusive(const Region& rhs) const {
356 const Region Region::intersect(const Region& rhs) const {
359 const Region Region::subtract(const Region& rhs) const {
362 const Region Region::operation(const Region& rhs, int op) const {
363 Region result;
368 const Region Region::translate(int x, int y) const {
369 Region result;
376 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
379 Region& Region::xorSelf(const Region& rhs, int dx, int dy) {
382 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
385 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
388 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
389 Region lhs(*this);
396 const Region Region::merge(const Region& rhs, int dx, int dy) const {
399 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const {
402 const Region Region::intersect(const Region& rhs, int dx, int dy) const {
405 const Region Region::subtract(const Region& rhs, int dx, int dy) const {
408 const Region Region::operation(const Region& rhs, int dx, int dy, int op) const {
409 Region result;
418 class Region::rasterizer : public region_operator<Rect>::region_rasterizer
427 rasterizer(Region& reg)
445 Region::rasterizer::~rasterizer()
463 void Region::rasterizer::operator()(const Rect& rect)
479 void Region::rasterizer::flushSpan()
513 bool Region::validate(const Region& reg, const char* name, bool silent)
585 void Region::boolean_operation(int op, Region& dst,
586 const Region& lhs,
587 const Region& rhs, int dx, int dy)
650 Region::const_iterator head = dst.begin();
651 Region::const_iterator const tail = dst.end();
695 void Region::boolean_operation(int op, Region& dst,
696 const Region& lhs,
702 ALOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}",
708 boolean_operation(op, dst, lhs, Region(rhs), dx, dy);
724 void Region::boolean_operation(int op, Region& dst,
725 const Region& lhs, const Region& rhs)
730 void Region::boolean_operation(int op, Region& dst,
731 const Region& lhs, const Rect& rhs)
736 void Region::translate(Region& reg, int dx, int dy)
755 void Region::translate(Region& dst, const Region& reg, int dx, int dy)
763 size_t Region::getFlattenedSize() const {
767 status_t Region::flatten(void* buffer, size_t size) const {
769 validate(*this, "Region::flatten");
787 status_t Region::unflatten(void const* buffer, size_t size) {
803 Region result;
816 validate(result, "Region::unflatten");
819 if (!result.validate(result, "Region::unflatten", true)) {
820 ALOGE("Region::unflatten() failed, invalid region");
829 Region::const_iterator Region::begin() const {
833 Region::const_iterator Region::end() const {
838 Rect const* Region::getArray(size_t* count) const {
845 void Region::dump(String8& out, const char* what, uint32_t /* flags */) const
850 out.appendFormat(" Region %s (this=%p, count=%" PRIdPTR ")\n",
859 void Region::dump(const char* what, uint32_t /* flags */) const
863 ALOGD(" Region %s (this=%p, count=%" PRIdPTR ")\n", what, this, tail-head);