Lines Matching defs:Region

17 #define LOG_TAG "Region"
27 #include <ui/Region.h>
58 Region::Region() {
62 Region::Region(const Region& rhs)
70 Region::Region(const Rect& rhs) {
74 Region::~Region()
186 Region Region::createTJunctionFreeRegion(const Region& r) {
193 Region outputRegion;
205 Region& Region::operator = (const Region& rhs)
215 Region& Region::makeBoundsSelf()
225 bool Region::contains(const Point& point) const {
229 bool Region::contains(int x, int y) const {
241 void Region::clear()
247 void Region::set(const Rect& r)
253 void Region::set(uint32_t w, uint32_t h)
259 bool Region::isTriviallyEqual(const Region& region) const {
265 void Region::addRectUnchecked(int l, int t, int r, int b)
274 Region& Region::orSelf(const Rect& r) {
277 Region& Region::xorSelf(const Rect& r) {
280 Region& Region::andSelf(const Rect& r) {
283 Region& Region::subtractSelf(const Rect& r) {
286 Region& Region::operationSelf(const Rect& r, int op) {
287 Region lhs(*this);
294 Region& Region::orSelf(const Region& rhs) {
297 Region& Region::xorSelf(const Region& rhs) {
300 Region& Region::andSelf(const Region& rhs) {
303 Region& Region::subtractSelf(const Region& rhs) {
306 Region& Region::operationSelf(const Region& rhs, int op) {
307 Region lhs(*this);
312 Region& Region::translateSelf(int x, int y) {
319 const Region Region::merge(const Rect& rhs) const {
322 const Region Region::mergeExclusive(const Rect& rhs) const {
325 const Region Region::intersect(const Rect& rhs) const {
328 const Region Region::subtract(const Rect& rhs) const {
331 const Region Region::operation(const Rect& rhs, int op) const {
332 Region result;
339 const Region Region::merge(const Region& rhs) const {
342 const Region Region::mergeExclusive(const Region& rhs) const {
345 const Region Region::intersect(const Region& rhs) const {
348 const Region Region::subtract(const Region& rhs) const {
351 const Region Region::operation(const Region& rhs, int op) const {
352 Region result;
357 const Region Region::translate(int x, int y) const {
358 Region result;
365 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
368 Region& Region::xorSelf(const Region& rhs, int dx, int dy) {
371 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
374 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
377 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
378 Region lhs(*this);
385 const Region Region::merge(const Region& rhs, int dx, int dy) const {
388 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const {
391 const Region Region::intersect(const Region& rhs, int dx, int dy) const {
394 const Region Region::subtract(const Region& rhs, int dx, int dy) const {
397 const Region Region::operation(const Region& rhs, int dx, int dy, int op) const {
398 Region result;
407 class Region::rasterizer : public region_operator<Rect>::region_rasterizer
416 rasterizer(Region& reg)
491 bool Region::validate(const Region& reg, const char* name, bool silent)
559 void Region::boolean_operation(int op, Region& dst,
560 const Region& lhs,
561 const Region& rhs, int dx, int dy)
624 Region::const_iterator head = dst.begin();
625 Region::const_iterator const tail = dst.end();
669 void Region::boolean_operation(int op, Region& dst,
670 const Region& lhs,
674 ALOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}",
680 boolean_operation(op, dst, lhs, Region(rhs), dx, dy);
696 void Region::boolean_operation(int op, Region& dst,
697 const Region& lhs, const Region& rhs)
702 void Region::boolean_operation(int op, Region& dst,
703 const Region& lhs, const Rect& rhs)
708 void Region::translate(Region& reg, int dx, int dy)
727 void Region::translate(Region& dst, const Region& reg, int dx, int dy)
735 size_t Region::getFlattenedSize() const {
739 status_t Region::flatten(void* buffer, size_t size) const {
741 validate(*this, "Region::flatten");
751 status_t Region::unflatten(void const* buffer, size_t size) {
752 Region result;
766 validate(result, "Region::unflatten");
769 if (!result.validate(result, "Region::unflatten", true)) {
770 ALOGE("Region::unflatten() failed, invalid region");
779 Region::const_iterator Region::begin() const {
783 Region::const_iterator Region::end() const {
788 Rect const* Region::getArray(size_t* count) const {
795 SharedBuffer const* Region::getSharedBuffer(size_t* count) const {
809 void Region::dump(String8& out, const char* what, uint32_t flags) const
818 snprintf(buffer, SIZE, " Region %s (this=%p, count=%" PRIdPTR ")\n",
829 void Region::dump(const char* what, uint32_t flags) const
834 ALOGD(" Region %s (this=%p, count=%" PRIdPTR ")\n", what, this, tail-head);