Searched defs:clip (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dgpclip.c50 Word16 clip = 0; local
52 clip = 1;
54 return (clip);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DTintRatingBar.java81 private Drawable tileify(Drawable drawable, boolean clip) { argument
85 inner = tileify(inner, clip);
116 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT,
/frameworks/base/core/java/android/content/
H A DClipboardManager.java80 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
91 * clip changes.
113 * Sets the current primary clip on the clipboard. This is the clip that
116 * @param clip The clipped data item to set.
118 public void setPrimaryClip(ClipData clip) { argument
120 if (clip != null) {
121 clip.prepareToLeaveProcess();
123 getService().setPrimaryClip(clip, mContext.getOpPackageName());
129 * Returns the current primary clip o
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java101 final float vol = clip(volume, 0.0f, 1.0f);
102 final float panning = clip(pan, -1.0f, 1.0f);
113 private static final float clip(float value, float min, float max) { method in class:AudioPlaybackQueueItem
H A DBlockingAudioTrack.java286 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS);
320 final float vol = clip(volume, 0.0f, 1.0f);
321 final float panning = clip(pan, -1.0f, 1.0f);
336 private static final long clip(long value, long min, long max) { method in class:BlockingAudioTrack
340 private static final float clip(float value, float min, float max) { method in class:BlockingAudioTrack
/frameworks/base/libs/hwui/
H A DOutline.h75 void setShouldClip(bool clip) { argument
76 mShouldClip = clip;
H A DSnapshot.cpp126 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { function in class:android::uirenderer::Snapshot
192 // we may have to modify the previous snapshot's clip rect and clip
193 // region if the previous restore() call did not restore the clip
227 // ignore, don't replace, already have a high priority clip
H A DStatefulBaseRenderer.cpp155 mDirtyClip |= mSnapshot->clip(left, top, right, bottom, op);
172 SkRegion clip; local
174 clip.setRegion(*mSnapshot->previous->clipRegion);
177 clip.setRect(0, 0, getWidth(), getHeight());
180 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom);
185 region.setPath(transformed, clip);
187 // region is the transformed input path, masked by the previous clip
204 // TODO: consider storing this rect separately, so that this can't be replaced with clip ops
226 * @param clipRequired if not null, will be set to true if element intersects clip
249 // clip i
[all...]
H A DFontRenderer.cpp664 void FontRenderer::initRender(const Rect* clip, Rect* bounds, Functor* functor) { argument
670 mClip = clip;
690 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const char *text, argument
698 initRender(clip, bounds, functor);
708 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, argument
716 initRender(clip, bounds, functor);
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfEditor.java109 * Sets a transformation and clip for a given page. The transformation matrix if
111 * the clip is null, then no clipping is performed.
115 * @param clip The clip to apply.
118 @Nullable Rect clip) {
125 if (clip == null) {
132 clip.left, clip.top, clip.right, clip
117 setTransformAndClip(int pageIndex, @Nullable Matrix transform, @Nullable Rect clip) argument
[all...]
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java160 public void setPrimaryClip(ClipData clip, String callingPackage) { argument
162 if (clip != null && clip.getItemCount() <= 0) {
170 checkDataOwnerLocked(clip, callingUid);
174 setPrimaryClipInternal(clipboard, clip);
186 // Copy clip data to related users if allowed. If disallowed, then remove
187 // primary clip in related users to prevent pasting stale content.
189 clip = null;
191 clip.fixUrisLight(userId);
196 setPrimaryClipInternal(getClipboard(id), clip);
218 setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) argument
[all...]
/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 Degl.cpp334 const Region& clip);
458 const Region& clip)
462 Region::const_iterator cur = clip.begin();
463 Region::const_iterator end = clip.end();
455 copyBlt( ANativeWindowBuffer* dst, void* dst_vaddr, ANativeWindowBuffer* src, void const* src_vaddr, const Region& clip) argument
H A Dcontext.h138 vec4_t clip; member in struct:android::gl::vertex_t
266 // user clip planes
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java147 int weight = clip(this.weight,
178 int score = clip(weight,
199 int score = clip(weight,
209 return clip(value, lo, /*hi*/Integer.MAX_VALUE, rect, name);
212 private static int clip(int value, int lo, int hi, Rect rect, String name) { method in class:ParameterUtils.WeightedRectangle
215 + name + " too small, clip to " + lo);
219 + name + " too small, clip to " + hi);
992 + stringFromArea(area) + " has too small weight, clip to 0");
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp214 FS_RECTF clip = {(float) clipLeft, (float) clipTop, (float) clipRight, (float) clipBottom}; local
216 FPDFPage_TransFormWithClip(page, &transform, &clip);
H A DPdfRenderer.cpp197 FX_RECT clip; local
198 clip.left = destLeft;
199 clip.right = destRight;
200 clip.top = destTop;
201 clip.bottom = destBottom;
202 fxgeDevice->SetClip_Rect(&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.ni(), clip.mNativeRegion);
/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/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskView.java488 * Returns whether this view should be clipped, or any views below should clip against this
496 void setClipViewInStack(boolean clip) { argument
497 if (clip != mClipViewInStack) {
498 mClipViewInStack = clip;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java50 * yet when setting transforms and clip information.
70 /** temp clip in case clipping is set before a Graphics2D exists */
177 * Sets the clip for the graphics2D object associated with the layer.
180 * @param clipShape the shape to use a the clip shape.
184 // first reset the clip to max and then intersect the current (empty)
185 // clip with the shap.
187 mGraphics.clip(clipShape);
192 * clip shape and the given shape.
193 * @param shape the new clip shape.
195 public void clip(Shap method in class:GcSnapshot.Layer
483 public boolean clip(Shape shape, int regionOp) { method in class:GcSnapshot
[all...]
/frameworks/base/core/java/android/widget/
H A DProgressBar.java401 private Drawable tileify(Drawable drawable, boolean clip) { argument
427 out.addState(in.getStateSet(i), tileify(in.getStateDrawable(i), clip));
448 return clip ? new ClipDrawable(
H A DGridLayout.java722 private static int clip(Interval minorRange, boolean minorWasDefined, int count) { method in class:GridLayout
755 final int minorSpan = clip(minorRange, minorWasDefined, count);
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp569 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
570 onDraw(hw, clip, false);
582 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip, argument
608 Region holes(clip.subtract(under));
674 drawWithOpenGL(hw, clip, useIdentityTransform);
680 const Region& /* clip */, float red, float green, float blue,
690 const sp<const DisplayDevice>& hw, const Region& clip) const {
691 clearWithOpenGL(hw, clip, 0,0,0,0);
695 const Region& /* clip */, bool useIdentityTransform) const {
920 // in particular, we want to make sure the clip (whic
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java1768 private void setPopupClipToScreenEnabled(boolean clip) { argument
1771 sClipToWindowEnabledMethod.invoke(mPopup, clip);

Completed in 5049 milliseconds

12