Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/native/opengl/libagl/
Dvertex.cpp69 const int32_t rw = gglRecip28(v->clip.w); in perspective()
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); in perspective()
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); in perspective()
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); in perspective()
89 uint32_t clip = v->flags & vertex_t::CLIP_ALL; in clipFrustumPerspective() local
90 const GLfixed w = v->clip.w; in clipFrustumPerspective()
91 if (v->clip.x < -w) clip |= vertex_t::CLIP_L; in clipFrustumPerspective()
92 if (v->clip.x > w) clip |= vertex_t::CLIP_R; in clipFrustumPerspective()
93 if (v->clip.y < -w) clip |= vertex_t::CLIP_B; in clipFrustumPerspective()
94 if (v->clip.y > w) clip |= vertex_t::CLIP_T; in clipFrustumPerspective()
[all …]
/frameworks/base/core/java/android/content/
DClipboardManager.java118 public void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument
120 if (clip != null) { in setPrimaryClip()
121 clip.prepareToLeaveProcess(); in setPrimaryClip()
123 getService().setPrimaryClip(clip, mContext.getOpPackageName()); in setPrimaryClip()
193 ClipData clip = getPrimaryClip(); in getText() local
194 if (clip != null && clip.getItemCount() > 0) { in getText()
195 return clip.getItemAt(0).coerceToText(mContext); in getText()
DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage); in setPrimaryClip() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java151 Rect clip = new Rect(); in renderPage() local
152 clip.left = (int) (paddingLeftPts * displayScale); in renderPage()
153 clip.top = (int) (paddingTopPts * displayScale); in renderPage()
154 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage()
155 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()
162 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); in renderPage()
347 Rect clip = new Rect(mediaBox); in applyPrintAttributes() local
348 clip.left += paddingLeftPts; in applyPrintAttributes()
349 clip.top += paddingTopPts; in applyPrintAttributes()
350 clip.right -= paddingRightPts; in applyPrintAttributes()
[all …]
/frameworks/base/libs/hwui/
DOpenGLRenderer.cpp277 const Rect* clip = &mTilingClip; in startTilingCurrentClip() local
279 clip = &(snapshot->layer->clipRect); in startTilingCurrentClip()
282 startTiling(*clip, getViewportHeight(), opaque, expand); in startTilingCurrentClip()
286 void OpenGLRenderer::startTiling(const Rect& clip, int windowHeight, bool opaque, bool expand) { in startTiling() argument
290 int leftNotZero = (clip.left > 0) ? 1 : 0; in startTiling()
291 int topNotZero = (windowHeight - clip.bottom > 0) ? 1 : 0; in startTiling()
294 clip.left - leftNotZero, in startTiling()
295 windowHeight - clip.bottom - topNotZero, in startTiling()
296 clip.right - clip.left + leftNotZero + 1, in startTiling()
297 clip.bottom - clip.top + topNotZero + 1, in startTiling()
[all …]
DStatefulBaseRenderer.cpp155 mDirtyClip |= mSnapshot->clip(left, top, right, bottom, op); in clipRect()
172 SkRegion clip; in clipPath() local
174 clip.setRegion(*mSnapshot->previous->clipRegion); in clipPath()
177 clip.setRect(0, 0, getWidth(), getHeight()); in clipPath()
180 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom); in clipPath()
185 region.setPath(transformed, clip); in clipPath()
DOutline.h75 void setShouldClip(bool clip) { in setShouldClip() argument
76 mShouldClip = clip; in setShouldClip()
DFontRenderer.h104 bool renderPosText(const SkPaint* paint, const Rect* clip, const char *text,
109 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text,
157 void initRender(const Rect* clip, Rect* bounds, Functor* functor);
DOpenGLRenderer.h509 void startTiling(const Rect& clip, int windowHeight, bool opaque = false, bool expand = false);
534 void calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer);
539 void updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip,
567 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip);
633 bool ignoreTransform = false, bool dirty = true, bool clip = true);
DFontRenderer.cpp664 void FontRenderer::initRender(const Rect* clip, Rect* bounds, Functor* functor) { in initRender() argument
670 mClip = clip; in initRender()
690 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const char *text, in renderPosText() argument
698 initRender(clip, bounds, functor); in renderPosText()
708 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, in renderTextOnPath() argument
716 initRender(clip, bounds, functor); in renderTextOnPath()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java118 @Nullable Rect clip) { in setTransformAndClip() argument
125 if (clip == null) { in setTransformAndClip()
132 clip.left, clip.top, clip.right, clip.bottom); in setTransformAndClip()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dgpclip.c50 Word16 clip = 0; in Gp_clip() local
52 clip = 1; in Gp_clip()
54 return (clip); in Gp_clip()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java160 public void setPrimaryClip(ClipData clip, String callingPackage) { in setPrimaryClip() argument
162 if (clip != null && clip.getItemCount() <= 0) { in setPrimaryClip()
170 checkDataOwnerLocked(clip, callingUid); in setPrimaryClip()
174 setPrimaryClipInternal(clipboard, clip); in setPrimaryClip()
189 clip = null; in setPrimaryClip()
191 clip.fixUrisLight(userId); in setPrimaryClip()
196 setPrimaryClipInternal(getClipboard(id), clip); in setPrimaryClip() local
218 void setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) { in setPrimaryClipInternal() argument
220 if (clip == null && clipboard.primaryClip == null) { in setPrimaryClipInternal()
223 clipboard.primaryClip = clip; in setPrimaryClipInternal()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfRenderer.cpp197 FX_RECT clip; in renderPageBitmap() local
198 clip.left = destLeft; in renderPageBitmap()
199 clip.right = destRight; in renderPageBitmap()
200 clip.top = destTop; in renderPageBitmap()
201 clip.bottom = destBottom; in renderPageBitmap()
202 fxgeDevice->SetClip_Rect(&clip); in renderPageBitmap()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java286 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); in blockUntilCompletion()
320 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
321 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume()
336 private static final long clip(long value, long min, long max) { in clip() method in BlockingAudioTrack
340 private static final float clip(float value, float min, float max) { in clip() method in BlockingAudioTrack
DAudioPlaybackQueueItem.java101 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
102 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume()
113 private static final float clip(float value, float min, float max) { in clip() method in AudioPlaybackQueueItem
/frameworks/base/docs/html/guide/topics/text/
Dcopy-paste.jd139 When you use the clipboard framework, you put data into a clip object, and then
140 put the clip object on the system-wide clipboard. The clip object can take one of three forms:
145 A text string. You put the string directly into the clip object, which you then put onto
146 the clipboard. To paste the string, you get the clip object from the clipboard and copy
153 {@link android.net.Uri} object into a clip object and put the clip object onto
154 the clipboard. To paste the data, you get the clip object, get the
161 data, you create an Intent, put it into a clip object, and put the clip object onto the
162 clipboard. To paste the data, you get the clip object and then copy the Intent object
167 The clipboard holds only one clip object at a time. When an application puts a clip object on
168 the clipboard, the previous clip object disappears.
[all …]
/frameworks/base/core/java/android/transition/
DChangeClipBounds.java59 Rect clip = view.getClipBounds(); in captureValues() local
60 values.values.put(PROPNAME_CLIP, clip); in captureValues()
61 if (clip == null) { in captureValues()
/frameworks/native/services/surfaceflinger/
DLayer.h192 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
230 void draw(const sp<const DisplayDevice>& hw, const Region& clip) const;
294 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
350 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
352 void drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
DLayerDim.h37 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintRatingBar.java81 private Drawable tileify(Drawable drawable, boolean clip) { in tileify() argument
85 inner = tileify(inner, clip); in tileify()
116 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT, in tileify()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java187 mGraphics.clip(clipShape); in setClip()
195 public void clip(Shape shape) { in clip() method in GcSnapshot.Layer
196 mGraphics.clip(shape); in clip()
483 public boolean clip(Shape shape, int regionOp) { in clip() method in GcSnapshot
489 layer.clip(shape); in clip()
527 return clip(new Rectangle2D.Float(left, top, right - left, bottom - top), regionOp); in clipRect()
691 Shape clip = getClip(); in doRestore() local
693 layer.setClip(clip); in doRestore()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java147 int weight = clip(this.weight, in toMetering()
178 int score = clip(weight, in toFace()
199 int score = clip(weight, in toFace()
209 return clip(value, lo, /*hi*/Integer.MAX_VALUE, rect, name); in clipLower()
212 private static int clip(int value, int lo, int hi, Rect rect, String name) { in clip() method in ParameterUtils.WeightedRectangle
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSearchPanelCircleView.java296 boolean clip = mCircleSize < mCircleMinSize || !mRipples.isEmpty(); in updateClipping()
297 if (clip != mClipToOutline) { in updateClipping()
298 setClipToOutline(clip); in updateClipping()
299 mClipToOutline = clip; in updateClipping()
/frameworks/base/docs/html/training/material/
Dshadows-clipping.jd122 <p>Clipping views enables you to easily change the shape of a view. You can clip views for
124 You can clip a view to its outline area using the {@link android.view.View#setClipToOutline
129 <p>To clip a view to the shape of a drawable, set the drawable as the background of the view
134 clip a view. To achieve this effect, use the <a

123