Home
last modified time | relevance | path

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

12

/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.java120 public void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument
122 if (clip != null) { in setPrimaryClip()
123 clip.prepareToLeaveProcess(); in setPrimaryClip()
125 getService().setPrimaryClip(clip, mContext.getOpPackageName()); in setPrimaryClip()
195 ClipData clip = getPrimaryClip(); in getText() local
196 if (clip != null && clip.getItemCount() > 0) { in getText()
197 return clip.getItemAt(0).coerceToText(mContext); in getText()
DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage); in setPrimaryClip() argument
/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/libs/hwui/
DOpenGLRenderer.cpp288 Rect* clip = &mTilingClip; in startTiling() local
290 clip = &(s->layer->clipRect); in startTiling()
293 startTiling(*clip, s->height, opaque); in startTiling()
297 void OpenGLRenderer::startTiling(const Rect& clip, int windowHeight, bool opaque) { in startTiling() argument
299 mCaches.startTiling(clip.left, windowHeight - clip.bottom, in startTiling()
300 clip.right - clip.left, clip.bottom - clip.top, opaque); in startTiling()
455 Rect clip(*mSnapshot->clipRect); in callDrawGLFunction() local
456 clip.snapToPixelBoundaries(); in callDrawGLFunction()
461 dirtyLayerUnchecked(clip, getRegion()); in callDrawGLFunction()
465 info.clipLeft = clip.left; in callDrawGLFunction()
[all …]
DFontRenderer.h106 bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
111 bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
159 void initRender(const Rect* clip, Rect* bounds, Functor* functor);
DSnapshot.h86 bool clip(float left, float top, float right, float bottom,
DFontRenderer.cpp662 void FontRenderer::initRender(const Rect* clip, Rect* bounds, Functor* functor) { in initRender() argument
668 mClip = clip; in initRender()
687 bool FontRenderer::renderPosText(SkPaint* paint, const Rect* clip, const char *text, in renderPosText() argument
695 initRender(clip, bounds, functor); in renderPosText()
705 bool FontRenderer::renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, in renderTextOnPath() argument
713 initRender(clip, bounds, functor); in renderTextOnPath()
DOpenGLRenderer.h597 void startTiling(const Rect& clip, int windowHeight, bool opaque = false);
638 void calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer);
643 void updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip,
672 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip, GLuint previousFbo);
741 bool dirty = true, bool clip = true);
DSnapshot.cpp114 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { in clip() function in android::uirenderer::Snapshot
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java291 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); in blockUntilCompletion()
325 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
326 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume()
341 private static final long clip(long value, long min, long max) { in clip() method in BlockingAudioTrack
353 private static float clip(float value, float min, float max) { in clip() method in BlockingAudioTrack
/frameworks/native/services/surfaceflinger/
DLayer.h181 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const;
214 void draw(const sp<const DisplayDevice>& hw, const Region& clip) const;
270 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
323 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
325 void drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
DLayerDim.h37 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const;
DLayer.cpp444 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const { in draw()
445 onDraw(hw, clip); in draw()
452 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const in onDraw()
477 Region holes(clip.subtract(under)); in onDraw()
543 drawWithOpenGL(hw, clip); in onDraw()
548 void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip, in clearWithOpenGL() argument
558 const sp<const DisplayDevice>& hw, const Region& clip) const { in clearWithOpenGL()
559 clearWithOpenGL(hw, clip, 0,0,0,0); in clearWithOpenGL()
563 const sp<const DisplayDevice>& hw, const Region& clip) const { in drawWithOpenGL()
DLayerDim.cpp42 void LayerDim::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const in onDraw()
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java186 mGraphics.clip(clipShape); in setClip()
194 public void clip(Shape shape) { in clip() method in GcSnapshot.Layer
195 mGraphics.clip(shape); in clip()
482 public boolean clip(Shape shape, int regionOp) { in clip() method in GcSnapshot
488 layer.clip(shape); in clip()
526 return clip(new Rectangle2D.Float(left, top, right - left, bottom - top), regionOp); in clipRect()
651 Shape clip = getClip(); in doRestore() local
653 layer.setClip(clip); in doRestore()
/frameworks/base/services/java/com/android/server/
DClipboardService.java154 public void setPrimaryClip(ClipData clip, String callingPackage) { in setPrimaryClip() argument
156 if (clip != null && clip.getItemCount() <= 0) { in setPrimaryClip()
164 checkDataOwnerLocked(clip, callingUid); in setPrimaryClip()
167 clipboard.primaryClip = clip; in setPrimaryClip()
/frameworks/base/core/jni/android/graphics/
DRegion.cpp57 const SkPath* path, const SkRegion* clip) { in Region_setPath() argument
58 SkASSERT(dst && path && clip); in Region_setPath()
59 return dst->setPath(*path, *clip); in Region_setPath()
/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()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java321 Region_Delegate clip = sManager.getDelegate(native_clip); in nativeSetPath() local
322 if (clip != null) { in nativeSetPath()
323 dstRegion.mArea.subtract(clip.getJavaArea()); in nativeSetPath()
/frameworks/base/core/java/android/widget/
DProgressBar.java322 private Drawable tileify(Drawable drawable, boolean clip) { in tileify() argument
348 out.addState(in.getStateSet(i), tileify(in.getStateDrawable(i), clip)); in tileify() local
364 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT, in tileify()
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd239 its container's bounds. The clip is based on the vertical gravity: a top gravity clips the
244 its container's bounds. The clip is based on the horizontal gravity: a left gravity clips
1152 &lt;<a href="#clip-element">clip</a>
1167 <dt id="clip-element"><code>&lt;clip&gt;</code></dt>
1168 <dd>Defines the clip drawable. This must be the root element.
1178 <dd><em>Keyword</em>. The orientation for the clip.
1189 <dd><em>Keyword</em>. Specifies where to clip within the drawable.
1234 its container's bounds. The clip is based on the vertical gravity: a top gravity clips the
1239 its container's bounds. The clip is based on the horizontal gravity: a left gravity clips
1251 <dd>XML file saved at <code>res/drawable/clip.xml</code>:
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DProgressBarICS.java161 private Drawable tileify(Drawable drawable, boolean clip) { in tileify() argument
194 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT, in tileify()

12