Searched defs:clip (Results 26 - 50 of 52) sorted by relevance

123

/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp170 FS_RECTF clip = {(float) clipLeft, (float) clipTop, (float) clipRight, (float) clipBottom}; local
172 FPDFPage_TransFormWithClip(page, &transform, &clip);
/frameworks/base/graphics/java/android/graphics/
H A DRegion.java107 * Set the region to the area described by the path and clip.
112 public boolean setPath(Path path, Region clip) { argument
113 return nativeSetPath(mNativeRegion, path.readOnlyNI(), clip.mNativeRegion);
H A DColorSpace.java3705 * .clip(true)
3763 * .clip(true)
3773 * @param clip True to clip the chromaticity diagram to the first registered color space,
3778 public Renderer clip(boolean clip) { argument
3779 mClip = clip;
3881 * @see #clip(boolean)
3900 * .clip(true)
4083 * This method respect the clip paramete
[all...]
/frameworks/base/libs/hwui/
H A DClipArea.cpp162 SkRegion RectangleList::convertToRegion(const SkRegion& clip) const {
169 rectangleListAsRegion.setPath(rectPathTransformed, clip);
172 rectRegion.setPath(rectPathTransformed, clip);
268 // The only way this occurs is by a clip setting operation.
303 // all clip areas that can be represented by a region.
363 // Only initial clip-to-viewport observed, so no serialization of clip necessary
423 // if either is empty, clip is empty
512 void ClipArea::applyClip(const ClipBase* clip, const Matrix4& transform) { argument
513 if (!clip) retur
[all...]
H A DBakedOpDispatcher.cpp82 ClipRect renderTargetClip(opList.clip);
83 const ClipBase* clip = opList.clipSideFlags ? &renderTargetClip : nullptr; local
84 renderer.renderGlop(nullptr, clip, glop);
186 ClipRect renderTargetClip(opList.clip);
187 const ClipBase* clip = opList.clipSideFlags ? &renderTargetClip : nullptr; local
188 renderer.renderGlop(nullptr, clip, glop);
224 // Compute damage bounds and clip (since may differ from those in textOpState).
244 // need clip, so pass it and clip bounds
247 // don't need clip, ignor
323 const ClipBase* clip = opList.clipSideFlags ? &renderTargetClip : nullptr; local
[all...]
H A DFontRenderer.cpp76 renderer->renderGlop(nullptr, clip, glop);
625 void FontRenderer::initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) { argument
631 mClip = clip;
651 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument
659 initRender(clip, bounds, functor);
669 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument
677 initRender(clip, bounds, functor);
H A DFrameBuilder.cpp35 FrameBuilder::FrameBuilder(const SkRect& clip, argument
47 auto fbo0 = mAllocator.create<LayerBuilder>(viewportWidth, viewportHeight, Rect(clip));
51 clip.fLeft, clip.fTop, clip.fRight, clip.fBottom,
301 nullptr, // no record-time clip - need only respect defer-time one
442 // apply reorder clip to shadow, so it respects clip at beginning of reorderable chunk
491 // transformFromCompositingAncestor, and record-time clip i
[all...]
H A DRecordingCanvas.cpp120 // force matrix/clip isolation for layer
127 // operations will be able to store and restore the current clip and transform info, and
140 // unlikely case where an unclipped savelayer is recorded with a clip it can use,
163 // layerBounds is in original bounds space, but clipped by current recording clip
166 auto previousClip = getRecordedClip(); // capture before new snapshot clip has changed
170 previousClip, // clip to *draw* with
176 Rect clip = layerBounds; local
177 clip.translate(-unmappedBounds.left, -unmappedBounds.top);
178 snapshot.resetClip(clip.left, clip
[all...]
H A DSkiaCanvas.cpp132 // either (or both) the matrix and/or clip state after a SkCanvas::restore
133 // operation. It does this by explicitly saving off the clip & matrix state
255 // functions to emulate legacy SaveFlags (i.e. independent matrix/clip flags)
281 void SkiaCanvas::recordClip(const T& clip, SkClipOp op) { argument
283 // doesn't restore the clip.
286 mClipStack.emplace_back(clip, op, mCanvas->getTotalMatrix());
299 for (auto clip = begin; clip != end; ++clip) {
300 clip
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp179 void SkiaPipeline::renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, argument
202 renderFrameImpl(layers, clip, nodes, opaque, contentDrawBounds, canvas);
219 renderOverdraw(layers, clip, nodes, contentDrawBounds, surface);
234 void SkiaPipeline::renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip, argument
238 canvas->androidFramework_setDeviceClipRestriction(clip.roundOut());
351 void SkiaPipeline::renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip, argument
363 renderFrameImpl(layers, clip, nodes, true, contentDrawBounds, &overdrawCanvas);
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.h175 static std::unique_ptr<Snapshot> makeSnapshot(const Matrix4& transform, const Rect& clip) { argument
177 // store clip first, so it isn't transformed
178 snapshot->setClip(clip.left, clip.top, clip.right, clip.bottom);
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java179 ClipData clip =
184 setPrimaryClipInternal(getClipboard(0), clip);
246 public void setPrimaryClip(ClipData clip, String callingPackage) { argument
248 if (clip != null && clip.getItemCount() <= 0) {
251 if (clip.getItemAt(0).getText() != null &&
254 clip.getItemAt(0).getText().toString());
261 checkDataOwnerLocked(clip, callingUid);
265 setPrimaryClipInternal(clipboard, clip);
277 // Copy clip dat
400 setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp70 const SkRegion* clip = reinterpret_cast<SkRegion*>(clipHandle); local
71 SkASSERT(dst && path && clip);
72 bool result = dst->setPath(*path, *clip);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java53 * yet when setting transforms and clip information.
73 /** temp clip in case clipping is set before a Graphics2D exists */
180 * Sets the clip for the graphics2D object associated with the layer.
183 * @param clipShape the shape to use a the clip shape.
187 // first reset the clip to max and then intersect the current (empty)
188 // clip with the shap.
190 mGraphics.clip(clipShape);
195 * clip shape and the given shape.
196 * @param shape the new clip shape.
198 public void clip(Shap method in class:GcSnapshot.Layer
486 public boolean clip(Shape shape, int regionOp) { method in class:GcSnapshot
[all...]
/frameworks/base/core/java/android/app/job/
H A DJobInfo.java491 // XXX for now we consider two different clip data objects to be different,
883 * URI permissions for data associated with the clip. The exact kind
889 * Intent items in the clip (or sub-items of the clip).
895 * @param clip The new clip to set. May be null to clear the current clip.
901 public Builder setClipData(@Nullable ClipData clip, int grantFlags) { argument
902 mClipData = clip;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskView.java212 /* Create an outline provider to clip and outline the view */
414 * Returns whether this view should be clipped, or any views below should clip against this
418 // Never clip for freeform tasks or if invisible
426 void setClipViewInStack(boolean clip) { argument
427 if (clip != mClipViewInStack) {
428 mClipViewInStack = clip;
717 // Reset the clip state for the drag view after the end animation completes
725 // Reset the clip state for the drag view after the cancel animation completes
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java1409 private void setPopupClipToScreenEnabled(boolean clip) { argument
1412 sClipToWindowEnabledMethod.invoke(mPopup, clip);
/frameworks/base/core/java/android/widget/
H A DProgressBar.java427 private Drawable tileify(Drawable drawable, boolean clip) { argument
464 out.addState(in.getStateSet(i), tileify(in.getStateDrawable(i), clip));
479 if (clip) {
H A DGridLayout.java731 private static int clip(Interval minorRange, boolean minorWasDefined, int count) { method in class:GridLayout
764 final int minorSpan = clip(minorRange, minorWasDefined, count);
/frameworks/native/opengl/libagl/
H A Degl.cpp335 const Region& clip);
455 const Region& clip)
459 Region::const_iterator cur = clip.begin();
460 Region::const_iterator end = clip.end();
452 copyBlt( ANativeWindowBuffer* dst, void* dst_vaddr, ANativeWindowBuffer* src, void const* src_vaddr, const Region& clip) argument
H A Dcontext.h139 vec4_t clip; member in struct:android::gl::vertex_t
267 // user clip planes
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp407 // Now we need to calculate the parent bounds, so we can clip ourselves to those.
1005 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
1006 onDraw(hw, clip, false);
1039 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip, argument
1064 Region holes(clip.subtract(under));
1639 // in particular, we want to make sure the clip (which is part
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java719 private static int clip(Interval minorRange, boolean minorWasDefined, int count) { method in class:GridLayout
752 final int minorSpan = clip(minorRange, minorWasDefined, count);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java2916 void handlePasteClip(ClipData clip) { argument
2917 if (clip == null) {
2922 final ClipDescription clipDesc = clip.getDescription();
2931 final ClipDescription clipDescription = clip.getDescription();
2932 for (int i = 0; i < clip.getItemCount(); i++) {
2941 final CharSequence pastedItem = clip.getItemAt(i).getText();
/frameworks/base/core/java/android/content/
H A DIntent.java687 * optional index of the URI in the clip data to show first.
988 // Migrate any clip data and flags from target.
7856 * items included in the clip data. This is useful, in particular, if
7864 * Intent items in the clip (or sub-items of the clip).
7872 * @param clip The new clip to set. May be null to clear the current clip.
7874 public void setClipData(@Nullable ClipData clip) { argument
7875 mClipData = clip;
9147 toShortString(boolean secure, boolean comp, boolean extras, boolean clip) argument
9154 toShortString(StringBuilder b, boolean secure, boolean comp, boolean extras, boolean clip) argument
[all...]

Completed in 5849 milliseconds

123