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

123

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DRoundedRectHelper.java42 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
43 mImpl.setClipToRoundedOutline(view, clip, radius);
49 public void setClipToRoundedOutline(View view, boolean clip) { argument
50 mImpl.setClipToRoundedOutline(view, clip, view.getResources().getDimensionPixelSize(
55 public void setClipToRoundedOutline(View view, boolean clip, int radius); argument
63 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
73 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
74 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
/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...]
/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(true);
123 getService().setPrimaryClip(clip, mContext.getOpPackageName());
130 * Returns the current primary clip o
[all...]
H A DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage);
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp243 void BakedOpRenderer::setupStencilRectList(const ClipBase* clip) { argument
244 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist");
245 auto&& rectList = reinterpret_cast<const ClipRectList*>(clip)->rectList;
256 bounds.doIntersect(clip->rect);
277 void BakedOpRenderer::setupStencilRegion(const ClipBase* clip) { argument
278 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region");
279 auto&& region = reinterpret_cast<const ClipRegion*>(clip)->region;
282 SkRegion::Cliperator it(region, clip
294 prepareRender(const Rect* dirtyBounds, const ClipBase* clip) argument
348 renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument
359 auto&& clip = state.computedState.clipRect(); local
[all...]
H A DBakedOpRenderer.h87 void renderGlop(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) { argument
88 mGlopReceiver(*this, dirtyBounds, clip, glop);
107 const ClipBase* clip, const Glop& glop) {
108 renderer.renderGlopImpl(dirtyBounds, clip, glop);
110 void renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop);
113 void prepareRender(const Rect* dirtyBounds, const ClipBase* clip);
114 void setupStencilRectList(const ClipBase* clip);
115 void setupStencilRegion(const ClipBase* clip);
106 DefaultGlopReceiver(BakedOpRenderer& renderer, const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument
H A DBakedOpState.cpp24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { argument
26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left;
27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top;
28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right;
29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom;
55 LOG_ALWAYS_FATAL_IF(!clipState, "must clip!");
59 // Rejected based on either empty clip, or bounds not intersecting with clip
140 // NOTE: this won't succeed if a clip was allocated
151 // clip is
155 directConstruct(LinearAllocator& allocator, const ClipRect* clip, const Rect& dstRect, const RecordedOp& recordedOp) argument
[all...]
H A DFontRenderer.h61 const ClipBase* clip,
70 , clip(clip)
85 const ClipBase* clip; member in class:android::uirenderer::TextDrawFunctor
110 bool renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs,
114 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs,
154 void initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor);
57 TextDrawFunctor( BakedOpRenderer* renderer, const BakedOpState* bakedState, const ClipBase* clip, float x, float y, bool pureTranslate, int alpha, SkXfermode::Mode mode, const SkPaint* paint) argument
H A DOpenGLRenderer.cpp227 Rect clip(mState.currentRenderTargetClip());
228 clip.snapToPixelBoundaries();
231 // the entire clip region
233 dirtyLayerUnchecked(clip, getRegion());
237 info.clipLeft = clip.left;
238 info.clipTop = clip.top;
239 info.clipRight = clip.right;
240 info.clipBottom = clip.bottom;
256 // Scissor may have been modified, reset dirty clip
299 const Rect* clip local
486 calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) argument
519 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument
540 Rect clip; local
614 Rect clip; local
675 createFboLayer(Layer* layer, Rect& bounds, Rect& clip) argument
2151 const Rect* clip = !pureTranslate ? nullptr : &mState.currentRenderTargetClip(); local
2206 const Rect* clip = &writableSnapshot()->getLocalClip(); local
2383 drawColorRects(const float* rects, int count, const SkPaint* paint, bool ignoreTransform, bool dirty, bool clip) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DScissor.cpp76 void Scissor::set(int viewportHeight, const Rect& clip) { argument
78 GLint x = std::max(0, (int)clip.left);
79 GLint y = std::max(0, viewportHeight - (int)clip.bottom);
80 GLint width = std::max(0, ((int)clip.right) - x);
81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
H A DScissor.h32 void set(int viewportHeight, const Rect& clip);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dgpclip.c50 Word16 clip = 0; local
52 clip = 1;
54 return (clip);
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
H A DRoundedRectHelperApi21.java41 public static void setClipToRoundedOutline(View view, boolean clip, int roundedCornerRadius) { argument
42 if (clip) {
57 view.setClipToOutline(clip);
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpStateTests.cpp33 ClipRect clip(Rect(100, 200));
34 RectOp recordedOp(Rect(30, 40, 100, 200), translate10x20, &clip, &paint);
53 // intersection of parent & transformed child clip
68 ClipRect clip(Rect(100, 200));
69 RectOp recordedOp(Rect(1000, 1000), translate10x20, &clip, &paint);
75 << "Local clip rect should be 100x200, offset by -10,-20";
82 << "Local clip rect should be 90x190, offset by -10,-20";
165 ClipRect clip(Rect(200, 200));
167 Matrix4::identity(), &clip, &strokedPaint); local
183 ClipRect clip(Rec
186 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint); local
234 RectOp rejectOp(Rect(100, 200), Matrix4::identity(), &clip, &paint); local
248 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
263 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DDumpHeapActivity.java67 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI);
68 intent.setClipData(clip);
70 intent.setType(clip.getDescription().getMimeType(0));
103 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI);
104 intent.setClipData(clip);
106 intent.setType(clip.getDescription().getMimeType(0));
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java150 Rect clip = new Rect();
151 clip.left = (int) (paddingLeftPts * displayScale);
152 clip.top = (int) (paddingTopPts * displayScale);
153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale);
154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale);
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
341 Rect clip = new Rect(mediaBox);
342 clip.left += paddingLeftPts;
343 clip.top += paddingTopPts;
344 clip
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayerDim.h37 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java100 final float vol = clip(volume, 0.0f, 1.0f);
101 final float panning = clip(pan, -1.0f, 1.0f);
112 private static final float clip(float value, float min, float max) { method in class:AudioPlaybackQueueItem
H A DBlockingAudioTrack.java285 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS);
319 final float vol = clip(volume, 0.0f, 1.0f);
320 final float panning = clip(pan, -1.0f, 1.0f);
335 private static final long clip(long value, long min, long max) { method in class:BlockingAudioTrack
339 private static final float clip(float value, float min, float max) { method in class:BlockingAudioTrack
/frameworks/base/core/java/android/transition/
H A DChangeClipBounds.java35 private static final String PROPNAME_CLIP = "android:clipBounds:clip";
59 Rect clip = view.getClipBounds();
60 values.values.put(PROPNAME_CLIP, clip);
61 if (clip == null) {
88 return null; // No animation required since there is no clip.
/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/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp201 FX_RECT clip; local
202 clip.left = destLeft;
203 clip.right = destRight;
204 clip.top = destTop;
205 clip.bottom = destBottom;
206 fxgeDevice->SetClip_Rect(&clip);
/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/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatProgressBarHelper.java73 private Drawable tileify(Drawable drawable, boolean clip) { argument
77 inner = tileify(inner, clip);
110 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT,
/frameworks/base/core/java/android/app/assist/
H A DAssistContent.java85 public void setClipData(ClipData clip) { argument
86 mClipData = clip;
119 * leave the null and only report the local intent and clip data.

Completed in 601 milliseconds

123