Home
last modified time | relevance | path

Searched refs:Region (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/native/include/ui/
DRegion.h35 class Region : public LightFlattenable<Region>
38 static const Region INVALID_REGION;
40 Region();
41 Region(const Region& rhs);
42 explicit Region(const Rect& rhs);
43 ~Region();
45 static Region createTJunctionFreeRegion(const Region& r);
47 Region& operator = (const Region& rhs);
59 Region& makeBoundsSelf();
66 Region& orSelf(const Rect& rhs);
[all …]
/frameworks/native/libs/ui/
DRegion.cpp56 const Region Region::INVALID_REGION(Rect::INVALID_RECT);
60 Region::Region() { in Region() function in android::Region
64 Region::Region(const Region& rhs) in Region() function in android::Region
72 Region::Region(const Rect& rhs) { in Region() function in android::Region
76 Region::~Region() in ~Region()
191 Region Region::createTJunctionFreeRegion(const Region& r) { in createTJunctionFreeRegion()
198 Region outputRegion; in createTJunctionFreeRegion()
210 Region& Region::operator = (const Region& rhs) in operator =()
220 Region& Region::makeBoundsSelf() in makeBoundsSelf()
230 bool Region::contains(const Point& point) const { in contains()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java23 public class Region implements Parcelable { class
27 private static final SynchronizedPool<Region> sPool =
28 new SynchronizedPool<Region>(MAX_POOL_SIZE);
56 public Region() { in Region() method in Region
62 public Region(Region region) { in Region() method in Region
69 public Region(Rect r) { in Region() method in Region
76 public Region(int left, int top, int right, int bottom) { in Region() method in Region
89 public boolean set(Region region) { in set()
112 public boolean setPath(Path path, Region clip) { in setPath()
215 public native boolean quickReject(Region rgn); in quickReject()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
DLVDBE_Init.c75 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Size = sizeof(LVDBE_Instance_t); in LVDBE_Memory()
76 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Alignment = LVDBE_INSTANCE_ALIGN; in LVDBE_Memory()
77 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Type = LVDBE_PERSISTENT; in LVDBE_Memory()
78 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; in LVDBE_Memory()
83 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Size = sizeof(LVDBE_Data_t); in LVDBE_Memory()
84 … pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Alignment = LVDBE_PERSISTENT_DATA_ALIGN; in LVDBE_Memory()
85 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Type = LVDBE_PERSISTENT_DATA; in LVDBE_Memory()
86 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].pBaseAddress = LVM_NULL; in LVDBE_Memory()
91 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_COEF].Size = sizeof(LVDBE_Coef_t); in LVDBE_Memory()
92 … pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_COEF].Alignment = LVDBE_PERSISTENT_COEF_ALIGN; in LVDBE_Memory()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Init.c217 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
219 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
220 …if (CS_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = CS_MemT… in LVM_GetMemoryTable()
250 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
252 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
253 …if (DBE_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = DBE_Me… in LVM_GetMemoryTable()
284 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
286 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
287 …if (EQNB_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = EQNB_… in LVM_GetMemoryTable()
341 PSA_MemTab.Region[LVM_PERSISTENT_SLOW_DATA].Size); in LVM_GetMemoryTable()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_Init.c89 … pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Size = InstAlloc_GetTotal(&AllocMem); in LVEQNB_Memory()
90 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Alignment = LVEQNB_INSTANCE_ALIGN; in LVEQNB_Memory()
91 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Type = LVEQNB_PERSISTENT; in LVEQNB_Memory()
92 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; in LVEQNB_Memory()
110 …pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Size = InstAlloc_GetTotal(&AllocMem… in LVEQNB_Memory()
111 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Alignment = LVEQNB_DATA_ALIGN; in LVEQNB_Memory()
112 … pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Type = LVEQNB_PERSISTENT_DATA; in LVEQNB_Memory()
113 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].pBaseAddress = LVM_NULL; in LVEQNB_Memory()
126 …pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_COEF].Size = InstAlloc_GetTotal(&AllocMem… in LVEQNB_Memory()
127 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_COEF].Alignment = LVEQNB_COEF_ALIGN; in LVEQNB_Memory()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DInstAlloc.c89 StartAddr = (uintptr_t)pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress; in InstAlloc_InitAll()
95 StartAddr = (uintptr_t)pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress; in InstAlloc_InitAll()
101 StartAddr = (uintptr_t)pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress; in InstAlloc_InitAll()
107 StartAddr = (uintptr_t)pMemoryTable->Region[LVM_TEMPORARY_FAST].pBaseAddress; in InstAlloc_InitAll()
150 …pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll()
151 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Type = LVM_PERSISTENT_SLOW_DATA; in InstAlloc_AddMemberAll()
152 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; in InstAlloc_AddMemberAll()
156 …pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll()
157 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Type = LVM_PERSISTENT_FAST_DATA; in InstAlloc_AddMemberAll()
158 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL; in InstAlloc_AddMemberAll()
[all …]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_Init.c80 …pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].Size = (LVM_UINT32)sizeof(LVCS_I… in LVCS_Memory()
81 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].Type = LVCS_PERSISTENT; in LVCS_Memory()
82 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; in LVCS_Memory()
87 …pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].Size = (LVM_UINT32)sizeof(LVCS_D… in LVCS_Memory()
88 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].Type = LVCS_DATA; in LVCS_Memory()
89 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL; in LVCS_Memory()
94 …pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].Size = (LVM_UINT32)sizeof(LVCS_C… in LVCS_Memory()
95 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].Type = LVCS_COEFFICIENT; in LVCS_Memory()
96 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress = LVM_NULL; in LVCS_Memory()
102 pMemoryTable->Region[LVCS_MEMREGION_TEMPORARY_FAST].Size = ScratchSize; in LVCS_Memory()
[all …]
DLVCS_ReverbGenerator.c69 …LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_P… in LVCS_ReverbGeneratorInit()
70 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_… in LVCS_ReverbGeneratorInit()
191 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_… in LVCS_ReverbGenerator()
192 …LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEM… in LVCS_ReverbGenerator()
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
DLVREV_GetMemoryTable.c153 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&SlowData); in LVREV_GetMemoryTable()
154 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Type = LVM_PERSISTENT_SLOW_DATA; in LVREV_GetMemoryTable()
155 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; in LVREV_GetMemoryTable()
181 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&FastData); in LVREV_GetMemoryTable()
182 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Type = LVM_PERSISTENT_FAST_DATA; in LVREV_GetMemoryTable()
183 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL; in LVREV_GetMemoryTable()
190 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].Size = InstAlloc_GetTotal(&FastCoef); in LVREV_GetMemoryTable()
191 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].Type = LVM_PERSISTENT_FAST_COEF; in LVREV_GetMemoryTable()
192 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress = LVM_NULL; in LVREV_GetMemoryTable()
225 pMemoryTable->Region[LVM_TEMPORARY_FAST].Size = InstAlloc_GetTotal(&Temporary); in LVREV_GetMemoryTable()
[all …]
DLVREV_GetInstanceHandle.c74 if (pMemoryTable->Region[i].Size!=0) in LVREV_GetInstanceHandle()
76 if (pMemoryTable->Region[i].pBaseAddress==LVM_NULL) in LVREV_GetInstanceHandle()
103 InstAlloc_Init(&SlowData, pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress); in LVREV_GetInstanceHandle()
104 InstAlloc_Init(&FastData, pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress); in LVREV_GetInstanceHandle()
105 InstAlloc_Init(&FastCoef, pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress); in LVREV_GetInstanceHandle()
106 InstAlloc_Init(&Temporary, pMemoryTable->Region[LVM_TEMPORARY_FAST].pBaseAddress); in LVREV_GetInstanceHandle()
111 …st_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress, (LVM_INT16)((pM… in LVREV_GetInstanceHandle()
112 …st_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress, (LVM_INT16)((pM… in LVREV_GetInstanceHandle()
113 …st_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress, (LVM_INT16)((pM… in LVREV_GetInstanceHandle()
114 …Const_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_TEMPORARY_FAST].pBaseAddress, (LVM_INT16)((pMemo… in LVREV_GetInstanceHandle()
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Memory.c130 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].Size = InstAlloc_GetTotal(&Instance); in LVPSA_Memory()
131 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].Type = LVPSA_PERSISTENT; in LVPSA_Memory()
132 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; in LVPSA_Memory()
138 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].Size = InstAlloc_GetTotal(&Scratch); in LVPSA_Memory()
139 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].Type = LVPSA_SCRATCH; in LVPSA_Memory()
140 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].pBaseAddress = LVM_NULL; in LVPSA_Memory()
147 … pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].Size = InstAlloc_GetTotal(&Coef); in LVPSA_Memory()
148 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].Type = LVPSA_PERSISTENT_COEF; in LVPSA_Memory()
149 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].pBaseAddress = LVM_NULL; in LVPSA_Memory()
156 … pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_DATA].Size = InstAlloc_GetTotal(&Data); in LVPSA_Memory()
[all …]
DLVPSA_Init.c88 InstAlloc_Init( &Instance , pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].pBaseAddress); in LVPSA_Init()
89 InstAlloc_Init( &Scratch , pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].pBaseAddress); in LVPSA_Init()
90 … InstAlloc_Init( &Data , pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_DATA].pBaseAddress); in LVPSA_Init()
91 … InstAlloc_Init( &Coef , pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].pBaseAddress); in LVPSA_Init()
105 if (pMemoryTable->Region[ii].Size!=0) in LVPSA_Init()
107 if (pMemoryTable->Region[ii].pBaseAddress==LVM_NULL) in LVPSA_Init()
111 pLVPSA_Inst->MemoryTable.Region[ii] = pMemoryTable->Region[ii]; in LVPSA_Init()
/frameworks/native/services/surfaceflinger/
DLayer.h76 Region visibleRegion;
77 Region coveredRegion;
78 Region visibleNonTransparentRegion;
79 Region surfaceDamageRegion;
116 Region activeTransparentRegion;
117 Region requestedTransparentRegion;
136 bool setTransparentRegionHint(const Region& transparent);
152 Rect computeBounds(const Region& activeTransparentRegion) const;
199 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
237 void draw(const sp<const DisplayDevice>& hw, const Region& clip) const;
[all …]
DDisplayDevice.h51 mutable Region dirtyRegion;
53 mutable Region swapRegion;
55 Region undefinedRegion;
98 void flip(const Region& dirty) const;
110 Region getDirtyRegion(bool repaintEverything) const;
DTransform.h32 class Region; variable
81 Region transform(const Region& reg) const;
DLayer.cpp323 static Rect reduce(const Rect& win, const Region& exclude) { in reduce()
330 return Region(win).subtract(exclude).getBounds(); in reduce()
338 Rect Layer::computeBounds(const Region& activeTransparentRegion) const { in computeBounds()
471 Region activeTransparentRegion(s.activeTransparentRegion); in setGeometry()
552 Region visible = tr.transform(visibleRegion.intersect(hw->getViewport())); in setPerFrameData()
608 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const { in draw()
614 onDraw(hw, Region(hw->bounds()), useIdentityTransform); in draw()
618 onDraw(hw, Region(hw->bounds()), false); in draw()
621 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip, in onDraw()
636 Region under; in onDraw()
[all …]
/frameworks/native/libs/ui/tests/
DRegion_test.cpp33 void verifyNoTJunctions(const Region& r) { in verifyNoTJunctions()
48 void checkTJunctionFreeFromRegion(const Region& original, int expectedCount = -1) { in checkTJunctionFreeFromRegion()
49 Region modified = Region::createTJunctionFreeRegion(original); in checkTJunctionFreeFromRegion()
59 Region r; in TEST_F()
77 Region r; in TEST_F()
85 Region r; in TEST_F()
123 Region r; in TEST_F()
139 Region r; in TEST_F()
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityInteractionConnection.aidl19 import android.graphics.Region;
34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, in findAccessibilityNodeInfoByAccessibilityId()
39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, in findAccessibilityNodeInfosByViewId()
42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, in findAccessibilityNodeInfosByText()
46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, in findFocus()
50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, in focusSearch()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java33 import android.graphics.Region;
233 private final Region mTempRegion1 = new Region();
234 private final Region mTempRegion2 = new Region();
235 private final Region mTempRegion3 = new Region();
236 private final Region mTempRegion4 = new Region();
410 private final Region mMagnifiedBounds = new Region();
411 private final Region mOldMagnifiedBounds = new Region();
466 Region magnifiedBounds = mMagnifiedBounds; in recomputeBoundsLocked()
469 Region availableBounds = mTempRegion1; in recomputeBoundsLocked()
476 Region nonMagnifiedBounds = mTempRegion4; in recomputeBoundsLocked()
[all …]
DStrictModeFlash.java24 import android.graphics.Region;
77 c.clipRect(new Rect(0, 0, dw, mThickness), Region.Op.REPLACE); in drawIfNeeded()
80 c.clipRect(new Rect(0, 0, mThickness, dh), Region.Op.REPLACE); in drawIfNeeded()
83 c.clipRect(new Rect(dw - mThickness, 0, dw, dh), Region.Op.REPLACE); in drawIfNeeded()
86 c.clipRect(new Rect(0, dh - mThickness, dw, dh), Region.Op.REPLACE); in drawIfNeeded()
DStackTapPointerEventListener.java19 import android.graphics.Region;
34 final private Region mTouchExcludeRegion = new Region();
91 void setTouchExcludeRegion(Region newRegion) { in setTouchExcludeRegion()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java80 if (regionOp == Region.Op.DIFFERENCE.nativeInt) { in combineShapes()
91 } else if (regionOp == Region.Op.INTERSECT.nativeInt) { in combineShapes()
102 } else if (regionOp == Region.Op.UNION.nativeInt) { in combineShapes()
113 } else if (regionOp == Region.Op.XOR.nativeInt) { in combineShapes()
124 } else if (regionOp == Region.Op.REVERSE_DIFFERENCE.nativeInt) { in combineShapes()
141 /*package*/ static boolean isEmpty(Region thisRegion) { in isEmpty()
151 /*package*/ static boolean isRect(Region thisRegion) { in isRect()
161 /*package*/ static boolean isComplex(Region thisRegion) { in isComplex()
171 /*package*/ static boolean contains(Region thisRegion, int x, int y) { in contains()
181 /*package*/ static boolean quickContains(Region thisRegion, in quickContains()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DClipRegion2Activity.java22 import android.graphics.Region;
51 private Region mRegion = new Region();
74 Region.Op.DIFFERENCE); in dispatchDraw()
/frameworks/base/services/core/java/com/android/server/input/
DInputWindowHandle.java19 import android.graphics.Region;
63 public final Region touchableRegion = new Region();

123456