/frameworks/native/opengl/libagl/ |
D | vertex.cpp | 69 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/libs/hwui/ |
D | BakedOpRenderer.cpp | 243 void BakedOpRenderer::setupStencilRectList(const ClipBase* clip) { in setupStencilRectList() argument 244 …LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist"); in setupStencilRectList() 245 auto&& rectList = reinterpret_cast<const ClipRectList*>(clip)->rectList; in setupStencilRectList() 256 bounds.doIntersect(clip->rect); in setupStencilRectList() 277 void BakedOpRenderer::setupStencilRegion(const ClipBase* clip) { in setupStencilRegion() argument 278 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region"); in setupStencilRegion() 279 auto&& region = reinterpret_cast<const ClipRegion*>(clip)->region; in setupStencilRegion() 282 SkRegion::Cliperator it(region, clip->rect.toSkIRect()); in setupStencilRegion() 294 void BakedOpRenderer::prepareRender(const Rect* dirtyBounds, const ClipBase* clip) { in prepareRender() argument 296 mRenderState.scissor().setEnabled(clip != nullptr); in prepareRender() [all …]
|
D | BakedOpRenderer.h | 87 void renderGlop(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) { in renderGlop() argument 88 mGlopReceiver(*this, dirtyBounds, clip, glop); in renderGlop() 107 const ClipBase* clip, const Glop& glop) { in DefaultGlopReceiver() argument 108 renderer.renderGlopImpl(dirtyBounds, clip, glop); in DefaultGlopReceiver() 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);
|
D | OpenGLRenderer.cpp | 227 Rect clip(mState.currentRenderTargetClip()); in callDrawGLFunction() local 228 clip.snapToPixelBoundaries(); in callDrawGLFunction() 233 dirtyLayerUnchecked(clip, getRegion()); in callDrawGLFunction() 237 info.clipLeft = clip.left; in callDrawGLFunction() 238 info.clipTop = clip.top; in callDrawGLFunction() 239 info.clipRight = clip.right; in callDrawGLFunction() 240 info.clipBottom = clip.bottom; in callDrawGLFunction() 299 const Rect* clip = &mTilingClip; in renderOverdraw() local 302 mRenderState.scissor().set(clip->left, in renderOverdraw() 303 mState.firstSnapshot()->getViewportHeight() - clip->bottom, in renderOverdraw() [all …]
|
D | BakedOpState.cpp | 24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { in computeClipSideFlags() argument 26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left; in computeClipSideFlags() 27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top; in computeClipSideFlags() 28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right; in computeClipSideFlags() 29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom; in computeClipSideFlags() 156 const ClipRect* clip, const Rect& dstRect, const RecordedOp& recordedOp) { in directConstruct() argument 157 return allocator.create_trivial<BakedOpState>(clip, dstRect, recordedOp); in directConstruct()
|
D | FontRenderer.h | 61 const ClipBase* clip, in TextDrawFunctor() argument 70 , clip(clip) in TextDrawFunctor() 85 const ClipBase* clip; variable 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);
|
D | ClipArea.cpp | 162 SkRegion RectangleList::convertToRegion(const SkRegion& clip) const { in convertToRegion() 169 rectangleListAsRegion.setPath(rectPathTransformed, clip); in convertToRegion() 172 rectRegion.setPath(rectPathTransformed, clip); in convertToRegion() 515 void ClipArea::applyClip(const ClipBase* clip, const Matrix4& transform) { in applyClip() argument 516 if (!clip) return; // nothing to do in applyClip() 518 if (CC_LIKELY(clip->mode == ClipMode::Rectangle)) { in applyClip() 519 clipRectWithTransform(clip->rect, &transform, SkRegion::kIntersect_Op); in applyClip() 520 } else if (CC_LIKELY(clip->mode == ClipMode::RectangleList)) { in applyClip() 521 auto&& rectList = getRectList(clip); in applyClip() 529 SkRegion region(getRegion(clip)); in applyClip()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | RoundedRectHelper.java | 42 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 43 mImpl.setClipToRoundedOutline(view, clip, radius); in setClipToRoundedOutline() 49 public void setClipToRoundedOutline(View view, boolean clip) { in setClipToRoundedOutline() argument 50 mImpl.setClipToRoundedOutline(view, clip, view.getResources().getDimensionPixelSize( in setClipToRoundedOutline() 55 public void setClipToRoundedOutline(View view, boolean clip, int radius); in setClipToRoundedOutline() argument 63 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 73 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 74 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius); in setClipToRoundedOutline()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 33 ClipRect clip(Rect(100, 200)); in TEST() local 34 RectOp recordedOp(Rect(30, 40, 100, 200), translate10x20, &clip, &paint); in TEST() 68 ClipRect clip(Rect(100, 200)); in TEST() local 69 RectOp recordedOp(Rect(1000, 1000), translate10x20, &clip, &paint); in TEST() 165 ClipRect clip(Rect(200, 200)); in TEST() local 167 Matrix4::identity(), &clip, &strokedPaint); in TEST() 183 ClipRect clip(Rect(100, 200)); in TEST() local 186 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint); in TEST() 193 RectOp rejectOp(Rect(30, 40, 100, 200), translate100x0, &clip, &paint); in TEST() 233 ClipRect clip(Rect(100, 200)); in TEST() local [all …]
|
/frameworks/base/core/java/android/content/ |
D | ClipboardManager.java | 118 public void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument 120 if (clip != null) { in setPrimaryClip() 121 clip.prepareToLeaveProcess(true); in setPrimaryClip() 123 getService().setPrimaryClip(clip, mContext.getOpPackageName()); in setPrimaryClip() 196 ClipData clip = getPrimaryClip(); in getText() local 197 if (clip != null && clip.getItemCount() > 0) { in getText() 198 return clip.getItemAt(0).coerceToText(mContext); in getText()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 150 Rect clip = new Rect(); in renderPage() local 151 clip.left = (int) (paddingLeftPts * displayScale); in renderPage() 152 clip.top = (int) (paddingTopPts * displayScale); in renderPage() 153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage() 154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage() 161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); in renderPage() 341 Rect clip = new Rect(mediaBox); in applyPrintAttributes() local 342 clip.left += paddingLeftPts; in applyPrintAttributes() 343 clip.top += paddingTopPts; in applyPrintAttributes() 344 clip.right -= paddingRightPts; in applyPrintAttributes() [all …]
|
/frameworks/base/libs/hwui/renderstate/ |
D | Scissor.cpp | 76 void Scissor::set(int viewportHeight, const Rect& clip) { in set() argument 78 GLint x = std::max(0, (int)clip.left); in set() 79 GLint y = std::max(0, viewportHeight - (int)clip.bottom); in set() 80 GLint width = std::max(0, ((int)clip.right) - x); in set() 81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y); in set()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | DumpHeapActivity.java | 67 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI); in onCreate() local 68 intent.setClipData(clip); in onCreate() 70 intent.setType(clip.getDescription().getMimeType(0)); in onCreate() 103 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI); in onCreate() 104 intent.setClipData(clip); in onCreate() 106 intent.setType(clip.getDescription().getMimeType(0)); in onCreate()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 160 public void setPrimaryClip(ClipData clip, String callingPackage) { in setPrimaryClip() argument 162 if (clip != null && clip.getItemCount() <= 0) { in setPrimaryClip() 170 checkDataOwnerLocked(clip, callingUid); in setPrimaryClip() 174 setPrimaryClipInternal(clipboard, clip); in setPrimaryClip() 189 clip = null; in setPrimaryClip() 191 clip.fixUrisLight(userId); in setPrimaryClip() 196 setPrimaryClipInternal(getClipboard(id), clip); in setPrimaryClip() local 218 void setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) { in setPrimaryClipInternal() argument 220 if (clip == null && clipboard.primaryClip == null) { in setPrimaryClipInternal() 223 clipboard.primaryClip = clip; in setPrimaryClipInternal()
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
D | PdfEditor.java | 118 @Nullable Rect clip) { in setTransformAndClip() argument 125 if (clip == null) { in setTransformAndClip() 132 clip.left, clip.top, clip.right, clip.bottom); in setTransformAndClip()
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/ |
D | RoundedRectHelperApi21.java | 41 public static void setClipToRoundedOutline(View view, boolean clip, int roundedCornerRadius) { in setClipToRoundedOutline() argument 42 if (clip) { in setClipToRoundedOutline() 57 view.setClipToOutline(clip); in setClipToRoundedOutline()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | gpclip.c | 50 Word16 clip = 0; in Gp_clip() local 52 clip = 1; in Gp_clip() 54 return (clip); in Gp_clip()
|
/frameworks/base/docs/html/guide/topics/text/ |
D | copy-paste.jd | 139 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/core/jni/android/graphics/pdf/ |
D | PdfRenderer.cpp | 201 FX_RECT clip; in renderPageBitmap() local 202 clip.left = destLeft; in renderPageBitmap() 203 clip.right = destRight; in renderPageBitmap() 204 clip.top = destTop; in renderPageBitmap() 205 clip.bottom = destBottom; in renderPageBitmap() 206 fxgeDevice->SetClip_Rect(&clip); in renderPageBitmap()
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 285 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); in blockUntilCompletion() 319 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() 320 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume() 335 private static final long clip(long value, long min, long max) { in clip() method in BlockingAudioTrack 339 private static final float clip(float value, float min, float max) { in clip() method in BlockingAudioTrack
|
D | AudioPlaybackQueueItem.java | 100 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() 101 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume() 112 private static final float clip(float value, float min, float max) { in clip() method in AudioPlaybackQueueItem
|
/frameworks/base/core/java/android/transition/ |
D | ChangeClipBounds.java | 59 Rect clip = view.getClipBounds(); in captureValues() local 60 values.values.put(PROPNAME_CLIP, clip); in captureValues() 61 if (clip == null) { in captureValues()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistOrbView.java | 220 boolean clip = mCircleSize < mCircleMinSize; in updateClipping() 221 if (clip != mClipToOutline) { in updateClipping() 222 setClipToOutline(clip); in updateClipping() 223 mClipToOutline = clip; in updateClipping()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatProgressBarHelper.java | 73 private Drawable tileify(Drawable drawable, boolean clip) { in tileify() argument 77 inner = tileify(inner, clip); in tileify() 110 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT, in tileify()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 188 mGraphics.clip(clipShape); in setClip() 196 public void clip(Shape shape) { in clip() method in GcSnapshot.Layer 197 mGraphics.clip(shape); in clip() 484 public boolean clip(Shape shape, int regionOp) { in clip() method in GcSnapshot 490 layer.clip(shape); in clip() 528 return clip(new Rectangle2D.Float(left, top, right - left, bottom - top), regionOp); in clipRect() 717 Shape clip = getClip(); in doRestore() local 719 layer.setClip(clip); in doRestore()
|