/frameworks/base/graphics/java/android/graphics/ |
Region.aidl | 20 parcelable Region;
|
Region.java | 22 public class Region implements Parcelable { 39 /** Create an empty region 41 public Region() { 45 /** Return a copy of the specified region 47 public Region(Region region) { 49 nativeSetRegion(mNativeRegion, region.mNativeRegion); 52 /** Return a region set to the specified rectangle 54 public Region(Rect r) [all...] |
RegionIterator.java | 22 * Construct an iterator for all of the rectangles in a region. This 23 * effectively makes a private copy of the region, so any subsequent edits 24 * to region will not affect the iterator. 26 * @param region the region that will be iterated 28 public RegionIterator(Region region) { 29 mNativeIter = nativeConstructor(region.ni()); 33 * Return the next rectangle in the region. If there are no more rectangles
|
/frameworks/base/include/ui/ |
Region.h | 35 class Region 38 Region(); 39 Region(const Region& rhs); 40 explicit Region(const Rect& rhs); 41 explicit Region(const void* buffer); 42 ~Region(); 44 Region& operator = (const Region& rhs); 52 // the region becomes its bound [all...] |
/frameworks/base/libs/ui/tests/region/ |
region.cpp | 17 #define LOG_TAG "Region" 22 #include <ui/Region.h> 28 Region empty; 29 Region reg0( Rect( 0, 0, 100, 100 ) ); 30 Region reg1 = reg0; 31 Region reg2, reg3; 33 Region reg4 = empty | reg1; 34 Region reg5 = reg1 | empty;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
RegionTest.java | 21 import android.graphics.Region; 29 @TestTargetClass(Region.class) 105 private Region mRegion; 122 method = "Region", 127 method = "Region", 128 args = {android.graphics.Region.class} 132 method = "Region", 137 method = "Region", 142 // Test Region() 143 new Region(); [all...] |
Region_OpTest.java | 19 import android.graphics.Region; 20 import android.graphics.Region.Op; 26 @TestTargetClass(Region.Op.class)
|
RegionIteratorTest.java | 20 import android.graphics.Region; 33 args = {android.graphics.Region.class} 36 new RegionIterator(new Region()); 45 Region region = new Region(); local 46 region.set(1, 1, 10, 10); 49 RegionIterator regionIterator = new RegionIterator(region); 67 region.set(1, 1, 10, 10); 69 region.op(rect, Region.Op.UNION) [all...] |
/frameworks/base/media/libeffects/lvm/lib/Bass/src/ |
LVDBE_Init.c | 75 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Size = sizeof(LVDBE_Instance_t); 76 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Alignment = LVDBE_INSTANCE_ALIGN; 77 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Type = LVDBE_PERSISTENT; 78 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; 83 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Size = sizeof(LVDBE_Data_t); 84 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Alignment = LVDBE_PERSISTENT_DATA_ALIGN; 85 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Type = LVDBE_PERSISTENT_DATA; 86 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].pBaseAddress = LVM_NULL; 91 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_COEF].Size = sizeof(LVDBE_Coef_t); 92 pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_COEF].Alignment = LVDBE_PERSISTENT_COEF_ALIGN [all...] |
/frameworks/base/libs/ui/ |
Region.cpp | 17 #define LOG_TAG "Region" 25 #include <ui/Region.h> 51 Region::Region() 56 Region::Region(const Region& rhs) 61 Region::Region(const Rect& rhs) 66 Region::Region(const void* buffer [all...] |
/frameworks/base/media/libeffects/lvm/lib/StereoWidening/src/ |
LVCS_Init.c | 80 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].Size = (LVM_UINT32)sizeof(LVCS_Instance_t); 81 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].Type = LVCS_PERSISTENT; 82 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; 87 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].Size = (LVM_UINT32)sizeof(LVCS_Data_t); 88 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].Type = LVCS_DATA; 89 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL; 94 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].Size = (LVM_UINT32)sizeof(LVCS_Coefficient_t); 95 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].Type = LVCS_COEFFICIENT; 96 pMemoryTable->Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress = LVM_NULL; 102 pMemoryTable->Region[LVCS_MEMREGION_TEMPORARY_FAST].Size = ScratchSize [all...] |
LVCS_Equaliser.c | 64 LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress; 65 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; 143 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
|
/frameworks/base/media/libeffects/lvm/lib/Common/src/ |
InstAlloc.c | 89 StartAddr = (LVM_UINT32)pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress; 95 StartAddr = (LVM_UINT32)pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress; 101 StartAddr = (LVM_UINT32)pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress; 107 StartAddr = (LVM_UINT32)pMemoryTable->Region[LVM_TEMPORARY_FAST].pBaseAddress; 150 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTENT_SLOW_DATA]); 151 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Type = LVM_PERSISTENT_SLOW_DATA; 152 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; 156 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTENT_FAST_DATA]); 157 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Type = LVM_PERSISTENT_FAST_DATA; 158 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL [all...] |
/frameworks/base/services/surfaceflinger/ |
LayerBlur.h | 23 #include <ui/Region.h> 38 virtual void onDraw(const Region& clip) const; 44 virtual void setVisibleRegion(const Region& visibleRegion); 45 virtual void unlockPageFlip(const Transform& planeTransform, Region& outDirtyRegion);
|
LayerBase.h | 29 #include <ui/Region.h> 63 Region visibleRegionScreen; 64 Region transparentRegionScreen; 65 Region coveredRegionScreen; 80 Region transparentRegion; 92 bool setTransparentRegionHint(const Region& opaque); 103 void drawRegion(const Region& reg) const; 117 virtual void draw(const Region& clip) const; 123 virtual void onDraw(const Region& clip) const = 0; 137 * setVisibleRegion - called to set the new visible region. This give [all...] |
LayerDim.cpp | 60 void LayerDim::onDraw(const Region& clip) const 63 Region::const_iterator it = clip.begin(); 64 Region::const_iterator const end = clip.end();
|
Transform.h | 30 class Region; 79 Region transform(const Region& reg) const;
|
/frameworks/base/media/libeffects/lvm/lib/Eq/src/ |
LVEQNB_Init.c | 88 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Size = InstAlloc_GetTotal(&AllocMem); 89 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Alignment = LVEQNB_INSTANCE_ALIGN; 90 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Type = LVEQNB_PERSISTENT; 91 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; 109 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Size = InstAlloc_GetTotal(&AllocMem); 110 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Alignment = LVEQNB_DATA_ALIGN; 111 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Type = LVEQNB_PERSISTENT_DATA; 112 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].pBaseAddress = LVM_NULL; 125 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_COEF].Size = InstAlloc_GetTotal(&AllocMem); 126 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_COEF].Alignment = LVEQNB_COEF_ALIGN [all...] |
/frameworks/base/media/libeffects/lvm/lib/Reverb/src/ |
LVREV_GetMemoryTable.c | 153 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&SlowData); 154 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Type = LVM_PERSISTENT_SLOW_DATA; 155 pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress = LVM_NULL; 181 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&FastData); 182 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Type = LVM_PERSISTENT_FAST_DATA; 183 pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress = LVM_NULL; 190 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].Size = InstAlloc_GetTotal(&FastCoef); 191 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].Type = LVM_PERSISTENT_FAST_COEF; 192 pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress = LVM_NULL; 225 pMemoryTable->Region[LVM_TEMPORARY_FAST].Size = InstAlloc_GetTotal(&Temporary) [all...] |
LVREV_GetInstanceHandle.c | 74 if (pMemoryTable->Region[i].Size!=0) 76 if (pMemoryTable->Region[i].pBaseAddress==LVM_NULL) 103 InstAlloc_Init(&SlowData, pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress); 104 InstAlloc_Init(&FastData, pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress); 105 InstAlloc_Init(&FastCoef, pMemoryTable->Region[LVM_PERSISTENT_FAST_COEF].pBaseAddress); 106 InstAlloc_Init(&Temporary, pMemoryTable->Region[LVM_TEMPORARY_FAST].pBaseAddress); 111 LoadConst_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].pBaseAddress, (LVM_INT16)((pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size)/sizeof(LVM_INT16))); 112 LoadConst_16(0, (LVM_INT16 *)pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].pBaseAddress, (LVM_INT16)((pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size)/sizeof(LVM_INT16))) [all...] |
/frameworks/base/media/libeffects/lvm/lib/SpectrumAnalyzer/src/ |
LVPSA_Memory.c | 130 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].Size = InstAlloc_GetTotal(&Instance); 131 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].Type = LVPSA_PERSISTENT; 132 pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].pBaseAddress = LVM_NULL; 138 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].Size = InstAlloc_GetTotal(&Scratch); 139 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].Type = LVPSA_SCRATCH; 140 pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].pBaseAddress = LVM_NULL; 147 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].Size = InstAlloc_GetTotal(&Coef); 148 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].Type = LVPSA_PERSISTENT_COEF; 149 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].pBaseAddress = LVM_NULL; 156 pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_DATA].Size = InstAlloc_GetTotal(&Data) [all...] |
LVPSA_Init.c | 88 InstAlloc_Init( &Instance , pMemoryTable->Region[LVPSA_MEMREGION_INSTANCE].pBaseAddress); 89 InstAlloc_Init( &Scratch , pMemoryTable->Region[LVPSA_MEMREGION_SCRATCH].pBaseAddress); 90 InstAlloc_Init( &Data , pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_DATA].pBaseAddress); 91 InstAlloc_Init( &Coef , pMemoryTable->Region[LVPSA_MEMREGION_PERSISTENT_COEF].pBaseAddress); 105 if (pMemoryTable->Region[ii].Size!=0) 107 if (pMemoryTable->Region[ii].pBaseAddress==LVM_NULL) 111 pLVPSA_Inst->MemoryTable.Region[ii] = pMemoryTable->Region[ii];
|
/frameworks/base/media/libeffects/lvm/lib/Bundle/src/ |
LVM_Init.c | 217 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); 219 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); 220 if (CS_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = CS_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size; 250 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); 252 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); 253 if (DBE_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = DBE_MemTab.Region[LVM_MEMREGION_TEMPORARY_FAST].Size; 284 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); 286 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Clipping.java | 76 canvas.clipRect(30, 30, 70, 70, Region.Op.DIFFERENCE); 85 canvas.clipPath(mPath, Region.Op.REPLACE); 92 canvas.clipRect(40, 40, 100, 100, Region.Op.UNION); 99 canvas.clipRect(40, 40, 100, 100, Region.Op.XOR); 106 canvas.clipRect(40, 40, 100, 100, Region.Op.REVERSE_DIFFERENCE);
|
Regions.java | 63 private void drawRgn(Canvas canvas, int color, String str, Region.Op op) { 69 Region rgn = new Region(); 106 drawRgn(canvas, Color.RED, "Union", Region.Op.UNION); 111 drawRgn(canvas, Color.BLUE, "Xor", Region.Op.XOR); 116 drawRgn(canvas, Color.GREEN, "Difference", Region.Op.DIFFERENCE); 121 drawRgn(canvas, Color.WHITE, "Intersect", Region.Op.INTERSECT);
|