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

1234

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DRoundedRectHelper.java32 static void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
34 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
41 static void setClipToRoundedOutline(View view, boolean clip) { argument
45 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
H A DRoundedRectHelperApi21.java44 public static void setClipToRoundedOutline(View view, boolean clip, int roundedCornerRadius) { argument
45 if (clip) {
60 view.setClipToOutline(clip);
/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.java68 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
79 * clip changes.
93 * Sets the current primary clip on the clipboard. This is the clip that
96 * @param clip The clipped data item to set.
100 public void setPrimaryClip(@NonNull ClipData clip) { argument
102 Preconditions.checkNotNull(clip);
103 clip.prepareToLeaveProcess(true);
104 mService.setPrimaryClip(clip, mContext.getOpPackageName());
111 * Clears any current primary clip o
[all...]
H A DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage);
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp238 void BakedOpRenderer::setupStencilRectList(const ClipBase* clip) { argument
239 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList,
240 "can't rectlist clip without rectlist");
241 auto&& rectList = reinterpret_cast<const ClipRectList*>(clip)->rectList;
252 bounds.doIntersect(clip->rect);
273 void BakedOpRenderer::setupStencilRegion(const ClipBase* clip) { argument
274 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region");
275 auto&& region = reinterpret_cast<const ClipRegion*>(clip)->region;
278 SkRegion::Cliperator it(region, clip
290 prepareRender(const Rect* dirtyBounds, const ClipBase* clip) argument
344 renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument
362 auto&& clip = state.computedState.clipRect(); local
[all...]
H A DBakedOpRenderer.h83 void renderGlop(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) { argument
84 mGlopReceiver(*this, dirtyBounds, clip, glop);
105 const ClipBase* clip, const Glop& glop) {
106 renderer.renderGlopImpl(dirtyBounds, clip, glop);
108 void renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop);
111 void prepareRender(const Rect* dirtyBounds, const ClipBase* clip);
112 void setupStencilRectList(const ClipBase* clip);
113 void setupStencilRegion(const ClipBase* clip);
104 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;
58 LOG_ALWAYS_FATAL_IF(!clipState, "must clip!");
62 // Rejected based on either empty clip, or bounds not intersecting with clip
145 // NOTE: this won't succeed if a clip was allocated
156 // clip is
160 directConstruct(LinearAllocator& allocator, const ClipRect* clip, const Rect& dstRect, const RecordedOp& recordedOp) argument
[all...]
H A DFontRenderer.h54 TextDrawFunctor(BakedOpRenderer* renderer, const BakedOpState* bakedState, const ClipBase* clip, argument
59 , clip(clip)
71 const ClipBase* clip; member in class:android::uirenderer::TextDrawFunctor
94 bool renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs,
98 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs,
141 void initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor);
/frameworks/base/libs/hwui/renderstate/
H A DScissor.cpp70 void Scissor::set(int viewportHeight, const Rect& clip) { argument
72 GLint x = std::max(0, (int)clip.left);
73 GLint y = std::max(0, viewportHeight - (int)clip.bottom);
74 GLint width = std::max(0, ((int)clip.right) - x);
75 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
H A DScissor.h33 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/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";
154 ClipRect clip(Rect(200, 200));
155 RectOp recordedOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &strokedPaint); local
171 ClipRect clip(Rec
174 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint); local
224 RectOp rejectOp(Rect(100, 200), Matrix4::identity(), &clip, &paint); local
239 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
254 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
[all...]
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java177 ClipData clip =
182 setPrimaryClipInternal(getClipboard(0), clip,
219 /** Current primary clip. */
248 public void setPrimaryClip(ClipData clip, String callingPackage) { argument
250 if (clip == null || clip.getItemCount() <= 0) {
258 checkDataOwnerLocked(clip, callingUid);
259 setPrimaryClipInternal(clip, callingUid);
385 void setPrimaryClipInternal(@Nullable ClipData clip, int callingUid) { argument
388 if (clip
439 setPrimaryClipInternal(PerUserClipboard clipboard, @Nullable ClipData clip, int callingUid) argument
[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/base/services/core/java/com/android/server/job/
H A DGrantedUriPermissions.java79 ClipData clip = intent.getClipData();
80 if (clip != null) {
81 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag,
88 public static GrantedUriPermissions createFromClip(IActivityManager am, ClipData clip, argument
94 if (clip != null) {
95 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags,
101 private static GrantedUriPermissions grantClip(IActivityManager am, ClipData clip, argument
104 final int N = clip.getItemCount();
106 curPerms = grantItem(am, clip.getItemAt(i), sourceUid, targetPackage, targetUserId,
/frameworks/native/services/surfaceflinger/
H A DColorLayer.h33 virtual void onDraw(const RenderArea& renderArea, const Region& clip,
H A DContainerLayer.h33 void onDraw(const RenderArea& renderArea, 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
/frameworks/base/core/java/android/transition/
H A DChangeClipBounds.java36 private static final String PROPNAME_CLIP = "android:clipBounds:clip";
60 Rect clip = view.getClipBounds();
61 values.values.put(PROPNAME_CLIP, clip);
62 if (clip == null) {
90 return null; // No animation required since there is no clip.
/frameworks/support/transition/src/main/java/androidx/transition/
H A DChangeClipBounds.java39 private static final String PROPNAME_CLIP = "android:clipBounds:clip";
64 Rect clip = ViewCompat.getClipBounds(view);
65 values.values.put(PROPNAME_CLIP, clip);
66 if (clip == null) {
94 return null; // No animation required since there is no clip.
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DColorSpaceRendererTest.java51 .clip(true)
65 .clip(true)
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfEditor.java122 * Sets a transformation and clip for a given page. The transformation matrix if
124 * the clip is null, then no clipping is performed.
128 * @param clip The clip to apply.
131 @Nullable Rect clip) {
138 if (clip == null) {
149 clip.left, clip.top, clip.right, clip
130 setTransformAndClip(int pageIndex, @Nullable Matrix transform, @Nullable Rect clip) argument
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DGLFunctorDrawable.cpp44 static void setScissor(int viewportHeight, const SkIRect& clip) { argument
45 SkASSERT(!clip.isEmpty());
47 GLint y = viewportHeight - clip.fBottom;
48 GLint height = (viewportHeight - clip.fTop) - y;
49 glScissor(clip.fLeft, y, clip.width(), height);
121 // update the matrix and clip that we pass to the WebView to match the coordinates of
128 // we are drawing into a (clipped) offscreen layer so we must update the clip and matrix
150 // apply a simple clip with a scissor or a complex clip wit
[all...]

Completed in 4995 milliseconds

1234