Searched refs:clip (Results 1 - 25 of 39) sorted by relevance

12

/frameworks/native/opengl/libagl/
H A Dvertex.cpp52 // Divides a vertex clip coordinates by W
56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w)
69 const int32_t rw = gglRecip28(v->clip.w);
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28);
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28);
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28);
85 // ndc = clip / W
88 // clip to the view-volume
89 uint32_t clip local
118 uint32_t clip = 0; local
[all...]
H A Dprimitives.cpp105 // configure the rasterizer here, before we clip
125 // configure the rasterizer here, before we clip
173 // configure the rasterizer here, before we clip
191 // configure the rasterizer here, before we clip
540 // clip the line if needed
598 // The assumption here is that we're not going to clip very often,
599 // and even more rarely will we clip a triangle that ends up
866 // original list of vertices (polygon to clip, in fact this
882 // User clip-planes first, the clipping is always done in eye-coordinate
903 // clip eac
[all...]
/frameworks/base/core/java/android/content/
H A DClipboardManager.java82 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
93 * clip changes.
115 * Sets the current primary clip on the clipboard. This is the clip that
118 * @param clip The clipped data item to set.
120 public void setPrimaryClip(ClipData clip) { argument
122 if (clip != null) {
123 clip.prepareToLeaveProcess();
125 getService().setPrimaryClip(clip, mContext.getBasePackageName());
131 * Returns the current primary clip o
[all...]
H A DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage);
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.h38 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
H A DEventPlugin.cpp47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument
70 // create and clip a canvas
74 clipR.left = clip.left;
75 clipR.top = clip.top;
76 clipR.right = clip.right;
77 clipR.bottom = clip.bottom;
147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dgpclip.c50 Word16 clip = 0; local
52 clip = 1;
54 return (clip);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DShirtPocket.java161 final ClipData clip = mClipping;
162 if (clip != null) {
163 final Bitmap icon = clip.getIcon();
180 startDrag(clip, shadow, null, 0);
209 final ClipData clip = mClipping;
210 if (clip != null) {
211 final Bitmap icon = clip.getIcon();
228 v.startDrag(clip, shadow, null, 0);
/frameworks/native/services/surfaceflinger/
H A DLayerDim.h39 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const;
H A DLayer.h195 virtual void draw(const sp<const DisplayDevice>& hw, const Region& clip) const;
201 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const;
294 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
343 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
345 void drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const;
H A DLayerDim.cpp44 void LayerDim::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const
H A DLayer.cpp436 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
437 onDraw(hw, clip);
444 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const
469 Region holes(clip.subtract(under));
518 drawWithOpenGL(hw, clip);
525 void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip, argument
543 const sp<const DisplayDevice>& hw, const Region& clip) const {
544 clearWithOpenGL(hw, clip, 0,0,0,0);
548 const sp<const DisplayDevice>& hw, const Region& clip) const {
795 // in particular, we want to make sure the clip (whic
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.cpp277 Rect* clip = &mTilingClip; local
279 clip = &(s->layer->clipRect);
282 startTiling(*clip, s->height, opaque);
286 void OpenGLRenderer::startTiling(const Rect& clip, int windowHeight, bool opaque) { argument
288 mCaches.startTiling(clip.left, windowHeight - clip.bottom,
289 clip.right - clip.left, clip.bottom - clip
509 const Rect* clip = &mTilingClip; local
721 calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) argument
754 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument
776 Rect clip; local
849 Rect clip; local
905 createFboLayer(Layer* layer, Rect& bounds, Rect& clip, GLuint previousFbo) argument
1526 quickRejectNoScissor(float left, float top, float right, float bottom, Rect& transformed, Rect& clip) argument
1602 SkRegion clip; local
2824 const Rect* clip = pureTranslate ? mSnapshot->clipRect : &mSnapshot->getLocalClip(); local
2935 const Rect* clip = !pureTranslate ? NULL : mSnapshot->clipRect; local
2999 const Rect* clip = &mSnapshot->getLocalClip(); local
3047 Rect clip; local
3301 drawColorRects(const float* rects, int count, int color, SkXfermode::Mode mode, bool ignoreTransform, bool dirty, bool clip) argument
[all...]
H A DSnapshot.h55 * Indicates that the clip region was modified. When this
56 * snapshot is restored so must the clip.
82 * Modifies the current clip with the new clip rectangle and
86 bool clip(float left, float top, float right, float bottom,
90 * Modifies the current clip with the new clip rectangle and
97 * Modifies the current clip with the specified region and operation.
103 * Sets the current clip.
108 * Returns the current clip i
[all...]
H A DFontRenderer.h67 bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
72 bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
121 void initRender(const Rect* clip, Rect* bounds, Functor* functor);
H A DOpenGLRenderer.h157 * frame is assumed to be dirty. A clip will automatically be set to
309 // simple rect clip
531 * This method will use the clip rect that we started drawing the
543 void startTiling(const Rect& clip, int windowHeight, bool opaque = false);
565 * @return True if the clip was modified.
570 * Sets the clipping rectangle using glScissor. The clip is defined by
576 * Sets the clipping region using the stencil buffer. The clip region
583 * the transformed rect to test and the current clip.
586 Rect& transformed, Rect& clip);
596 void calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, boo
[all...]
H A DFontRenderer.cpp569 void FontRenderer::initRender(const Rect* clip, Rect* bounds, Functor* functor) { argument
575 mClip = clip;
594 bool FontRenderer::renderPosText(SkPaint* paint, const Rect* clip, const char *text, argument
602 initRender(clip, bounds, functor);
612 bool FontRenderer::renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, argument
620 initRender(clip, bounds, NULL);
H A DSnapshot.cpp114 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { function in class:android::uirenderer::Snapshot
180 // we may have to modify the previous snapshot's clip rect and clip
181 // region if the previous restore() call did not restore the clip
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java291 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS);
325 final float vol = clip(volume, 0.0f, 1.0f);
326 final float panning = clip(pan, -1.0f, 1.0f);
341 private static final long clip(long value, long min, long max) { method in class:BlockingAudioTrack
353 private static float clip(float value, float min, float max) { method in class:BlockingAudioTrack
/frameworks/base/services/java/com/android/server/
H A DClipboardService.java152 public void setPrimaryClip(ClipData clip, String callingPackage) { argument
154 if (clip != null && clip.getItemCount() <= 0) {
161 checkDataOwnerLocked(clip, Binder.getCallingUid());
164 clipboard.primaryClip = clip;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java49 * yet when setting transforms and clip information.
69 /** temp clip in case clipping is set before a Graphics2D exists */
176 * Sets the clip for the graphics2D object associated with the layer.
179 * @param clipShape the shape to use a the clip shape.
183 // first reset the clip to max and then intersect the current (empty)
184 // clip with the shap.
186 mGraphics.clip(clipShape);
191 * clip shape and the given shape.
192 * @param shape the new clip shape.
194 public void clip(Shap method in class:GcSnapshot.Layer
482 public boolean clip(Shape shape, int regionOp) { method in class:GcSnapshot
[all...]
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp57 const SkPath* path, const SkRegion* clip) {
58 SkASSERT(dst && path && clip);
59 return dst->setPath(*path, *clip);
56 Region_setPath(JNIEnv* env, jobject, SkRegion* dst, const SkPath* path, const SkRegion* clip) argument
/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.ni(), clip.mNativeRegion);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java74 * @param shape1 the firt shape to combine which can be null if there's no original clip.
321 Region_Delegate clip = sManager.getDelegate(native_clip);
322 if (clip != null) {
323 dstRegion.mArea.subtract(clip.getJavaArea());
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DProgressBarICS.java161 private Drawable tileify(Drawable drawable, boolean clip) { argument
194 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT,

Completed in 568 milliseconds

12