Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 55) 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/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.h512 void startTiling(const Rect& clip, int windowHeight, bool opaque = false, bool expand = false);
537 void calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer);
542 void updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip,
570 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip);
636 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/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/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java145 Rect clip = new Rect(); in renderPage() local
146 clip.left = (int) (paddingLeftPts * displayScale); in renderPage()
147 clip.top = (int) (paddingTopPts * displayScale); in renderPage()
148 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage()
149 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()
156 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); in renderPage()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfRenderer.cpp188 FX_RECT clip; in renderPageBitmap() local
189 clip.left = destLeft; in renderPageBitmap()
190 clip.right = destRight; in renderPageBitmap()
191 clip.top = destTop; in renderPageBitmap()
192 clip.bottom = destBottom; in renderPageBitmap()
193 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/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/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/native/services/surfaceflinger/
DLayer.h191 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
227 void draw(const sp<const DisplayDevice>& hw, const Region& clip) const;
291 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
346 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
348 void drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
DLayerDim.h37 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
/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/docs/html/training/material/
Dshadows-clipping.jd114 <p>Clipping views enables you to easily change the shape of a view. You can clip views for
116 You can clip a view to its outline area using the {@link android.view.View#setClipToOutline
121 <p>To clip a view to the shape of a drawable, set the drawable as the background of the view
126 clip a view. To achieve this effect, use the <a
/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/guide/topics/media/jet/
Djetcreator_manual.jd208 a track at the moment the game event occurs might result in a music clip
209 starting in the middle. Alternatively, a clip could be started from the
213 <p>However, with the JET sync engine, a clip
217 the start of a clip and a second event signifies the end of a clip. When the
218 application calls the JET clip function, the next clip in the track is allowed
1016 103 JET clip marker</p>
1027 the JET_TriggerClip API call. The clip ID is encoded in the low 6 bits of the
1028 controller value. Bit 6 is set to one to indicate the start of a clip, and set
1029 to zero to indicate the end of a clip.</p>
1033 <p>For example, to identify a clip with a clip
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java112 public boolean setPath(Path path, Region clip) { in setPath() argument
113 return nativeSetPath(mNativeRegion, path.ni(), clip.mNativeRegion); in setPath()

123