Searched refs:region (Results 26 - 50 of 85) sorted by path

1234

/frameworks/base/graphics/java/android/graphics/
H A DRegionIterator.java22 * 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) { argument
29 mNativeIter = nativeConstructor(region.ni());
33 * Return the next rectangle in the region. If there are no more rectangles
/frameworks/base/include/androidfw/
H A DResourceTypes.h883 // - a 3 char region code prefixed by a 'r'
940 // - Two 7 bit ascii values interpreted as 2 letter region
943 // - An UN M.49 3 digit region code. For simplicity, these are packed
1198 // Sets the values of language, region, script and variant to the
1214 size_t unpackRegion(char region[4]) const;
1222 // Sets the region code of this configuration to the first three bytes
1223 // at |region|. If |region| is a 2 letter code, the trailing byte must be '\0'
1225 void packRegion(const char* region);
/frameworks/base/include/private/graphics/
H A DCanvas.h80 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) = 0;
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1748 void ResTable_config::packRegion(const char* region) { argument
1749 packLanguageOrRegion(region, '0', this->country);
1756 size_t ResTable_config::unpackRegion(char region[4]) const {
1757 return unpackLanguageOrRegion(this->country, '0', region);
1798 // The language & region are equal, so compare the scripts and variants.
1804 // The language, region and script are equal, so compare variants.
/frameworks/base/libs/hwui/
H A DDisplayListOp.h590 ClipRegionOp(const SkRegion* region, SkRegion::Op op) argument
591 : ClipOp(op), mRegion(region) {}
H A DDisplayListRenderer.cpp175 bool DisplayListRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { argument
176 region = refRegion(region);
177 addStateOp(new (alloc()) ClipRegionOp(region, op));
178 return StatefulBaseRenderer::clipRegion(region, op);
H A DDisplayListRenderer.h96 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op);
255 inline const SkRegion* refRegion(const SkRegion* region) { argument
256 if (!region) {
257 return region;
260 const SkRegion* regionCopy = mRegionMap.valueFor(region);
263 regionCopy = new SkRegion(*region);
265 mRegionMap.replaceValueFor(region, regionCopy);
H A DLayer.h87 * Sets this layer's region to a rectangle. Computes the appropriate
91 const android::Rect& bounds = region.getBounds();
308 * Dirty region indicating what parts of the layer
311 Region region; member in class:android::uirenderer::Layer
313 * If the region is a rectangle, coordinates of the
314 * region are stored here.
H A DLayerRenderer.cpp59 mLayer->region.clear();
64 mLayer->region.subtractSelf(r);
117 // Dirty region tracking
124 return &mLayer->region;
131 if (mLayer->region.isRect() || mLayer->region.isEmpty()) {
146 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region);
228 layer->region.clear();
283 layer->region.clear();
299 layer->region
[all...]
H A DOpenGLRenderer.cpp289 // Expand the startTiling region by 1
359 // the entire clip region
711 * using glCopyTexImage2D(). The layer's region is then cleared(1) in the frame
722 * An empty quad is drawn over the layer's region in the frame buffer. This quad
798 // Enqueue the buffer coordinates to clear the corresponding region later
810 mSnapshot->region = &mSnapshot->layer->region;
833 // Expand the startTiling region by 1
836 // Clear the FBO, expand the clear region by 1 to get nice bilinear filtering
898 // drawing only the dirty region
1191 drawRegionRectsDebug(const Region& region) argument
1217 drawRegionRects(const SkRegion& region, const SkPaint& paint, bool dirty) argument
1250 dirtyLayerUnchecked(Rect& bounds, Region* region) argument
[all...]
H A DOpenGLRenderer.h406 * Marks the specified region as dirty at the specified bounds.
408 void dirtyLayerUnchecked(Rect& bounds, Region* region);
411 * Returns the region of the current layer.
414 return mSnapshot->region;
421 return (mSnapshot->flags & Snapshot::kFlagFboTarget) && mSnapshot->region;
526 * Sets the clipping region using the stencil buffer. The clip region
570 * Compose the specified layer as a region.
909 * Renders the specified region as a series of rectangles. This method
912 void drawRegionRectsDebug(const Region& region);
[all...]
H A DRenderer.h174 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) = 0;
H A DSnapshot.cpp41 region = NULL;
81 region = s->region;
83 region = NULL;
118 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { argument
120 clipRegion->op(region, op);
193 // region if the previous restore() call did not restore the clip
H A DSnapshot.h85 * Indicates that the clip region was modified. When this
126 * Modifies the current clip with the specified region and operation.
127 * The specified region is considered already transformed.
129 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op);
242 * Current clip region. The clip is stored in canvas-space coordinates,
245 * This is a reference to a region owned by this snapshot or another
251 * The ancestor layer's dirty region.
253 * This is a reference to a region owned by a layer. This pointer must
256 Region* region; member in class:android::uirenderer::Snapshot
H A DStatefulBaseRenderer.cpp184 SkRegion region; local
185 region.setPath(transformed, clip);
187 // region is the transformed input path, masked by the previous clip
188 mDirtyClip |= mSnapshot->clipRegionTransformed(region, op);
192 bool StatefulBaseRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { argument
193 mDirtyClip |= mSnapshot->clipRegionTransformed(*region, op);
H A DStatefulBaseRenderer.h90 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op);
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java714 TextTrackRegion region = new TextTrackRegion();
724 region.mId = value;
727 region.mWidth = parseFloatPercentage(value);
729 log_warning("region setting", name,
737 region.mLines = Integer.parseInt(value);
738 assert(region.mLines >= 0); // lines contains only digits
740 log_warning("region setting", name, "is not numeric", value);
747 log_warning("region setting", name, "contains no comma", value);
758 log_warning("region setting", name,
765 log_warning("region settin
974 onRegionParsed(TextTrackRegion region) argument
1078 onRegionParsed(TextTrackRegion region) argument
1529 RegionLayout(Context context, TextTrackRegion region, CaptionStyle captionStyle, float fontSize) argument
[all...]
/frameworks/base/media/java/android/media/tv/
H A DTvView.java599 public boolean gatherTransparentRegion(Region region) { argument
601 if (region != null) {
609 region.op(left, top, left + width, top + height, Region.Op.UNION);
613 return super.gatherTransparentRegion(region);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DShaderProgram.java170 public void setSourceRegion(Quad region) { argument
171 setSourceRegion(region.p0.x, region.p0.y,
172 region.p1.x, region.p1.y,
173 region.p2.x, region.p2.y,
174 region.p3.x, region.p3.y);
177 public void setTargetRegion(Quad region) { argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java52 matcher.region(mOffset, mInput.length());
86 matcher.region(mOffset, mInput.length());
94 matcher.region(mOffset, mInput.length());
/frameworks/base/services/core/java/com/android/server/wm/
H A DSession.java214 public void setTransparentRegion(IWindow window, Region region) { argument
215 mService.setTransparentRegionWindow(this, window, region);
H A DWindowManagerService.java2829 void setTransparentRegionWindow(Session session, IWindow client, Region region) { argument
2835 w.mWinAnimator.setTransparentRegionHintLocked(region);
6056 * In portrait mode, it grabs the upper region of the screen based on the vertical dimension
H A DWindowState.java163 * Insets that determine the area covered by the display overscan region. These are in the
202 * Flag indicating whether the touchable region should be adjusted by
237 // The region of the display frame that the display type supports displaying content on. This
240 // window display contents to extend into the overscan region.
1545 Region region = new Region();
1546 getTouchableRegion(region);
1547 pw.print(prefix); pw.print("touchable region="); pw.println(region);
H A DWindowStateAnimator.java1584 void setTransparentRegionHintLocked(final Region region) { argument
1593 "transparentRegionHint=" + region, null);
1594 mSurfaceControl.setTransparentRegionHint(region);
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputWindowHandle.cpp133 SkRegion* region = android_graphics_Region_getSkRegion(env, regionObj); local
134 for (SkRegion::Iterator it(*region); !it.done(); it.next()) {

Completed in 374 milliseconds

1234